
.ap-topFilters {
  padding-top: 100px !important;
  margin: 0 0 18px;
  display: flex;
  align-items: start;
  justify-content: space-between;
}

.ap-topFilters .card_add_apv{
    width: 30%;
}
.card_add_ap{
  margin-left:auto
}
.card_add_ap a{
  text-decoration: none;
}
.card_add_title{
  font-size: 16px;
  font-weight: 600;
  color: #0C4464;
  margin: 0;
}

.ap-topFiltersForm {
  width: 70%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* search bar */
.ap-searchBar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f5f7fb;
  border: 1px solid #eef2f7;
  border-radius: 999px;
  padding: 10px 12px;
}
.ap-searchIcon {
  opacity: 0.7;
}
.ap-searchField {
  border: 0;
  background: transparent;
  outline: 0;
  flex: 1;
  font-size: 16px;
}
.ap-searchField::placeholder {
  color: #6b7280;
  opacity: 1;
}
.ap-searchBtn {
  border: 0;
  background: #0b5cff;
  color: #fff;
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 600;
  cursor: pointer;
}

/* pills row */
.ap-pillRow {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.ap-pill {
  position: relative;
}
.ap-pillBtn {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  padding: 8px 10px;
  border-radius: 10px;
  font-weight: 600;
  color: #2b3340;
  cursor: pointer;
}
.ap-pillBtn:hover {
  background: #f3f6fb;
}
.ap-pillIcon {
  opacity: 0.85;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ap-pillCaret {
  opacity: 0.7;
}
.ap-resetAll {
  margin-left: auto;
  text-decoration: none;
  color: #667085;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 10px;
}
.ap-resetAll:hover {
  background: #f3f6fb;
}

/* dropdown */
.ap-dd {
  position: absolute;
  top: 44px;
  left: 0;
  z-index: 50;
  width: 320px;
  background: #fff;
  border: 1px solid #e6ebf2;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(16, 24, 40, 0.12);
  display: none;
}
.ap-pill.open .ap-dd {
  display: block;
}
.ap-ddInner {
  padding: 12px;
}
.ap-ddSearch {
  position: relative;
  margin-bottom: 10px;
}
.ap-ddSearchInput {
  width: 100%;
  padding: 10px 36px 10px 12px;
  border: 2px solid #e8eef7;
  border-radius: 12px;
  outline: 0;
  background: #fff;
}
.ap-ddSearchInput:focus {
  border-color: #0b5cff;
}
.ap-ddSearchIcon {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.55;
  display: inline-flex;
}

/* list items */
.ap-ddList {
  max-height: 320px;
  overflow: auto;
  border-radius: 12px;
}
.ap-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px;
  border-radius: 10px;
  cursor: pointer;
}
.ap-item:hover {
  background: #f5f7fb;
}
.ap-item input {
  width: 16px;
  height: 16px;
}
.ap-itemLabel {
  font-weight: 600;
  color: #1f2937;
}
.ap-itemCount {
  margin-left: auto;
  color: #1f2937;
  font-weight: 600;
}

/* footer */
.ap-ddFooter {
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  border-top: 1px solid #eef2f7;
}
.ap-ddApply {
  flex: 1;
  border: 0;
  background: #3c6e95;
  color: #fff;
  border-radius: 10px;
  padding: 6px 8px;
  font-weight: 500;
  cursor: pointer;
}
.ap-ddClear {
  border: 1px solid #eef2f7;
  background: #fff;
  border-radius: 10px;
  padding: 10px 12px;
  font-weight: 500;
  color: #667085;
  cursor: pointer;
}
.ap-ddClear:hover {
  background: #f8fafc;
}

/* selected badges */
.ap-selectedRow {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.ap-selectedBadges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.ap-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #eef4ff;
  border: 1px solid #dbe8ff;
  color: #20315e;
  padding: 7px 10px;
  border-radius: 999px;
  font-weight: 600;
}
.ap-badgeX {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  color: #1d4ed8;
}
.ap-clearAll {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: #667085;
  font-weight: 700;
  cursor: pointer;
  padding: 8px 10px;
  border-radius: 10px;
}
.ap-clearAll:hover {
  background: #f3f6fb;
}

.ap-empty {
  color: #98a2b3;
  padding: 10px;
}

/* mobile */
@media (max-width: 768px) {
  .ap-dd {
    width: min(92vw, 360px);
  }
  .ap-searchBtn {
    padding: 10px 12px;
  }
  .ap-topFilters {
    padding-top: 40px !important;
  }
}
@media (max-width: 560px) {
  .ap-topFilters {
    padding-top: 40px !important;
  }
}
