@charset "utf-8";
/* CSS Document */

/* Highlight required fields 
input:required,
select:required,
textarea:required {
    border: 2px solid #ff9800;
    background-color: #fff8e1;
}*/

/* Highlight invalid required fields 
input:required:invalid,
select:required:invalid,
textarea:required:invalid {
    border: 2px solid #f44336;
    background-color: #ffebee;
}*/

/* Highlight valid required fields 
input:required:valid,
select:required:valid,
textarea:required:valid {
    border: 2px solid #4caf50;
    background-color: #f1f8e9;
}*/


/* Required Chosen field 
select:required + .chosen-container .chosen-single {
    border: 2px solid #ff9800;
}*/

/* Invalid Chosen field 
.chosen-error .chosen-single {
    border: 2px solid #f44336 !important;
    background: #ffebee;
}*/




/* Red border for required Chosen fields with no value
select[required] + .chosen-container .chosen-single {
    border: 2px solid #f44336 !important;
    background: #ffebee;
} */

/* Green once a value is selected
select[required].valid + .chosen-container .chosen-single {
    border: 2px solid #4caf50 !important;
    background: #e8f5e9;
} */


    /* =========================================================
   Improved, tidied + more consistent (same classes kept)
   - Uses your existing colors (brand purple + green)
   - Better consistency (radius, borders, shadows, focus)
   - Removes repetition, fixes invalid var usage, adds fallbacks
   =========================================================
   
.global_container{
  min-height:100vh;
  padding:0;
  background:
    linear-gradient(
      to bottom,
      #e4ecff 0%,
      #ffffff 22%,
      #ffffff 78%,
      #e4ecff 100%
    );
} */

/* ---------- Base tokens ---------- */
:root{
  --admText:#111827;
  --admMuted:#6b7280;
  --admBorder:rgba(17,24,39,.12);
  --admBorderSoft:rgba(17,24,39,.08);
  --admSurface:#ffffff;
  --admCanvas:#f8f9fb;

  --admBrand:#53944c;
  --admBrand2:#53944c;
     
  --admpurple:#6b2c91;
  --admpurple2:#f6f2f8;
      
  --admGreen:#53944c;
  --admGreenHover:#53944c;
  --admGreenActive:#53944c;

  --admRadiusSm:10px;
  --admRadius:12px;
  --admRadiusLg:18px;
  --admPill:999px;

  --admShadowSm:0 8px 20px rgba(17,24,39,.06);
  --admShadow:0 12px 30px rgba(17,24,39,.08);

  --admFocusRing:0 0 0 3px rgba(111,29,122,.14);
  --admFocusBorder:rgba(111,29,122,.55);
}
     


/* Overlay */
.blanket,
.blanket2{
  position:fixed;
  inset:0;
  background:rgba(17,17,17,.65);
  z-index:970;
  display:none;
}

/* Fullscreen content container */
.content_html,
.content_html2{
  position:fixed;
  inset:0;
  background:#fff;
  z-index:980;

  /* important fixes for mobile */
  width:100%;
  height:100%;
  min-height:100dvh;

  box-sizing:border-box;
  padding:20px;

  overflow-y:auto;
  overflow-x:hidden;

  display:none;

  /* prevent inherited popup styles breaking mobile */
  max-width:none;
  margin:0;
  border-radius:0;
}

/* spacing adjustment on larger screens */
@media (min-width:900px){
  .content_html,
  .content_html2{
    padding:32px 48px;
  }
}
        .adm-filters-top{
      display:flex;
      justify-content:space-between;
      align-items:center;
      gap:12px;
      margin-bottom: 10px;
    }
    .adm-filters-title{
      display:flex;
      align-items:center;
      gap: 10px;
      font-weight: 900;
      letter-spacing: .02em;
    }
    .adm-pill-title{
      font-size: 12px;
      padding: 4px 10px;
      border-radius: 999px;
      background: var(--admpurple2);
      color: var(--admpurple);
      font-weight: 800;
    }
    
    .adm-subItem-plus::before {
  content: "+";
  margin-right: 6px;

}

.global_content{
  padding-top:20px;
  background-color: transparent !important;
  padding-bottom:60px;
}

/* ---------- Links ---------- */
.adm-inlineLink,
.adm-detailLink,
.adm-link,
.adm-logout{
  color: var(--admBrand);
  text-decoration:none;
  font-weight:800;
}
.adm-inlineLink{ font-weight:900; }
.adm-inlineLink:hover,
.adm-detailLink:hover,
.adm-link:hover,
.adm-logout:hover{
  text-decoration:underline;
}



.kebab-menu li {
  padding: 0; /* remove padding from li */
}

.kebab-menu li a {
  display: block;
  padding: 5px;
  font-weight: 700;
  font-size: 14px;
  width: 100%;
  color: inherit;
}

.kebab-menu li a:hover {
  background: #f6f2f8;
}



