/* AJX reference-inspired visual skin. Staging UI only; no business logic changes. */
:root{
 --navy:#042c22;--navy-2:#074335;--navy-3:#008b53;
 --side-text:#d3f2e6;--side-dim:#83b8a9;
 --bg:#f9fcfa;--surface:#f1f7f5;--line:#dbece5;--line-2:#bddbcf;
 --ink:#102039;--muted:#5d7890;
 --blue:#008f55;--blue-2:#006c43;--blue-soft:#def8e9;
 --good:#078750;--good-soft:#dff8e9;
}
body{background:#f9fcfa}
.side{background:linear-gradient(155deg,#012a20 0%,#003c2b 54%,#01291f 100%);box-shadow:5px 0 22px rgba(0,63,42,.08)}
.logo{background:linear-gradient(135deg,#02b977,#008d57);border-radius:12px;box-shadow:0 4px 16px #009f6338}
.nav a{border-radius:9px;transition:background .15s ease,color .15s ease}
.nav a.on{background:linear-gradient(100deg,#007b48,#04a965);box-shadow:0 3px 12px #001b171c}
.nav a.on svg{color:#fff}
.nav .count{background:#00a76b}
.side-foot{border-top-color:#236354}
.top{background:linear-gradient(115deg,#fff 0%,#f2fcf6 68%,#e0f9eb 100%);padding-top:17px;padding-bottom:17px}
.top h1{font-size:23px;letter-spacing:-.035em}
.top .demo-chip[data-state="db"]{background:#d9f8e8;color:#007a46}
.content{background:linear-gradient(180deg,#fafffc,#fff 340px);gap:16px}
.panel{border-radius:13px;box-shadow:0 2px 12px rgba(13,81,57,.035);overflow:hidden}
.ph{padding:16px 18px}
.ph h3{font-size:16px;letter-spacing:-.02em}
.kpis{gap:14px}
.kpi{border-radius:13px;min-height:128px;padding:18px 19px;box-shadow:0 2px 10px rgba(0,85,55,.035)}
.kpi .val{font-size:29px;letter-spacing:-.04em}
.kpi.hero{background:linear-gradient(135deg,#d9f8e7,#effdf5);border-color:#c6efdb;color:#102039}
.kpi.hero .lbl,.kpi.hero .sub{color:#47776b}
.kpi.hero .up{color:#078750}
.kpis .kpi:nth-child(2){background:#edf6ff;border-color:#dce9f8}
.kpis .kpi:nth-child(3){background:#ebfaf2;border-color:#d7f1e4}
.kpis .kpi:nth-child(4){background:#fff8e9;border-color:#f4e8cf}
.kpis .kpi:nth-child(5){background:#fff8e9;border-color:#f4e8cf}
.chips button[aria-pressed="true"]{background:#e2f8eb;color:#006d42;border-color:#0ba367}
.btn-p{background:linear-gradient(135deg,#009455,#007f4b);border-color:#00834d}
.btn-p:hover{background:#006d42;border-color:#006d42}
.btn{border-radius:9px}
.p-info{background:#e1f7eb;color:#007849}
th{background:#f0f7f5}
tbody tr:hover td{background:#f6fcf9}
.pill{font-weight:800}
.att-item.urgent{background:#fff5f5}
@media(max-width:760px){.top h1{font-size:19px}.kpi{min-height:112px}.kpi .val{font-size:25px}}

/* Reference-aligned owner dashboard: chart, status, attention and recent records */
.ajx-reporting{background:linear-gradient(95deg,#d9f8e7,#effcf5);border:1px solid #bcebd2;border-radius:13px;padding:16px}
.ajx-overview-grid{grid-template-columns:minmax(0,1.65fr) minmax(320px,1fr)}
.ajx-sales-svg{width:100%;height:auto;max-height:290px;display:block}
.ajx-chart-key{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:16px;font-size:12px;color:#4b6475;margin-bottom:8px}
.ajx-chart-key span:nth-child(1){color:#078750}.ajx-chart-key span:nth-child(2){color:#42b883}.ajx-chart-key span:nth-child(3){color:#b98200}
.ajx-multi-ring{background:conic-gradient(#17a36a 0 var(--ajx-done),#f6b728 var(--ajx-done) 100%)!important}
.ajx-status-legend>div{padding:10px 0;border-bottom:1px solid #e6eee9}
.ajx-status-note{font-size:11px;margin:10px 0 0;color:#718096}
.ajx-attention-wide{border-color:#f2d9dc;background:linear-gradient(180deg,#fff4f5,#fff 130px)}
.ajx-attention-tabs{display:flex;gap:10px;flex-wrap:wrap;padding:12px 18px 15px}
.ajx-att-tab{border:1px solid #d9e5df;background:white;color:#18384a;border-radius:10px;padding:11px 18px;font-weight:700;cursor:pointer}
.ajx-att-tab.on{background:#008d55;border-color:#008d55;color:#fff}
.ajx-att-tab b{margin-left:8px;border-radius:50px;background:#eef2f2;color:#25364a;padding:3px 8px}
.ajx-att-tab.on b{background:#d5f7e6;color:#006c40}
.ajx-att-pane[hidden]{display:none!important}
.ajx-attention-wide .tw,.ajx-recent-tx .tw{overflow-x:auto}
.ajx-attention-wide table,.ajx-recent-tx table{width:100%;min-width:760px}
.ajx-attention-wide td,.ajx-recent-tx td{vertical-align:middle}
.ajx-more-hint{padding:8px 18px}
@media(max-width:900px){.ajx-overview-grid{grid-template-columns:1fr}.ajx-attention-tabs{gap:6px}.ajx-att-tab{padding:9px 11px}}

/* Ensure dashboard panels remain reachable inside the fixed-height app shell. */
.app,.main{min-height:0}
.main>.content{min-height:0;overflow-y:auto!important;overflow-x:hidden;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch;align-content:start}
.main>.content>section{flex-shrink:0}

/* Customers: contained scrolling table with persistent headings and paginated rows. */
.ajx-customer-scroll{max-height:min(66vh,720px);overflow:auto;overscroll-behavior:contain}
.ajx-customer-scroll table{border-collapse:separate;border-spacing:0;min-width:1000px}
.ajx-customer-scroll thead th{position:sticky;top:0;z-index:2;background:#edf6f2;box-shadow:0 1px 0 var(--line)}
.ajx-customer-pager{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:13px 16px;border-top:1px solid var(--line);font-size:12px;color:var(--muted)}
.ajx-page-controls{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.ajx-page-controls button:disabled{opacity:.45;cursor:not-allowed}

/* Keep customer identity and row actions visible during horizontal scrolling. */
.ajx-customer-scroll{scrollbar-gutter:stable}
.ajx-customer-scroll table{min-width:1160px}
.ajx-customer-scroll th:first-child,.ajx-customer-scroll td:first-child{position:sticky;left:0;min-width:175px;max-width:225px;background:var(--bg);z-index:3;box-shadow:1px 0 0 var(--line)}
.ajx-customer-scroll th:last-child,.ajx-customer-scroll td:last-child{position:sticky;right:0;min-width:175px;background:var(--bg);z-index:3;box-shadow:-1px 0 0 var(--line)}
.ajx-customer-scroll thead th:first-child,.ajx-customer-scroll thead th:last-child{z-index:5;background:#edf6f2}
.ajx-customer-scroll td:first-child b{display:block;overflow:hidden;text-overflow:ellipsis;max-width:190px}
.ajx-customer-scroll tbody tr:hover td:first-child,.ajx-customer-scroll tbody tr:hover td:last-child{background:#f0faf5}
.ajx-customer-scroll td:last-child .acts{flex-wrap:wrap}


/* Owner dashboard visual alignment to the supplied October reference.
   Presentation only: all figures remain sourced from live staging records. */
#content:has(.ajx-reporting){padding:12px 22px 42px;gap:12px;background:linear-gradient(155deg,#f6fff9 0%,#fff 40%)}
.main:has(.ajx-reporting) .top{background:linear-gradient(125deg,#fff 0%,#f0fff7 60%,#b8f5d9 100%);padding:16px 24px}
.main:has(.ajx-reporting) .top h1{font-size:27px;line-height:1.12}
.ajx-reporting{background:linear-gradient(100deg,#dcf9e9,#f2fff8);padding:12px 16px;min-height:62px}
.ajx-reporting>div{flex:1}
.ajx-reporting strong{font-size:14px}
.ajx-reporting select{min-width:172px;font-weight:800}
.ajx-reporting .period{font-size:11px}
.ajx-kpi-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.ajx-kpi-grid .kpi{position:relative;min-height:122px;padding:18px 15px 14px 82px;justify-content:center;gap:4px}
.ajx-kpi-grid .kpi .lbl{font-size:12px;color:#18334a;letter-spacing:0;text-transform:none}
.ajx-kpi-grid .kpi .val{font-size:25px;white-space:nowrap}
.ajx-kpi-grid .kpi .sub{font-size:11px;line-height:1.45}
.ajx-kpi-grid .kpi:before{content:"";position:absolute;top:20px;left:13px;width:56px;height:60px;border-radius:13px;background:#b9f1d6;display:block}
.ajx-kpi-grid .kpi:after{position:absolute;top:27px;left:25px;font-size:32px;line-height:1.3}
.ajx-kpi-grid .kpi:nth-child(1):after{content:"₱";color:#008d56;font-weight:900}
.ajx-kpi-grid .kpi:nth-child(2):before{background:#cfe7ff}
.ajx-kpi-grid .kpi:nth-child(2):after{content:"▰";color:#0869e7}
.ajx-kpi-grid .kpi:nth-child(3){background:#fff9eb;border-color:#fae9bf}
.ajx-kpi-grid .kpi:nth-child(3):before{background:#ffedbf}
.ajx-kpi-grid .kpi:nth-child(3):after{content:"✓";color:#efa900;font-weight:900}
.ajx-kpi-grid .kpi:nth-child(4){background:#e8faf0;border-color:#d6f0e1}
.ajx-kpi-grid .kpi:nth-child(4):before{background:#c6f2da}
.ajx-kpi-grid .kpi:nth-child(4):after{content:"◷";color:#06935a}
.ajx-overview-grid{grid-template-columns:minmax(0,1.7fr) minmax(320px,1fr);gap:12px}
.ajx-overview-grid>.panel{min-height:290px}
.ajx-overview-grid .ph h3{font-size:17px}
.ajx-overview-grid .pb{padding:10px 16px}
.ajx-sales-svg{max-height:250px}
.ajx-status-layout{align-items:center}
.ajx-status-ring{width:170px;height:170px;flex:none}
.ajx-status-ring strong{font-size:30px}
.ajx-status-legend{flex:1}
.ajx-status-legend>div{padding:8px 0}
.ajx-attention-wide{background:linear-gradient(180deg,#fff1f3 0,#fff 140px);border-color:#f5d6dc}
.ajx-attention-wide .ph{background:linear-gradient(90deg,#fff0f2,#fff8f9)}
.ajx-attention-wide .ph h3{font-size:17px}
.ajx-attention-tabs{padding:9px 14px}
.ajx-att-tab{padding:9px 16px}
.ajx-attention-wide td,.ajx-recent-tx td{padding:9px 13px}
.ajx-attention-wide th,.ajx-recent-tx th{padding:9px 13px}
.ajx-recent-tx .ph h3{font-size:17px}
@media(max-width:1180px){.ajx-kpi-grid .kpi{padding:13px 12px 13px 64px}.ajx-kpi-grid .kpi:before{left:9px;width:45px;height:50px}.ajx-kpi-grid .kpi:after{left:19px;top:22px;font-size:26px}.ajx-kpi-grid .kpi .val{font-size:21px}}
@media(max-width:960px){.ajx-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ajx-overview-grid{grid-template-columns:1fr}.ajx-reporting .period{width:100%}}
@media(max-width:600px){#content:has(.ajx-reporting){padding:12px;gap:12px}.ajx-kpi-grid{grid-template-columns:1fr}.ajx-kpi-grid .kpi{min-height:100px}.main:has(.ajx-reporting) .top h1{font-size:22px}}

/* Reference-match refinement v2: compact executive dashboard */
#content:has(.ajx-reporting){gap:10px;padding-top:10px}
.main:has(.ajx-reporting) .top{min-height:80px;background:linear-gradient(115deg,#fff 0%,#e8fff3 66%,#9aebc7 100%)}
.main:has(.ajx-reporting) .top h1{font-size:29px}
.ajx-reporting{min-height:48px;padding:6px 12px;background:transparent;border:0;box-shadow:none}
.ajx-reporting strong{display:none}
.ajx-reporting select{background:#fff}
.ajx-kpi-grid{gap:10px}
.ajx-kpi-grid .kpi{min-height:112px;padding:14px 12px 12px 76px}
.ajx-kpi-grid .kpi .lbl{font-size:13px;font-weight:800}
.ajx-kpi-grid .kpi .val{font-size:25px}
.ajx-kpi-grid .kpi .sub{font-size:10.5px;max-height:30px;overflow:hidden}
.ajx-kpi-grid .kpi:nth-child(3){order:4;background:#e8faf0;border-color:#d6f0e1}
.ajx-kpi-grid .kpi:nth-child(3):before{background:#c6f2da}
.ajx-kpi-grid .kpi:nth-child(3):after{color:#06935a}
.ajx-kpi-grid .kpi:nth-child(4){order:3;background:#fff9eb;border-color:#fae9bf}
.ajx-kpi-grid .kpi:nth-child(4):before{background:#ffedbf}
.ajx-kpi-grid .kpi:nth-child(4):after{color:#efa900}
.ajx-overview-grid>.panel{min-height:250px}
.ajx-overview-grid .ph{padding:10px 14px}
.ajx-overview-grid .ph h3{font-size:17px}
.ajx-overview-grid .ph p{font-size:10.5px}
.ajx-overview-grid .pb{padding:7px 12px}
.ajx-sales-svg{height:192px;max-height:192px;width:100%}
.ajx-chart-key{margin-bottom:0;font-size:11px}
.ajx-customer-status .pb{display:flex;align-items:center;flex:1;gap:8px}
.ajx-customer-status .ajx-status-layout{flex:1;display:flex;flex-wrap:nowrap;justify-content:space-between;gap:12px;min-width:0}
.ajx-customer-status .ajx-status-ring{width:148px;height:148px;flex:0 0 148px}
.ajx-customer-status .ajx-status-ring>div{height:110px;width:110px}
.ajx-customer-status .ajx-status-legend{min-width:0;max-width:none;flex:1}
.ajx-customer-status .ajx-status-legend>div{padding:7px 0;font-size:11px;gap:6px}
.ajx-customer-status .ajx-status-note{display:none}
.ajx-attention-wide .ph,.ajx-recent-tx .ph{padding:10px 14px}
.ajx-attention-tabs{padding:7px 12px;gap:8px}
.ajx-att-tab{padding:8px 12px;font-size:12px}
.ajx-attention-wide .tw,.ajx-recent-tx .tw{max-height:165px;overflow:auto}
.ajx-attention-wide td,.ajx-recent-tx td{padding:7px 12px;font-size:12px}
.ajx-attention-wide th,.ajx-recent-tx th{padding:7px 12px;font-size:10px}
@media(max-width:1200px){.ajx-customer-status .ajx-status-layout{flex-wrap:wrap;justify-content:center}.ajx-customer-status .ajx-status-legend{flex:1 1 100%}}
@media(max-width:960px){.ajx-kpi-grid .kpi:nth-child(3){order:initial}.ajx-kpi-grid .kpi:nth-child(4){order:initial}}

/* Reference-match refinement v3: make data visualizations readable at desktop widths. */
@media(min-width:1201px){
  .ajx-overview-grid>.panel{min-height:278px}
  .ajx-overview-grid .pb{padding:8px 14px 12px}
  .ajx-sales-svg{height:225px;max-height:225px;width:100%;display:block}
  .ajx-customer-status .ajx-status-layout{gap:18px}
  .ajx-customer-status .ajx-status-ring{width:174px;height:174px;flex:0 0 174px}
  .ajx-customer-status .ajx-status-ring>div{width:132px;height:132px}
  .ajx-customer-status .ajx-status-ring strong{font-size:34px}
  .ajx-customer-status .ajx-status-legend>div{font-size:12.5px;padding:9px 0}
  .ajx-attention-wide .tw{max-height:130px;overflow-y:auto}
  .ajx-recent-tx .tw{max-height:156px;overflow-y:auto}
  .ajx-attention-wide td,.ajx-recent-tx td{padding:6px 12px}
  .ajx-attention-wide th,.ajx-recent-tx th{padding:6px 12px}
}

/* Reference-match v4: fuller sales plot and overdue/balance clarity. */
@media(min-width:1201px){
 .ajx-sales-svg{height:260px;max-height:260px}
 .ajx-overview-grid>.panel{min-height:314px}
 .ajx-attention-wide .tw{max-height:172px}
}
.ajx-attention-wide .ajx-balance-alert{color:#e11d48;font-weight:800}
.ajx-attention-wide .ajx-overdue-days{display:inline-block;padding:4px 9px;border-radius:8px;background:#ffe6e9;color:#d51d38;font-weight:800;white-space:nowrap}

/* Owner dashboard: prevent KPI alerts clipping and expose complete transaction rows. */
#content:has(.ajx-reporting) .ajx-kpi-grid .kpi{min-height:132px;height:auto;overflow:visible;justify-content:center}
#content:has(.ajx-reporting) .ajx-kpi-grid .kpi .sub{max-height:none;overflow:visible;overflow-wrap:anywhere;line-height:1.5}
#content:has(.ajx-reporting) .ajx-attention-wide .tw,
#content:has(.ajx-reporting) .ajx-recent-tx .tw{max-height:none;overflow-x:auto;overflow-y:visible}
#content:has(.ajx-reporting) .ajx-attention-wide table,
#content:has(.ajx-reporting) .ajx-recent-tx table{min-width:900px}
#content:has(.ajx-reporting) .ajx-attention-wide .ajx-attention-tabs{flex-wrap:wrap}
@media(max-width:960px){#content:has(.ajx-reporting) .ajx-kpi-grid .kpi{min-height:125px}}

/* Reference-aligned executive KPI cards. Presentation only; values remain live. */
#content:has(.ajx-reporting) .ajx-kpi-grid{gap:12px}
#content:has(.ajx-reporting) .ajx-kpi-grid .kpi{
  min-height:136px;padding:20px 15px 17px 92px;gap:6px;
  border-radius:13px;border-width:1px;box-shadow:0 2px 7px rgba(10,74,51,.035);
  overflow:visible;align-items:flex-start;justify-content:center;
}
#content:has(.ajx-reporting) .ajx-kpi-grid .kpi .lbl{font-size:13px;font-weight:800;line-height:1.25;color:#172b43}
#content:has(.ajx-reporting) .ajx-kpi-grid .kpi .val{font-size:clamp(21px,1.65vw,29px);font-weight:850;letter-spacing:-.65px;line-height:1.12;color:#10243e}
#content:has(.ajx-reporting) .ajx-kpi-grid .kpi .sub{font-size:11px;line-height:1.45;color:#55728a;max-height:none;overflow:visible;overflow-wrap:break-word}
#content:has(.ajx-reporting) .ajx-kpi-grid .kpi .sub .dn{display:inline-block;color:#dc2548;font-weight:800;white-space:nowrap}
#content:has(.ajx-reporting) .ajx-kpi-grid .kpi:before{top:22px;left:15px;width:62px;height:62px;border-radius:13px}
#content:has(.ajx-reporting) .ajx-kpi-grid .kpi:after{top:31px;left:27px;font-size:34px;line-height:1.3}
#content:has(.ajx-reporting) .ajx-kpi-grid .kpi:nth-child(1){background:#e8faf1;border-color:#c8efdb}
#content:has(.ajx-reporting) .ajx-kpi-grid .kpi:nth-child(2){background:#edf6ff;border-color:#d4e7fa}
#content:has(.ajx-reporting) .ajx-kpi-grid .kpi:nth-child(4){background:#fff8e9;border-color:#f4e3bc}
#content:has(.ajx-reporting) .ajx-kpi-grid .kpi:nth-child(3){background:#e8faf0;border-color:#cfeedd}
#content:has(.ajx-reporting) .ajx-kpi-grid .kpi:nth-child(3):after{content:"✓";color:#06935a}
#content:has(.ajx-reporting) .ajx-kpi-grid .kpi:nth-child(4):after{content:"◷";color:#d99400}
@media(max-width:1350px){
 #content:has(.ajx-reporting) .ajx-kpi-grid .kpi{padding-left:75px}
 #content:has(.ajx-reporting) .ajx-kpi-grid .kpi:before{left:10px;width:53px;height:55px}
 #content:has(.ajx-reporting) .ajx-kpi-grid .kpi:after{left:21px;top:30px;font-size:29px}
}
@media(max-width:960px){#content:has(.ajx-reporting) .ajx-kpi-grid .kpi{min-height:130px}}
@media(max-width:600px){#content:has(.ajx-reporting) .ajx-kpi-grid .kpi{padding-left:86px}}

/* KPI reference icons: consistent vector artwork, no font-dependent glyphs. */
#content:has(.ajx-reporting) .ajx-kpi-grid .kpi:after{content:""!important;top:28px;left:22px;width:48px;height:48px;background-repeat:no-repeat;background-position:center;background-size:contain;display:block}
#content:has(.ajx-reporting) .ajx-kpi-grid .kpi:nth-child(1):after{background-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 viewBox%3D%220 0 48 48%22 fill%3D%22none%22 stroke%3D%22currentColor%22 stroke-width%3D%223%22 stroke-linecap%3D%22round%22 stroke-linejoin%3D%22round%22%3E%3Cg stroke%3D%22%23078b58%22 fill%3D%22%23078b58%22%3E%3Cpath d%3D%22M17 8h14l-3 8H20z%22%2F%3E%3Cpath d%3D%22M20 17c-6 5-11 12-11 19 0 7 6 10 15 10s15-3 15-10c0-7-5-14-11-19z%22%2F%3E%3C%2Fg%3E%3Ctext x%3D%2224%22 y%3D%2237%22 text-anchor%3D%22middle%22 font-family%3D%22Arial%22 font-size%3D%2221%22 font-weight%3D%22bold%22 fill%3D%22white%22 stroke%3D%22none%22%3E%24%3C%2Ftext%3E%3C%2Fsvg%3E")}
#content:has(.ajx-reporting) .ajx-kpi-grid .kpi:nth-child(2):after{background-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 viewBox%3D%220 0 48 48%22 fill%3D%22none%22 stroke%3D%22currentColor%22 stroke-width%3D%223%22 stroke-linecap%3D%22round%22 stroke-linejoin%3D%22round%22%3E%3Cg stroke%3D%22%230869e7%22 fill%3D%22%230869e7%22%3E%3Cellipse cx%3D%2218%22 cy%3D%2212%22 rx%3D%2212%22 ry%3D%225%22%2F%3E%3Cpath d%3D%22M6 12v17c0 3 5 6 12 6 3 0 5-.4 7-1V12%22 fill%3D%22%230869e7%22%2F%3E%3Cellipse cx%3D%2218%22 cy%3D%2229%22 rx%3D%2212%22 ry%3D%225%22 fill%3D%22%230869e7%22%2F%3E%3Cellipse cx%3D%2233%22 cy%3D%2230%22 rx%3D%2211%22 ry%3D%225%22 fill%3D%22%230869e7%22%2F%3E%3Cpath d%3D%22M22 30v10c0 3 5 5 11 5s11-2 11-5V30%22 fill%3D%22%230869e7%22%2F%3E%3Cpath d%3D%22M22 35c3 6 19 6 22 0M6 19c5 5 17 5 19 1%22 stroke%3D%22white%22 stroke-width%3D%221.6%22 fill%3D%22none%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")}
#content:has(.ajx-reporting) .ajx-kpi-grid .kpi:nth-child(3):after{background-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 viewBox%3D%220 0 48 48%22 fill%3D%22none%22 stroke%3D%22currentColor%22 stroke-width%3D%223%22 stroke-linecap%3D%22round%22 stroke-linejoin%3D%22round%22%3E%3Ccircle cx%3D%2224%22 cy%3D%2224%22 r%3D%2218%22 fill%3D%22%23f5ae00%22 stroke%3D%22%23f5ae00%22%2F%3E%3Cpath d%3D%22M24 12v13l9 6%22 stroke%3D%22white%22 stroke-width%3D%223.5%22 fill%3D%22none%22%2F%3E%3C%2Fsvg%3E")}
#content:has(.ajx-reporting) .ajx-kpi-grid .kpi:nth-child(4):after{background-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 viewBox%3D%220 0 48 48%22 fill%3D%22none%22 stroke%3D%22currentColor%22 stroke-width%3D%223%22 stroke-linecap%3D%22round%22 stroke-linejoin%3D%22round%22%3E%3Cg stroke%3D%22%2306935a%22 fill%3D%22%2306935a%22%3E%3Crect x%3D%227%22 y%3D%2227%22 width%3D%228%22 height%3D%2215%22 rx%3D%222%22%2F%3E%3Crect x%3D%2220%22 y%3D%2218%22 width%3D%228%22 height%3D%2224%22 rx%3D%222%22%2F%3E%3Crect x%3D%2233%22 y%3D%228%22 width%3D%228%22 height%3D%2234%22 rx%3D%222%22%2F%3E%3C%2Fg%3E%3Cpath d%3D%22M5 44h38%22 stroke%3D%22%2306935a%22%2F%3E%3C%2Fsvg%3E")}
@media(max-width:1350px){#content:has(.ajx-reporting) .ajx-kpi-grid .kpi:after{left:13px;top:26px;width:47px;height:47px}}

/* Reference icon correction: DOM order is completed third, outstanding fourth. */
#content:has(.ajx-reporting) .ajx-kpi-grid .kpi:nth-child(3):after{background-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 viewBox%3D%220 0 48 48%22 fill%3D%22none%22 stroke%3D%22currentColor%22 stroke-width%3D%223%22 stroke-linecap%3D%22round%22 stroke-linejoin%3D%22round%22%3E%3Cg stroke%3D%22%2306935a%22 fill%3D%22%2306935a%22%3E%3Crect x%3D%227%22 y%3D%2227%22 width%3D%228%22 height%3D%2215%22 rx%3D%222%22%2F%3E%3Crect x%3D%2220%22 y%3D%2218%22 width%3D%228%22 height%3D%2224%22 rx%3D%222%22%2F%3E%3Crect x%3D%2233%22 y%3D%228%22 width%3D%228%22 height%3D%2234%22 rx%3D%222%22%2F%3E%3C%2Fg%3E%3Cpath d%3D%22M5 44h38%22 stroke%3D%22%2306935a%22%2F%3E%3C%2Fsvg%3E")}
#content:has(.ajx-reporting) .ajx-kpi-grid .kpi:nth-child(4):after{background-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 viewBox%3D%220 0 48 48%22 fill%3D%22none%22 stroke%3D%22currentColor%22 stroke-width%3D%223%22 stroke-linecap%3D%22round%22 stroke-linejoin%3D%22round%22%3E%3Ccircle cx%3D%2224%22 cy%3D%2224%22 r%3D%2218%22 fill%3D%22%23f5ae00%22 stroke%3D%22%23f5ae00%22%2F%3E%3Cpath d%3D%22M24 12v13l9 6%22 stroke%3D%22white%22 stroke-width%3D%223.5%22 fill%3D%22none%22%2F%3E%3C%2Fsvg%3E")}
/* Recent Transactions: green calendar-check tile alongside heading. */
#content:has(.ajx-reporting) .ajx-recent-tx .ph{display:flex;align-items:center;gap:12px}
#content:has(.ajx-reporting) .ajx-recent-tx .ph:before{content:"";flex:0 0 46px;width:46px;height:46px;border-radius:12px;background:#00965c url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2048%2048%22%20fill%3D%22none%22%3E%3Crect%20x%3D%227%22%20y%3D%2210%22%20width%3D%2234%22%20height%3D%2232%22%20rx%3D%225%22%20stroke%3D%22white%22%20stroke-width%3D%223%22%2F%3E%3Cpath%20d%3D%22M7%2020h34M16%206v9M32%206v9%22%20stroke%3D%22white%22%20stroke-width%3D%223%22%20stroke-linecap%3D%22round%22%2F%3E%3Cpath%20d%3D%22m16%2031%206%206%2011-12%22%20stroke%3D%22white%22%20stroke-width%3D%223%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E") center / 31px 31px no-repeat;box-shadow:inset 0 -3px 0 rgba(0,0,0,.08)}
#content:has(.ajx-reporting) .ajx-recent-tx .ph>div:first-child{flex:1;min-width:0}

/* Reference: alert section heading, bell tile, tab emphasis and readable rows. */
#content:has(.ajx-reporting) .ajx-attention-wide{position:relative;border:1px solid #f4d7dd;background:#fff6f7;border-radius:13px;overflow:hidden}
#content:has(.ajx-reporting) .ajx-attention-wide .ph{display:flex;align-items:center;gap:12px;min-height:76px;padding:12px 16px;background:linear-gradient(90deg,#fff0f2,#fff9fa)}
#content:has(.ajx-reporting) .ajx-attention-wide .ph:before{content:"";flex:0 0 46px;width:46px;height:46px;border-radius:12px;background:#fb304d url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2048%2048%22%20fill%3D%22none%22%3E%3Cpath%20d%3D%22M24%207a13%2013%200%200%200-13%2013v8l-4%206h34l-4-6v-8A13%2013%200%200%200%2024%207Z%22%20stroke%3D%22white%22%20stroke-width%3D%223%22%20stroke-linejoin%3D%22round%22%2F%3E%3Cpath%20d%3D%22M20%2039c1%204%207%204%208%200M24%204v3%22%20stroke%3D%22white%22%20stroke-width%3D%223%22%20stroke-linecap%3D%22round%22%2F%3E%3C%2Fsvg%3E") center / 31px 31px no-repeat}
#content:has(.ajx-reporting) .ajx-attention-wide .ph>div:first-child{flex:1;min-width:0}
#content:has(.ajx-reporting) .ajx-attention-wide .ph h3{font-size:17px;line-height:1.25}
#content:has(.ajx-reporting) .ajx-attention-wide .ph h3::first-letter{font-size:0}
#content:has(.ajx-reporting) .ajx-attention-wide .ph p{font-size:11px;margin-top:3px}
#content:has(.ajx-reporting) .ajx-attention-wide .ajx-attention-tabs{display:flex;justify-content:flex-start;align-items:center;gap:10px;padding:10px 14px;background:#fff8f9}
#content:has(.ajx-reporting) .ajx-attention-wide .ajx-att-tab{border:1px solid #d9e3e8;background:#fff;border-radius:10px;padding:10px 16px;font-size:12px;font-weight:750;white-space:nowrap}
#content:has(.ajx-reporting) .ajx-attention-wide .ajx-att-tab.on{background:#008e58;color:#fff;border-color:#008e58}
#content:has(.ajx-reporting) .ajx-attention-wide .ajx-att-tab b{background:#fce5e9;color:#e11d48;border-radius:999px;padding:4px 9px}
#content:has(.ajx-reporting) .ajx-attention-wide .ajx-att-tab.on b{background:#f43f5e;color:#fff}
#content:has(.ajx-reporting) .ajx-attention-wide thead th{background:#eef5f8;color:#57728b;text-transform:uppercase;font-size:10px;letter-spacing:.03em}
#content:has(.ajx-reporting) .ajx-attention-wide tbody td{padding:12px 13px;font-size:12px;background:#fff;border-bottom:1px solid #e7edf0}
#content:has(.ajx-reporting) .ajx-attention-wide tbody tr:nth-child(even) td{background:#f8fbfc}
#content:has(.ajx-reporting) .ajx-attention-wide .ajx-overdue-days{background:#ffe4e8;color:#d92341}
@media(min-width:1250px){
 #content:has(.ajx-reporting) .ajx-attention-wide .ph{padding-right:115px}
 #content:has(.ajx-reporting) .ajx-attention-wide .ajx-attention-tabs{position:absolute;top:13px;left:38%;right:96px;justify-content:flex-end;background:transparent;padding:0;gap:8px}
 #content:has(.ajx-reporting) .ajx-attention-wide .ajx-att-tab{padding:9px 11px;font-size:11px}
}
@media(max-width:700px){#content:has(.ajx-reporting) .ajx-attention-wide .ajx-attention-tabs{overflow-x:auto;flex-wrap:nowrap}}

/* Attention header fix: reserve an explicit right-side lane for View all. */
#content:has(.ajx-reporting) .ajx-attention-wide .ph{position:relative;z-index:1;padding-right:16px}
#content:has(.ajx-reporting) .ajx-attention-wide .ph>button[data-act="dash-customers"]{position:relative;z-index:3;flex:none;margin-left:auto;white-space:nowrap;background:#fff}
#content:has(.ajx-reporting) .ajx-attention-wide .ajx-attention-tabs{position:static;left:auto;right:auto;top:auto;z-index:auto;justify-content:flex-start;flex-wrap:wrap;padding:9px 14px;gap:8px;background:#fff8f9}
@media(min-width:1250px){
 #content:has(.ajx-reporting) .ajx-attention-wide .ph{padding-right:16px}
 #content:has(.ajx-reporting) .ajx-attention-wide .ajx-attention-tabs{position:absolute;top:16px;left:auto;right:104px;width:max-content;max-width:calc(100% - 470px);padding:0;background:transparent;justify-content:flex-end;flex-wrap:nowrap}
 #content:has(.ajx-reporting) .ajx-attention-wide .ajx-att-tab{padding:9px 10px;font-size:11px}
}
@media(min-width:1250px) and (max-width:1450px){
 #content:has(.ajx-reporting) .ajx-attention-wide .ajx-attention-tabs{position:static;max-width:none;width:auto;padding:9px 14px;background:#fff8f9;justify-content:flex-start;flex-wrap:wrap}
}
@media(max-width:700px){#content:has(.ajx-reporting) .ajx-attention-wide .ajx-attention-tabs{flex-wrap:wrap;overflow:visible}}

/* Stable attention header: tabs are actual flex children, not overlays. */
#content:has(.ajx-reporting) .ajx-attention-wide .ph{display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px;padding:12px 14px;position:relative}
#content:has(.ajx-reporting) .ajx-attention-wide .ph>div:first-child{flex:1 1 240px}
#content:has(.ajx-reporting) .ajx-attention-wide .ph>.ajx-attention-tabs{position:static!important;inset:auto!important;left:auto!important;right:auto!important;top:auto!important;display:flex!important;flex:0 1 auto;width:auto!important;max-width:100%!important;min-width:0;justify-content:flex-start!important;align-items:center;flex-wrap:wrap!important;gap:8px;padding:0!important;margin:0;background:transparent!important;overflow:visible!important}
#content:has(.ajx-reporting) .ajx-attention-wide .ph>button[data-act="dash-customers"]{flex:0 0 auto;margin-left:0;z-index:1}
@media(max-width:1100px){#content:has(.ajx-reporting) .ajx-attention-wide .ph>.ajx-attention-tabs{order:3;flex-basis:100%}}

/* Customer row actions: compact payment button and native keyboard-accessible menu. */
.ajx-customer-scroll{max-height:none!important;height:auto!important;overflow-x:auto;overflow-y:visible;scrollbar-gutter:auto}
.ajx-customer-scroll th:last-child,.ajx-customer-scroll td:last-child{min-width:112px}
.ajx-cust-actions{display:flex;align-items:center;justify-content:center;gap:7px;white-space:nowrap}
.ajx-cust-actions .ajx-pay-icon{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;padding:6px;border-radius:9px}
.ajx-cust-actions .ajx-pay-icon svg{width:19px;height:19px}
.ajx-cust-menu{position:relative}
.ajx-cust-menu>summary{display:flex;align-items:center;justify-content:center;width:36px;height:36px;border:1px solid #cbded7;border-radius:9px;background:white;color:#193c34;font-size:23px;font-weight:800;cursor:pointer;list-style:none}
.ajx-cust-menu>summary::-webkit-details-marker{display:none}
.ajx-cust-menu[open]>summary{background:#eaf7f0}
.ajx-cust-menu-items{position:absolute;z-index:15;right:0;top:calc(100% + 5px);min-width:145px;display:flex;flex-direction:column;gap:5px;padding:8px;border:1px solid #d6e4df;border-radius:10px;background:white;box-shadow:0 8px 24px rgba(12,52,39,.14)}
.ajx-cust-menu-items .btn{width:100%;justify-content:flex-start;text-align:left}
.ajx-customer-panel{overflow:visible}
.ajx-customer-panel .ajx-customer-scroll{overflow-x:auto}

/* Restore bounded customer list so pagination stays visible above the fold. */
.ajx-customer-panel{display:flex;flex-direction:column;min-height:0;overflow:visible}
.ajx-customer-panel .ajx-customer-scroll{height:auto!important;max-height:clamp(350px,calc(100vh - 395px),600px)!important;min-height:0;overflow:auto!important;overscroll-behavior:contain}
.ajx-customer-panel .ajx-customer-pager{position:relative;z-index:2;flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:49px;padding:10px 14px;background:#f8fcfa;border-top:1px solid #dbe8e3}
.ajx-customer-panel .ajx-customer-scroll thead th{position:sticky;top:0;z-index:2}
.ajx-customer-panel .ajx-cust-menu[open]{z-index:4}
@media(max-width:800px){.ajx-customer-panel .ajx-customer-scroll{max-height:clamp(320px,calc(100vh - 365px),560px)!important}.ajx-customer-panel .ajx-customer-pager{flex-wrap:wrap}}

/* Option A: friendly, minimal customer profile (visual-only; preserve all existing detail sections). */
#modalRoot .modal.ajx-profile-modal{width:min(820px,calc(100vw - 28px));max-width:820px;max-height:calc(100dvh - 36px);display:flex;flex-direction:column;overflow:visible;border-radius:17px}
#modalRoot .ajx-profile-modal .modal-body{overflow-y:auto;overflow-x:hidden;min-height:0;padding:18px 22px 24px}
#modalRoot .ajx-profile-modal .modal-actions{position:relative;flex:0 0 auto;display:flex;align-items:center;justify-content:flex-end;gap:9px;flex-wrap:wrap;padding:13px 20px;background:#fff;border-top:1px solid #e4eee9;border-radius:0 0 17px 17px}
#modalRoot .ajx-profile-head{display:flex;align-items:center;gap:13px;margin-bottom:18px}
#modalRoot .ajx-profile-avatar{width:54px;height:54px;flex:0 0 54px;display:grid;place-items:center;border-radius:50%;background:#00965c;color:#fff;font-size:18px;font-weight:800}
#modalRoot .ajx-profile-head strong{display:block;font-size:20px;color:#102b28}
#modalRoot .ajx-profile-head small{display:block;color:#667f8e;margin:3px 0 6px}
#modalRoot .ajx-profile-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:20px}
#modalRoot .ajx-profile-stats>div{padding:15px 12px;border:1px solid #dceee5;border-radius:12px;background:#f0fbf5;min-width:0}
#modalRoot .ajx-profile-stats>div:nth-child(2){background:#eef6ff;border-color:#d8e8fa}
#modalRoot .ajx-profile-stats>div:nth-child(3){background:#fff0f2;border-color:#f8dde3}
#modalRoot .ajx-profile-stats>div:nth-child(4){background:#fff7e8;border-color:#f6e5c6}
#modalRoot .ajx-profile-stats small{display:block;color:#587080;font-size:11px;margin-bottom:6px}
#modalRoot .ajx-profile-stats strong{display:block;font-size:19px;line-height:1.3;color:#11283c;overflow-wrap:anywhere}
#modalRoot .ajx-profile-section{margin-top:0}
#modalRoot .ajx-profile-modal .dl{display:grid;grid-template-columns:145px minmax(0,1fr);gap:11px 16px;padding:15px;border:1px solid #e1ebe8;border-radius:12px}
#modalRoot .ajx-profile-modal .mini.tw{max-width:100%;overflow-x:auto}
#modalRoot .ajx-profile-modal .sect{font-size:14px;font-weight:800;margin:19px 0 9px}
#modalRoot .ajx-profile-more{position:relative;margin-right:auto}
#modalRoot .ajx-profile-more>summary{list-style:none;cursor:pointer;border:1px solid #d0e3db;border-radius:8px;padding:9px 13px;font-size:12px;font-weight:700}
#modalRoot .ajx-profile-more>summary::-webkit-details-marker{display:none}
#modalRoot .ajx-profile-more-menu{position:absolute;bottom:calc(100% + 6px);left:0;z-index:20;display:grid;gap:6px;min-width:205px;padding:9px;border:1px solid #d8e7e1;border-radius:10px;background:white;box-shadow:0 8px 24px #0c342722}
#modalRoot .ajx-profile-more-menu button{white-space:nowrap;text-align:left}
@media(max-width:650px){#modalRoot .ajx-profile-modal .modal-body{padding:14px}#modalRoot .ajx-profile-stats{grid-template-columns:repeat(2,minmax(0,1fr))}#modalRoot .ajx-profile-modal .dl{grid-template-columns:1fr;gap:4px}#modalRoot .ajx-profile-modal .dl dd{margin:0 0 8px}#modalRoot .ajx-profile-modal .modal-actions{padding:10px;gap:6px}#modalRoot .ajx-profile-stats strong{font-size:16px}}

/* Correct modal DOM uses .pb, not .modal-body. Keep header and actions visible. */
#modalRoot .modal.ajx-profile-modal{height:min(790px,calc(100dvh - 52px));max-height:calc(100dvh - 52px);overflow:hidden!important}
#modalRoot .ajx-profile-modal>.ph{flex:0 0 auto}
#modalRoot .ajx-profile-modal>.pb{flex:1 1 auto;min-height:0;overflow-y:auto!important;overflow-x:hidden!important;padding:18px 22px 24px}
#modalRoot .ajx-profile-modal>.modal-actions{flex:0 0 auto;position:relative;bottom:auto;min-height:58px}
#modalRoot .ajx-profile-modal .ajx-profile-stats{display:grid}
@media(max-width:650px){#modalRoot .ajx-profile-modal>.pb{padding:14px}#modalRoot .modal.ajx-profile-modal{height:calc(100dvh - 20px);max-height:calc(100dvh - 20px)}}

/* Option A final polish: tighter information block, more room for history. */
#modalRoot .ajx-profile-modal .ajx-profile-head{margin-bottom:12px}
#modalRoot .ajx-profile-modal .ajx-profile-stats{margin-bottom:13px;gap:9px}
#modalRoot .ajx-profile-modal .ajx-profile-stats>div{padding:12px}
#modalRoot .ajx-profile-modal .ajx-profile-section{margin:12px 0 8px}
#modalRoot .ajx-profile-modal .dl{padding:12px 14px;gap:7px 14px}
#modalRoot .ajx-profile-modal .sect{margin:14px 0 8px}
#modalRoot .ajx-profile-modal>.modal-actions{justify-content:flex-end;gap:8px}
#modalRoot .ajx-profile-modal .ajx-profile-more{margin-right:auto}

/* Clean & Simple payment confirmation — styling only, no form or transaction changes. */
#modalRoot .modal:has(form[data-form="custpay"]){width:min(800px,calc(100vw - 28px));max-width:800px;max-height:calc(100dvh - 40px);display:flex;flex-direction:column;overflow:hidden;border-radius:17px}
#modalRoot .modal:has(form[data-form="custpay"])>.ph{flex:0 0 auto;padding:18px 22px;border-bottom:1px solid #e0eee8;background:#fff}
#modalRoot .modal:has(form[data-form="custpay"])>.ph h3{font-size:19px;letter-spacing:-.3px}
#modalRoot form[data-form="custpay"]{display:flex;flex-direction:column;min-height:0;flex:1}
#modalRoot form[data-form="custpay"]>.pb{flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;padding:22px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px 18px;align-content:start}
#modalRoot form[data-form="custpay"]>.pb .full{grid-column:1/-1}
#modalRoot form[data-form="custpay"]>.pb .paysum{padding:16px;border:1px solid #dbeee5;border-radius:12px;background:#f0faf5}
#modalRoot form[data-form="custpay"]>.pb label{font-weight:650}
#modalRoot form[data-form="custpay"]>.pb input:not([type="checkbox"]),#modalRoot form[data-form="custpay"]>.pb select{min-height:42px;border-radius:9px}
#modalRoot form[data-form="custpay"]>.pb #cp-tx{background:#fff}
#modalRoot form[data-form="custpay"]>.pb label.full:has(#cp-ok){padding:12px 14px;border:1px solid #d9eae2;border-radius:10px;background:#f5fbf7;font-weight:500}
#modalRoot form[data-form="custpay"]>.pb p.hint.full{padding:12px 14px;border:1px solid #e2ece8;border-radius:10px;background:#f7faf9;line-height:1.55}
#modalRoot form[data-form="custpay"]>.modal-actions{flex:0 0 auto;display:flex;justify-content:flex-end;gap:10px;padding:14px 22px;border-top:1px solid #e0eee8;background:#fff}
#modalRoot form[data-form="custpay"]>.modal-actions .btn{min-height:39px;padding:9px 18px;border-radius:9px}
@media(max-width:650px){#modalRoot .modal:has(form[data-form="custpay"]){max-height:calc(100dvh - 18px)}#modalRoot form[data-form="custpay"]>.pb{grid-template-columns:minmax(0,1fr);padding:15px;gap:12px}#modalRoot form[data-form="custpay"]>.modal-actions{padding:10px 15px}#modalRoot .modal:has(form[data-form="custpay"])>.ph{padding:14px 15px}}

/* Clean & Simple Edit Customer form — presentation only. */
#modalRoot .modal:has(form[data-form="customer"]){width:min(790px,calc(100vw - 28px));max-width:790px;max-height:calc(100dvh - 40px);display:flex;flex-direction:column;overflow:hidden;border-radius:17px}
#modalRoot .modal:has(form[data-form="customer"])>.ph{flex:0 0 auto;padding:18px 22px;background:#fff;border-bottom:1px solid #e0eee8}
#modalRoot .modal:has(form[data-form="customer"])>.ph h3{font-size:19px;letter-spacing:-.3px}
#modalRoot form[data-form="customer"]{display:flex;flex-direction:column;flex:1;min-height:0}
#modalRoot form[data-form="customer"]>.pb{flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;padding:22px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 18px;align-content:start}
#modalRoot form[data-form="customer"]>.pb .full,#modalRoot form[data-form="customer"]>.pb .sect,#modalRoot form[data-form="customer"]>.pb .hint{grid-column:1/-1}
#modalRoot form[data-form="customer"]>.pb label{font-weight:650;min-width:0}
#modalRoot form[data-form="customer"]>.pb input:not([type="checkbox"]),#modalRoot form[data-form="customer"]>.pb select,#modalRoot form[data-form="customer"]>.pb textarea{width:100%;min-height:42px;border-radius:9px}
#modalRoot form[data-form="customer"]>.pb .sect{font-size:13px;font-weight:800;color:#17684e;border-bottom:1px solid #e1eee8;padding:8px 0;margin:8px 0 0}
#modalRoot form[data-form="customer"]>.modal-actions{flex:0 0 auto;display:flex;justify-content:flex-end;gap:10px;padding:14px 22px;background:#fff;border-top:1px solid #e0eee8}
#modalRoot form[data-form="customer"]>.modal-actions .btn{min-height:39px;padding:9px 18px;border-radius:9px}
@media(max-width:650px){#modalRoot .modal:has(form[data-form="customer"]){max-height:calc(100dvh - 18px)}#modalRoot form[data-form="customer"]>.pb{grid-template-columns:minmax(0,1fr);padding:15px;gap:12px}#modalRoot form[data-form="customer"]>.modal-actions{padding:10px 15px}#modalRoot .modal:has(form[data-form="customer"])>.ph{padding:14px 15px}}

/* Explicit class for Edit Customer: avoid relying on :has() modal matching. */
#modalRoot .modal.ajx-edit-customer-modal{width:min(790px,calc(100vw - 28px));max-width:790px;max-height:calc(100dvh - 40px);display:flex;flex-direction:column;overflow:hidden;border-radius:17px}
#modalRoot .ajx-edit-customer-modal>.ph{flex:none;padding:18px 22px;background:#fff;border-bottom:1px solid #e0eee8}
#modalRoot .ajx-edit-customer-modal>.ph h3{font-size:19px}
#modalRoot .ajx-edit-customer-modal>form{display:flex;flex-direction:column;flex:1;min-height:0}
#modalRoot .ajx-edit-customer-modal>form>.pb{flex:1;min-height:0;overflow:auto;padding:22px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 18px;align-content:start}
#modalRoot .ajx-edit-customer-modal>form>.pb>.full{grid-column:1/-1}
#modalRoot .ajx-edit-customer-modal>form>.modal-actions{flex:none;display:flex;justify-content:flex-end;gap:10px;padding:14px 22px;background:#fff;border-top:1px solid #e0eee8}
#modalRoot .ajx-edit-customer-modal .field input,#modalRoot .ajx-edit-customer-modal .field select,#modalRoot .ajx-edit-customer-modal .field textarea{min-height:42px;border-radius:9px}
@media(max-width:650px){#modalRoot .modal.ajx-edit-customer-modal{max-height:calc(100dvh - 18px)}#modalRoot .ajx-edit-customer-modal>form>.pb{grid-template-columns:minmax(0,1fr);padding:15px}#modalRoot .ajx-edit-customer-modal>.ph,#modalRoot .ajx-edit-customer-modal>form>.modal-actions{padding:12px 15px}}

/* AJX Transactions table: Clean & Simple visual treatment; all columns and actions retained. */
.ajx-transactions-panel{border-radius:14px;overflow:hidden;border:1px solid #dcece5;background:#fff}
.ajx-transactions-panel .tw{overflow-x:auto;max-width:100%;scrollbar-width:thin}
.ajx-transactions-panel table{min-width:1230px;border-collapse:separate;border-spacing:0}
.ajx-transactions-panel thead th{background:#edf6f2;color:#4a7080;font-size:11px;font-weight:750;letter-spacing:.045em;text-transform:uppercase;white-space:nowrap;padding:14px 12px}
.ajx-transactions-panel tbody td{padding:13px 12px;vertical-align:middle;border-bottom:1px solid #e3eee9}
.ajx-transactions-panel tbody tr:not(.tfoot):hover td{background:#f4fbf7}
.ajx-transactions-panel tbody tr.tfoot td{background:#edf6f2;font-weight:750;border-bottom:0}
.ajx-transactions-panel .acts{display:flex;gap:6px;align-items:center;white-space:nowrap}
.ajx-transactions-panel .acts .btn{border-radius:8px}
@media(max-width:700px){.ajx-transactions-panel thead th{padding:11px 9px}.ajx-transactions-panel tbody td{padding:11px 9px}}

/* Invoice Details — visual-only, scoped to viewTx modal */
#modalRoot .modal.ajx-invoice-modal{width:min(790px,calc(100vw - 28px));max-width:790px;max-height:calc(100dvh - 36px);display:flex;flex-direction:column;overflow:hidden;border-radius:17px}
#modalRoot .ajx-invoice-modal>.ph{flex:0 0 auto;padding:17px 20px;border-bottom:1px solid #e0eee7}
#modalRoot .ajx-invoice-modal>.pb{flex:1 1 auto;min-height:0;overflow-y:auto;padding:20px;overscroll-behavior:contain}
#modalRoot .ajx-invoice-modal>.modal-actions{flex:0 0 auto;background:#fff;border-top:1px solid #e1eee8;padding:12px 18px;display:flex;gap:8px;flex-wrap:wrap}
#modalRoot .ajx-invoice-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin-bottom:18px}
#modalRoot .ajx-invoice-summary-card{min-width:0;background:#f0faf5;border:1px solid #dceee5;border-radius:11px;padding:13px 12px;display:flex;flex-direction:column;gap:7px}
#modalRoot .ajx-invoice-summary-card:nth-child(2){background:#eef6ff;border-color:#dce9fa}
#modalRoot .ajx-invoice-summary-card:nth-child(3){background:#fff3f4;border-color:#f6e0e3}
#modalRoot .ajx-invoice-summary-card:nth-child(4){background:#fff8e9;border-color:#f2e5c9}
#modalRoot .ajx-invoice-summary-card small{font-size:11px;color:#57728a}
#modalRoot .ajx-invoice-summary-card strong{font-size:17px;color:#09223a;overflow-wrap:anywhere}
#modalRoot .ajx-invoice-detail>.dl{border:1px solid #e0ece7;border-radius:11px;padding:14px;box-sizing:border-box}
#modalRoot .ajx-invoice-detail .sect{margin-top:20px;font-weight:750;letter-spacing:.04em}
#modalRoot .ajx-invoice-detail .mini.tw{overflow-x:auto;max-width:100%;border:1px solid #e0ece7;border-radius:10px}
#modalRoot .ajx-invoice-detail .mini.tw table{min-width:580px}
@media(max-width:650px){#modalRoot .ajx-invoice-summary{grid-template-columns:repeat(2,minmax(0,1fr))}#modalRoot .ajx-invoice-modal>.pb{padding:14px}#modalRoot .ajx-invoice-modal>.modal-actions{padding:10px}}

/* Edit Invoice modal — presentation only; preserve original form and validation */
#modalRoot .modal.ajx-edit-invoice-modal{width:min(700px,calc(100vw - 28px));max-width:700px;max-height:calc(100dvh - 36px);display:flex;flex-direction:column;overflow:hidden;border-radius:17px;background:#fff;box-shadow:0 20px 60px rgba(4,28,24,.20)}
#modalRoot .ajx-edit-invoice-modal>.ph{flex:0 0 auto;padding:18px 20px;border-bottom:1px solid #e1ede7}
#modalRoot .ajx-edit-invoice-modal>.ph h3{font-size:17px;font-weight:750}
#modalRoot .ajx-edit-invoice-modal>form{display:flex;flex-direction:column;min-height:0;flex:1}
#modalRoot .ajx-edit-invoice-modal>form>.pb{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:22px 20px;row-gap:16px;column-gap:14px}
#modalRoot .ajx-edit-invoice-modal .form label{font-weight:650;color:#18364a}
#modalRoot .ajx-edit-invoice-modal .form input,#modalRoot .ajx-edit-invoice-modal .form select{min-height:40px;border-radius:9px;border-color:#c8ded5;background:#fbfefc}
#modalRoot .ajx-edit-invoice-modal .form input:focus,#modalRoot .ajx-edit-invoice-modal .form select:focus{outline:2px solid #18a36a;outline-offset:1px}
#modalRoot .ajx-edit-invoice-modal .form input:disabled,#modalRoot .ajx-edit-invoice-modal .form select:disabled{background:#f1f5f3;color:#718396;cursor:not-allowed}
#modalRoot .ajx-edit-invoice-modal .hint,#modalRoot .ajx-edit-invoice-modal .locked{border:1px solid #dfebe5;background:#f5faf7;border-radius:10px;padding:12px 14px;line-height:1.55}
#modalRoot .ajx-edit-invoice-modal .locked{background:#fff7ed;border-color:#f4dfbe}
#modalRoot .ajx-edit-invoice-modal .modal-actions{flex:0 0 auto;display:flex;justify-content:flex-end;gap:9px;padding:13px 20px;background:#fff;border-top:1px solid #e1ede7}
#modalRoot .ajx-edit-invoice-modal .modal-actions .btn{min-height:37px;border-radius:9px}
@media(max-width:620px){#modalRoot .ajx-edit-invoice-modal>form>.pb{padding:16px 14px}#modalRoot .ajx-edit-invoice-modal>.ph,#modalRoot .ajx-edit-invoice-modal .modal-actions{padding:13px 14px}#modalRoot .ajx-edit-invoice-modal .form{grid-template-columns:minmax(0,1fr)}}


/* New Invoice — visual-only; shares the established Edit Invoice styling. */
#modalRoot .modal.ajx-new-invoice-modal{width:min(700px,calc(100vw - 28px));max-width:700px;max-height:calc(100dvh - 36px);display:flex;flex-direction:column;overflow:hidden;border-radius:17px;background:#fff;box-shadow:0 20px 60px rgba(4,28,24,.20)}
#modalRoot .ajx-new-invoice-modal>.ph{flex:0 0 auto;padding:18px 20px;border-bottom:1px solid #e1ede7}
#modalRoot .ajx-new-invoice-modal>.ph h3{font-size:17px;font-weight:750}
#modalRoot .ajx-new-invoice-modal>form{display:flex;flex-direction:column;min-height:0;flex:1}
#modalRoot .ajx-new-invoice-modal>form>.pb{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;padding:22px 20px;row-gap:16px;column-gap:14px}
#modalRoot .ajx-new-invoice-modal .form label{font-weight:650;color:#18364a}
#modalRoot .ajx-new-invoice-modal .form input,#modalRoot .ajx-new-invoice-modal .form select{min-height:40px;min-width:0;max-width:100%;border-radius:9px;border-color:#c8ded5;background:#fbfefc}
#modalRoot .ajx-new-invoice-modal .form input:focus,#modalRoot .ajx-new-invoice-modal .form select:focus{outline:2px solid #18a36a;outline-offset:1px}
#modalRoot .ajx-new-invoice-modal .form input:disabled,#modalRoot .ajx-new-invoice-modal .form select:disabled{background:#f1f5f3;color:#718396;cursor:not-allowed}
#modalRoot .ajx-new-invoice-modal .hint,#modalRoot .ajx-new-invoice-modal .locked{border:1px solid #dfebe5;background:#f5faf7;border-radius:10px;padding:12px 14px;line-height:1.55}
#modalRoot .ajx-new-invoice-modal .locked{background:#fff7ed;border-color:#f4dfbe}
#modalRoot .ajx-new-invoice-modal .modal-actions{flex:0 0 auto;display:flex;justify-content:flex-end;gap:9px;padding:13px 20px;background:#fff;border-top:1px solid #e1ede7}
#modalRoot .ajx-new-invoice-modal .modal-actions .btn{min-height:37px;border-radius:9px}
@media(max-width:620px){#modalRoot .ajx-new-invoice-modal>form>.pb{padding:16px 14px}#modalRoot .ajx-new-invoice-modal>.ph,#modalRoot .ajx-new-invoice-modal .modal-actions{padding:13px 14px}#modalRoot .ajx-new-invoice-modal .form{grid-template-columns:minmax(0,1fr)}}

/* Improvement 6: stable transaction action alignment and pagination (staging) */
.ajx-transactions-panel .ajx-tx-action-head { text-align:right; min-width:104px; width:104px; }
.ajx-transactions-panel .ajx-tx-action-cell { min-width:104px; width:104px; text-align:right; overflow:visible; }
.ajx-transactions-panel .ajx-tx-action-group { display:flex; justify-content:flex-end; align-items:center; gap:7px; width:100%; white-space:nowrap; }
.ajx-transactions-panel .ajx-tx-menu { flex:0 0 auto; position:relative; }
.ajx-transactions-panel .ajx-tx-menu .ajx-cust-menu-items { right:0; left:auto; z-index:30; }
.ajx-transactions-panel .ajx-tx-pager { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:12px 14px; border-top:1px solid #dce9e4; font-size:12px; color:#64748b; flex-wrap:wrap; }
.ajx-transactions-panel .ajx-tx-pager .ajx-page-controls { display:flex; align-items:center; gap:9px; }

/* Improvement 7 — Transactions table presentation only */
.ajx-transactions-panel .tw{overflow-x:auto;overflow-y:visible;max-width:100%;scrollbar-gutter:stable}
.ajx-transactions-panel table{min-width:1230px;width:100%;border-collapse:separate;border-spacing:0}
.ajx-transactions-panel thead th{white-space:nowrap;font-size:10px;letter-spacing:.035em;vertical-align:middle;padding:12px 11px}
.ajx-transactions-panel tbody td{padding:13px 11px;vertical-align:middle;line-height:1.45}
.ajx-transactions-panel tbody tr:not(.tfoot):hover{background:#f3faf6}
.ajx-transactions-panel td.cell2{min-width:175px;max-width:235px}
.ajx-transactions-panel td.cell2 b,.ajx-transactions-panel td.cell2 small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ajx-transactions-panel td.cell2 small{margin-top:3px}
.ajx-transactions-panel td.num,.ajx-transactions-panel th.num{white-space:nowrap;font-variant-numeric:tabular-nums}
.ajx-transactions-panel .ajx-tx-action-head,.ajx-transactions-panel .ajx-tx-action-cell{min-width:110px;width:110px;position:sticky;right:0;background:#fff;box-shadow:-1px 0 #e3eee8;z-index:2}
.ajx-transactions-panel thead .ajx-tx-action-head{background:#edf6f2;z-index:3}
.ajx-transactions-panel tbody tr:hover .ajx-tx-action-cell{background:#f3faf6}
.ajx-transactions-panel .ajx-tx-menu[open]{z-index:50}
.ajx-transactions-panel .ajx-tx-menu .ajx-cust-menu-items{min-width:130px;box-shadow:0 8px 24px rgba(12,42,33,.14)}
@media(max-width:850px){.ajx-transactions-panel tbody td{padding:11px 9px}.ajx-transactions-panel thead th{padding:11px 9px}.ajx-transactions-panel .ajx-tx-pager{gap:10px}.ajx-transactions-panel .ajx-page-controls{flex-wrap:wrap}}


/* Improvement 12b — Contracts visual overhaul (staging).
   Loaded after styles.css; presentation only, no workflow modifications. */
#content:has(.ct-tabs){background:#f7faf9}
#content .ct-tabs{background:#fff;border:1px solid #dce9e3;border-radius:12px;padding:6px;gap:5px;margin:0 0 14px;align-items:center}
#content .ct-tabs button{border:0!important;border-radius:8px;margin:0;padding:11px 15px;color:#58746b;font-size:12.5px;font-weight:700;transition:background .15s}
#content .ct-tabs button[aria-selected="true"]{background:#e2f5ec;color:#087c50}
#content .ct-tabs button:hover{background:#eef8f3}
#content .ct-flag{font-size:10.5px;line-height:1.5;max-width:330px}
#content .ct-grid{grid-template-columns:minmax(360px,430px) minmax(0,1fr);gap:18px;align-items:start}
#content .ct-form{gap:12px}
#content .ct-card{background:#fff;border:1px solid #dce9e3;border-radius:12px;box-shadow:0 2px 7px rgba(12,57,40,.025)}
#content .ct-card .ph{background:#fff;border-bottom:1px solid #edf2ef;padding:14px 16px}
#content .ct-card .ph h3{font-size:13px;color:#112f27;font-weight:800;margin:0}
#content .ct-card .ph p{font-size:11px;line-height:1.5;color:#72867e;margin:4px 0 0}
#content .ct-card .pb{padding:16px}
#content .ct-card .pb.form{column-gap:12px;row-gap:12px}
#content .ct-card .field label{font-size:11.5px;font-weight:700;color:#294b40}
#content .ct-card input:not([type="radio"]),#content .ct-card select,#content .ct-card textarea{border:1px solid #cddfd6;border-radius:8px;background:#fff;min-height:38px;font-size:12px}
#content .ct-card input:focus,#content .ct-card select:focus{outline:2px solid #a3e5c6;outline-offset:1px;border-color:#159965}
#content .ct-card .hint{color:#71877f;font-size:11px;line-height:1.5}
#content .ct-search{border:1px solid #cddfd6;border-radius:8px}
#content .ct-search input{border:0!important}
#content .pkgs{gap:9px}
#content .pkg{background:#fff;border:1px solid #d4e4db;border-radius:9px;padding:12px;gap:7px}
#content .pkg.on{background:#ebfaf1;border:2px solid #079b60;padding:11px}
#content .pkg-top b{font-size:12px;color:#15392c}
#content .pkg-fee{font-size:17px;color:#087a4d}
#content .pkg-n{color:#087a4d}
#content .ct-preview{top:12px;max-height:calc(100vh - 110px);gap:8px}
#content .ct-preview-bar{background:#fff;border:1px solid #dce9e3;border-radius:10px;padding:12px 14px;font-size:11px;letter-spacing:0;color:#476d5e}
#content .ct-canvas{background:#e8eeeb;border:1px solid #d7e4dc;border-radius:12px;padding:22px;box-shadow:inset 0 1px 3px rgba(0,0,0,.035)}
#content .ct-canvas .doc{box-shadow:0 5px 22px rgba(21,49,37,.12)}
#content .ct-sample{background:#fffaf0;border-color:#f0d9a8;border-left:3px solid #d8a23b;border-radius:9px;padding:11px 13px}
#content .ct-actions{background:#fff;border:1px solid #d1e4d8;border-radius:11px;box-shadow:0 -4px 18px rgba(21,49,37,.09);padding:12px;bottom:8px;gap:7px}
#content .ct-actions .btn{min-height:35px;border-radius:8px;font-size:11.5px}
#content .ct-actions .btn-p{background:#078d59;border-color:#078d59}
#content #ctSaved{font-size:11px;color:#617e70}
@media(max-width:1180px){#content .ct-grid{grid-template-columns:minmax(0,1fr)}#content .ct-switch{display:flex}#content .ct-preview{position:static;max-height:none}#content .ct-canvas{max-height:75vh}}
@media(max-width:640px){#content .ct-tabs{gap:4px}#content .ct-tabs button{font-size:11px;padding:9px 8px;white-space:normal}#content .ct-flag{width:100%;max-width:none;margin:4px}#content .ct-card .ph,#content .ct-card .pb{padding:12px}#content .ct-actions .btn{flex:1 1 calc(50% - 8px)}#content .ct-canvas{padding:8px;max-height:70vh}#content .pkgs{grid-template-columns:1fr}}


/* Improvement 12c — Contracts usability polish; staging presentation only. */
#content .ct-grid{grid-template-columns:minmax(440px,46%) minmax(0,1fr);gap:20px}
#content .ct-form{min-width:0;padding-bottom:110px}
#content .ct-search{display:flex;align-items:center;min-height:42px;background:#fff;border:1px solid #b8d4c6!important;box-shadow:0 0 0 1px rgba(12,105,67,.025)}
#content .ct-search:focus-within{border-color:#079b60!important;box-shadow:0 0 0 3px rgba(7,155,96,.12)}
#content .ct-search input{background:transparent!important;min-width:0;width:100%;min-height:40px!important;padding:9px 12px!important;opacity:1!important}
#content .ct-search input::placeholder{color:#71877f;opacity:1}
#content .ct-actions{position:sticky;bottom:12px;z-index:12;flex-wrap:wrap;max-width:100%;box-sizing:border-box}
#content .ct-actions .btn{white-space:nowrap}
#content .pkgs{position:relative;z-index:1}
@media(max-width:1180px){#content .ct-grid{grid-template-columns:minmax(0,1fr)}#content .ct-form{padding-bottom:95px}}
@media(max-width:640px){#content .ct-form{padding-bottom:125px}#content .ct-actions{bottom:6px;padding:9px}}


/* Improvement 12d — Contracts: unobstructed form and customer search. Staging only. */
/* Actions are placed in normal document flow so they cannot cover package options. */
#content .ct-form .ct-actions{position:static!important;bottom:auto!important;z-index:auto!important;margin-top:10px;box-shadow:0 2px 8px rgba(21,49,37,.05);width:100%}
#content .ct-form{padding-bottom:20px!important}
#content .ct-search{position:relative;display:flex;align-items:center;gap:9px;padding:0 12px}
#content .ct-search>svg,#content .ct-search>i,#content .ct-search>.ico{flex:0 0 auto;margin:0}
#content .ct-search input{flex:1 1 auto;width:100%;min-width:0;padding:10px 4px!important;margin:0!important;text-indent:0!important}
#content .ct-search input::placeholder{font-size:12px;letter-spacing:normal}
@media(max-width:640px){#content .ct-form .ct-actions{margin-top:12px}#content .ct-form{padding-bottom:16px!important}}

/* Security Activity — compact staging UI */
.ajx-security-page{display:grid;gap:14px;max-width:100%}
.ajx-security-card{overflow:hidden}
.ajx-security-card .ph{display:flex;align-items:center;justify-content:space-between;gap:12px}
.ajx-security-tag{display:inline-flex;align-items:center;white-space:nowrap;padding:6px 10px;border:1px solid #cde5da;border-radius:999px;background:#f0faf5;color:#087a50;font-size:11px;font-weight:700}
.ajx-security-account{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:12px;margin-bottom:16px}
.ajx-security-account>div{border:1px solid #dbece4;border-radius:10px;padding:14px 16px;background:#f8fcfa;min-width:0}
.ajx-security-label{display:block;font-size:10px;letter-spacing:.07em;color:#647e78;font-weight:700;margin-bottom:6px}
.ajx-security-account strong{display:block;font-size:13px;color:#122d2a;overflow-wrap:anywhere}
.ajx-security-account small{display:block;color:#688079;margin-top:4px}
.ajx-security-actions{display:flex;flex-wrap:wrap;gap:8px}
.ajx-security-table th{white-space:nowrap}
.ajx-security-table td{vertical-align:middle}
.ajx-security-status{display:inline-flex;align-items:center;border-radius:999px;padding:4px 9px;font-size:11px;font-weight:700;white-space:nowrap;background:#f1f4f6;color:#65717c}
.ajx-security-status.is-active,.ajx-security-status.is-connected{background:#e4f8ed;color:#07814e}
.ajx-security-status.is-inactive{background:#f0f3f5;color:#667783}
.ajx-security-email{display:block;margin-top:5px;font-size:11px;overflow-wrap:anywhere}
.ajx-security-footnote{padding:12px 16px;border-top:1px solid #e2eee8;color:#647e78;font-size:11px}
.ajx-security-help{overflow:hidden}
.ajx-security-help summary{cursor:pointer;padding:15px 17px;font-weight:700}
.ajx-security-help summary .hint{font-size:11px;font-weight:400;margin-left:10px}
.ajx-security-help .pb{border-top:1px solid #e2eee8}
.ajx-security-help .pb p{margin:0 0 8px}
@media(max-width:720px){.ajx-security-account{grid-template-columns:1fr}.ajx-security-card .ph{align-items:flex-start;flex-wrap:wrap}.ajx-security-table{min-width:720px}.ajx-security-help summary .hint{display:block;margin:4px 0 0}}

/* Staging: prevent tall admin commission panels from shrinking inside the scroll workspace. */
.main > .content > *{flex-shrink:0}
.main > .content{min-height:0;overflow-y:auto!important;overflow-x:hidden}

/* Admin commission reporting controls: staging-only presentation */
.ajx-admin-comm-controls{display:flex;align-items:end;flex-wrap:wrap;gap:12px;padding:15px 18px;border:1px solid #dcece5;border-radius:13px;background:#fff}
.ajx-admin-comm-controls>div{flex:1 1 290px;display:flex;flex-direction:column;gap:4px}
.ajx-admin-comm-controls strong{font-size:14px;color:#102039}
.ajx-admin-comm-controls small{font-size:11px;color:#5d7890}
.ajx-admin-comm-controls label{display:flex;flex-direction:column;gap:5px;font-size:11px;font-weight:700;color:#476a61}
.ajx-admin-comm-controls select,.ajx-admin-comm-controls input{min-height:37px;min-width:142px;padding:7px 10px;border:1px solid #cfe2d9;border-radius:9px;background:#f9fcfa;color:#102039}
@media(max-width:650px){.ajx-admin-comm-controls{align-items:stretch}.ajx-admin-comm-controls label{flex:1 1 100%}.ajx-admin-comm-controls select,.ajx-admin-comm-controls input{width:100%}}

/* Admin commission table usability */
.ajx-comm-tabletools{display:flex;flex-wrap:wrap;align-items:end;gap:10px;padding:12px 16px;border-top:1px solid #e2ece8}
.ajx-comm-tabletools label{display:flex;flex-direction:column;gap:5px;font-size:11px;font-weight:600;color:#526d79}
.ajx-comm-tabletools input,.ajx-comm-tabletools select{border:1px solid #d4e5df;background:#fff;border-radius:8px;padding:8px 10px;min-height:36px;color:#132d37}
.ajx-comm-tabletools input{min-width:205px}
.ajx-comm-pager{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:11px 16px;border-top:1px solid #e2ece8;color:#617988;font-size:12px}
.ajx-comm-pager>div{display:flex;gap:8px}
.ajx-comm-pager button{padding:7px 12px;border:1px solid #cfe2d9;background:#fff;color:#175a43;border-radius:8px;cursor:pointer}
.ajx-comm-pager button:disabled{opacity:.4;cursor:default}
@media(max-width:650px){.ajx-comm-tabletools label{flex:1 1 100%}.ajx-comm-tabletools input,.ajx-comm-tabletools select{width:100%;min-width:0}.ajx-comm-pager{flex-wrap:wrap}}

/* Admin dashboard refresh: compact, real-data panels */
.ajx-admin-dash-kpis{margin-top:14px}
.ajx-admin-dash-secondary .kpi{background:#f8fcfa}
.ajx-admin-dash-link{margin:2px 0 14px}
.ajx-admin-dash-grid{margin-top:14px;align-items:stretch}
.ajx-admin-dash-grid>.panel{min-width:0}
.ajx-admin-dash-grid .tw{overflow-x:auto}
.ajx-admin-trend{display:flex;align-items:end;gap:9px;min-height:178px;overflow-x:auto;padding:12px 2px 0}
.ajx-admin-trend-col{min-width:42px;flex:1;display:flex;flex-direction:column;align-items:center;justify-content:end;gap:6px;color:#55747a;font-size:10px}
.ajx-admin-trend-col strong{font-size:10px;white-space:nowrap;color:#17634b}
.ajx-admin-trend-col>div{width:100%;max-width:54px;background:linear-gradient(180deg,#80d8b1,#079765);border-radius:6px 6px 2px 2px}
.ajx-admin-trend-col small{font-size:10px}
.ajx-admin-breakdown{display:grid;gap:0}
.ajx-admin-breakdown>div{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:13px 0;border-bottom:1px solid #e0ebe6;font-size:13px}
.ajx-admin-breakdown>div:last-child{border-bottom:0}
.ajx-admin-breakdown span{color:#58727b}
.ajx-admin-breakdown b{color:#12342a}
@media(max-width:850px){.ajx-admin-dash-grid{grid-template-columns:minmax(0,1fr)}}

/* Keep admin dashboard reporting period visible and reduce empty task space */
.ajx-admin-dashboard-filters{display:flex!important;visibility:visible!important;opacity:1!important;position:relative!important;z-index:1;margin:0 0 16px!important}
.ajx-admin-dashboard-filters label{display:flex;flex-direction:column;gap:5px;min-width:125px}
.ajx-admin-dashboard-filters select,.ajx-admin-dashboard-filters input[type="date"]{display:block;min-height:36px;max-width:100%;border:1px solid #cfe2d9;border-radius:8px;background:#fff;color:#12342a;padding:7px 10px}
.ajx-admin-up-next:has(.ajx-admin-no-tasks){align-self:start}
.ajx-admin-no-tasks{padding:22px 12px!important;min-height:0!important}
.ajx-admin-up-next:has(.ajx-admin-no-tasks) .tasks{min-height:0!important;height:auto!important;padding:0!important}
@media(max-width:650px){.ajx-admin-dashboard-filters>div{flex-basis:100%}.ajx-admin-dashboard-filters label{flex:1 1 140px}}

/* AJX approved logo: sidebar brand mark only */
.brand .logo{background:#fff;box-shadow:none;border-radius:10px;overflow:hidden;padding:2px}
.brand .logo img{display:block;width:100%;height:100%;object-fit:contain}

/* Customers: reserve the payment slot so every overflow menu shares one right edge. */
.ajx-customer-panel .ajx-cust-actions{display:grid;grid-template-columns:36px 36px;justify-content:end;align-items:center;column-gap:7px;width:100%;min-width:79px}
.ajx-customer-panel .ajx-cust-actions>.ajx-pay-icon{grid-column:1;grid-row:1}
.ajx-customer-panel .ajx-cust-actions>.ajx-cust-menu{grid-column:2;grid-row:1;justify-self:end}
.ajx-customer-panel .ajx-customer-scroll td:last-child{text-align:right}

/* Detached Customers action menu stays above the scrollable table. */
body > .ajx-customer-menu-portal{position:fixed;z-index:10000;right:auto;display:flex}

/* Customers page: approved natural scrolling and clearer row actions (staging). */
.ajx-customer-panel .ajx-customer-scroll{height:auto!important;max-height:none!important;overflow-y:visible!important;overflow-x:auto!important;overscroll-behavior:auto!important}
.ajx-customer-panel .ajx-customer-scroll thead th{position:static!important}
.ajx-customer-panel .ajx-cust-actions{gap:8px}
.ajx-customer-panel .ajx-pay-icon,.ajx-customer-panel .ajx-cust-menu>summary{width:36px;height:36px;border-radius:9px;transition:background-color .15s ease,box-shadow .15s ease}
.ajx-customer-panel .ajx-pay-icon:focus-visible,.ajx-customer-panel .ajx-cust-menu>summary:focus-visible{outline:3px solid #65cda0;outline-offset:2px}
.ajx-customer-panel .ajx-cust-menu>summary:hover{background:#eaf7f0;border-color:#8bcdb0}
body>.ajx-customer-menu-portal{min-width:174px;gap:4px;padding:7px;border-radius:11px;box-shadow:0 12px 28px rgba(12,52,39,.17)}
body>.ajx-customer-menu-portal .btn{min-height:35px;width:100%;justify-content:flex-start;text-align:left}

/* P&L detailed financial records — read-only presentation */
.ajx-pl-detail-ui{display:grid;gap:14px;min-width:0}
.ajx-pl-tabs,.ajx-pl-controls,.ajx-pl-pager,.ajx-pl-pager>div{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.ajx-pl-tabs{border-bottom:1px solid #e1ebe7;padding-bottom:12px}
.ajx-pl-controls input,.ajx-pl-controls select{border:1px solid #cdded7;border-radius:9px;padding:10px 12px;background:#fff;color:#193c31;font:inherit}
.ajx-pl-controls input{flex:1;min-width:210px;max-width:420px}
.ajx-pl-table{overflow-x:auto;max-width:100%;border:1px solid #e2ebe7;border-radius:10px}
.ajx-pl-table table{width:100%;min-width:890px;border-collapse:collapse}
.ajx-pl-table th{background:#f2f8f5;color:#486a5d;text-transform:uppercase;font-size:11px;letter-spacing:.035em;white-space:nowrap}
.ajx-pl-table th,.ajx-pl-table td{padding:12px 13px;border-bottom:1px solid #e6eeea;text-align:left;vertical-align:middle}
.ajx-pl-table th.num,.ajx-pl-table td.num{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
.ajx-pl-table tbody tr:hover{background:#f8fbf9}
.ajx-pl-row-details summary{cursor:pointer;color:#087e52;font-weight:600}
.ajx-pl-row-details div{max-width:250px;padding:8px 0;color:#536b62;overflow-wrap:anywhere}
.ajx-pl-pager{justify-content:space-between;color:#60756d;font-size:12px}
@media(max-width:650px){.ajx-pl-controls input{max-width:none}.ajx-pl-pager{align-items:flex-start;flex-direction:column}}

/* Paid ads modal — approved visual direction, scoped to advertising form only */
#modalRoot .ajx-ad-modal{width:min(560px,calc(100vw - 32px));max-width:560px;border-radius:16px;overflow:hidden}
#modalRoot .ajx-ad-modal .ph{padding:20px 24px 16px;background:linear-gradient(115deg,#fff 65%,#effcf5);border-bottom:1px solid #e5eee9}
#modalRoot .ajx-ad-modal .ph h3{font-size:19px;letter-spacing:-.025em}
#modalRoot .ajx-ad-modal .pb.form{padding:18px 24px 20px;gap:16px;grid-template-columns:repeat(2,minmax(0,1fr))}
#modalRoot .ajx-ad-modal .ajx-ad-intro{margin:0 0 2px;color:#6b8090;font-size:13px;line-height:1.5}
#modalRoot .ajx-ad-modal .field{min-width:0}
#modalRoot .ajx-ad-modal .field label{font-weight:650;margin-bottom:7px}
#modalRoot .ajx-ad-modal .field input:not([type=hidden]),#modalRoot .ajx-ad-modal .field select{width:100%;box-sizing:border-box;min-height:44px;border:1px solid #ceddd8;border-radius:9px;padding:10px 12px;background:#fff;font:inherit}
#modalRoot .ajx-ad-modal .field select{cursor:pointer}
#modalRoot .ajx-ad-modal .field input:focus,#modalRoot .ajx-ad-modal .field select:focus{outline:2px solid #14ad75;outline-offset:1px}
#modalRoot .ajx-ad-modal .field small{display:block;margin-top:6px;color:#7b8e9c;font-size:11px;line-height:1.45}
#modalRoot .ajx-ad-modal .ajx-ad-money{display:flex;align-items:center;border:1px solid #ceddd8;border-radius:9px;overflow:hidden;background:white}
#modalRoot .ajx-ad-modal .ajx-ad-money>span{display:grid;place-items:center;width:48px;align-self:stretch;background:#f5f8f8;border-right:1px solid #e3ebea;font-size:18px;font-weight:650}
#modalRoot .ajx-ad-modal .ajx-ad-money input{flex:1;min-width:0;border:0!important;border-radius:0!important;outline:none!important}
#modalRoot .ajx-ad-modal .ajx-ad-money:focus-within{outline:2px solid #14ad75;outline-offset:1px}
#modalRoot .ajx-ad-modal .ajx-ad-note{padding:14px 16px;background:#edfaf4;border:1px solid #cfecdf;border-radius:10px;color:#426f60;display:flex;flex-direction:column;gap:5px;font-size:12px;line-height:1.45}
#modalRoot .ajx-ad-modal .ajx-ad-note strong{color:#087f53;font-size:13px}
#modalRoot .ajx-ad-modal .modal-actions{padding:16px 24px;border-top:1px solid #e7eeeb;gap:10px}
#modalRoot .ajx-ad-modal .modal-actions .btn{min-height:42px;border-radius:9px}
@media(max-width:540px){#modalRoot .ajx-ad-modal .pb.form{grid-template-columns:minmax(0,1fr);padding:16px}#modalRoot .ajx-ad-modal .ph,#modalRoot .ajx-ad-modal .modal-actions{padding-left:16px;padding-right:16px}}

/* Inline icons for paid advertising fields */
#modalRoot .ajx-ad-modal .ajx-ad-iconfield{display:flex;align-items:center;min-width:0;border:1px solid #ceddd8;border-radius:9px;background:#fff;overflow:hidden}
#modalRoot .ajx-ad-modal .ajx-ad-iconfield>span{width:46px;min-width:46px;align-self:stretch;display:grid;place-items:center;color:#516a85;border-right:1px solid #e3ebea;background:#f8fafb}
#modalRoot .ajx-ad-modal .ajx-ad-iconfield>span svg{width:19px;height:19px;display:block}
#modalRoot .ajx-ad-modal .ajx-ad-iconfield input,#modalRoot .ajx-ad-modal .ajx-ad-iconfield select{flex:1;min-width:0;border:0!important;border-radius:0!important;outline:none!important}
#modalRoot .ajx-ad-modal .ajx-ad-iconfield:focus-within{outline:2px solid #14ad75;outline-offset:1px}

/* Admin dashboard redesign — presentation only */
.ajx-admin-dashboard-filters{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.ajx-admin-dashboard-filters>div:first-child{flex:1 1 100%;min-width:0}
.ajx-admin-dashboard-filters .ajx-admin-quick-period{display:flex;gap:8px;flex:1;flex-wrap:wrap}
.ajx-admin-dashboard-filters .ajx-admin-quick-period .btn{border-radius:9px;padding:9px 14px;min-height:38px}
.ajx-admin-primary-kpis{grid-template-columns:repeat(4,minmax(0,1fr))!important}
.ajx-admin-dash-secondary{grid-template-columns:repeat(4,minmax(0,1fr))!important}
.ajx-admin-dash-kpis .kpi{position:relative;min-width:0;padding:22px 18px 19px;border-radius:13px;display:flex;flex-direction:column;gap:7px}
.ajx-admin-dash-kpis .kpi .lbl{font-size:11px;letter-spacing:.04em;text-transform:uppercase;color:#385c62}
.ajx-admin-dash-kpis .kpi .val{font-size:28px;letter-spacing:-.03em}
.ajx-admin-dash-kpis .kpi .sub{font-size:12px;line-height:1.4;color:#668094}
.ajx-admin-card-icon{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:rgba(7,159,103,.12);color:#00885e;font-size:21px;font-weight:700;margin-bottom:6px}
.ajx-admin-primary-kpis .kpi:nth-child(2) .ajx-admin-card-icon{background:#deefff;color:#1772d0}
.ajx-admin-primary-kpis .kpi:nth-child(4) .ajx-admin-card-icon{background:#fff0ce;color:#cb8c04}
.ajx-admin-work-activity{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(300px,1fr);gap:14px;margin:16px 0}
.ajx-admin-work-activity .panel{min-width:0;border-radius:13px}
.ajx-admin-work-tiles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding:16px}
.ajx-admin-work-tiles>div{display:flex;flex-direction:column;gap:8px;background:#f1faf6;border:1px solid #dcefe5;border-radius:11px;padding:16px 12px;min-width:0}
.ajx-admin-work-tiles>div:nth-child(2){background:#eff7ff;border-color:#deebfa}
.ajx-admin-work-tiles>div:nth-child(3){background:#fff9ed;border-color:#f6e8ce}
.ajx-admin-work-tiles>div:nth-child(4){background:#f7f3ff;border-color:#e9e1fb}
.ajx-admin-work-tiles span{font-size:12px;color:#35546a;min-height:30px}
.ajx-admin-work-tiles strong{font-size:23px;color:#122c48;white-space:nowrap}
.ajx-admin-work-tiles small{font-size:11px;color:#6c8492}
.ajx-admin-activity-list{padding:8px 14px}
.ajx-admin-activity-item{display:flex;align-items:center;gap:10px;padding:11px 5px;border-bottom:1px solid #e9efed}
.ajx-admin-activity-item:last-child{border-bottom:0}
.ajx-admin-activity-dot{color:#119f71;background:#e8f8ef;border-radius:50%;width:31px;height:31px;display:grid;place-items:center;flex-shrink:0}
.ajx-admin-activity-dot.paid{color:#2475c4;background:#eaf3ff}
.ajx-admin-activity-dot.task{color:#7554bd;background:#f1eaff}
.ajx-admin-activity-item>div{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1}
.ajx-admin-activity-item strong{font-size:12px;color:#20384b}
.ajx-admin-activity-item small{font-size:11px;color:#718391;overflow-wrap:anywhere}
.ajx-admin-activity-item time{font-size:10px;color:#758898;white-space:nowrap}
@media(max-width:1200px){.ajx-admin-work-activity{grid-template-columns:1fr}.ajx-admin-work-tiles{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:850px){.ajx-admin-primary-kpis,.ajx-admin-dash-secondary{grid-template-columns:repeat(2,minmax(0,1fr))!important}.ajx-admin-work-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){.ajx-admin-primary-kpis,.ajx-admin-dash-secondary{grid-template-columns:1fr!important}.ajx-admin-work-tiles{grid-template-columns:1fr 1fr}.ajx-admin-work-tiles strong{font-size:19px}.ajx-admin-activity-item time{white-space:normal;text-align:right}}

/* Admin dashboard date shortcuts: override legacy flex-column rule */
.ajx-admin-dashboard-filters .ajx-admin-quick-period{display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;align-items:center!important;justify-content:flex-start!important;flex:1 1 auto!important;gap:8px!important;width:auto!important;min-width:0}
.ajx-admin-dashboard-filters .ajx-admin-quick-period>.btn{display:inline-flex!important;flex:0 0 auto!important;width:auto!important;min-width:0!important;max-width:none!important;align-items:center;justify-content:center;white-space:nowrap;border-radius:9px}
@media(max-width:650px){.ajx-admin-dashboard-filters .ajx-admin-quick-period{flex:1 1 100%!important}.ajx-admin-dashboard-filters .ajx-admin-quick-period>.btn{flex:0 0 auto!important}}

/* Admin dashboard — approved full reference visual, staging only */
.ajx-admin-dashboard-filters{background:transparent!important;border:0!important;box-shadow:none!important;padding:0 0 2px!important;margin-bottom:18px!important;display:flex!important;align-items:center!important;gap:12px!important}
.ajx-admin-dashboard-filters>div:first-child{display:none!important}
.ajx-admin-dashboard-filters .ajx-admin-quick-period{flex:1 1 auto!important;gap:9px!important}
.ajx-admin-dashboard-filters .ajx-admin-quick-period>.btn{min-height:40px!important;padding:10px 16px!important;background:#fff;border:1px solid #d7e2e7;box-shadow:0 1px 2px #1a4a4110;color:#21344b}
.ajx-admin-dashboard-filters .ajx-admin-quick-period>.btn.btn-p{background:#008b59!important;color:#fff!important;border-color:#008b59!important;box-shadow:0 4px 12px #008b5925}
.ajx-admin-dashboard-filters .ajx-admin-quick-period>.btn svg{width:16px;height:16px;margin-right:7px;flex-shrink:0}
.ajx-admin-dashboard-filters>label{margin-left:auto;flex:0 0 auto}
.ajx-admin-dashboard-filters>label select{min-width:200px;background:#fff}
.ajx-admin-dash-kpis{gap:13px!important;margin-bottom:13px!important}
.ajx-admin-dash-kpis .kpi{display:grid!important;grid-template-columns:64px minmax(0,1fr);grid-template-rows:auto auto 1fr;column-gap:13px;row-gap:7px;min-height:139px;padding:20px 17px!important;align-items:start;position:relative;overflow:hidden;border-radius:13px!important;box-shadow:0 2px 10px #102f2b08}
.ajx-admin-dash-kpis .kpi .ajx-admin-card-icon{grid-column:1;grid-row:1 / 4;align-self:start;width:54px;height:54px;border-radius:50%;background:#dff6ed;color:#008d63;margin:0}
.ajx-admin-dash-kpis .kpi .ajx-admin-card-icon svg{width:29px;height:29px;stroke-width:1.9}
.ajx-admin-dash-kpis .kpi .lbl{grid-column:2;grid-row:1;align-self:center;min-height:22px;font-size:11px!important;font-weight:750;letter-spacing:.015em}
.ajx-admin-dash-kpis .kpi .val{grid-column:2;grid-row:2;font-size:29px!important;line-height:1.1;font-weight:800}
.ajx-admin-dash-kpis .kpi .sub{grid-column:2;grid-row:3;max-width:200px;font-size:12px!important;line-height:1.45}
.ajx-admin-primary-kpis .kpi:nth-child(1) .ajx-admin-card-icon{background:#008e62;color:#fff}
.ajx-admin-primary-kpis .kpi:nth-child(2) .ajx-admin-card-icon{background:#4b9cf4;color:#fff}
.ajx-admin-primary-kpis .kpi:nth-child(3) .ajx-admin-card-icon{background:#17b77c;color:#fff}
.ajx-admin-primary-kpis .kpi:nth-child(4) .ajx-admin-card-icon{background:#ffc044;color:#fff}
.ajx-admin-dash-secondary .kpi .ajx-admin-card-icon{background:#e1f6ee;color:#008e64}
.ajx-admin-dash-secondary .kpi:nth-child(2) .ajx-admin-card-icon{background:#e3efff;color:#2079df}
.ajx-admin-dash-secondary .kpi:nth-child(4) .ajx-admin-card-icon{background:#fff2d6;color:#df990e}
.ajx-admin-card-bars{position:absolute;right:16px;bottom:18px;display:flex;align-items:end;gap:4px;height:38px;opacity:.65}
.ajx-admin-card-bars i{width:8px;border-radius:3px 3px 0 0;background:#25c28b;height:15px}
.ajx-admin-card-bars i:nth-child(2){height:25px}
.ajx-admin-card-bars i:nth-child(3){height:36px}
.ajx-admin-primary-kpis .kpi:nth-child(2) .ajx-admin-card-bars i,.ajx-admin-dash-secondary .kpi:nth-child(2) .ajx-admin-card-bars i{background:#78b8fb}
.ajx-admin-primary-kpis .kpi:nth-child(4) .ajx-admin-card-bars i,.ajx-admin-dash-secondary .kpi:nth-child(4) .ajx-admin-card-bars i{background:#f6c45e}
.ajx-admin-work-activity{grid-template-columns:minmax(0,1.7fr) minmax(360px,1fr);gap:14px;margin:16px 0}
.ajx-admin-work-activity .panel{background:#fff;border:1px solid #dce8e5;border-radius:12px}
.ajx-admin-work-activity .ph{padding:16px 17px 12px;border-bottom:0}
.ajx-admin-work-activity .ph h3{font-size:17px;letter-spacing:-.025em}
.ajx-admin-work-tiles{padding:4px 16px 18px;gap:9px}
.ajx-admin-work-tiles>div{position:relative;display:grid;grid-template-columns:46px 1fr;grid-template-rows:auto auto auto;column-gap:8px;align-content:center;min-height:127px;padding:13px 10px}
.ajx-admin-work-tiles>div .ajx-admin-work-icon{grid-column:1;grid-row:1 / 4;display:grid;place-items:center;width:41px;height:41px;min-height:0;border-radius:50%;background:#d8f5e9;color:#008e60}
.ajx-admin-work-tiles>div:nth-child(2) .ajx-admin-work-icon{background:#deedff;color:#227ce0}
.ajx-admin-work-tiles>div:nth-child(3) .ajx-admin-work-icon{background:#fff0d0;color:#d69b0c}
.ajx-admin-work-tiles>div:nth-child(4) .ajx-admin-work-icon{background:#eae0ff;color:#8254e5}
.ajx-admin-work-icon svg{width:23px;height:23px}
.ajx-admin-work-tiles>div>span:not(.ajx-admin-work-icon){grid-column:2;grid-row:1;min-height:0;font-size:11px;font-weight:600}
.ajx-admin-work-tiles strong{grid-column:2;grid-row:2;font-size:24px}
.ajx-admin-work-tiles small{grid-column:2;grid-row:3}
.ajx-admin-activity-list{padding:0 13px 13px}
.ajx-admin-activity-item{padding:9px 7px;border:1px solid #e9efef;border-radius:10px;margin-bottom:7px}
.ajx-admin-activity-dot{width:35px;height:35px}
.ajx-admin-activity-dot svg{width:19px;height:19px}
.ajx-admin-activity-item time{font-size:11px}
.ajx-admin-dash-grid .panel{border-radius:12px}
@media(max-width:1250px){.ajx-admin-work-activity{grid-template-columns:1fr}.ajx-admin-work-tiles{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:1050px){.ajx-admin-dash-kpis .kpi{grid-template-columns:45px minmax(0,1fr);padding:15px 12px!important;column-gap:8px}.ajx-admin-dash-kpis .kpi .ajx-admin-card-icon{width:41px;height:41px}.ajx-admin-dash-kpis .kpi .ajx-admin-card-icon svg{width:22px;height:22px}.ajx-admin-card-bars{opacity:.25}}
@media(max-width:800px){.ajx-admin-dashboard-filters>label select{min-width:140px}.ajx-admin-work-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.ajx-admin-dashboard-filters>label{margin-left:0;flex:1 1 100%}.ajx-admin-dashboard-filters>label select{width:100%}.ajx-admin-dash-kpis .kpi{min-height:120px}.ajx-admin-work-tiles{grid-template-columns:1fr 1fr}.ajx-admin-work-tiles>div{grid-template-columns:1fr;gap:5px}.ajx-admin-work-tiles>div .ajx-admin-work-icon{grid-column:1;grid-row:auto}.ajx-admin-work-tiles>div>span:not(.ajx-admin-work-icon),.ajx-admin-work-tiles strong,.ajx-admin-work-tiles small{grid-column:1;grid-row:auto}}

/* Clickable Admin My Work tiles */
.ajx-admin-work-tiles>.ajx-admin-work-tile{position:relative;display:grid;grid-template-columns:46px minmax(0,1fr);grid-template-rows:auto auto auto;column-gap:8px;align-content:center;gap:8px;min-width:0;min-height:127px;padding:13px 10px;text-align:left;font:inherit;color:inherit;cursor:pointer;background:#f1faf6;border:1px solid #dcefe5;border-radius:11px;transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease}
.ajx-admin-work-tiles>.ajx-admin-work-tile:nth-child(2){background:#eff7ff;border-color:#deebfa}
.ajx-admin-work-tiles>.ajx-admin-work-tile:nth-child(3){background:#fff9ed;border-color:#f6e8ce}
.ajx-admin-work-tiles>.ajx-admin-work-tile:nth-child(4){background:#f7f3ff;border-color:#e9e1fb}
.ajx-admin-work-tiles>.ajx-admin-work-tile:hover{transform:translateY(-2px);box-shadow:0 6px 17px #0e46301a;border-color:#79c9aa}
.ajx-admin-work-tiles>.ajx-admin-work-tile:focus-visible{outline:3px solid #159c72;outline-offset:2px}
.ajx-admin-work-tile .ajx-admin-work-icon{grid-column:1;grid-row:1 / 4;display:grid;place-items:center;width:41px;height:41px;min-height:0;border-radius:50%;background:#d8f5e9;color:#008e60}
.ajx-admin-work-tile:nth-child(2) .ajx-admin-work-icon{background:#deedff;color:#227ce0}
.ajx-admin-work-tile:nth-child(3) .ajx-admin-work-icon{background:#fff0d0;color:#d69b0c}
.ajx-admin-work-tile:nth-child(4) .ajx-admin-work-icon{background:#eae0ff;color:#8254e5}
.ajx-admin-work-tile>span:not(.ajx-admin-work-icon):not(.ajx-admin-work-arrow){grid-column:2;grid-row:1;font-size:11px;font-weight:600;color:#35546a}
.ajx-admin-work-tile>strong{grid-column:2;grid-row:2;font-size:24px;color:#122c48}
.ajx-admin-work-tile>small{grid-column:2;grid-row:3;font-size:11px;color:#6c8492}
.ajx-admin-work-arrow{position:absolute;right:9px;top:9px;font-size:15px;font-weight:700;color:#008e60;opacity:.7;transition:transform .16s ease}
.ajx-admin-work-tile:hover .ajx-admin-work-arrow{transform:translateX(3px);opacity:1}
@media(max-width:600px){.ajx-admin-work-tiles>.ajx-admin-work-tile{grid-template-columns:1fr;gap:5px}.ajx-admin-work-tile .ajx-admin-work-icon,.ajx-admin-work-tile>span:not(.ajx-admin-work-icon):not(.ajx-admin-work-arrow),.ajx-admin-work-tile>strong,.ajx-admin-work-tile>small{grid-column:1;grid-row:auto}}

/* Team Tasks — searchable related customer control */
.ajx-task-customer-picker{display:flex;flex-direction:column;gap:8px}
.ajx-task-customer-picker input[type=search]{width:100%;min-height:38px;padding:9px 12px;border:1px solid #cadfd6;border-radius:9px;background:#fff;color:#142c3c;font:inherit}
.ajx-task-customer-picker input[type=search]:focus-visible{outline:2px solid #00966a;outline-offset:1px}
.ajx-task-customer-picker select{width:100%;min-height:38px}
.ajx-task-customer-picker .hint{display:block;font-size:11px;color:#65808a;line-height:1.45}

/* Admin Tasks: discoverable task detail and status controls */
.ajx-task-clickable{cursor:pointer;transition:background-color .16s ease,border-color .16s ease,box-shadow .16s ease}
.ajx-task-clickable:hover{background:#f4fbf8;border-color:#9fdac3;box-shadow:0 3px 12px #003f2910}
.ajx-task-clickable:focus-visible{outline:3px solid #149a72;outline-offset:2px}
.ajx-task-clickable .ajx-task-update-btn{margin-left:8px;white-space:nowrap;font-size:12px;font-weight:700;padding:7px 11px;border-radius:8px;border:1px solid #b8dccc;background:#ecf9f2;color:#087b56;cursor:pointer}
.ajx-task-clickable .ajx-task-update-btn:hover{background:#d9f5e7;border-color:#64bc99}
.ajx-task-clickable .ajx-task-update-btn:focus-visible{outline:2px solid #008e63;outline-offset:2px}
@media(max-width:650px){.ajx-task-clickable .ajx-task-update-btn{margin:7px 0 0;flex-shrink:0}}
