/* Gentelle Admin v2.9.2A — layout gap + functional-safe reference redesign
   This is a presentation layer only. It does not intercept admin actions or replace data logic. */
:root{
  --gt-navy:#062b5c;--gt-navy-2:#0b376f;--gt-gold:#c98a00;
  --gt-bg:#f5f7fa;--gt-panel:#fff;--gt-line:#e3e8ef;--gt-line-2:#d6dde7;
  --gt-text:#10294f;--gt-muted:#6f7f93;--gt-green:#138a4b;--gt-green-bg:#eaf8f0;
  --gt-red:#c54141;--gt-red-bg:#fff0f0;--gt-amber:#b87800;--gt-amber-bg:#fff6df;
  --gt-blue:#2469bd;--gt-blue-bg:#eaf3ff;--gt-radius:8px;--gt-shadow:0 1px 2px rgba(16,41,79,.04);
  --gt-sidebar:192px;--gt-topbar:58px;--gt-font:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
}
html,body{margin:0!important;background:var(--gt-bg)!important;color:var(--gt-text)!important;font-family:var(--gt-font)!important;}
body.gt-admin-reference-v292a{min-height:100vh;overflow-x:hidden!important;}
body.gt-admin-reference-v292a *{box-sizing:border-box;}
body.gt-admin-reference-v292a a{color:inherit;}

/* IMPORTANT: close the empty desktop rail created when the original app kept a 240px grid track
   while v2.9.2 visually shrank the sidebar to 192px. */
body.gt-admin-reference-v292a .gt-ref-layout-root{min-width:0!important;gap:0!important;column-gap:0!important;}
body.gt-admin-reference-v292a .gt-ref-layout-grid{grid-template-columns:var(--gt-sidebar) minmax(0,1fr)!important;}
body.gt-admin-reference-v292a .gt-ref-layout-flex{display:flex!important;align-items:stretch!important;gap:0!important;}
body.gt-admin-reference-v292a .gt-ref-layout-flex>.gt-ref-sidebar{flex:0 0 var(--gt-sidebar)!important;}
body.gt-admin-reference-v292a .gt-ref-workspace{min-width:0!important;width:auto!important;max-width:none!important;margin:0!important;padding:0!important;}
body.gt-admin-reference-v292a .gt-ref-sidebar{width:100%!important;min-width:0!important;max-width:none!important;margin:0!important;}
body.gt-admin-reference-v292a .gt-ref-main{min-width:0!important;width:100%!important;max-width:none!important;margin:0!important;padding-left:0!important;}
body.gt-admin-reference-v292a .gt-ref-page-shell{width:100%!important;max-width:none!important;margin:0!important;padding:20px 24px 28px!important;}