/* ---------- Status pills ---------- */
.adm-statusPill,
.adm-pill{
  display:inline-flex;
  align-items:center;
  padding:6px 10px;
  border-radius: var(--admPill);
  font-size:12px;
  font-weight:900;
  border:1px solid rgba(17,24,39,.12);
  background: rgba(17,24,39,.03);
  color: var(--admText);
}

/* Status variants */
.adm-status--active {
  background: rgba(119,193,76,.18);
  border-color: rgba(119,193,76,.45);
  color: #2f6b1b;
}

.adm-status--confirmed {
  background: rgba(34,197,94,.18);
  border-color: rgba(34,197,94,.45);
  color: #166534;
}

/* InActive (neutral grey) */
.adm-status--inactive {
  background: rgba(107,114,128,.18);
  border-color: rgba(107,114,128,.45);
  color: #374151;
}

/* Pending (blue - waiting state) */
.adm-status--pending {
  background: rgba(59,130,246,.18);
  border-color: rgba(59,130,246,.45);
  color: #1e40af;
}

/* Active / Confirmed / Pending */
.adm-status--active {
  background: rgba(34,197,94,.18);
  border-color: rgba(34,197,94,.45);
  color: #166534;
}

/* Completed / Archived */
.adm-status--archived {
  background: rgba(59,130,246,.18);
  border-color: rgba(59,130,246,.45);
  color: #1e40af;
}

/* Deleted */
.adm-status--deleted {
  background: rgba(220,38,38,.15);
  border-color: rgba(220,38,38,.45);
  color: #991b1b;
}

/* Approved */
.adm-status--approved {
  background: rgba(16,185,129,.18);
  border-color: rgba(16,185,129,.45);
  color: #065f46;
}

/* Declined */
.adm-status--declined {
  background: rgba(239,68,68,.18);
  border-color: rgba(239,68,68,.45);
  color: #7f1d1d;
}

/* Arrived */
.adm-status--arrived {
  background: rgba(250,204,21,.25);
  border-color: rgba(250,204,21,.5);
  color: #854d0e;
}

/* Rescheduled */
.adm-status--rescheduled {
  background: rgba(168,85,247,.18);
  border-color: rgba(168,85,247,.45);
  color: #6b21a8;
}

/* Late Cancellation */
.adm-status--latecancellation {
  background: rgba(244,63,94,.18);
  border-color: rgba(244,63,94,.45);
  color: #881337;
}

/* Awaiting Payment */
.adm-status--awaitingpayment {
  background: rgba(251,146,60,.18);
  border-color: rgba(251,146,60,.45);
  color: #9a3412;
}

/* No Show */
.adm-status--noshow {
  background: rgba(161,98,7,.18);
  border-color: rgba(161,98,7,.45);
  color: #78350f;
}


/* Visit missed */
.adm-status--visit-missed {
  background: rgba(220,38,38,.18);
  border-color: rgba(220,38,38,.45);
  color: #7f1d1d;
}

/* Late for clock in */
.adm-status--late-clockin {
  background: rgba(255,156,69,.18);
  border-color: rgba(220,38,38,.45);
  color: #7f1d1d;
}

/* Visit in progress */
.adm-status--visit-in-progress {
  background: rgba(253,224,71,.25);
  border-color: rgba(253,224,71,.55);
  color: #713f12;
}

/* Visit completed */
.adm-status--visit-completed {
  background: rgba(34,197,94,.20);
  border-color: rgba(34,197,94,.45);
  color: #14532d;
}

/* Visit cancelled */
.adm-status--visit-cancelled {
  background: rgba(107,114,128,.20);
  border-color: rgba(107,114,128,.45);
  color: #374151;
}

/* Office work / alternate shift */
.adm-status--office-work {
  background: rgba(147,51,234,.18);
  border-color: rgba(147,51,234,.45);
  color: #581c87;
}

