/*
  Gailan Ramzi — V101 ACCESSIBLE THEME / GLOBAL CONTROLS
  The default is a clean light theme, with a manually switchable dark theme.
  Presentation only: no API, cart, supplier cost, or pricing tier changes.
  Every selector is scoped to .gr-v100-ui or documented auth markup.
*/
:root[data-gr-theme='light'] { color-scheme:light; }
:root[data-gr-theme='dark'] { color-scheme:dark; }
:root[data-gr-theme='light'] .gr-v100-ui {
  --gr-bg:#f4f6fa;--gr-paper:#ffffff;--gr-text:#16283b;
  --gr-muted:#47586b;--gr-line:#ccd5df;--gr101-bg:#f4f6fa;
  --gr101-text:#16283b;--gr101-muted:#47586b;--gr101-border:#ccd5df;
  --bg:#f4f6fa;--text:#16283b;--line:#ccd5df;
  background:#f4f6fa!important;color:#16283b!important;
}
:root[data-gr-theme='dark'] .gr-v100-ui {
  --gr-bg:#101923;--gr-paper:#1e2b3a;--gr-text:#f3f6fc;
  --gr-muted:#c4cedb;--gr-line:#486074;--gr101-bg:#101923;
  --gr101-text:#f3f6fc;--gr101-muted:#c4cedb;--gr101-border:#486074;
  --bg:#101923;--text:#f3f6fc;--line:#486074;
  background:#101923!important;color:#f3f6fc!important;
}
:root[data-gr-theme='light'] body:has(.gr-v100-ui) {background:#f4f6fa!important;}
:root[data-gr-theme='dark'] body:has(.gr-v100-ui) {background:#101923!important;}
:root[data-gr-theme='light'] .gr-v100-ui .main {background:#f4f6fa!important;color:#16283b!important;}
:root[data-gr-theme='dark'] .gr-v100-ui .main {background:#101923!important;color:#f3f6fc!important;}

/* Shared panels: a white or a slate panel has readable contrast in EVERY page. */
:root[data-gr-theme='light'] .gr-v100-ui :where(.card,.stat,.filters,.topbar,.tablewrap,.table td,.customer-sheet,.customer-card,.category-card,.product,.package-card,.notification-row,.gr101-welcome,.gr101-category-tile,.gr101-searchbox,.gr101-no-data,.gr101-account-shortcuts button,.gr101-appbar,.cart-product,.quote-row,.v51-company,.v51-product,.v51-snapshot,.gr99-product,.gr99-card,.gr99-offer-card,.discount-level,.discount-product,.item-discount-editor,.dialog,.formgrid,.panel) {
  color:#16283b!important;
  border-color:#d0d9e3;
}
:root[data-gr-theme='dark'] .gr-v100-ui :where(.card,.stat,.filters,.topbar,.tablewrap,.table td,.customer-sheet,.customer-card,.category-card,.product,.package-card,.notification-row,.gr101-welcome,.gr101-category-tile,.gr101-searchbox,.gr101-no-data,.gr101-account-shortcuts button,.gr101-appbar,.cart-product,.quote-row,.v51-company,.v51-product,.v51-snapshot,.gr99-product,.gr99-card,.gr99-offer-card,.discount-level,.discount-product,.item-discount-editor,.dialog,.panel) {
  background:#1e2b3a!important;color:#f3f6fc!important;border-color:#486074!important;
}
:root[data-gr-theme='dark'] .gr-v100-ui :where(.card,.stat,.topbar,.customer-sheet,.customer-card,.category-card,.product,.package-card,.notification-row,.cart-product,.quote-row,.v51-company,.v51-product,.v51-snapshot,.gr99-product,.discount-level,.discount-product,.dialog,.item-discount-editor) :where(h1,h2,h3,h4,h5,h6,span,strong,b,p,label,td,small) {
  color:#f3f6fc;
}
:root[data-gr-theme='light'] .gr-v100-ui :where(.card,.stat,.customer-sheet,.customer-card,.category-card,.product,.package-card,.notification-row,.cart-product,.quote-row,.v51-company,.v51-product,.discount-level,.discount-product,.item-discount-editor) :where(h1,h2,h3,h4,h5,h6,strong,b,p,label,td) {
  color:#16283b;
}
/* These data-rich areas used very pale labels on white cards in the old layout. */
:root[data-gr-theme='light'] .gr-v100-ui :where(.muted,.note,.smaller,.pcode,.category-card small,.package-card small,.gr101-category-tile small,.pack-note,.v51-product small,.table td,.table .small,.customer-card small) {color:#47586b!important;opacity:1!important;}
:root[data-gr-theme='dark'] .gr-v100-ui :where(.muted,.note,.smaller,.pcode,.category-card small,.package-card small,.gr101-category-tile small,.pack-note,.v51-product small,.table td,.table .small,.customer-card small) {color:#d3dce8!important;opacity:1!important;}
:root[data-gr-theme='dark'] .gr-v100-ui :where(.productpic,.category-card img,.package-thumbs,.gr101-category-pic) {background:#e9edf2!important;}
:root[data-gr-theme='dark'] .gr-v100-ui :where(.pack-note,.selected-tag,.pack-code,.gr101-no-data) {background:#2d4054!important;color:#ecf2fa!important;border-color:#486074!important;}

/* Inputs and long administration tables must remain legible and selectable. */
:root[data-gr-theme='light'] .gr-v100-ui :where(input,select,textarea,.input) {background:#fff!important;color:#15283a!important;border:1px solid #9faebf!important;}
:root[data-gr-theme='dark'] .gr-v100-ui :where(input,select,textarea,.input) {background:#142334!important;color:#f8fafc!important;border:1px solid #72849a!important;}
.gr-v100-ui :where(input,select,textarea,.input)::placeholder {opacity:1;color:#64748b;}
:root[data-gr-theme='dark'] .gr-v100-ui :where(input,select,textarea,.input)::placeholder {color:#becbdc;}
:root[data-gr-theme='light'] .gr-v100-ui .table th {background:#e8edf3!important;color:#20334a!important;border-color:#cbd6e0!important;}
:root[data-gr-theme='dark'] .gr-v100-ui .table th {background:#293e53!important;color:#f9fafb!important;border-color:#61758a!important;}
:root[data-gr-theme='light'] .gr-v100-ui .table tr:nth-child(even) td {background:#f7f9fc!important;}
:root[data-gr-theme='dark'] .gr-v100-ui .table tr:nth-child(even) td {background:#243448!important;}
.gr-v100-ui .table :where(th,td) {font-size:max(12px,0.78rem);line-height:1.7;}
.gr-v100-ui .tablewrap {overflow-x:auto!important;}
:root[data-gr-theme='dark'] .gr-v100-ui :where(.gr101-page-heading,.gr101-spotlight-navy,.totalbar,.gr101-appbar-brand) {color:#fff!important;}
:root[data-gr-theme='light'] .gr-v100-ui :where(.gr101-page-heading,.gr101-spotlight-navy,.totalbar) {color:#fff!important;}
:root[data-gr-theme='dark'] .gr-v100-ui .btn:not(.soft):not(.red),
:root[data-gr-theme='dark'] .gr-v100-ui .gr101-gold-cta {color:#172539!important;}
:root[data-gr-theme='dark'] .gr-v100-ui :where(.gr101-page-heading,.gr101-campaign-banner,.totalbar) :where(h1,h2,h3,strong,p,small) {color:#fff!important;}

/* Accessibility: shared permanent toolbar on all signed-in pages. */
.gr-v100-ui .gr101-appbar-actions {display:flex!important;align-items:center!important;gap:7px!important;flex-wrap:wrap!important;}
.gr-v100-ui .gr101-pref-button {display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:34px;padding:7px 10px;border:1px solid #d1a932!important;border-radius:10px;background:#f8e6aa!important;color:#152331!important;font-weight:900;font-size:12px;cursor:pointer;white-space:nowrap;}
.gr-v100-ui .gr101-pref-button:hover,.gr-v100-ui .gr101-pref-button:focus-visible {background:#ffe28a!important;color:#152331!important;}
.gr-v100-ui .gr101-edit-nav {width:100%;padding:10px 12px;margin:6px 0 12px;border:1px dashed #f7c944;background:#21364a;color:#ffe18c;border-radius:11px;font-size:12px;font-weight:800;cursor:pointer;}
.gr101-nav-editor {display:grid;gap:7px;max-height:min(70vh,620px);overflow-y:auto;padding:5px;}
.gr101-nav-editor p {line-height:1.8;margin:0 0 6px;}
.gr101-nav-edit-row {display:flex;align-items:center;gap:6px;padding:7px 10px;border:1px solid #bdcbd7;border-radius:10px;background:#fff;color:#16283b;}
.gr101-nav-edit-row span {flex:1;min-width:0;font-size:13px;font-weight:750;}
.gr101-nav-edit-row button {width:36px;height:34px;background:#142331;color:#fff;border-radius:8px;cursor:pointer;}
.gr101-nav-edit-row button:disabled {opacity:.28;cursor:default;}
.gr-v100-ui :where(button,input,select,textarea):focus-visible {outline:3px solid #f7c944!important;outline-offset:2px;}

/* A consistent readable baseline on narrow screens. */
@media (max-width:880px) {
  .gr-v100-ui .gr101-appbar-actions {padding-inline-start:42px;}
  .gr-v100-ui .gr101-pref-button {min-height:36px;font-size:11px;padding:7px;}
  .gr-v100-ui .topbar {background:var(--gr-paper)!important;color:var(--gr-text)!important;}
}
@media (max-width:440px) {
  .gr-v100-ui .gr101-pref-button span {display:none;}
  .gr-v100-ui .gr101-appbar {min-height:50px;}
  .gr-v100-ui .gr101-pref-button {min-width:40px;}
}
/* Explicit heading and value contrast fixes found by the real 320/390px browser checks. */
:root[data-gr-theme='dark'] .gr-v100-ui :where(.gr101-section-heading h3,.gr101-welcome h2,.gr101-category-tile b,.gr101-category-tile small,.gr101-page-heading h2,.gr101-account-hero h2,.gr101-account-card b,.gr101-account-card small,.sectionhead,.sectionline h3,.heading,.crumb,.navtitle,.gr101-no-data,.gr101-searchbox span) {color:#f4f8ff!important;opacity:1!important;}
:root[data-gr-theme='dark'] .gr-v100-ui .gr101-section-heading button {color:#ffdf7a!important;}
:root[data-gr-theme='dark'] .gr-v100-ui .gr101-welcome small {color:#ced9e4!important;}
:root[data-gr-theme='dark'] .gr-v100-ui .gr101-category-pic :where(img,span) {color:#2b4054!important;}
:root[data-gr-theme='dark'] .gr-v100-ui .gr101-home-section :where(h3,.gr101-section-heading) {color:#f4f8ff!important;}
:root[data-gr-theme='dark'] .gr-v100-ui .gr101-appbar-brand :where(strong,small) {color:#f4f8ff!important;}
:root[data-gr-theme='dark'] .gr-v100-ui .topbar .crumb {color:#ccd8e5!important;}
:root[data-gr-theme='light'] .gr-v100-ui .gr101-section-heading :where(h3,button) {color:#20334a!important;}
:root[data-gr-theme='light'] .gr-v100-ui .gr101-welcome :where(h2,small) {color:#20334a!important;}

/* ===== V101: CARD READABILITY / PRODUCT DISPLAY ===== */
/* Gailan Ramzi V101 · Product display, legibility, sidebar controls. */
/* COLOR SYSTEM: text contrast is enforced on the nearest card, not globally. */
:root[data-gr-theme='light'] .gr-v100-ui {
  --gr102-background:#f2f5fa;--gr102-card:#ffffff;--gr102-ink:#192b41;--gr102-muted:#425771;--gr102-line:#c8d4e2;
}
:root[data-gr-theme='dark'] .gr-v100-ui {
  --gr102-background:#111b27;--gr102-card:#223246;--gr102-ink:#f3f7ff;--gr102-muted:#c8d6e8;--gr102-line:#526a80;
}
.gr-v100-ui .main { background:var(--gr102-background)!important; }
/* ALL customer-facing product cards have clear typography in both themes. */
.gr-v100-ui :where(.product,.gr101-category-tile,.category-card,.package-card) {
  background:var(--gr102-card)!important;color:var(--gr102-ink)!important;
  border:1px solid var(--gr102-line)!important;border-radius:14px!important;
  box-shadow:0 4px 14px rgba(10,28,46,.08)!important;
}
.gr-v100-ui :where(.product,.gr101-category-tile,.category-card,.package-card) :where(.pname,.pcode,.muted,.note,.pack-note,.price,.price small,.catpill,b,h2,h3,h4,small,span,p,em,strong,.user-content) {
  color:var(--gr102-ink)!important;opacity:1!important;
}
.gr-v100-ui .product .pname {font-size:clamp(12px,1vw,15px)!important;font-weight:850!important;line-height:1.55!important;min-height:2.8em;}
.gr-v100-ui .product :where(.pcode,.pack-note,.muted,.smaller) {color:var(--gr102-muted)!important;}
.gr-v100-ui .product .pack-note {background:transparent!important;border:1px solid var(--gr102-line)!important;padding:5px 6px!important;}
.gr-v100-ui .product .price {color:var(--gr102-ink)!important;font-size:clamp(13px,1.05vw,17px)!important;font-weight:900!important;}
.gr-v100-ui .product .price small {color:var(--gr102-muted)!important;}
/* All product imagery: square viewport; contain NEVER crops/distorts an odd aspect ratio. */
.gr-v100-ui :where(.productpic,.gr101-category-pic,.category-card img) {
  aspect-ratio:1 / 1!important;box-sizing:border-box!important;overflow:hidden!important;
  background:#f4f7fa!important;border-radius:12px!important;
}
.gr-v100-ui .productpic {width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;display:grid!important;place-items:center!important;}
.gr-v100-ui :where(.productpic img,.gr101-category-pic img,.category-card img,.cart-image,.miniimg,.v51-product img,.gr99-pick img) {
  object-fit:contain!important;object-position:center!important;max-width:100%!important;
}
.gr-v100-ui .productpic img {width:100%!important;height:100%!important;padding:5%!important;display:block!important;}
.gr-v100-ui .product .catpill {background:#fff!important;color:#24364b!important;border-color:#c6d3df!important;font-weight:700!important;}
.gr-v100-ui :where(.gr100-details-link,.product .toolbar .btn) {font-weight:800!important;}
.gr-v100-ui :where(.gr101-category-tile,.category-card) :where(b,small) {color:var(--gr102-ink)!important;text-shadow:none!important;}
:root[data-gr-theme='light'] .gr-v100-ui :where(.gr101-category-tile,.category-card) small {color:#47586b!important;}
:root[data-gr-theme='dark'] .gr-v100-ui :where(.gr101-category-tile,.category-card) small {color:#cbd9ea!important;}
/* Some legacy display-only labels had near-white text on white in Light mode. */
.gr-v100-ui :where(.sectionline,.sectionline h3,.sectionhead,.gr101-section-heading,.gr101-section-heading h3,.table td,.table td small,.customer-sheet,.field label,.dialog label) {
  color:var(--gr102-ink)!important;opacity:1!important;
}
.gr-v100-ui .table td {background:var(--gr102-card)!important;}
.gr-v100-ui .table tr:nth-child(even) td {background:var(--gr102-background)!important;}
.gr-v100-ui .gr101-home-section .grid .product {min-width:0;}
/* Move global preference controls visually to the bottom of the desktop sidebar.
   Their IDs/event handlers remain unchanged. Sidebar is sticky and 244px wide. */
@media(min-width:881px){
  .gr-v100-ui .sidebar {padding-bottom:100px!important;}
  .gr-v100-ui .gr101-appbar-actions {position:fixed!important;z-index:16!important;bottom:8px!important;right:12px!important;width:220px!important;
    display:grid!important;grid-template-columns:1fr 1fr!important;gap:6px!important;padding:9px!important;
    background:#1d3043!important;border:1px solid #4b6278!important;border-radius:12px!important;box-shadow:0 6px 14px #0004!important;}
  .gr-v100-ui .gr101-appbar-actions button {min-height:38px!important;min-width:0!important;font-size:12px!important;line-height:1.4!important;}
  .gr-v100-ui .gr101-pref-button {padding:5px 7px!important;white-space:normal!important;}
  .gr-v100-ui .gr101-head-button {color:#fff!important;background:#314b62!important;border:1px solid #617b92!important;border-radius:9px!important;}
  .gr-v100-ui .gr101-appbar-actions :is(button):focus-visible {outline:3px solid #f7c944!important;}
}
/* Tablets use accessible top controls, never behind a compressed sidebar. */
@media(min-width:571px) and (max-width:880px){
 .gr-v100-ui .gr101-appbar-actions {position:static!important;}
}
@media(max-width:570px){
  .gr-v100-ui .productpic {aspect-ratio:1 / 1!important;height:auto!important;}
  .gr-v100-ui .product .pname {font-size:12px!important;}
  .gr-v100-ui .product .catpill {font-size:9px!important;}
}

.gr-v100-ui .gr102-admin-product-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0 16px;}
.gr-v100-ui .gr102-admin-product-tabs .gr102-active{background:#f7c944!important;color:#182a40!important;border-color:#d6a929!important;}

/* ===== V101: SINGLE SHARED HEADER ===== */
/* Gailan Ramzi V101 · one global header on every signed-in page. */
/* A single compact header replaces the stacked brand, tools and title bars. */
.gr-v100-ui .gr101-unified-header {
  position:sticky;top:0;z-index:14;
  display:flex;align-items:center;gap:12px;flex-wrap:nowrap;
  width:100%;min-width:0;margin:0 0 14px;padding:9px 13px;
  border:1px solid #445d73;border-inline-start:3px solid #f7c944;
  border-radius:12px;background:#152534;color:#f7fafc;
  box-shadow:0 6px 18px #101a2930;
}
.gr-v100-ui .gr101-uh-identity {display:flex;align-items:center;gap:10px;flex:0 0 auto;min-width:135px;max-width:210px;}
.gr-v100-ui .gr101-uh-logo {width:38px;height:38px;flex:0 0 38px;display:grid;place-items:center;overflow:hidden;background:#f7c944;border-radius:9px;color:#142331;font-weight:950;}
.gr-v100-ui .gr101-uh-logo img {width:100%;height:100%;object-fit:contain;}
.gr-v100-ui .gr101-uh-identity-text {min-width:0;}
.gr-v100-ui .gr101-uh-identity-text small {font-size:10px;color:#c2d1df;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.gr-v100-ui .gr101-uh-identity-text h1 {font-size:clamp(14px,1.2vw,19px);font-weight:900;line-height:1.45;color:#fff!important;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.gr-v100-ui .gr101-uh-controls {display:flex;align-items:center;flex:1 1 auto;min-width:0;gap:7px;justify-content:flex-start;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;padding-block:2px;}
.gr-v100-ui .gr101-uh-controls>* {flex:0 0 auto;}
.gr-v100-ui .gr101-uh-controls :where(select,button) {min-height:34px!important;border:1px solid #648096!important;border-radius:8px!important;font-size:11px!important;}
.gr-v100-ui .gr101-uh-controls select {background:#253e53!important;color:#fff!important;padding:5px 7px!important;max-width:145px;}
.gr-v100-ui .gr101-uh-controls select option {color:#142331;background:#fff;}
.gr-v100-ui .gr101-uh-language {display:flex;align-items:center;gap:4px;color:#f7fafc;}
.gr-v100-ui .gr101-uh-tier {display:flex;align-items:center;gap:5px;color:#d6e1ed;font-size:10px;white-space:nowrap;}
.gr-v100-ui .gr101-uh-tier select {max-width:155px;}
.gr-v100-ui .gr101-uh-rate {min-width:0!important;width:auto!important;display:flex!important;align-items:center;gap:5px;padding:6px 8px!important;background:#25384c!important;border:1px solid #566c80!important;border-radius:8px!important;white-space:nowrap;font-size:10px;color:#d1dfef;}
.gr-v100-ui .gr101-uh-rate span {font-weight:800;color:#d3e1ee;}
.gr-v100-ui .gr101-uh-rate b {color:#f7c944!important;font-size:11px;}
.gr-v100-ui .gr101-uh-time {font-size:9px;color:#b9cbdb;}
.gr-v100-ui .gr101-uh-user {max-width:160px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#d8e2eb;font-size:11px;}
.gr-v100-ui :where(.gr101-uh-categories,.gr101-uh-logout) {background:#f7c944!important;color:#172432!important;padding:7px 10px;cursor:pointer;font-weight:800;white-space:nowrap;}
.gr-v100-ui .gr101-uh-logout {background:#314b61!important;color:#fff!important;}
/* Existing theme/currency/notification actions stay fixed at sidebar foot on desktop.
   They remain inside the same header element in the DOM for keyboard access. */
@media (min-width:881px) {
  .gr-v100-ui .gr101-unified-header .gr101-appbar-actions {position:fixed!important;}
}
@media (max-width:880px) {
  .gr-v100-ui .gr101-unified-header {gap:7px;padding:7px 8px;}
  .gr-v100-ui .gr101-uh-identity {min-width:100px;max-width:140px;gap:6px;}
  .gr-v100-ui .gr101-uh-logo {width:31px;height:31px;flex-basis:31px;}
  .gr-v100-ui .gr101-uh-identity-text small {display:none;}
  .gr-v100-ui .gr101-uh-identity-text h1 {font-size:12px;}
  .gr-v100-ui .gr101-unified-header .gr101-appbar-actions {position:static!important;display:flex!important;gap:4px!important;padding:0!important;width:auto!important;}
  .gr-v100-ui .gr101-unified-header .gr101-appbar-actions :where(button) {min-height:32px!important;min-width:30px!important;padding:5px!important;}
  .gr-v100-ui .gr101-uh-tier span {display:none;}
  .gr-v100-ui .gr101-uh-time {display:none;}
}
@media (max-width:570px) {
  .gr-v100-ui .gr101-unified-header {margin-bottom:10px;}
  .gr-v100-ui .gr101-uh-identity {min-width:74px;max-width:105px;}
  .gr-v100-ui .gr101-uh-logo {display:none;}
  .gr-v100-ui .gr101-uh-controls {gap:5px;}
  .gr-v100-ui .gr101-uh-user {display:none;}
  .gr-v100-ui .gr101-uh-controls select {max-width:95px;}
  .gr-v100-ui .gr101-uh-rate {padding:5px!important;}
  .gr-v100-ui .gr101-uh-rate b {font-size:9px;}
  .gr-v100-ui .gr101-unified-header .gr101-appbar-actions .gr101-pref-button span {display:none!important;}
  .gr-v100-ui .gr101-unified-header .gr101-appbar-actions :where(button) {font-size:11px!important;}
}
@media print { .gr-v100-ui .gr101-unified-header {display:none!important;} }
/* Narrow screens: keep utility icons on one line instead of a tall stack. */
@media (max-width:880px) {
 .gr-v100-ui .gr101-unified-header .gr101-appbar-actions {
   display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;
   flex:0 0 auto!important;gap:3px!important;max-width:none!important;
   align-items:center!important;justify-content:center!important;
 }
 .gr-v100-ui .gr101-unified-header .gr101-appbar-actions :where(button) {
   height:32px!important;width:31px!important;min-width:31px!important;
   padding:3px!important;font-size:12px!important;white-space:nowrap!important;
 }
 .gr-v100-ui .gr101-unified-header .gr101-appbar-actions #gr101-currency {
   width:41px!important;min-width:41px!important;font-size:10px!important;
 }
 .gr-v100-ui .gr101-unified-header .gr101-uh-controls {flex:1 1 70px!important;}
}

/* V101: readable order, customer and prepared-package summaries in BOTH themes.
   Keep these changes in the existing stylesheet, not additional patch files. */
:root[data-gr-theme='light'] .gr-v100-ui :is(.status-choice:not(.selected),.package-card,.customer-card,.stat) {
  background:#ffffff!important;color:#18293b!important;border-color:#c6d2df!important;
}
:root[data-gr-theme='dark'] .gr-v100-ui :is(.status-choice:not(.selected),.package-card,.customer-card,.stat) {
  background:#1e2d40!important;color:#f4f7fc!important;border-color:#52677e!important;
}
:root[data-gr-theme='light'] .gr-v100-ui :is(.status-choice:not(.selected),.package-card,.customer-card,.stat) :is(strong,b,h2,h3,h4,p,span,small) {
  color:#203249!important;opacity:1!important;
}
:root[data-gr-theme='dark'] .gr-v100-ui :is(.status-choice:not(.selected),.package-card,.customer-card,.stat) :is(strong,b,h2,h3,h4,p,span,small) {
  color:#edf4ff!important;opacity:1!important;
}
:root[data-gr-theme='light'] .gr-v100-ui .status-choice.selected {
  background:#183149!important;color:#ffffff!important;border-color:#cfac47!important;
}
:root[data-gr-theme='dark'] .gr-v100-ui .status-choice.selected {
  background:#263d55!important;color:#ffffff!important;border-color:#f7c944!important;
}
.gr-v100-ui .status-choice.selected :is(strong,b,span,small) {color:#ffffff!important;opacity:1!important;}
:root[data-gr-theme='light'] .gr-v100-ui .package-card :is(.notice,.good) {
  background:#f1f5f9!important;color:#203249!important;border:1px solid #c6d2df!important;
}
:root[data-gr-theme='dark'] .gr-v100-ui .package-card :is(.notice,.good) {
  background:#273c51!important;color:#f4f8ff!important;border:1px solid #62788e!important;
}
.gr-v100-ui .package-card :is(.notice,.good) :is(b,strong,span,small) {color:inherit!important;opacity:1!important;}
:root[data-gr-theme='light'] .gr-v100-ui .customer-card small {color:#475c70!important;}
:root[data-gr-theme='dark'] .gr-v100-ui .customer-card small {color:#d1ddeb!important;}

/* V101: independently hosted administration and customer surfaces. */
.gr101-admin-home{display:grid;gap:16px;max-width:1540px;margin-inline:auto}
.gr101-admin-banner{padding:clamp(18px,3vw,32px);min-height:190px;border-radius:20px;color:#fff;background:linear-gradient(118deg,#052637,#102d3e 65%,#182b3c);border:1px solid #dbab28;display:flex;align-items:center;justify-content:space-between;gap:20px;overflow:hidden;position:relative}
.gr101-admin-banner h2{margin:7px 0 9px;color:#ffcf43;font-size:clamp(21px,2.4vw,32px);line-height:1.4}
.gr101-admin-banner p{max-width:720px;color:#ecf2f7;margin:0}
.gr101-admin-banner small{color:#ffdd83;font-weight:800}
.gr101-admin-banner-mark{font:900 clamp(60px,9vw,130px)/1 Arial;color:#ffce3b;letter-spacing:-.12em;padding-inline-end:20px;opacity:.9}
.gr101-admin-stats{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}
.gr101-admin-metric{background:#fff;color:#1b2837;border:1px solid #dfe5ed;border-radius:16px;padding:15px;display:grid;align-content:center;gap:6px;min-height:130px;box-shadow:0 4px 16px #0b20300f}
.gr101-admin-metric-icon{font-size:24px}.gr101-admin-metric>span:not(.gr101-admin-metric-icon){font-size:12px;color:#50657a;font-weight:750}.gr101-admin-metric strong{font-size:clamp(21px,2vw,32px);font-variant-numeric:tabular-nums;color:#172b3c}
.gr101-admin-columns{display:grid;grid-template-columns:1fr 1.25fr;gap:16px;align-items:start}
.gr101-admin-panel{background:#fff;color:#1c2a3b;border-radius:18px;border:1px solid #dce4eb;padding:17px;min-width:0;box-shadow:0 4px 14px #0b20300f}
.gr101-admin-panel h3{margin:0 0 14px;color:#14283a;font-size:18px}.gr101-admin-panel-head{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap}
.gr101-admin-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.gr101-admin-actions button{display:grid;gap:8px;align-content:center;justify-items:center;min-height:106px;border:1px solid #dfe4eb;background:#f5f7fa;border-radius:14px;color:#253449;padding:10px;line-height:1.5}
.gr101-admin-actions button:hover,.gr101-admin-actions button:focus-visible{background:#fff3c9;border-color:#e8b52a}
.gr101-admin-actions span{font-size:26px}.gr101-admin-actions strong{font-size:12px}
.gr101-admin-panel .table th{color:#263849;background:#eef2f7}.gr101-admin-panel .table td{color:#1f2f40}
.gr101-admin-disclaimer{font-size:12px;color:#718096;margin:0}
/* Keep dark cards and their typography legible. */
[data-gr-theme="dark"] .gr101-admin-metric,[data-gr-theme="dark"] .gr101-admin-panel{background:#17293b;color:#f5f8fd;border-color:#385168}
[data-gr-theme="dark"] .gr101-admin-panel h3,[data-gr-theme="dark"] .gr101-admin-metric strong,[data-gr-theme="dark"] .gr101-admin-panel .table td{color:#f4f7ff}
[data-gr-theme="dark"] .gr101-admin-metric>span:not(.gr101-admin-metric-icon){color:#d0deea}
[data-gr-theme="dark"] .gr101-admin-actions button{background:#23374b;color:#f5f8ff;border-color:#3b5165}
[data-gr-theme="dark"] .gr101-admin-panel .table th{background:#2b3c50;color:#f4f8ff}
[data-gr-theme="dark"] .gr101-admin-disclaimer{color:#c2cfdb}
@media(max-width:1100px){.gr101-admin-stats{grid-template-columns:repeat(3,1fr)}.gr101-admin-columns{grid-template-columns:1fr}}
@media(max-width:640px){.gr101-admin-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.gr101-admin-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.gr101-admin-banner-mark{display:none}.gr101-admin-metric{min-height:105px}}

/* Dedicated admin site: wider menu, clean contrast, one coherent design. */
.gr101-admin-site .sidebar{width:282px;background:#06192a!important;border-inline-end:1px solid #d2a02d;padding:16px 10px}
.gr101-admin-site .sidebar .brand{padding:12px 10px 20px}
.gr101-admin-site .sidebar .navbtn{min-height:45px;margin:2px 0;border-bottom:1px solid #ffffff13;border-radius:10px;font-size:13px;gap:13px;color:#e4ecf7}
.gr101-admin-site .sidebar .navbtn .ico{font-size:20px;color:#ffda68}
.gr101-admin-site .sidebar .navbtn.sel{background:#ffd044;color:#091b2a}
.gr101-admin-site .sidebar .navbtn.sel .ico{color:#091b2a}
.gr101-admin-site .main{max-width:none;width:100%;padding:16px clamp(10px,1.6vw,24px) 38px}
.gr101-customer-site .sidebar{border-inline-start:1px solid #ffcd45}
/* Proper readable status cards on both themes, including selected labels. */
:root[data-gr-theme='light'] .gr-v100-ui .status-choice:not(.selected){background:#fff!important;border:1px solid #c6d4e3!important;color:#16283c!important}
:root[data-gr-theme='light'] .gr-v100-ui .status-choice:not(.selected) :is(strong,span,b){color:#17293c!important;opacity:1!important}
:root[data-gr-theme='dark'] .gr-v100-ui .status-choice:not(.selected){background:#1c2b3c!important;border:1px solid #6a8199!important;color:#f1f6ff!important}
:root[data-gr-theme='dark'] .gr-v100-ui .status-choice:not(.selected) :is(strong,span,b){color:#f1f6ff!important;opacity:1!important}
.gr-v100-ui .status-choice.selected{background:#233950!important;border-color:#ffca35!important;color:#fff!important}
.gr-v100-ui .status-choice.selected :is(strong,span,b){color:#ffe08e!important;opacity:1!important}
:root[data-gr-theme='light'] .gr-v100-ui .package-card :is(small,p,.muted){color:#3a4e63!important;opacity:1!important}
:root[data-gr-theme='dark'] .gr-v100-ui .package-card :is(small,p,.muted){color:#e4edf7!important;opacity:1!important}
@media(max-width:900px){.gr101-admin-site .sidebar{width:auto}}

/* Admin dashboard reports: data-backed order count trend and status mix. */
.gr101-admin-visuals{display:grid;grid-template-columns:1.1fr 1fr;gap:16px}
.gr101-admin-chart{min-height:158px;display:grid;gap:5px;align-content:center}
.gr101-admin-chart svg{display:block;width:100%;height:auto;max-height:160px;overflow:visible}
.gr101-admin-chart-labels{display:flex;justify-content:space-between;color:#4b6176;font-size:12px;gap:8px}
.gr101-admin-chart-labels strong{color:#9a6a09}
.gr101-admin-donut-wrap{display:flex;align-items:center;justify-content:center;gap:22px;min-height:180px}
.gr101-admin-donut{width:160px;max-width:46%;aspect-ratio:1;border-radius:50%;display:grid;place-items:center;flex-shrink:0}
.gr101-admin-donut>div{border-radius:50%;background:#fff;width:65%;height:65%;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:0;color:#1e3042}
.gr101-admin-donut strong{font-size:26px}.gr101-admin-donut small{font-size:11px}
.gr101-admin-legend{display:grid;gap:6px;flex:1}.gr101-admin-legend>div{display:flex;align-items:center;gap:8px;font-size:12px;color:#304154}.gr101-admin-legend>div>span{width:10px;height:10px;border-radius:50%}.gr101-admin-legend b{margin-inline-start:auto}
[data-gr-theme="dark"] .gr101-admin-donut>div{background:#1b2c3c;color:#fff}
[data-gr-theme="dark"] .gr101-admin-chart-labels,[data-gr-theme="dark"] .gr101-admin-legend>div{color:#e1eaf3}
[data-gr-theme="dark"] .gr101-admin-chart-labels strong{color:#ffe098}
@media(max-width:1100px){.gr101-admin-visuals{grid-template-columns:1fr}}
@media(max-width:600px){.gr101-admin-donut{width:136px}}
