/* families: overlays W, cards C, heads H, footers F */
:root{--w-line:rgba(43,52,132,.10);--w-tint:rgba(43,52,132,.05);--w-canvas:#f3f5fb;--w-card:#fff;--w-shadow:0 1px 0 rgba(43,52,132,.06),0 8px 22px rgba(20,26,60,.06);
 --w-navy:linear-gradient(135deg,#34409c 0%,#2B3484 48%,#1f2668 100%)}
:root[data-theme=dark]{--w-line:rgba(201,207,224,.10);--w-tint:rgba(201,207,224,.05);--w-canvas:#10151f;--w-card:#181f30;--w-shadow:0 1px 0 rgba(0,0,0,.3),0 8px 22px rgba(0,0,0,.25)}
@media(prefers-color-scheme:dark){:root:not([data-theme=light]){--w-line:rgba(201,207,224,.10);--w-tint:rgba(201,207,224,.05);--w-canvas:#10151f;--w-card:#181f30;--w-shadow:0 1px 0 rgba(0,0,0,.3),0 8px 22px rgba(0,0,0,.25)}}
/* the backdrop: deep navy, blurred on a computer */
:is(.review-modal,.orders-modal,.limits-modal,.pr-modal,.proc-modal,.gr-modal,.rep-modal,.modal,.po-mgmt,.v61-modal,.v62-modal,.v63-modal,.v65-modal,.v70-modal){background:radial-gradient(1200px 700px at 50% 0%,rgba(43,52,132,.35),rgba(10,14,36,.62))!important}
/* the card: a light canvas the content sits on as white cards */
:is(.limits-card,.po-mgmt-card,.rep-card,.v61-card,.v62-card,.v63-card,.v65-card,.v70-card,.modal-card){background:var(--w-canvas)!important;animation:w-in .32s cubic-bezier(.2,.9,.25,1.12)}
@keyframes w-in{from{opacity:0;transform:translateY(18px) scale(.975)}to{opacity:1;transform:none}}
/* the header: the BEC navy band — like the floating bar — with a soft light, white title, glass icon and close button */
:is(.limits-head,.po-mgmt-head,.rep-head,.v61-head,.v62-head,.v63-head,.v65-head,.v70-head,.modal-head){position:sticky!important;z-index:6;color:#fff;
 background:radial-gradient(520px 160px at 100% 0%,rgba(255,255,255,.16),transparent 70%),radial-gradient(420px 140px at 0% 100%,rgba(143,152,196,.22),transparent 70%),var(--w-navy)!important;
 border-bottom:0!important;box-shadow:inset 0 -1px 0 rgba(201,207,224,.28),0 10px 24px rgba(20,26,80,.18)}
:is(.limits-head,.po-mgmt-head,.rep-head,.v61-head,.v62-head,.v63-head,.v65-head,.v70-head,.modal-head) :is(h3,h2){display:flex;align-items:center;gap:13px;color:#fff!important;font-size:20px;font-weight:800;letter-spacing:-.2px;line-height:1.35}
:is(.limits-head,.po-mgmt-head,.rep-head,.v61-head,.v62-head,.v63-head,.v65-head,.v70-head,.modal-head) :is(h3,h2)>.aic:first-child{width:44px;height:44px;padding:11px;box-sizing:border-box;flex:0 0 auto;margin:0;border-radius:14px;color:#fff;stroke-width:1.9;
 background:rgba(255,255,255,.13);border:1px solid rgba(255,255,255,.24);box-shadow:inset 0 1px 0 rgba(255,255,255,.25),0 6px 16px rgba(10,14,40,.25)}
:is(.limits-head,.po-mgmt-head,.rep-head,.v61-head,.v62-head,.v63-head,.v65-head,.v70-head,.modal-head) :is(small,.muted){color:rgba(232,235,248,.78)!important}
:is(.limits-head,.po-mgmt-head,.rep-head,.v61-head,.v62-head,.v63-head,.v65-head,.v70-head,.modal-head) :is(h3,h2):has(>.aic:first-child)+:is(small,.muted){display:block;padding-inline-start:57px;margin-top:2px;font-size:12.5px;font-weight:500;line-height:1.7}
:is(.limits-head,.po-mgmt-head,.rep-head,.v61-head,.v62-head,.v63-head,.v65-head,.v70-head,.modal-head)>button.alt:last-child{width:42px;height:42px;min-width:42px;padding:0!important;border-radius:14px!important;display:grid;place-items:center;
 background:rgba(255,255,255,.12)!important;border:1px solid rgba(255,255,255,.24)!important;color:#fff!important;box-shadow:none!important}
:is(.limits-head,.po-mgmt-head,.rep-head,.v61-head,.v62-head,.v63-head,.v65-head,.v70-head,.modal-head)>button.alt:last-child .aic{transition:transform .25s ease;margin:0}
:is(.limits-head,.po-mgmt-head,.rep-head,.v61-head,.v62-head,.v63-head,.v65-head,.v70-head,.modal-head)>button.alt:last-child:hover{background:rgba(255,255,255,.22)!important}
:is(.limits-head,.po-mgmt-head,.rep-head,.v61-head,.v62-head,.v63-head,.v65-head,.v70-head,.modal-head)>button.alt:last-child:hover .aic{transform:rotate(90deg)}
/* the footer: a white bar that stays, with the main button glowing */
:is(.limits-footer,.po-footer,.rep-footer,.v61-footer,.v62-footer,.v63-footer,.v65-footer,.v70-footer,.modal-footer){position:sticky!important;bottom:0;z-index:6;background:var(--w-card)!important;border-top:1px solid var(--w-line)!important;box-shadow:0 -8px 22px rgba(20,26,60,.06)}
:is(.limits-card,.po-mgmt-card,.rep-card,.v61-card,.v62-card,.v63-card,.v65-card,.v70-card,.modal-card) button:not(.alt):not(.qa-row):not(.dash-fold-bar):not(.big-btn){background:var(--w-navy)!important;border-color:transparent!important;color:#fff!important;
 box-shadow:0 6px 16px rgba(43,52,132,.28),inset 0 1px 0 rgba(255,255,255,.18)!important;transition:transform .15s ease,box-shadow .15s ease}
@media(hover:hover){:is(.limits-card,.po-mgmt-card,.rep-card,.v61-card,.v62-card,.v63-card,.v65-card,.v70-card,.modal-card) button:not(.alt):not(.qa-row):not(.dash-fold-bar):not(.big-btn):hover{transform:translateY(-1px);box-shadow:0 10px 22px rgba(43,52,132,.34),inset 0 1px 0 rgba(255,255,255,.18)!important}}
:is(.limits-card,.po-mgmt-card,.rep-card,.v61-card,.v62-card,.v63-card,.v65-card,.v70-card,.modal-card) button.alt{background:var(--w-card)!important;border:1px solid var(--w-line)!important;box-shadow:0 1px 2px rgba(20,26,60,.05)}
/* content on the canvas: white cards */
:is(.limits-card,.po-mgmt-card,.rep-card,.v61-card,.v62-card,.v63-card,.v65-card,.v70-card,.modal-card) table:not(.m-cards){background:var(--w-card);border-collapse:separate!important;border-spacing:0;border-radius:16px;box-shadow:var(--w-shadow)}
/* The header row stays pinned while the list scrolls, so its tint sits on the solid card colour; a see-through
   header let the rows show through it (owner, 2026-10-10). */
:is(.limits-card,.po-mgmt-card,.rep-card,.v61-card,.v62-card,.v63-card,.v65-card,.v70-card,.modal-card) table:not(.m-cards) thead th{background:linear-gradient(var(--w-tint),var(--w-tint)),var(--w-card)!important;z-index:2;color:var(--muted)!important;font-size:12px!important;font-weight:800!important;border-bottom:1px solid var(--w-line)!important}
:is(.limits-card,.po-mgmt-card,.rep-card,.v61-card,.v62-card,.v63-card,.v65-card,.v70-card,.modal-card) table:not(.m-cards) thead th:first-child{border-start-start-radius:16px}
:is(.limits-card,.po-mgmt-card,.rep-card,.v61-card,.v62-card,.v63-card,.v65-card,.v70-card,.modal-card) table:not(.m-cards) thead th:last-child{border-start-end-radius:16px}
:is(.limits-card,.po-mgmt-card,.rep-card,.v61-card,.v62-card,.v63-card,.v65-card,.v70-card,.modal-card) table:not(.m-cards) tbody td{border-bottom:1px solid var(--w-line)!important}
:is(.limits-card,.po-mgmt-card,.rep-card,.v61-card,.v62-card,.v63-card,.v65-card,.v70-card,.modal-card) table:not(.m-cards) tbody tr:last-child td{border-bottom:0!important}
@media(hover:hover){:is(.limits-card,.po-mgmt-card,.rep-card,.v61-card,.v62-card,.v63-card,.v65-card,.v70-card,.modal-card) table:not(.m-cards) tbody tr:hover>td{background:rgba(43,52,132,.035)}}
:is(.limits-card,.po-mgmt-card,.rep-card,.v61-card,.v62-card,.v63-card,.v65-card,.v70-card,.modal-card) table.m-cards>tbody>tr{background:var(--w-card)!important;box-shadow:var(--w-shadow)!important;border-color:var(--w-line)!important}
/* the building limits list (a grid, not a table) */
#buildingLimitsBody{background:var(--w-card);border-radius:16px;box-shadow:var(--w-shadow);padding:6px 14px}
.v44-scroll>.v44-limit-grid:first-child{padding:0 14px 8px}
/* fields: white on the canvas, a navy ring when typing */
:is(.limits-card,.po-mgmt-card,.rep-card,.v61-card,.v62-card,.v63-card,.v65-card,.v70-card,.modal-card) :is(input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=color]),select,textarea){background:var(--w-card)!important;border-radius:12px!important;border:1px solid var(--line)!important;transition:border-color .15s,box-shadow .15s}
:is(.limits-card,.po-mgmt-card,.rep-card,.v61-card,.v62-card,.v63-card,.v65-card,.v70-card,.modal-card) :is(input,select,textarea):focus{outline:none!important;border-color:#2B3484!important;box-shadow:0 0 0 4px rgba(43,52,132,.14)!important}
/* figure tiles: white cards with a navy number */
:is(.limits-card,.po-mgmt-card,.rep-card,.v61-card,.v62-card,.v63-card,.v65-card,.v70-card,.modal-card) :is(.po-kpi,.v70-kpi,.v61-kpis>div,.rep-kpis>div){background:var(--w-card)!important;border:1px solid var(--w-line)!important;border-radius:18px!important;box-shadow:var(--w-shadow)!important;position:relative;overflow:hidden}
:is(.limits-card,.po-mgmt-card,.rep-card,.v61-card,.v62-card,.v63-card,.v65-card,.v70-card,.modal-card) :is(.po-kpi,.v70-kpi,.v61-kpis>div,.rep-kpis>div)::after{content:"";position:absolute;inset-inline-start:0;top:14px;bottom:14px;width:3px;border-radius:3px;background:linear-gradient(180deg,#5a68d8,#2B3484)}
:is(.limits-card,.po-mgmt-card,.rep-card,.v61-card,.v62-card,.v63-card,.v65-card,.v70-card,.modal-card) :is(.po-kpi,.v70-kpi) b{color:var(--b);font-weight:800;letter-spacing:-.3px}
.po-kpi .aic{width:16px;height:16px;margin-inline-end:5px;color:var(--b);vertical-align:-3px}
/* info notes: a white card with a navy edge */
:is(.limits-note,.v61-note,.v63-note,.v70-note,.pu-note,.v41-import-help){position:relative;background:var(--w-card)!important;border:1px solid var(--w-line);border-inline-start:4px solid #2B3484!important;border-radius:14px!important;padding:11px 14px!important;padding-inline-start:42px!important;line-height:1.8;box-shadow:var(--w-shadow);color:var(--text)!important}
:is(.limits-note,.v61-note,.v63-note,.v70-note,.pu-note,.v41-import-help)::before{content:"i";position:absolute;inset-inline-start:12px;top:12px;width:18px;height:18px;border-radius:50%;display:grid;place-items:center;background:#2B3484;color:#fff;font:700 11px/1 Georgia,serif}
#usrFormError.limits-note{border-inline-start-color:#D92D20!important}#usrFormError.limits-note::before{content:"!";background:#D92D20}
/* segmented building tabs: the chosen one is a navy pill */
.v44-building-tabs{display:inline-flex!important;gap:4px!important;padding:5px;border-radius:16px;background:var(--w-card);border:1px solid var(--w-line);box-shadow:var(--w-shadow);margin-bottom:14px}
.limits-card .v44-building-tabs button,.v44-building-tabs button{border:0!important;background:transparent!important;color:var(--muted)!important;border-radius:12px!important;padding:9px 22px!important;font-weight:800;box-shadow:none!important;min-height:0}
.limits-card .v44-building-tabs button.active,.v44-building-tabs button.active{background:var(--w-navy)!important;color:#fff!important;box-shadow:0 6px 14px rgba(43,52,132,.3)!important}
.po-mgmt-card .dash-cat-tabs button.alt{background:transparent!important;border-color:transparent!important;box-shadow:none!important}
/* chips (e.g. «🔒 ثابت») */
.v63-badge{border-radius:999px!important;border:1px solid var(--w-line)!important;background:var(--w-tint)!important;padding:3px 10px!important;font-size:12px!important;font-weight:500}
/* a computer: floating card, blurred backdrop, the po-mgmt family's header/footer go edge to edge */
@media(min-width:761px){
 :is(.review-modal,.orders-modal,.limits-modal,.pr-modal,.proc-modal,.gr-modal,.rep-modal,.modal,.po-mgmt,.v61-modal,.v62-modal,.v63-modal,.v65-modal,.v70-modal){-webkit-backdrop-filter:blur(6px) saturate(1.1);backdrop-filter:blur(6px) saturate(1.1)}
 :is(.limits-card,.po-mgmt-card,.rep-card,.v61-card,.v62-card,.v63-card,.v65-card,.v70-card,.modal-card){border-radius:26px!important;border:1px solid rgba(255,255,255,.5);box-shadow:0 40px 100px rgba(8,12,40,.45),0 0 0 1px rgba(43,52,132,.08)!important}
 :is(.limits-head,.rep-head,.v61-head,.v62-head,.v63-head,.v65-head,.v70-head,.modal-head){top:0;padding:20px 24px!important}
 .po-mgmt-card{padding:0 24px!important}
 .po-mgmt-card>.po-mgmt-head{margin:0 -24px 18px!important;padding:20px 24px!important;top:0}
 .po-mgmt-card>.po-footer{margin:18px -24px 0!important;padding:14px 24px!important}
 .po-mgmt-card>:last-child:not(.po-footer){margin-bottom:24px}
}
/* a phone: the window is a sheet; its navy header reaches the edges and carries a grab bar */
@media(max-width:760px),(max-height:500px) and (max-width:1000px){
 :is(.limits-head,.po-mgmt-head,.rep-head,.v61-head,.v62-head,.v63-head,.v65-head,.v70-head,.modal-head){margin:-14px -14px 14px!important;padding:20px 16px 14px!important;top:-14px;border-radius:0}
 :is(.limits-head,.po-mgmt-head,.rep-head,.v61-head,.v62-head,.v63-head,.v65-head,.v70-head,.modal-head)::before{content:"";position:absolute;top:7px;left:50%;width:38px;height:4px;margin-left:-19px;border-radius:4px;background:rgba(255,255,255,.4)}
 :is(.limits-head,.po-mgmt-head,.rep-head,.v61-head,.v62-head,.v63-head,.v65-head,.v70-head,.modal-head) :is(h3,h2){font-size:17px!important}
 :is(.limits-head,.po-mgmt-head,.rep-head,.v61-head,.v62-head,.v63-head,.v65-head,.v70-head,.modal-head) :is(h3,h2)>.aic:first-child{width:36px;height:36px;padding:8px;border-radius:12px}
 :is(.limits-head,.po-mgmt-head,.rep-head,.v61-head,.v62-head,.v63-head,.v65-head,.v70-head,.modal-head) :is(h3,h2):has(>.aic:first-child)+:is(small,.muted){padding-inline-start:49px}
 :is(.limits-head,.po-mgmt-head,.rep-head,.v61-head,.v62-head,.v63-head,.v65-head,.v70-head,.modal-head)>button.alt:last-child{width:38px;height:38px;min-width:38px}
 /* the sheet keeps 16px + the safe area free at its foot: the footer covers it, so nothing scrolls out underneath */
 :is(.limits-footer,.po-footer,.rep-footer,.v61-footer,.v62-footer,.v63-footer,.v65-footer,.v70-footer,.modal-footer){margin:14px -14px calc(-16px - env(safe-area-inset-bottom))!important;padding:12px 14px calc(12px + 16px + env(safe-area-inset-bottom))!important;bottom:calc(-16px - env(safe-area-inset-bottom))}
 .v44-building-tabs{display:flex!important}
 .v44-building-tabs button{flex:1}
 #buildingLimitsBody{background:transparent;box-shadow:none;padding:0}
}
@media (prefers-reduced-motion:reduce){:is(.limits-card,.po-mgmt-card,.rep-card,.v61-card,.v62-card,.v63-card,.v65-card,.v70-card,.modal-card){animation:none}}