/* Visit upcoming */
.adm-status--visit-upcoming {
  background: rgba(59,130,246,.18);
  border-color: rgba(59,130,246,.45);
  color: #1e3a8a;
}
/* ---------- Tokens ---------- */
.adm-tokenHelp{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.adm-token{
  display:inline-flex;
  padding:6px 10px;
  border-radius: var(--admPill);
  font-size:12px;
  font-weight:900;
  border:1px solid rgba(17,24,39,.12);
  background:rgba(17,24,39,.04);
  color: var(--admText);
}

/* =========================================================
   DETAILS VIEW
   ========================================================= */
.adm-detailGrid{
  max-width:1200px;
  margin:14px auto;
  padding:0 12px;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:14px;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color: var(--admText);
}

.adm-detailCol{ display:flex; flex-direction:column; gap:14px; }

.adm-detailCard{
  background: var(--admSurface);
  border:1px solid rgba(17,24,39,.10);
  border-radius: var(--admRadiusLg);
  box-shadow: var(--admShadowSm);
  overflow:hidden;
}

.adm-detailRow{
  display:grid;
  grid-template-columns: 210px 1fr;
  gap:12px 16px;
  padding:12px 14px;
  border-top:1px solid var(--admBorderSoft);
  align-items:center;
}
.adm-detailRow:first-child{ border-top:0; }

.adm-detailLabel{
  font-size:12px;
  font-weight:900;
  letter-spacing:.2px;
  text-transform:uppercase;
  color: var(--admMuted);
}

.adm-detailValue{
  font-size:14px;
  font-weight:700;
  color: var(--admText);
}
.adm-detailValue--multiline{
  font-weight:650;
  line-height:1.4;
}

.adm-detailDivider{
  max-width:1200px;
  margin:18px auto;
  border:0;
  border-top:1px solid rgba(17,24,39,.10);
}

/* Responsive */
@media (max-width: 900px){
  .adm-detailGrid{ grid-template-columns:1fr; }
  .adm-detailRow{ grid-template-columns:1fr; }
  .adm-detailLabel{ margin-bottom:-6px; }
}

/* =========================================================
   POPUP HEADER + CLOSE
   ========================================================= */
.adm-popupHeader{
  display:flex;
  justify-content:flex-end;
  padding:6px 6px 0;
}
.adm-popupHeader--right{
  display:flex;
  justify-content:flex-end;
}

.adm-popupClose{
  appearance:none;
  border:0;
  background:transparent;
  font-size:18px;
  font-weight:900;
  line-height:1;
  cursor:pointer;
  color: var(--admMuted);
  padding:6px 10px;
  border-radius: var(--admRadiusSm);
  transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}
.adm-popupClose:hover{
  background:rgba(17,24,39,.06);
  color: var(--admText);
}
.adm-popupClose:focus-visible{
  outline:none;
  box-shadow: var(--admFocusRing);
}

/* =========================================================
   FORM CARD + BUTTONS
   ========================================================= */
.adm-formCard{
  max-width:1200px;
  margin:18px auto;
  padding:16px;
  background: var(--admSurface);
  border:1px solid rgba(17,24,39,.10);
  border-radius: var(--admRadiusLg);
  box-shadow: var(--admShadowSm);
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color: var(--admText);
}

.adm-formHead{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:12px;
  padding:4px 4px 14px;
  border-bottom:1px solid var(--admBorderSoft);
}
.adm-formTitle{
  font-size:16px;
  font-weight:900;
  letter-spacing:.2px;
  text-transform:uppercase;
  color: var(--admText);
}
.adm-formHint{
  font-size:13px;
  color: var(--admMuted);
  font-weight:650;
}

.adm-formGrid{
  padding-top:14px;
  display:flex;
  flex-direction:column;
  gap:12px;
}

.adm-formRow{
  display:grid;
  grid-template-columns:220px 1fr;
  align-items:center;
  gap:12px 16px;
}

.adm-formLabel{
  font-size:13px;
  font-weight:900;
  color: var(--admText);
}
.adm-req{
  color:#dc2626;
  font-weight:900;
  margin-left:2px;
}

/* Inputs (single source of truth) */
.adm-input,
.adm-select{
  width:100%;
  height:42px;
  border-radius: var(--admRadius);
  border:1px solid rgba(17,24,39,.16);
  background:#fff;
  padding:0 12px;
  font-size:14px;
  outline:none;
  color: var(--admText);
  transition: box-shadow .15s ease, border-color .15s ease, background .15s ease;
}

.adm-input2{
width:300px !important; margin-right:10px;
height:42px;
border-radius: var(--admRadius);
border:1px solid rgba(17,24,39,.16);
background:#fff;
padding:0 12px;
font-size:14px;
outline:none;
color: var(--admText);
transition: box-shadow .15s ease, border-color .15s ease, background .15s ease;
}

.adm-input:focus,
.adm-input2:focus,
.adm-select:focus{
  border-color: var(--admFocusBorder);
  box-shadow: var(--admFocusRing);
}

/* chosen select (kept) */
.adm-formCard .chosen-container-single .chosen-single,
.adm-filtersCard .chosen-container-single .chosen-single{
  height:42px;
  line-height:42px;
  border-radius: var(--admRadius);
  border:1px solid rgba(17,24,39,.16);
  background:#fff;
  padding:0 42px 0 12px;
  font-size:14px;
  font-weight:500;
  color: var(--admText);
  box-shadow:none;
}

/* Optional: nicer select arrow */
select.adm-input{
  appearance:none;
  background-image:
    linear-gradient(45deg, transparent 50%, #6b7280 50%),
    linear-gradient(135deg, #6b7280 50%, transparent 50%),
    linear-gradient(to right, transparent, transparent);
  background-position:
    calc(100% - 18px) 17px,
    calc(100% - 12px) 17px,
    calc(100% - 40px) 0.6em;
  background-size: 6px 6px, 6px 6px, 1px 1.8em;
  background-repeat:no-repeat;
  padding-right:42px;
}

/* Actions */
.adm-formActions{
  display:flex;
  gap:10px;
  padding-top:6px;
  margin-top:6px;
  border-top:1px solid var(--admBorderSoft);
}

/* Primary buttons */
.adm-btnPrimary,
.adm-filesBtn,
.adm-btnSm{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:42px;
  padding:0 16px;
  border-radius: var(--admRadius);
  background: var(--admGreen);
  border:1px solid var(--admGreen);
  color:#fff;
  font-weight:900;
  cursor:pointer;
  text-decoration:none;
  white-space:nowrap;
  transition: transform .08s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}
.adm-btnSm{
  height:auto;
  padding:8px 12px;
  font-size:13px;
}
.adm-btnPrimary:hover,
.adm-filesBtn:hover,
.adm-btnSm:hover{
  background: var(--admGreenHover);
  border-color: var(--admGreenHover);
  box-shadow: 0 10px 22px rgba(34,75,168,.25);
}
.adm-btnPrimary:active,
.adm-filesBtn:active,
.adm-btnSm:active{
  background: var(--admGreenActive);
  border-color: var(--admGreenActive);
  transform: translateY(1px);
}
.adm-btnPrimary:focus-visible,
.adm-filesBtn:focus-visible,
.adm-btnSm:focus-visible{
  outline:none;
  box-shadow: var(--admFocusRing);
}

/* Ghost button */
.adm-btnGhost{
  height:42px;
  padding:0 16px;
  border-radius: var(--admRadius);
  border:1px solid rgba(17,24,39,.16);
  background:#fff;
  color: var(--admText);
  font-weight:900;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  transition: box-shadow .15s ease, border-color .15s ease, transform .08s ease;
}
.adm-btnGhost:hover{
  border-color: rgba(111,29,122,.35);
  box-shadow: var(--admShadowSm);
}
.adm-btnGhost:active{ transform: translateY(1px); }
.adm-btnGhost:focus-visible{
  outline:none;
  box-shadow: var(--admFocusRing);
}

/* Form responsive */
@media (max-width: 780px){
  .adm-formRow{
    grid-template-columns:1fr;
    gap:6px;
  }
  .adm-formLabel{
    font-size:12px;
    text-transform:uppercase;
    letter-spacing:.2px;
    color: var(--admMuted);
  }
  .adm-formHead{
    flex-direction:column;
    align-items:flex-start;
  }
}

/* Files toolbar bits (kept) */
.adm-filesActions{ margin-left:auto; }

@media (max-width: 720px){
  .adm-filesToolbar{
    flex-direction:column;
    align-items:stretch;
  }
  .adm-filesActions{
    display:flex;
    justify-content:flex-start;
  }
  .adm-filesInput,
  .adm-filesSelect{
    min-width:0;
    width:100%;
  }
}

/* =========================================================
   CLIENTS PAGE + FILTERS
   ========================================================= */
.adm-clientsPage{
  max-width:100%;
  margin:18px auto;
  padding:0 12px;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color: var(--admText);
}

.adm-filtersCard{
  background: var(--admSurface);
  border:1px solid rgba(17,24,39,.10);
  border-radius:16px;
  box-shadow: var(--admShadowSm);
  padding:12px;
  margin-bottom:14px;
}

.adm-filtersRow{
  display:grid;
  grid-template-columns: repeat(6, 1fr);
  gap:12px;
  align-items:end;
}
@media (max-width: 900px){
  .adm-filtersRow{ grid-template-columns:1fr; }
}

.force-right{
  grid-column:-1;
  justify-self:end;
}

.adm-field{ display:flex; flex-direction:column; gap:6px; }
.adm-fieldLabel{
  font-size:12px;
  font-weight:800;
  color: var(--admMuted);
  letter-spacing:.2px;
  text-transform:uppercase;
}

/* =========================
   Pagination (matches screenshot)
   ========================= */

.adm-pagination {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  flex-wrap: wrap; /* allows wrap on smaller widths */
}

/* Base control */
.adm-pageBtn,
.adm-pageNum {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 14px;
  border: 1px solid #d6d9de;
  background: #fff;
  color: #1f2937;
  font-size: 14px;
  line-height: 1;
  border-radius: 5px;
  text-decoration: none; /* no underline */
  box-shadow: 0 1px 0 rgba(0,0,0,.10);
  cursor: pointer;
  user-select: none;
  transition: background .15s ease, border-color .15s ease, transform .05s ease;
}

/* Number buttons are square-ish */
.adm-pageNum {
  width: 40px;
  padding: 0;
}

/* Hover / active */
.adm-pageBtn:hover,
.adm-pageNum:hover {
  background: #f6f7f9;
  border-color: #cfd4dc;
  text-decoration:none;
}

.adm-pageBtn:active,
.adm-pageNum:active {
  transform: translateY(1px);
}

/* Active page */
.adm-pageNum.is-active,
.adm-pageBtn.is-active {
  background: #2f6df6;
  border-color: #2f6df6;
  color: #fff;
  box-shadow: none;
}

    /* Header row: one source of truth for spacing */
.adm-tableHeader{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:14px 20px;          /* adjust once here */
  width:100%;
  box-sizing:border-box;
}

/* Left side: turn into a clean inline-flex group */
.adm-filters-title{
  display:inline-flex;
  align-items:center;
  gap:14px;                   /* space between Results + Appointments */
  margin:0;
  padding:0;
  line-height:1;
}

/* Results pill */
.adm-pill-title{
  display:inline-flex;
  align-items:center;
  height:34px;
  padding:0 14px;
  border-radius:999px;
  background:#f3e9fb;
  color:#6b21a8;
  font-weight:800;
  white-space:nowrap;
}

/* Right side: prevent extra offset */
.adm-tableMeta{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  margin:0;
  padding:0;
  white-space:nowrap;
}

/* If your pagination lives inside adm-tableMeta and had extra margin */
.adm-tableMeta .adm-pagination{
  margin:0;
  padding:0;
}


/* Disabled */
.adm-pageBtn.is-disabled,
.adm-pageNum.is-disabled,
.adm-pageBtn[aria-disabled="true"],
.adm-pageNum[aria-disabled="true"] {
  opacity: .45;
  cursor: not-allowed;
  pointer-events: none;
}

/* Keyboard focus */
.adm-pageBtn:focus-visible,
.adm-pageNum:focus-visible {
  outline: 2px solid #2f6df6;
  outline-offset: 2px;
}

/* =========================================================
   TABLE CARD + TABLE
   ========================================================= */
   




.adm-tableCard{
  background: var(--admSurface);
  border:1px solid rgba(17,24,39,.10);
  border-radius: var(--admRadiusLg);
  overflow:hidden;
  box-shadow: var(--admShadowSm);
}

.adm-tableHeader{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:12px;
  padding:14px 14px 10px;
}
.adm-tableTitle{
  font-size:16px;
  font-weight:900;
  letter-spacing:.2px;
  text-transform:uppercase;
}
.adm-tableMeta{
  font-size:13px;
  color: var(--admMuted);
  font-weight:650;
}

.adm-tableWrap{
  width:100%;
  overflow-x:auto;
}

/* Table */
.adm-table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  min-width:920px;
}

.adm-table thead th{
  text-align:left;
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.06em;
  color: rgba(17,24,39,.78);
  background:#fafafa;
  border-bottom:1px solid rgba(17,24,39,.10); /* fixed: no undefined var(--border) */
  padding:12px 14px;
  font-weight:900;
  white-space:nowrap;
}
.adm-table thead th:first-child{ border-top-left-radius:14px; }
.adm-table thead th:last-child{ border-top-right-radius:14px; }

.adm-table tbody td{
  padding:14px 12px;
  border-top:1px solid var(--admBorderSoft);
  font-size:14px;
  vertical-align:middle;
  color: var(--admText);
}

.adm-table tbody tr:nth-child(even){ background: rgba(17,24,39,.02); }
.adm-table tbody tr:hover{ background: rgba(111,29,122,.06); }

.adm-colAction{
  text-align:right;
  width:1%;
  white-space:nowrap;
}

/* Mobile: rows -> cards */
@media (max-width: 720px){
  .adm-table{ min-width:0; }
  .adm-table thead{ display:none; }

  .adm-table,
  .adm-table tbody,
  .adm-table tr,
  .adm-table td{
    display:block;
    width:100%;
  }

  .adm-table tbody tr{
    background:#fff;
    border-top:1px solid rgba(17,24,39,.10);
    padding:10px 10px 12px;
  }

  .adm-table tbody td{
    border:0;
    padding:8px 6px;
    display:flex;
    justify-content:space-between;
    gap:12px;
  }

  .adm-table tbody td::before{
    content: attr(data-label);
    font-weight:900;
    color: var(--admMuted);
    text-transform:uppercase;
    letter-spacing:.2px;
    font-size:11px;
  }

  .adm-colAction{ text-align:left; }
}

/* =========================================================
   SHELL + NAV
   ========================================================= */
.adm-shell{
  background: var(--admSurface);
  border-bottom:1px solid var(--admBorder);
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
}
.adm-shell a{ text-decoration:none; }
.adm-shell a:hover,
.adm-shell a:focus{ text-decoration:none; }

/* Top bar */
.adm-topbar{
  max-width:100%;
  margin:0 auto;
  padding:10px 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}
.adm-leftwrap{
  display:flex;
  align-items:center;
  gap:14px;
}

.adm-logo{
  height:80px;
  min-width:46px;
  border-radius: var(--admRadius);
  display:flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
}
.adm-logo img{
  max-width:72%;
  max-height:72%;
  display:block;
}
.adm-logoText{
  font-size:11px;
  font-weight:900;
  color:#fff;
  letter-spacing:.5px;
}

.adm-title{
  font-size:18px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.3px;
  color: var(--admText);
}
.adm-user{
  margin-top:4px;
  font-size:13px;
  color: var(--admMuted);
}
.adm-sep{ margin:0 6px; }

.adm-settingsBtn{
  padding:8px 14px;
  border-radius: var(--admRadiusSm);
  border:1px solid rgba(0,0,0,.15);
  background:#fff;
  font-size:13px;
  font-weight:800;
  text-decoration:none;
  color: var(--admText);
  transition: box-shadow .15s ease, border-color .15s ease, transform .08s ease;
}
.adm-settingsBtn:hover{
  border-color: rgba(111,29,122,.45);
  box-shadow: var(--admShadowSm);
}
.adm-settingsBtn:active{ transform: translateY(1px); }
.adm-settingsBtn:focus-visible{
  outline:none;
  box-shadow: var(--admFocusRing);
}

/* Main nav */
.adm-navMain{
  background: linear-gradient(90deg, var(--admBrand), var(--admBrand2));
  border-top:1px solid rgba(255,255,255,.10);
  position:relative;

  max-width:100%;
  margin:0 auto;
  padding:10px 12px;
  display:flex;
  gap:6px;
  flex-wrap:wrap;
}
.adm-navMain::after{
  content:"";
  position:absolute;
  left:0; right:0; bottom:-1px;
  height:3px;
  background: var(--admAccent, #fbd337);
}

.adm-navItem{
  color: rgba(255,255,255,.95);
  text-decoration:none;
  font-weight:500;
  font-size:13px;
  text-transform:uppercase;
  letter-spacing:.25px;
  padding:10px 14px;
  border-radius: var(--admRadius);
  transition: background .15s ease, transform .08s ease;
}
.adm-navItem:hover{ background: rgba(255,255,255,.14); }
.adm-navItem:active{ transform: translateY(1px); }

.adm-active{
  background: rgba(255,255,255,.20);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.20);
}

/* Sub bar */
.adm-subbar{
  max-width:100%;
  margin:0 auto;
  padding:20px 12px 20px;
  display:grid;
  grid-template-columns: 1fr auto;
  gap:12px 16px;
  align-items:center;
}

/* Auto-hide if empty submenu (kept) */
.adm-subbar:has(.adm-navSub:empty){ display:none; }

.adm-pageTitle{
  margin:0;
  font-size:22px;
  font-weight:800;
  letter-spacing:.3px;
  text-transform:uppercase;
  color: var(--admText);
}

.adm-pageSubTitle{
font-size:12px; 
padding:5px; 
color:#646464;
}

/* Submenu (right aligned desktop) */
.adm-navSub{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:10px;
}
.adm-navSub:empty{ display:none; }

/* Sub menu buttons */
.adm-subItem{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  white-space:nowrap;
  text-decoration:none;

  padding:10px 14px;
  border-radius: var(--admRadius);
  line-height:1;

  background: var(--admGreen);
  border:1px solid var(--admGreen);
  color:#fff;
  font-weight:500;
  transition: transform .08s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}
.adm-subItem:hover{
  background: var(--admGreenHover);
  border-color: var(--admGreenHover);
  box-shadow: 0 8px 18px rgba(34,200,68,.35);
}
.adm-subItem:active{
  background: var(--admGreenActive);
  border-color: var(--admGreenActive);
  transform: translateY(1px);
}
.adm-subItem,
.adm-subItem:hover,
.adm-subItem:focus,
.adm-subItem:active{
  text-decoration:none;
}
.adm-subItem:focus-visible{
  outline:none;
  box-shadow: var(--admFocusRing);
}

/* Mobile: title stack + submenu grid */
@media (max-width: 780px){
  .adm-subbar{
    grid-template-columns:1fr;
    align-items:start;
  }
  .adm-pageTitle{ font-size:18px; }

  .adm-navSub{
    display:grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap:10px;
    width:100%;
    justify-content:stretch;
  }

  .adm-subItem{
    width:100%;
    white-space:normal;
    margin-top:1px;
    text-align:center;
  }
}

@media (max-width: 420px){
  .adm-navSub{ grid-template-columns:1fr; }
}

/* =========================================================
   Mobile responsiveness upgrades (NO class changes)
   Drop this AFTER your existing CSS so it overrides cleanly.
   Focus:
   - Better padding + spacing on small screens
   - Tables become nicer “cards”
   - Filters grid becomes 2 cols on medium phones, 1 col small
   - Detail rows + form rows tighten label/value spacing
   - Buttons become full-width where it helps
   ========================================================= */

/* ---------- Global small-screen rhythm ---------- */
@media (max-width: 900px){
  .global_content{ padding-top:12px; }
  .adm-clientsPage{ padding: 0 10px; }
  .adm-detailGrid{ padding: 0 10px; }
  .adm-formCard{ margin: 12px auto; padding: 12px; }
  .adm-filtersCard{ padding: 10px; }
  .adm-tableHeader{ padding: 12px 12px 8px; }
}

/* ---------- Subbar/nav tighten ---------- */
@media (max-width: 780px){
  .adm-topbar{
    padding: 12px 12px;
    gap: 12px;
    flex-wrap: wrap;
  }

  .adm-leftwrap{ gap: 10px; }

  .adm-logo{
    height: 56px;
    min-width: 44px;
    border-radius: 12px;
  }

  .adm-title{ font-size: 15px; }
  .adm-user{ font-size: 12px; }

  .adm-navMain{
    padding: 8px 10px;
    gap: 6px;
  }

  .adm-navItem{
    padding: 9px 12px;
    border-radius: 12px;
    font-size: 12px;
  }

  .adm-subbar{ padding: 14px 10px 12px; }
}

/* ---------- Filters: 6 cols -> 2 cols -> 1 col ---------- */
@media (max-width: 1020px){
  .adm-filtersRow{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 780px){
  .adm-filtersRow{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    align-items: stretch;
  }

  /* “force-right” becomes normal flow on mobile (no awkward gaps) */
  .force-right{
    grid-column: auto;
    justify-self: stretch;
  }

  /* Inputs feel better when they fill their cell */
  .adm-field{ gap: 5px; }
  .adm-fieldLabel{ font-size: 11px; }

  .adm-filtersCard .adm-input,
  .adm-filtersCard .adm-select{
    width: 100%;
  }

  /* chosen select (mobile spacing) */
  .adm-filtersCard .chosen-container{
    width: 100% !important;
  }
}

@media (max-width: 480px){
  .adm-filtersRow{ grid-template-columns: 1fr; }
}

/* ---------- Details view: less “air”, clearer stacking ---------- */
@media (max-width: 900px){
  .adm-detailCard{ border-radius: 16px; }
}

@media (max-width: 720px){
  .adm-detailRow{
    padding: 10px 12px;
    gap: 6px;
  }

  .adm-detailLabel{
    margin: 0;
    font-size: 11px;
    letter-spacing: .16px;
  }

  .adm-detailValue{
    font-size: 14px;
    line-height: 1.35;
  }

  /* If you have long tokens, let them wrap neatly */
  .adm-tokenHelp{ gap: 6px; }
  .adm-token{ padding: 6px 9px; }
}

/* ---------- Forms: better mobile flow + buttons stack ---------- */
@media (max-width: 780px){
  .adm-formGrid{ gap: 10px; }

  .adm-formRow{
    padding: 6px 0;
  }

  .adm-formLabel{
    margin-bottom: -2px;
  }

  .adm-formActions{
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
  }

  .adm-btnPrimary,
  .adm-btnGhost{
    width: 100%;
    justify-content: center;
  }
}

/* ---------- Table: improve “card rows” on mobile ---------- */
@media (max-width: 720px){
  .adm-tableCard{
    border-radius: 16px;
    overflow: hidden;
  }

  .adm-tableWrap{
    overflow: visible; /* avoid double scroll when cards */
  }

  .adm-table tbody tr{
    margin: 0;
    border-top: 1px solid rgba(17,24,39,.10);
    padding: 10px 10px 12px;
  }

  .adm-table tbody td{
    padding: 8px 6px;
    gap: 10px;
  }

  /* Make label column a bit smaller so values have room */
  .adm-table tbody td::before{
    max-width: 46%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Value side: allow wrap */
  .adm-table tbody td{
    word-break: break-word;
  }

  .adm-colAction{
    padding-top: 10px;
  }

  /* Action buttons become easier to tap */
  .adm-btnSm{
    width: 100%;
    justify-content: center;
    padding: 10px 12px;
    border-radius: 12px;
  }
}

/* ---------- Extra small phones: tighten paddings ---------- */
@media (max-width: 380px){
  .adm-formCard{ padding: 10px; }
  .adm-filtersCard{ padding: 10px; }
  .adm-tableHeader{ padding: 10px 10px 6px; }
  .adm-table tbody tr{ padding: 10px; }
}


.kebab-wrapper {
  position: relative;
  display: inline-block;
}

.kebab-menu{
  position: fixed;       /* key change */
  display: none;
  z-index: 99999;
  min-width: 220px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0,0,0,.12);
  padding: 6px 0;
  margin: 0;
  list-style: none;
}


.kebab-menu li {
  padding: 10px 14px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
}

.kebab-menu li:hover {
  background: #f6f2f8;
}

.kebab-menu .divider {
  height: 1px;
  background: #e5e7eb;
  margin: 6px 0;
  padding: 0;
}

.kebab-menu .danger {
  color: #b91c1c;
}

.kebab-menu .danger:hover {
  background: #fee2e2;
}

/* Wrapper already looks good */
.kebab-wrapper {
  position: relative;
  display: inline-flex;
}

/* Button */
.kebab {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  cursor: pointer;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  transition:
    background 0.15s ease,
    box-shadow 0.15s ease,
    border-color 0.15s ease,
    transform 0.05s ease;
}



/* Dots */
.kebab .dots {
  font-size: 18px;
  line-height: 1;
  font-weight: 900;
  color: #6b7280;
  transition: color 0.15s ease, transform 0.15s ease;
}

/* Hover (desktop) */
@media (hover: hover) {
  .kebab:hover {
    background: #f6f2f8;
    border-color: rgba(107,44,145,.35);
    box-shadow: 0 6px 18px rgba(107,44,145,.18);
  }

  .kebab:hover .dots {
    color: #6b2c91;
    transform: scale(1.1);
  }
}

/* Active (click / tap) */
.kebab:active {
  transform: scale(0.95);
  box-shadow: none;
}

/* Focus (keyboard users) */
.kebab:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(107,44,145,.25);
  border-color: #6b2c91;
}

/* Open state (aria-driven) */
.kebab[aria-expanded="true"] {
  background: #6b2c91;
  border-color: #6b2c91;
}

.kebab[aria-expanded="true"] .dots {
  color: #ffffff;
}

/* Mobile: larger tap target */
@media (max-width: 640px) {
  .kebab {
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }
}
/* =========================================================
   Pagination + table header fixes (KEEP all classes)
   Paste at the very bottom of your CSS
   ========================================================= */

/* 1) Normalize header alignment (your CSS defines it twice) */
.adm-tableHeader{
  align-items:center !important;        /* instead of baseline */
  padding:14px 20px !important;         /* consistent left/right */
}

/* 2) Let the right side actually respond on smaller screens */
.adm-tableMeta{
  white-space:normal !important;        /* was nowrap -> breaks responsiveness */
  min-width:0;                          /* allow flex child to shrink */
}

/* 3) Make pagination wrap nicely on desktop */
.adm-tableMeta .adm-pagination{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  flex-wrap:wrap;                       /* wrap when needed */
  gap:8px;
  padding:0;
  margin:0;
}

/* 4) Ensure page buttons don’t blow out the row */
.adm-tableMeta .adm-pageBtn,
.adm-tableMeta .adm-pageNum{
  height:36px;
  border-radius:8px;
}

/* =========================
   Mobile behavior
   ========================= */
@media (max-width: 820px){

  /* Stack title and pagination */
  .adm-tableHeader{
    flex-wrap:wrap;
    gap:10px;
  }

  .adm-filters-title{
    width:100%;
  }

  /* Put pager on its own row and allow horizontal scroll (best UX on mobile) */
  .adm-tableMeta{
    width:100%;
    justify-content:flex-start !important;
    overflow-x:auto;                    /* scroll instead of squish */
    -webkit-overflow-scrolling:touch;
    padding-bottom:4px;
  }

  .adm-tableMeta .adm-pagination{
    flex-wrap:nowrap;                   /* keep in one line */
    justify-content:flex-start;
    min-width:max-content;              /* enables smooth horizontal scroll */
  }

  /* Slightly smaller controls */
  .adm-tableMeta .adm-pageBtn,
  .adm-tableMeta .adm-pageNum{
    height:38px;
    font-size:13px;
  }

  .adm-tableMeta .adm-pageNum{
    width:38px;
  }
}

/* Extra small phones */
@media (max-width: 420px){

  /* Make Prev/Next easier to tap, keep numbers scrollable */
  .adm-tableMeta .adm-pageBtn{
    height:42px;
    padding:0 14px;
  }

  .adm-tableMeta .adm-pageNum{
    height:42px;
    width:42px;
  }
}
.adm-addressSearch{
  display: flex;
  align-items: center;
  gap: 10px;
}

.adm-addressSearch .adm-input{
  flex: 1;              /* input grows */
}

.adm-findAddress{
  white-space: nowrap; /* prevents wrapping */
  height: 46px;        /* matches input */
}

.outstanding-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.6em;
  height: 15px;
  padding: 0 0;
  border-radius: 999px;
  font: 700 0.85rem/1 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  margin-left:2px;
  color: #fff;
  background: red; /*#f28a1b*/
  box-shadow: 0 0 0 0 rgba(217,45,32,.45);
}

.area-dot {
  width: 10px;
  height: 10px;
  display: inline-block;
  border-radius: 0;
  margin-right: 6px;
  border: 1px solid #999;
  cursor: pointer;
  position: relative;
}

.area-dot:hover::after {
  content: attr(data-name);
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: #fff;
  padding: 4px 8px;
  font-size: 12px;
  white-space: nowrap;
  border-radius: 4px;
  z-index: 1000;
}