body.gt-admin-reference-v292a .gt-ref-topbar,
body.gt-admin-reference-v292a header.gt-ref-topbar{
  min-height:var(--gt-topbar)!important;background:linear-gradient(90deg,#062b5c 0%,#052451 100%)!important;
  color:#fff!important;border:0!important;box-shadow:none!important;position:sticky!important;top:0!important;z-index:1100!important;
  margin:0!important;width:100%!important;max-width:none!important;
}
body.gt-admin-reference-v292a .gt-ref-topbar input,
body.gt-admin-reference-v292a .gt-ref-topbar input[type="search"]{
  height:36px!important;min-width:320px!important;max-width:520px!important;background:#0b376f!important;
  border:1px solid rgba(255,255,255,.18)!important;color:#fff!important;border-radius:6px!important;padding:0 12px!important;box-shadow:none!important;
}
body.gt-admin-reference-v292a .gt-ref-topbar input::placeholder{color:rgba(255,255,255,.72)!important;}

body.gt-admin-reference-v292a .gt-ref-sidebar{
  background:#fff!important;border-right:1px solid var(--gt-line)!important;color:var(--gt-text)!important;box-shadow:none!important;
}
body.gt-admin-reference-v292a .gt-ref-sidebar a,
body.gt-admin-reference-v292a .gt-ref-sidebar button{
  pointer-events:auto!important;color:#38485e!important;border-radius:5px!important;font-weight:500!important;
  transition:background .12s ease,color .12s ease!important;
}
body.gt-admin-reference-v292a .gt-ref-sidebar a:hover,
body.gt-admin-reference-v292a .gt-ref-sidebar button:hover{background:#f3f6fa!important;color:var(--gt-navy)!important;}
body.gt-admin-reference-v292a .gt-ref-sidebar .active,
body.gt-admin-reference-v292a .gt-ref-sidebar [aria-current="page"],
body.gt-admin-reference-v292a .gt-ref-sidebar [data-active="true"]{background:var(--gt-navy)!important;color:#fff!important;box-shadow:none!important;}

body.gt-admin-reference-v292a h1,body.gt-admin-reference-v292a h2,body.gt-admin-reference-v292a h3,
body.gt-admin-reference-v292a h4,body.gt-admin-reference-v292a h5{color:var(--gt-text)!important;letter-spacing:-.015em;}
body.gt-admin-reference-v292a h1{font-size:22px!important;font-weight:700!important;}
body.gt-admin-reference-v292a h2{font-size:17px!important;font-weight:700!important;}
body.gt-admin-reference-v292a p,body.gt-admin-reference-v292a small{color:var(--gt-muted);}

body.gt-admin-reference-v292a .gt-ref-card{
  background:#fff!important;border:1px solid var(--gt-line)!important;border-radius:var(--gt-radius)!important;box-shadow:var(--gt-shadow)!important;
}
body.gt-admin-reference-v292a .gt-ref-kpi{min-height:104px!important;padding:16px!important;border-radius:8px!important;}
body.gt-admin-reference-v292a .gt-ref-kpi .value,
body.gt-admin-reference-v292a .gt-ref-kpi [class*="value"]{font-weight:700!important;color:var(--gt-text)!important;}

/* undo v2.9.2 false status detection that could turn KPI cards such as Active Products into a giant pill */
body.gt-admin-reference-v292a .gt-ref-chip.gt-ref-status-invalid{display:initial!important;min-height:0!important;padding:0!important;border-radius:inherit!important;background:inherit!important;border-color:inherit!important;color:inherit!important;font-size:inherit!important;font-weight:inherit!important;}
body.gt-admin-reference-v292a .gt-ref-chip:not(.gt-ref-status-valid){background:inherit!important;color:inherit!important;border-color:inherit!important;border-radius:inherit!important;padding:inherit!important;min-height:inherit!important;font-size:inherit!important;font-weight:inherit!important;}
body.gt-admin-reference-v292a .gt-ref-status-valid{display:inline-flex!important;align-items:center!important;min-height:20px!important;padding:2px 8px!important;border-radius:999px!important;font-size:11px!important;font-weight:600!important;border:1px solid transparent!important;width:auto!important;max-width:max-content!important;}
body.gt-admin-reference-v292a .gt-status-green.gt-ref-status-valid{color:var(--gt-green)!important;background:var(--gt-green-bg)!important;border-color:#cdebd9!important;}
body.gt-admin-reference-v292a .gt-status-red.gt-ref-status-valid{color:var(--gt-red)!important;background:var(--gt-red-bg)!important;border-color:#f4cccc!important;}
body.gt-admin-reference-v292a .gt-status-amber.gt-ref-status-valid{color:var(--gt-amber)!important;background:var(--gt-amber-bg)!important;border-color:#f0dfb7!important;}
body.gt-admin-reference-v292a .gt-status-blue.gt-ref-status-valid{color:var(--gt-blue)!important;background:var(--gt-blue-bg)!important;border-color:#d7e7fb!important;}

body.gt-admin-reference-v292a table,body.gt-admin-reference-v292a .gt-ref-table{width:100%!important;background:#fff!important;border-collapse:separate!important;border-spacing:0!important;}
body.gt-admin-reference-v292a table thead th{background:#fbfcfe!important;color:#596a7f!important;font-size:12px!important;font-weight:600!important;border-bottom:1px solid var(--gt-line)!important;padding:11px 12px!important;white-space:nowrap!important;}
body.gt-admin-reference-v292a table tbody td{color:#30445f!important;font-size:12px!important;border-bottom:1px solid #edf0f4!important;padding:11px 12px!important;vertical-align:middle!important;}
body.gt-admin-reference-v292a table tbody tr:hover{background:#fafcff!important;}
body.gt-admin-reference-v292a .gt-ref-table-wrap{border:1px solid var(--gt-line)!important;border-radius:var(--gt-radius)!important;background:#fff!important;overflow:auto!important;max-width:100%!important;}

body.gt-admin-reference-v292a input,body.gt-admin-reference-v292a select,body.gt-admin-reference-v292a textarea{border:1px solid var(--gt-line-2)!important;border-radius:5px!important;background:#fff!important;color:#273a54!important;box-shadow:none!important;font-family:var(--gt-font)!important;}
body.gt-admin-reference-v292a input:focus,body.gt-admin-reference-v292a select:focus,body.gt-admin-reference-v292a textarea:focus{outline:0!important;border-color:#7fa1cd!important;box-shadow:0 0 0 2px rgba(36,105,189,.10)!important;}
body.gt-admin-reference-v292a button,body.gt-admin-reference-v292a .btn,body.gt-admin-reference-v292a [role="button"]{pointer-events:auto!important;border-radius:5px!important;box-shadow:none!important;font-family:var(--gt-font)!important;font-weight:600!important;}
body.gt-admin-reference-v292a .btn-primary,body.gt-admin-reference-v292a .primary,body.gt-admin-reference-v292a button[data-variant="primary"]{background:var(--gt-navy)!important;border-color:var(--gt-navy)!important;color:#fff!important;}

body.gt-admin-reference-v292a .gt-ref-tabs{border-bottom:1px solid var(--gt-line)!important;}
body.gt-admin-reference-v292a .gt-ref-tabs button,body.gt-admin-reference-v292a .gt-ref-tabs a{background:transparent!important;border:0!important;border-bottom:2px solid transparent!important;color:#58697f!important;border-radius:0!important;}
body.gt-admin-reference-v292a .gt-ref-tabs .active,body.gt-admin-reference-v292a .gt-ref-tabs [aria-selected="true"]{color:var(--gt-text)!important;border-bottom-color:var(--gt-gold)!important;}
body.gt-admin-reference-v292a .gt-ref-drawer{background:#fff!important;border-left:1px solid var(--gt-line)!important;box-shadow:-8px 0 24px rgba(16,41,79,.07)!important;pointer-events:auto!important;}
body.gt-admin-reference-v292a .gt-ref-route-products .gt-ref-drawer{max-width:430px!important;}
body.gt-admin-reference-v292a .gt-ref-route-orders .gt-ref-drawer{max-width:520px!important;}
body.gt-admin-reference-v292a .gt-ref-toolbar{background:#fff!important;border:1px solid var(--gt-line)!important;border-radius:var(--gt-radius)!important;padding:10px!important;}

/* Do not invent a separate mobile navigation. Keep the real Admin's own drawer/collapse behaviour functional. */
@media (max-width:980px){
  :root{--gt-sidebar:192px;}
  body.gt-admin-reference-v292a .gt-ref-layout-grid{grid-template-columns:minmax(0,1fr)!important;}
  body.gt-admin-reference-v292a .gt-ref-layout-flex{display:block!important;}
  body.gt-admin-reference-v292a .gt-ref-sidebar{width:auto!important;max-width:none!important;}
  body.gt-admin-reference-v292a .gt-ref-page-shell{padding:14px!important;}
  body.gt-admin-reference-v292a .gt-ref-topbar input{min-width:0!important;width:min(52vw,420px)!important;}
}
@media (max-width:700px){
  body.gt-admin-reference-v292a .gt-ref-page-shell{padding:10px!important;}
  body.gt-admin-reference-v292a .gt-ref-topbar input{width:42vw!important;}
  body.gt-admin-reference-v292a table{min-width:680px!important;}
  body.gt-admin-reference-v292a .gt-ref-drawer{width:min(94vw,520px)!important;max-width:94vw!important;}
}
