/*
 * BersolekMart Backend UI Foundation
 * UI-only overlay: does not alter business logic.
 */
.panel-shell {
  --backend-bg:#f4f7f5;
  --backend-surface:#ffffff;
  --backend-surface-2:#f8faf9;
  --backend-line:#dfe7e2;
  --backend-line-strong:#ccd9d1;
  --backend-ink:#13253a;
  --backend-muted:#6c7b8c;
  --backend-green:#0f9f66;
  --backend-green-soft:#eaf8f1;
  --backend-navy:#0b1728;
  --backend-danger:#c93f4d;
  --backend-warning:#a46f18;
  --backend-info:#4778b7;
  color:var(--backend-ink);
  background:var(--backend-bg);
  font-size:14px;
}
.panel-shell .panel-sidebar{font-size:13px}
.panel-shell .panel-label{font-size:10px;margin:10px 8px 7px}
.panel-shell .panel-group-title{font-size:9px;margin:17px 9px 7px}
.panel-shell .panel-link{font-size:12px;line-height:1.25;padding:9px 11px;border-radius:10px;min-height:38px}
.panel-shell .panel-user{padding:11px;margin-bottom:17px}
.panel-shell .panel-user b{font-size:12px}
.panel-shell .panel-user small{font-size:9px}
.panel-shell .panel-brand strong{font-size:16px}
.panel-shell .panel-brand small{font-size:9px}
.panel-shell .panel-topbar{height:74px;padding:0 24px}
.panel-shell .crumbs span{font-size:9px}
.panel-shell .crumbs b{font-size:21px}
.panel-shell .panel-top-actions{font-size:12px;gap:12px}
.panel-shell .user-chip b{font-size:12px}
.panel-shell .user-chip small{font-size:9px}
.panel-shell .panel-content{padding:24px;max-width:1680px}

/* Page header / actions */
.panel-shell .workspace-hero,
.panel-shell .bannerop{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:22px;
  padding:22px 24px;
  margin-bottom:16px;
  background:linear-gradient(135deg,#ecf9f2 0%,#ffffff 72%);
  border:1px solid #d7e9de;
  border-radius:18px;
  box-shadow:0 8px 24px rgba(16,35,59,.035);
}
.panel-shell .workspace-hero h1,
.panel-shell .bannerop h1{font-size:28px;line-height:1.15;letter-spacing:-.03em;margin:6px 0 6px}
.panel-shell .workspace-hero p,
.panel-shell .bannerop p{font-size:12px;color:var(--backend-muted);margin:0;max-width:900px}
.panel-shell .hero-actions,
.panel-shell .head-actions,
.panel-shell .panel-top-actions,
.panel-shell .actionbar,
.panel-shell .quick-actions,
.panel-shell .form-actions{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}
.panel-shell .actionbar{justify-content:space-between;margin-bottom:14px}
.panel-shell .hero-actions{justify-content:flex-end;min-width:max-content}

/* Buttons */
.panel-shell .btn{min-height:40px;padding:9px 14px;font-size:13px;border-radius:10px;white-space:nowrap}
.panel-shell .btn-sm{min-height:34px;padding:7px 11px;font-size:12px}
.panel-shell .btn-primary,
.panel-shell .btn.primary{background:var(--backend-green);border-color:var(--backend-green);color:#fff;box-shadow:0 6px 15px rgba(15,159,102,.15)}
.panel-shell .btn-light,
.panel-shell .btn-outline{background:#fff;border-color:var(--backend-line-strong);color:var(--backend-ink);box-shadow:none}
.panel-shell .btn-danger{background:var(--backend-danger);color:#fff}
.panel-shell .btn:hover{transform:translateY(-1px)}
.panel-shell .icon-btn{width:38px;height:38px;border-radius:10px}

/* Surfaces / cards */
.panel-shell .panelcard,
.panel-shell .dashboard-panel,
.panel-shell .map-panel,
.panel-shell .stats-panel{
  background:var(--backend-surface);
  border:1px solid var(--backend-line);
  border-radius:16px;
  box-shadow:0 6px 22px rgba(16,35,59,.035);
}
.panel-shell .panelcard{padding:20px}
.panel-shell .subtle-toolbar,
.panel-shell .section-head,
.panel-shell .panel-heading{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:14px;
  margin-bottom:14px;
}
.panel-shell .subtle-toolbar h2,
.panel-shell .section-head h2,
.panel-shell .panel-heading h2{font-size:19px;line-height:1.2;letter-spacing:-.02em;margin:3px 0 4px}
.panel-shell .panel-subline,
.panel-shell .panel-heading p,
.panel-shell .section-head p{font-size:12px;color:var(--backend-muted);margin:0}
.panel-shell .eyebrow{font-size:10px;letter-spacing:.13em}
.panel-shell .filter-chip,
.panel-shell .tag,
.panel-shell .pill{
  display:inline-flex;
  align-items:center;
  gap:5px;
  min-height:28px;
  padding:5px 9px;
  border-radius:999px;
  background:#eef3f5;
  color:#5d7084;
  border:1px solid #e1e8eb;
  font-size:10px;
  font-weight:800;
}

/* Stats */
.panel-shell .admin-stat-row,
.panel-shell .kpi-grid,
.panel-shell .kpis,
.panel-shell .kpis.four{
  display:grid;
  gap:12px;
}
.panel-shell .admin-stat-row{grid-template-columns:repeat(4,minmax(0,1fr));margin:12px 0 16px}
.panel-shell .kpi-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.panel-shell .kpis{grid-template-columns:repeat(3,minmax(0,1fr));margin:12px 0}
.panel-shell .kpis.four{grid-template-columns:repeat(4,minmax(0,1fr))}
.panel-shell .mini-stat,
.panel-shell .kpi-card,
.panel-shell .kpis>div{
  background:#fff;
  border:1px solid var(--backend-line);
  border-radius:14px;
  padding:15px 16px;
  box-shadow:0 4px 14px rgba(16,35,59,.03)
}
.panel-shell .mini-stat span,
.panel-shell .kpi-card small,
.panel-shell .kpis span,
.panel-shell .kpis small{font-size:11px;color:#788797}
.panel-shell .mini-stat b,
.panel-shell .kpi-card b,
.panel-shell .kpis b{font-size:25px;line-height:1.1;margin-top:6px;display:block}
.panel-shell .mini-stat small{font-size:10px;color:#7d8b99}
.panel-shell .kpi-card em{font-size:10px}

/* Tables */
.panel-shell .table-shell,
.panel-shell .table-scroll,
.panel-shell .data-table-shell{width:100%;max-width:100%;overflow:auto;border:1px solid var(--backend-line);border-radius:13px;background:#fff}
.panel-shell table{border-collapse:separate;border-spacing:0}
.panel-shell .admin-data-table,
.panel-shell .modern-table{width:100%;min-width:920px;border-collapse:separate;border-spacing:0}
.panel-shell .admin-data-table th,
.panel-shell .modern-table th{
  position:sticky;top:0;z-index:2;
  background:#f6f9f7;
  color:#5e7082;
  border-bottom:1px solid var(--backend-line-strong);
  text-transform:uppercase;
  letter-spacing:.055em;
  font-size:10px;
  font-weight:900;
  white-space:nowrap;
}
.panel-shell .admin-data-table th,
.panel-shell .admin-data-table td,
.panel-shell .modern-table th,
.panel-shell .modern-table td{
  padding:12px 13px;
  vertical-align:middle;
  text-align:left;
  border-bottom:1px solid #edf1ee;
  font-size:12px;
  line-height:1.4;
}
.panel-shell .admin-data-table td,
.panel-shell .modern-table td{color:#24374b;white-space:normal}
.panel-shell .admin-data-table tbody tr:hover,
.panel-shell .modern-table tbody tr:hover{background:#fbfdfc}
.panel-shell .admin-data-table tbody tr:last-child td,
.panel-shell .modern-table tbody tr:last-child td{border-bottom:0}
.panel-shell .admin-data-table td small,
.panel-shell .modern-table td small{display:block;color:#8794a2;font-size:10px;margin-top:3px}
.panel-shell .user-table .entity{display:flex;align-items:center;gap:9px;min-width:190px}
.panel-shell .user-table .entity b{font-size:12px}
.panel-shell .user-table .entity small{margin-top:2px}
.panel-shell .avatar-circle{width:34px;height:34px;min-width:34px;font-size:12px}

/* Status / action controls */
.panel-shell .status{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:28px;padding:5px 9px;border-radius:999px;font-size:10px;font-weight:800;background:#edf2f5;color:#607287}
.panel-shell .status.good{background:#e8f8ef;color:#0f8052}
.panel-shell .status.warn{background:#fff4dd;color:#9a6a16}
.panel-shell .status.info{background:#e9f1ff;color:#4775bd}
.panel-shell .status.bad{background:#fff0f1;color:#b53745}
.panel-shell .status.muted{background:#f0f2f3;color:#778492}
.panel-shell .status-chip{min-height:28px;padding:5px 9px;font-size:10px}
.panel-shell .row-actions,
.panel-shell .inline-action{display:flex;align-items:center;gap:7px;flex-wrap:nowrap}
.panel-shell .row-actions{min-width:max-content}
.panel-shell .row-actions form{margin:0}
.panel-shell .table-btn,
.panel-shell .table-action-muted{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:34px;
  padding:7px 10px;
  border:1px solid var(--backend-line-strong);
  border-radius:9px;
  background:#fff;
  color:#405368;
  font-size:11px;
  font-weight:800;
  white-space:nowrap;
}
.panel-shell .table-btn.primary{border-color:#b4dfc8;background:var(--backend-green-soft);color:#0b7650}
.panel-shell .table-btn.danger{border-color:#f0c2c8;background:#fff4f5;color:#ad3a48}
.panel-shell .table-action-muted{background:#f5f7f6;color:#8a96a3}
.panel-shell .inline-action select{min-width:140px}

/* Search / filter toolbars */
.panel-shell .toolbar-search{display:flex;align-items:center;gap:8px}
.panel-shell .toolbar-search input,
.panel-shell .toolbar-search select,
.panel-shell .toolbar-inline input,
.panel-shell .toolbar-inline select,
.panel-shell .period-select,
.panel-shell .inlineform input,
.panel-shell .inlineform select{
  height:40px;
  border:1px solid var(--backend-line-strong);
  border-radius:10px;
  padding:0 11px;
  background:#fff;
  color:var(--backend-ink);
  font-size:12px;
  outline:none;
}
.panel-shell .toolbar-search input{min-width:280px}
.panel-shell .toolbar-search input:focus,
.panel-shell .toolbar-search select:focus,
.panel-shell .toolbar-inline input:focus,
.panel-shell .toolbar-inline select:focus,
.panel-shell .period-select:focus,
.panel-shell .inlineform input:focus,
.panel-shell .inlineform select:focus,
.panel-shell .admin-form input:focus,
.panel-shell .admin-form select:focus,
.panel-shell .admin-form textarea:focus,
.panel-shell .field input:focus,
.panel-shell .field select:focus,
.panel-shell .field textarea:focus{border-color:#91cdae;box-shadow:0 0 0 3px #e9f8f0}

/* Forms */
.panel-shell .admin-split,
.panel-shell .splitpanels,
.panel-shell .form-page-grid,
.panel-shell .admin-split{
  display:grid;
  grid-template-columns:minmax(0,1.35fr) minmax(320px,.65fr);
  gap:14px;
  align-items:start;
  margin-bottom:14px;
}
.panel-shell .form-page-grid{grid-template-columns:minmax(0,1.2fr) 330px}
.panel-shell .admin-form{display:grid;gap:13px}
.panel-shell .form-grid-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.panel-shell .admin-form label,
.panel-shell .field label,
.panel-shell .compact-form label{display:grid;gap:6px;font-size:12px;font-weight:800;color:#34485d}
.panel-shell .admin-form input,
.panel-shell .admin-form select,
.panel-shell .admin-form textarea,
.panel-shell .field input,
.panel-shell .field select,
.panel-shell .field textarea{
  width:100%;
  min-height:42px;
  border:1px solid var(--backend-line-strong);
  border-radius:10px;
  padding:9px 11px;
  background:#fff;
  color:var(--backend-ink);
  font-size:13px;
  outline:none;
}
.panel-shell .admin-form textarea,
.panel-shell .field textarea{min-height:110px;resize:vertical}
.panel-shell .field-wide{grid-column:1/-1}
.panel-shell .admin-form small{font-size:10px;color:#7d8b99;font-weight:600}
.panel-shell .check-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.panel-shell .check-grid label{display:flex;align-items:center;gap:8px;border:1px solid var(--backend-line);border-radius:10px;padding:10px 11px;background:#fbfcfb;font-size:12px}
.panel-shell .check-grid input{accent-color:var(--backend-green)}
.panel-shell .form-help{position:sticky;top:92px}
.panel-shell .form-help h3{font-size:16px;margin:6px 0 8px}
.panel-shell .form-help ul{margin:0;padding-left:18px;color:#65758a;font-size:12px;line-height:1.7}

/* Roles / permissions */
.panel-shell .role-list{display:grid;gap:8px;margin-bottom:16px}
.panel-shell .role-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 13px;border:1px solid var(--backend-line);border-radius:11px;background:#fbfcfb}
.panel-shell .role-row b{display:block;font-size:13px}
.panel-shell .role-row small{display:block;color:#7f8e9d;font-size:10px;margin-top:3px}

/* Module switchboard */
.panel-shell .module-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.panel-shell .module-card{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:16px;border:1px solid var(--backend-line);border-radius:14px;background:#fff;box-shadow:0 4px 16px rgba(16,35,59,.025)}
.panel-shell .module-card h3{margin:5px 0 5px;font-size:16px}
.panel-shell .module-card code{font-size:10px;color:#81909d}
.panel-shell .module-group{display:inline-flex;font-size:9px;color:#0a7650;font-weight:900;letter-spacing:.08em;text-transform:uppercase}
.panel-shell .module-toggle{display:inline-flex;align-items:center;gap:7px;min-width:66px;justify-content:center;padding:8px 10px;border:1px solid var(--backend-line-strong);border-radius:999px;background:#fff;color:#7d8a96;font-weight:900;font-size:10px}
.panel-shell .module-toggle span{width:9px;height:9px;border-radius:50%;background:#98a4ad}
.panel-shell .module-toggle.on{background:var(--backend-green-soft);border-color:#abdac2;color:#0b7650}
.panel-shell .module-toggle.on span{background:var(--backend-green)}
.panel-shell .module-toggle.off{background:#f4f5f5;color:#7d8a96}

/* CMS banners / simple legacy screens */
.panel-shell .inlineform{display:grid;grid-template-columns:repeat(4,minmax(0,1fr)) auto;gap:8px;align-items:center;margin-bottom:16px}
.panel-shell .inlineform .btn{width:100%}
.panel-shell .bannerrow{display:grid;grid-template-columns:110px minmax(0,1fr) auto;gap:14px;align-items:center;padding:11px 0;border-top:1px solid #edf1ee}
.panel-shell .bannerrow img{width:110px;height:58px;object-fit:cover;border-radius:10px;border:1px solid var(--backend-line);background:#eef5f0}
.panel-shell .bannerrow b,.panel-shell .bannerrow span{display:block}
.panel-shell .bannerrow b{font-size:13px}
.panel-shell .bannerrow span{font-size:11px;color:#778797;margin-top:3px}
.panel-shell .line{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:11px 0;border-bottom:1px solid #edf1ee;font-size:12px}
.panel-shell .line small{display:block;color:#8795a2;font-size:10px;margin-top:2px}

/* Operator / delivery */
.panel-shell .dispatch-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(360px,.75fr);gap:14px;align-items:start}
.panel-shell .map-card{overflow:hidden}
.panel-shell .local-map,
.panel-shell .ops-map{position:relative;min-height:360px;border-radius:12px;overflow:hidden;background:#e7f1eb;border:1px solid #d4e3db}
.panel-shell .local-map img,
.panel-shell .ops-map img{width:100%;height:100%;object-fit:cover}
.panel-shell .map-legend{display:flex;flex-wrap:wrap;gap:14px;padding-top:10px;font-size:10px;color:#68798a}
.panel-shell .map-legend>span{display:inline-flex;align-items:center;gap:5px}
.panel-shell .dot{display:inline-block;width:9px;height:9px;border-radius:50%;box-shadow:0 0 0 3px rgba(255,255,255,.9)}
.panel-shell .dot.green{background:#19a96d}.panel-shell .dot.blue{background:#4d8cff}.panel-shell .dot.red{background:#ea5562}

/* Misc */
.panel-shell .flash{font-size:12px}
.panel-shell .empty-state{padding:32px 18px;align-items:center;text-align:center}
.panel-shell .empty-state b{font-size:14px}
.panel-shell .empty-state span{font-size:11px;color:#7b8998}
.panel-shell .panel-shell a{color:inherit}

@media (max-width:1200px){
  .panel-shell .module-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .panel-shell .admin-stat-row,.panel-shell .kpi-grid,.panel-shell .kpis.four{grid-template-columns:repeat(2,minmax(0,1fr))}
  .panel-shell .dispatch-grid{grid-template-columns:1fr}
  .panel-shell .admin-split,.panel-shell .splitpanels{grid-template-columns:1fr}
}
@media (max-width:900px){
  .panel-shell .panel-content{padding:18px}
  .panel-shell .workspace-hero{padding:18px}
  .panel-shell .workspace-hero,.panel-shell .bannerop{flex-direction:column}
  .panel-shell .hero-actions{width:100%;justify-content:flex-start}
  .panel-shell .toolbar-search{width:100%}
  .panel-shell .toolbar-search input{min-width:0;flex:1}
  .panel-shell .form-page-grid{grid-template-columns:1fr}
  .panel-shell .form-help{position:static}
  .panel-shell .check-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .panel-shell .inlineform{grid-template-columns:1fr 1fr}
  .panel-shell .inlineform .btn{width:auto}
}
@media (max-width:700px){
  .panel-shell .panel-content{padding:14px}
  .panel-shell .panel-topbar{height:62px;padding:0 14px}
  .panel-shell .crumbs b{font-size:17px}
  .panel-shell .panel-top-actions{gap:8px}
  .panel-shell .top-storefront-link{display:none}
  .panel-shell .admin-stat-row,.panel-shell .kpi-grid,.panel-shell .kpis,.panel-shell .kpis.four{grid-template-columns:1fr 1fr}
  .panel-shell .module-grid{grid-template-columns:1fr}
  .panel-shell .form-grid-2{grid-template-columns:1fr}
  .panel-shell .field-wide{grid-column:auto}
  .panel-shell .inlineform{grid-template-columns:1fr}
  .panel-shell .bannerrow{grid-template-columns:72px minmax(0,1fr)}
  .panel-shell .bannerrow img{width:72px;height:46px}
  .panel-shell .bannerrow .tag{grid-column:2}
  .panel-shell .workspace-hero h1{font-size:24px}
  .panel-shell .admin-form input,.panel-shell .admin-form select,.panel-shell .admin-form textarea,.panel-shell .field input,.panel-shell .field select,.panel-shell .field textarea{font-size:14px}
  .panel-shell .table-btn{min-height:36px}
  .panel-shell .local-map,.panel-shell .ops-map{min-height:280px}
}


/* V11 — backend typography, grouped navigation, settings and responsive tables */
.panel-shell{font-size:14px}
.panel-shell .panel-sidebar{font-size:13px}
.panel-shell .panel-link{font-size:13px;min-height:40px}
.panel-shell .panel-group-title{font-size:10px}
.panel-shell .panel-label{font-size:10px}
.panel-shell .panel-topbar{height:76px}
.panel-shell .crumbs b{font-size:22px}
.panel-shell .admin-data-table{font-size:13px}
.panel-shell .admin-data-table th{font-size:10px;letter-spacing:.05em}
.panel-shell .admin-data-table td{font-size:13px;line-height:1.35;vertical-align:middle}
.panel-shell .admin-data-table td small{font-size:11px}
.panel-shell .admin-form label,.panel-shell .field label,.panel-shell .compact-form label{font-size:13px}
.panel-shell .admin-form input,.panel-shell .admin-form select,.panel-shell .admin-form textarea,.panel-shell .field input,.panel-shell .field select,.panel-shell .field textarea{font-size:14px;min-height:44px}
.panel-shell .btn{font-size:13px;min-height:42px}
.panel-shell .table-btn{font-size:12px}
.panel-shell .status{font-size:11px}
.panel-shell .workspace-hero h1,.panel-shell .bannerop h1{font-size:30px}
.panel-shell .workspace-hero p,.panel-shell .bannerop p{font-size:13px}
.panel-shell .panel-sidebar{overflow-y:auto}
.panel-shell .panel-nav-group{margin:3px 8px}
.panel-shell .panel-nav-group summary{display:flex;align-items:center;gap:8px;list-style:none;cursor:pointer;padding:9px 10px;border-radius:10px;color:#dbe6f0;font-size:12px;font-weight:800}
.panel-shell .panel-nav-group summary::-webkit-details-marker{display:none}
.panel-shell .panel-nav-group summary:hover{background:rgba(255,255,255,.05)}
.panel-shell .panel-nav-group[open] summary{background:#11243a;color:#fff}
.panel-shell .panel-nav-group .group-icon{width:18px;display:grid;place-items:center}
.panel-shell .panel-nav-group .group-chevron{margin-left:auto;opacity:.65;transition:transform .15s ease}
.panel-shell .panel-nav-group[open] .group-chevron{transform:rotate(180deg)}
.panel-shell .panel-nav-group .panel-link{margin:2px 4px;padding-left:18px}
.panel-shell .panel-nav-separate{display:grid;gap:4px;margin-top:10px;padding-top:10px;border-top:1px solid rgba(255,255,255,.08)}
.settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.settings-section{min-width:0}
.settings-assets{display:flex;align-items:center;gap:22px;flex-wrap:wrap;margin:4px 0 16px;padding:12px;border:1px solid var(--backend-line);border-radius:12px;background:#fbfcfb}
.settings-logo-preview{width:180px;height:64px;object-fit:contain;border:1px solid var(--backend-line);border-radius:10px;background:#fff;padding:8px}
.settings-favicon-preview{width:48px;height:48px;object-fit:contain;border:1px solid var(--backend-line);border-radius:10px;background:#fff;padding:6px}
.settings-mark-fallback{width:64px;height:64px;display:grid;place-items:center;border-radius:15px;background:var(--backend-green);color:#fff;font-size:28px;font-weight:900}
.settings-switch-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;align-items:stretch}
.settings-switch{display:grid;grid-template-columns:auto 1fr auto;align-items:start;gap:9px;border:1px solid var(--backend-line);border-radius:12px;padding:12px;background:#fbfcfb}
.settings-switch input{accent-color:var(--backend-green);margin-top:3px}
.settings-switch b,.settings-switch small{display:block}.settings-switch small{font-size:11px;color:var(--backend-muted);margin-top:4px}
.settings-switch strong{font-size:10px;color:var(--backend-muted)}
.settings-toggle-line{display:flex!important;align-items:flex-start;gap:9px!important;padding:12px;border:1px solid var(--backend-line);border-radius:12px;background:#fbfcfb}
.settings-toggle-line input{width:auto!important;min-height:0!important;margin-top:3px;accent-color:var(--backend-green)}
.settings-toggle-line b,.settings-toggle-line small{display:block}.settings-toggle-line small{font-size:11px;color:var(--backend-muted);margin-top:3px}
.settings-rate-list{display:grid;gap:7px;margin-top:14px}
.settings-rate-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto auto;gap:10px;align-items:center;padding:11px 0;border-top:1px solid var(--backend-line)}
.settings-rate-row b,.settings-rate-row small{display:block}.settings-rate-row small{font-size:11px;color:var(--backend-muted);margin-top:3px}
.ops-launch-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.ops-launch{display:block;border:1px solid var(--backend-line);background:#fff;border-radius:14px;padding:16px;transition:.15s}
.ops-launch:hover{transform:translateY(-1px);border-color:#abdac2;box-shadow:0 8px 20px rgba(16,35,59,.05)}
.ops-launch b{display:block;font-size:14px}.ops-launch span{display:block;margin-top:5px;color:var(--backend-muted);font-size:11px;line-height:1.5}
@media(max-width:1100px){.settings-grid{grid-template-columns:1fr}.settings-switch-grid,.ops-launch-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){
  .panel-shell .panel-content{padding:14px}
  .panel-shell .crumbs b{font-size:19px}
  .panel-shell .admin-data-table{font-size:13px;min-width:780px}
  .panel-shell .table-shell{overflow-x:auto}
  .panel-shell .admin-data-table th{position:sticky;top:0;z-index:1;background:#f7faf8}
  .settings-switch-grid,.ops-launch-grid{grid-template-columns:1fr}
  .settings-rate-row{grid-template-columns:1fr auto}
  .settings-rate-row .table-btn{grid-column:2}
}

.settings-mini-card{display:flex;flex-direction:column;gap:5px;padding:14px 16px;border:1px solid #e0e8e3;border-radius:12px;background:#fbfefc}.settings-mini-card b{font-size:12px;color:#17324d}.settings-mini-card span{font-size:12px;color:#647689}


/* Sidebar mini mode — isolated navigation behavior only */
@media(min-width:901px){.panel-shell .mobile-menu{display:grid}}
.panel-shell.panel-sidebar-mini{
  grid-template-columns:72px minmax(0,1fr);
}
.panel-shell.panel-sidebar-mini .panel-sidebar{
  padding-left:8px;
  padding-right:8px;
}
.panel-shell.panel-sidebar-mini .panel-brand{
  justify-content:center;
  padding-left:0;
  padding-right:0;
}
.panel-shell.panel-sidebar-mini .panel-brand>a>span:last-child,
.panel-shell.panel-sidebar-mini .panel-user>span:last-child,
.panel-shell.panel-sidebar-mini .panel-label{
  display:none;
}
.panel-shell.panel-sidebar-mini .panel-brand>a{
  justify-content:center;
}
.panel-shell.panel-sidebar-mini .panel-user{
  justify-content:center;
  padding:8px;
  margin-left:2px;
  margin-right:2px;
}
.panel-shell.panel-sidebar-mini .panel-nav-group{
  margin-left:2px;
  margin-right:2px;
}
.panel-shell.panel-sidebar-mini .panel-nav-group>summary{
  justify-content:center;
  padding-left:8px;
  padding-right:8px;
}
.panel-shell.panel-sidebar-mini .panel-nav-group>summary>span:not(.group-icon),
.panel-shell.panel-sidebar-mini .panel-nav-group .panel-link>span:not(.panel-icon),
.panel-shell.panel-sidebar-mini .panel-nav-group .group-chevron,
.panel-shell.panel-sidebar-mini .panel-nav-separate .panel-link>span:not(.panel-icon){
  display:none;
}
.panel-shell.panel-sidebar-mini .panel-nav-group>summary .group-icon,
.panel-shell.panel-sidebar-mini .panel-nav-group .panel-icon{
  width:18px;
  margin:0;
}
.panel-shell.panel-sidebar-mini .panel-nav-group .panel-link{
  justify-content:center;
  padding-left:8px;
  padding-right:8px;
}
.panel-shell.panel-sidebar-mini .panel-nav-group .panel-link.active,
.panel-shell.panel-sidebar-mini .panel-nav-group[open]>summary{
  justify-content:center;
}
.panel-shell.panel-sidebar-mini .panel-sidebar>.panel-link{
  justify-content:center;
  padding-left:8px;
  padding-right:8px;
}
.panel-shell.panel-sidebar-mini .panel-sidebar>.panel-link>span:not(.panel-icon){
  display:none;
}
.panel-shell.panel-sidebar-mini .panel-nav-group[open]>summary{
  background:#11243a;
  color:#fff;
}
.panel-shell.panel-sidebar-mini .panel-nav-group>.panel-link{
  display:none;
}
.panel-shell.panel-sidebar-mini .panel-nav-separate{
  gap:4px;
}
.panel-shell.panel-sidebar-mini .panel-nav-separate .panel-link{
  justify-content:center;
  padding-left:8px;
  padding-right:8px;
}
.panel-shell.panel-sidebar-mini .panel-main{
  min-width:0;
}
@media(max-width:900px){
  .panel-shell.panel-sidebar-mini{grid-template-columns:1fr}
  .panel-shell.panel-sidebar-mini .panel-sidebar{padding-left:12px;padding-right:12px}
  .panel-shell.panel-sidebar-mini .panel-brand>a>span:last-child,
  .panel-shell.panel-sidebar-mini .panel-user>span:last-child,
  .panel-shell.panel-sidebar-mini .panel-label,
  .panel-shell.panel-sidebar-mini .panel-nav-group>summary>span:not(.group-icon),
  .panel-shell.panel-sidebar-mini .panel-nav-group .panel-link>span:not(.panel-icon),
  .panel-shell.panel-sidebar-mini .panel-nav-group .group-chevron,
  .panel-shell.panel-sidebar-mini .panel-nav-separate .panel-link>span:not(.panel-icon){
    display:initial;
  }
  .panel-shell.panel-sidebar-mini .panel-brand,
  .panel-shell.panel-sidebar-mini .panel-user,
  .panel-shell.panel-sidebar-mini .panel-nav-group>summary,
  .panel-shell.panel-sidebar-mini .panel-nav-group .panel-link,
  .panel-shell.panel-sidebar-mini .panel-nav-separate .panel-link{
    justify-content:flex-start;
  }
  .panel-shell.panel-sidebar-mini .panel-nav-group>.panel-link{display:flex}  .panel-shell.panel-sidebar-mini .panel-sidebar>.panel-link{justify-content:flex-start}
  .panel-shell.panel-sidebar-mini .panel-sidebar>.panel-link>span:not(.panel-icon){display:initial}
}



/* CMS asset mapping: real previews, dimensions, and slot placement without schema changes. */
.panel-shell .cms-delete-note{margin:0 0 14px;padding:11px 14px;border:1px solid #f0d0a2;border-radius:10px;background:#fff9ef;color:#664b20;font-size:12px;line-height:1.55}.panel-shell .cms-delete-note strong{color:#8d2d3e}
.panel-shell .cms-slot-guide{font-family:inherit}
.panel-shell .cms-slot-guide-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.panel-shell .cms-media-cell{display:grid;grid-template-columns:76px minmax(120px,1fr);align-items:center;gap:9px;min-width:220px;max-width:380px}
.panel-shell .cms-media-thumb{display:flex;align-items:center;justify-content:center;width:76px;height:70px;padding:4px;border:1px solid #dce5ed;border-radius:9px;background:#f7f9fc;overflow:hidden}
.panel-shell .cms-media-thumb img{display:block;width:100%;height:100%;object-fit:contain}
.panel-shell .cms-media-thumb.is-missing{font-size:9px;line-height:1.25;color:#a33;text-align:center;background:#fff5f5;border-color:#f2cccc}
.panel-shell .cms-media-meta{display:grid;gap:4px;min-width:0}
.panel-shell .cms-media-meta code{display:block;max-width:245px;color:#4d6074;font-size:10px;line-height:1.35;overflow-wrap:anywhere;white-space:normal}
.panel-shell .cms-media-meta small{font-size:10px;color:#7a8898}
.panel-shell .cms-placement-pill{display:inline-flex;max-width:220px;padding:5px 8px;border-radius:8px;background:#edf4ff;color:#315e98;font-size:10px;font-weight:800;line-height:1.35}
.panel-shell .cms-placement-pill.good{background:#e7f7ee;color:#197448}
.panel-shell .cms-placement-pill.warn{background:#fff4dd;color:#916313}
.panel-shell .cms-slot-label{font-size:10px;color:#0f7196;font-weight:700}
.panel-shell .cms-current-preview{display:flex;align-items:center;gap:12px;max-width:540px;padding:9px;border:1px solid #dfe7e3;border-radius:12px;background:#fbfdfc;text-decoration:none;color:#516476}
.panel-shell .cms-current-preview img{display:block;width:126px;height:94px;object-fit:contain;border:1px solid #e5e9ed;border-radius:8px;background:#fff}
.panel-shell .cms-current-preview span{font-size:11px;font-weight:800}
.panel-shell .cms-current-preview.is-empty{min-height:64px;padding:14px}
.panel-shell .cms-image-editor{display:grid;gap:9px;min-width:0}
.panel-shell .cms-image-editor input[type=file]{width:100%;min-width:0}
.panel-shell .cms-preset-label{display:block;margin-top:4px;font-size:11px;font-weight:800;color:#31465b}
.panel-shell .cms-image-editor select[data-cms-preset]{min-height:40px;width:100%;max-width:540px}
.panel-shell .cms-image-hint{display:grid;gap:4px;max-width:620px;padding:10px 12px;border:1px solid #dbe7f4;border-radius:10px;background:#f4f8fd;color:#435b76;font-size:11px;line-height:1.5}
.panel-shell .cms-image-hint b{font-size:12px;color:#193d68}
.panel-shell .cms-image-hint small{color:#73849a}
@media(max-width:950px){.panel-shell .cms-slot-guide-grid{grid-template-columns:1fr}.panel-shell .cms-media-cell{min-width:190px;grid-template-columns:64px minmax(95px,1fr)}.panel-shell .cms-media-thumb{width:64px;height:58px}}

.panel-shell .cms-preset-wrap{display:grid;gap:6px}.panel-shell .cms-preset-wrap[hidden]{display:none!important}.panel-shell .cms-preset-wrap>small{display:block;font-size:10px;line-height:1.45;color:#7a8898}


/* =========================================================
   Bank Jatim visual system — backend only
   Red is the primary accent; green/amber/blue remain for semantic statuses.
   Scoped to .panel-shell to avoid changing storefront and customer experiences.
   ========================================================= */
.panel-shell {
  --backend-bg: #f3f4f6;
  --backend-surface: #ffffff;
  --backend-surface-2: #fafafa;
  --backend-line: #e1e3e6;
  --backend-line-strong: #d3d6da;
  --backend-ink: #171717;
  --backend-muted: #686b73;
  /* Red is the brand accent; green remains reserved for success/on states. */
  --backend-primary: #c8102e;
  --backend-primary-soft: #fff0f2;
  --backend-green: #0f9f66;
  --backend-green-soft: #eaf8f1;
  --backend-navy: #171717;
  background: var(--backend-bg);
  color: var(--backend-ink);
}

/* Sidebar: charcoal foundation, red navigation emphasis. */
.panel-shell .panel-sidebar {
  color: #e8e8e8;
  background: linear-gradient(180deg, #191919 0%, #101010 100%);
  border-right: 3px solid #c8102e;
}
.panel-shell .panel-brand { padding: 3px 2px 18px; }
.panel-shell .panel-brand > a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: #fff;
  text-decoration: none;
}
.panel-shell .brand-logo-frame {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(255,255,255,.65);
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,.22);
}
.panel-shell .brand-logo-frame img {
  display: block;
  width: 100%;
  height: 100%;
  padding: 2px;
  object-fit: contain;
}
.panel-shell .panel-brand .brand-copy { display: block; min-width: 0; }
.panel-shell .panel-brand .brand-copy strong {
  display: block;
  color: #fff;
  font-size: 12px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.panel-shell .panel-brand .brand-copy small {
  display: block;
  margin-top: 4px;
  color: #ffb9c3;
  font-size: 8px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: .025em;
}
.panel-shell .panel-user {
  gap: 10px;
  padding: 11px 10px;
  margin: 0 0 16px;
  background: #242424;
  border: 1px solid #393939;
  border-left: 3px solid #c8102e;
  border-radius: 12px;
}
.panel-shell .panel-user .avatar-circle {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  overflow: hidden;
  color: #fff;
  background: #c8102e;
  border: 2px solid rgba(255,255,255,.16);
  font-size: 13px;
}
.panel-shell .panel-user .avatar-circle img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.panel-shell .panel-user-copy { display: block; min-width: 0; }
.panel-shell .panel-user-copy b {
  display: block;
  color: #fff;
  font-size: 11px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.panel-shell .panel-user-copy small {
  display: block;
  margin-top: 3px;
  color: #ffb9c3;
  font-size: 9px;
  line-height: 1.3;
}
.panel-shell .panel-user-copy em {
  display: inline-block;
  margin-top: 6px;
  padding: 3px 6px;
  color: #f4f4f4;
  background: #383838;
  border-radius: 5px;
  font-size: 8px;
  font-style: normal;
  font-weight: 800;
  text-transform: uppercase;
}
.panel-shell .panel-label { color: #ff9eac; }
.panel-shell .panel-link { color: #dedede; }
.panel-shell .panel-nav-group summary { color: #dedede; }
.panel-shell .panel-link:hover,
.panel-shell .panel-nav-group summary:hover {
  color: #fff;
  background: rgba(200,16,46,.22);
}
.panel-shell .panel-link.active {
  color: #fff;
  background: #c8102e;
  box-shadow: 0 5px 14px rgba(200,16,46,.22);
}
.panel-shell .panel-link.active .panel-icon { color: #fff; }
.panel-shell .panel-nav-group[open] > summary {
  color: #fff;
  background: #2b2b2b;
}
.panel-shell .panel-icon,
.panel-shell .group-icon { color: #ff9eac; }
.panel-shell .panel-link.danger { color: #ffc5cd; }
.panel-shell .panel-nav-separate { border-top-color: #333; }

/* Workspace header: align title left and reserve right for actions/profile. */
.panel-shell .panel-topbar {
  justify-content: flex-start;
  gap: 18px;
  background: #fff;
  border-bottom: 1px solid #e3d8da;
  box-shadow: 0 3px 14px rgba(23,23,23,.035);
}
.panel-shell .crumbs {
  flex: 1 1 auto;
  min-width: 0;
  margin-right: auto;
  text-align: left;
}
.panel-shell .crumbs span { color: #c8102e; }
.panel-shell .crumbs b { color: #171717; text-align: left; }
.panel-shell .panel-top-actions {
  flex: 0 0 auto;
  margin-left: auto;
  gap: 10px;
  color: #555;
}
.panel-shell .top-storefront-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 13px;
  color: #c8102e;
  background: #fff;
  border: 1px solid #e6b7bf;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition: background .16s ease, border-color .16s ease, color .16s ease;
}
.panel-shell .top-storefront-link:hover {
  color: #fff;
  background: #c8102e;
  border-color: #c8102e;
}
.panel-shell .top-storefront-link svg { display: block; flex: 0 0 auto; }
.panel-shell .icon-btn { transition: border-color .16s ease, color .16s ease, background .16s ease; }
.panel-shell .icon-btn:hover {
  color: #c8102e;
  border-color: #e6b7bf;
  background: #fff6f7;
}
.panel-shell .user-chip {
  padding-left: 10px;
  border-left: 1px solid #eeeeee;
}
.panel-shell .user-chip b { color: #171717; }
.panel-shell .avatar-circle.dark {
  background: #242424;
  color: #fff;
  border: 2px solid #f1c5cc;
}

/* Workspace and common admin controls: red for primary actions, semantic status colors preserved. */
.panel-shell .workspace-hero,
.panel-shell .bannerop {
  background: linear-gradient(120deg, #fff0f2 0%, #ffffff 70%);
  border-color: #efd5d9;
}
.panel-shell .eyebrow { color: #c8102e; }
.panel-shell .btn-primary,
.panel-shell .btn.primary {
  background: #c8102e;
  border-color: #c8102e;
  box-shadow: 0 6px 15px rgba(200,16,46,.15);
}
.panel-shell .btn-primary:hover,
.panel-shell .btn.primary:hover { background: #a80d26; border-color: #a80d26; }
.panel-shell .btn-light:hover,
.panel-shell .btn-outline:hover { border-color: #e2a8b2; color: #a80d26; }
.panel-shell .quick-action span,
.panel-shell .table-action { color: #c8102e; }
.panel-shell .table-btn.primary {
  background: #fff0f2;
  border-color: #e9b5be;
  color: #a80d26;
}
.panel-shell .filter-chip:focus,
.panel-shell input:focus,
.panel-shell select:focus,
.panel-shell textarea:focus {
  outline-color: rgba(200,16,46,.35);
}
.panel-shell .filter-chip,
.panel-shell .tag,
.panel-shell .pill {
  border-color: #e5e1e2;
}
.panel-shell .admin-data-table th,
.panel-shell .modern-table th { background: #fff6f7; }
.panel-shell .admin-data-table tbody tr:hover,
.panel-shell .modern-table tbody tr:hover { background: #fffafa; }
.panel-shell .kpi-card,
.panel-shell .mini-stat,
.panel-shell .kpis > div { border-top-color: #edc2c9; }
.panel-shell .bar-col span {
  background: linear-gradient(180deg, #e34a62 0%, #c8102e 100%);
}
.panel-shell .share-list i:after { background: #c8102e; }
.panel-shell .share-list div:nth-child(1) i:after { background: linear-gradient(90deg,#c8102e,#ed7183); }
.panel-shell .share-list div:nth-child(2) i:after { background: #a80d26; }
.panel-shell .share-list div:nth-child(3) i:after { background: #e34a62; }
.panel-shell .share-list div:nth-child(4) i:after { background: #8e1024; }
.panel-shell .v12-pager a.active { background: #c8102e; border-color: #c8102e; }

@media (max-width: 900px) {
  .panel-shell .panel-content { padding: 16px; }
  .panel-shell .panel-topbar { gap: 10px; }
}
@media (max-width: 700px) {
  .panel-shell .top-storefront-link {
    width: 38px;
    min-width: 38px;
    padding: 0;
    font-size: 0;
  }
  .panel-shell .top-storefront-link svg { width: 17px; height: 17px; }
  .panel-shell .panel-top-actions { gap: 7px; }
  .panel-shell .user-chip { padding-left: 7px; }
  .panel-shell .user-chip > span:last-child { display: none; }
  .panel-shell .panel-brand .brand-copy small { font-size: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  .panel-shell *, .backend-auth-page * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}


/* =========================================================
   UX correction: clear action hierarchy and restrained sidebar
   Existing styles only; no new stylesheet or business logic.
   ========================================================= */

/* Sidebar: retain the charcoal Bank Jatim look without a harsh red rail. */
.panel-shell .panel-sidebar {
  border-right: 1px solid #343434;
}
.panel-shell .panel-label {
  color: #e78c99;
}
.panel-shell .panel-link,
.panel-shell .panel-nav-group > summary {
  border-left: 3px solid transparent;
  transition: background .16s ease, color .16s ease, border-color .16s ease;
}
.panel-shell .panel-link:hover,
.panel-shell .panel-nav-group > summary:hover {
  color: #ffffff;
  background: rgba(200, 16, 46, .10);
}
.panel-shell .panel-link.active {
  color: #ffffff;
  background: rgba(200, 16, 46, .15);
  border-left-color: #c8102e;
  box-shadow: none;
  font-weight: 800;
}
.panel-shell .panel-link.active .panel-icon {
  color: #ff7b8b;
}
.panel-shell .panel-nav-group[open] > summary {
  color: #ffffff;
  background: #252525;
  border-left-color: #c8102e;
  box-shadow: none;
}
.panel-shell .panel-nav-group > summary .group-chevron {
  color: #a9a9a9;
}

/* Generic table actions should not all look like primary/destructive actions. */
.panel-shell .table-btn.primary {
  background: #ffffff;
  border-color: #cfd5dc;
  color: #344256;
  box-shadow: none;
}
.panel-shell .table-btn.primary:hover {
  background: #f5f7f9;
  border-color: #9ba8b6;
  color: #171717;
}
.panel-shell .table-btn.danger {
  background: #fff0f2;
  border-color: #e6aab3;
  color: #a80d26;
}
.panel-shell .table-btn.danger:hover {
  background: #ffe4e8;
  border-color: #d96b7c;
}

/* Explicit variants used by the existing master-list actions. */
.panel-shell .table-btn.edit-action {
  background: #ffffff;
  border-color: #cfd5dc;
  color: #344256;
}
.panel-shell .table-btn.edit-action:hover {
  background: #f5f7f9;
  border-color: #9ba8b6;
  color: #171717;
}
.panel-shell .table-btn.deactivate-action {
  background: #fff8e7;
  border-color: #ead39c;
  color: #805a08;
}
.panel-shell .table-btn.deactivate-action:hover {
  background: #fff0c7;
  border-color: #d8b45d;
  color: #684700;
}
.panel-shell .table-btn.delete-action {
  background: #fff0f2;
  border-color: #e6aab3;
  color: #a80d26;
}
.panel-shell .table-btn.delete-action:hover {
  background: #c8102e;
  border-color: #c8102e;
  color: #ffffff;
}


/* =========================================================
   Sidebar UX redesign — approved reference
   Visual-only overrides for existing navigation markup.
   Menus, URLs, permissions, route matching, and collapse logic stay unchanged.
   ========================================================= */
.panel-shell .panel-sidebar {
  color: #e5e7eb;
  background: linear-gradient(180deg, #191a1c 0%, #121314 100%);
  border-right: 1px solid #35363a;
  scrollbar-width: thin;
  scrollbar-color: #3a3b3f #151617;
}
.panel-shell .panel-sidebar::-webkit-scrollbar { width: 6px; }
.panel-shell .panel-sidebar::-webkit-scrollbar-track { background: #151617; }
.panel-shell .panel-sidebar::-webkit-scrollbar-thumb {
  background: #3a3b3f;
  border-radius: 999px;
}
.panel-shell .panel-sidebar::-webkit-scrollbar-thumb:hover { background: #595a5f; }

/* Brand block: stable alignment and a quiet separator. */
.panel-shell .panel-sidebar .panel-brand {
  padding: 5px 3px 16px;
  margin-bottom: 11px;
  border-bottom: 1px solid #303135;
}
.panel-shell .panel-sidebar .panel-brand > a { gap: 10px; }
.panel-shell .panel-sidebar .brand-logo-frame {
  width: 42px;
  height: 42px;
  flex-basis: 42px;
  border-radius: 11px;
  border-color: #d9dadd;
  box-shadow: 0 3px 9px rgba(0,0,0,.20);
}
.panel-shell .panel-sidebar .brand-copy strong {
  font-size: 12px;
  letter-spacing: -.015em;
}
.panel-shell .panel-sidebar .brand-copy small {
  color: #c2c4c8;
  font-size: 8px;
  font-weight: 650;
}

/* User profile: neutral charcoal card; reserve red for selected navigation. */
.panel-shell .panel-sidebar .panel-user {
  padding: 10px;
  margin: 0 0 16px;
  gap: 10px;
  background: #222326;
  border: 1px solid #37383c;
  border-left: 1px solid #37383c;
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}
.panel-shell .panel-sidebar .panel-user .avatar-circle {
  width: 38px;
  height: 38px;
  flex-basis: 38px;
  background: #35363a;
  border: 1px solid #5a5b60;
  color: #fff;
}
.panel-shell .panel-sidebar .panel-user-copy b {
  font-size: 11px;
  font-weight: 750;
}
.panel-shell .panel-sidebar .panel-user-copy small {
  color: #c8c9cd;
  font-size: 9px;
}
.panel-shell .panel-sidebar .panel-user-copy em {
  color: #dedfe2;
  background: #343539;
  border: 1px solid #48494e;
  font-size: 8px;
}

/* Section heading and normal menu icons use neutral tones, not red. */
.panel-shell .panel-sidebar .panel-label {
  margin: 14px 8px 8px;
  color: #aeb0b5;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .13em;
}
.panel-shell .panel-sidebar .panel-icon,
.panel-shell .panel-sidebar .panel-nav-group .group-icon {
  display: inline-grid;
  place-items: center;
  width: 19px;
  min-width: 19px;
  color: #d9dadd;
}
.panel-shell .panel-sidebar .panel-icon .ui-icon,
.panel-shell .panel-sidebar .group-icon .ui-icon {
  color: inherit;
  stroke: currentColor;
}
.panel-shell .panel-sidebar .panel-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 39px;
  margin: 2px 0;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-left: 3px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: #d6d7da;
  font-size: 12px;
  font-weight: 550;
  line-height: 1.3;
  box-shadow: none;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.panel-shell .panel-sidebar .panel-link:hover {
  background: #28292c;
  border-color: #343539;
  border-left-color: transparent;
  color: #fff;
  box-shadow: none;
}
.panel-shell .panel-sidebar .panel-link:hover .panel-icon {
  color: #fff;
}
.panel-shell .panel-sidebar .panel-link.active {
  background: linear-gradient(100deg, #c8102e 0%, #ad1028 100%);
  border-color: #c8102e;
  border-left-color: #ff7c8d;
  color: #fff;
  font-weight: 750;
  box-shadow: 0 4px 10px rgba(200,16,46,.17);
}
.panel-shell .panel-sidebar .panel-link.active .panel-icon {
  color: #fff;
}

/* Collapsible groups: charcoal when open, red only as a restrained edge cue. */
.panel-shell .panel-sidebar .panel-nav-group {
  margin: 3px 0;
  padding: 0;
  border-radius: 10px;
  background: transparent;
}
.panel-shell .panel-sidebar .panel-nav-group > summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 39px;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-left: 3px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: #d6d7da;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.panel-shell .panel-sidebar .panel-nav-group > summary::-webkit-details-marker { display: none; }
.panel-shell .panel-sidebar .panel-nav-group > summary:hover {
  background: #28292c;
  color: #fff;
}
.panel-shell .panel-sidebar .panel-nav-group > summary:hover .group-icon {
  color: #fff;
}
.panel-shell .panel-sidebar .panel-nav-group[open] {
  padding-bottom: 4px;
  background: rgba(255,255,255,.025);
}
.panel-shell .panel-sidebar .panel-nav-group[open] > summary {
  background: #26272a;
  border-color: #323337;
  border-left-color: #c8102e;
  color: #fff;
  box-shadow: none;
}
.panel-shell .panel-sidebar .panel-nav-group[open] > summary .group-icon {
  color: #fff;
}
.panel-shell .panel-sidebar .panel-nav-group .group-chevron {
  margin-left: auto;
  color: #aeb0b5;
  font-size: 13px;
  opacity: 1;
}
.panel-shell .panel-sidebar .panel-nav-group[open] .group-chevron {
  color: #fff;
}
.panel-shell .panel-sidebar .panel-nav-group > .panel-link {
  margin: 2px 5px 2px 12px;
  padding-left: 10px;
  min-height: 36px;
  font-size: 11.5px;
  border-radius: 8px;
}
.panel-shell .panel-sidebar .panel-nav-group > .panel-link:not(.active) {
  background: transparent;
  border-color: transparent;
  border-left-color: transparent;
  box-shadow: none;
}
.panel-shell .panel-sidebar .panel-nav-group > .panel-link:not(.active):hover {
  background: #303135;
  border-color: #3b3c40;
  color: #fff;
}
.panel-shell .panel-sidebar .panel-nav-group > .panel-link.active {
  background: rgba(200,16,46,.95);
  border-color: #c8102e;
  border-left-color: #ff9aa7;
  color: #fff;
}

/* Storefront and logout remain separated from the main navigation. */
.panel-shell .panel-sidebar .panel-nav-separate {
  gap: 4px;
  margin: 13px 0 0;
  padding: 12px 0 0;
  border-top: 1px solid #343539;
}
.panel-shell .panel-sidebar .panel-nav-separate .panel-link {
  margin-top: 1px;
  margin-bottom: 1px;
}
.panel-shell .panel-sidebar .panel-nav-separate .panel-link:not(.danger) .panel-icon {
  color: #d9dadd;
}
.panel-shell .panel-sidebar .panel-nav-separate .panel-link.danger {
  color: #f09aa6;
}
.panel-shell .panel-sidebar .panel-nav-separate .panel-link.danger .panel-icon {
  color: #f09aa6;
}
.panel-shell .panel-sidebar .panel-nav-separate .panel-link.danger:hover {
  background: rgba(200,16,46,.12);
  border-color: rgba(200,16,46,.18);
  color: #ffb8c1;
}
.panel-shell .panel-sidebar .panel-nav-separate .panel-link.danger:hover .panel-icon {
  color: #ffb8c1;
}

/* Mini/collapsed mode reuses existing JavaScript and existing nav elements. */
.panel-shell.panel-sidebar-mini .panel-sidebar .panel-brand {
  padding-bottom: 14px;
  margin-bottom: 12px;
}
.panel-shell.panel-sidebar-mini .panel-sidebar .brand-logo-frame {
  width: 42px;
  height: 42px;
  flex-basis: 42px;
}
.panel-shell.panel-sidebar-mini .panel-sidebar .panel-user {
  border-left: 1px solid #37383c;
}
.panel-shell.panel-sidebar-mini .panel-sidebar .panel-link.active {
  border-left-color: #ff7c8d;
}

@media (max-width: 900px) {
  .panel-shell .panel-sidebar {
    border-right: 1px solid #343539;
    box-shadow: 16px 0 40px rgba(0,0,0,.24);
  }
  .panel-shell .panel-sidebar .panel-brand {
    margin-bottom: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .panel-shell .panel-sidebar .panel-link,
  .panel-shell .panel-sidebar .panel-nav-group > summary {
    transition: none;
  }
}


/* Admin product list: visual thumbnail sourced from product_images primary record. */
.panel-shell .product-admin-media { display: flex; align-items: center; min-width: 66px; }
.panel-shell .product-admin-thumb { display: flex; align-items: center; justify-content: center; width: 58px; height: 58px; overflow: hidden; border: 1px solid #d9e0e7; border-radius: 10px; background: #f7f8fa; }
.panel-shell .product-admin-thumb img { display: block; width: 100%; height: 100%; object-fit: contain; padding: 3px; }
.panel-shell .product-admin-thumb.is-missing { padding: 4px; color: #7d8794; font-size: 9px; line-height: 1.25; text-align: center; }

/* =========================================================
   REPORTS & ANALYTICS — scoped to the new admin reports module
   ========================================================= */
.reports-hero { align-items: flex-start; gap: 18px; }
.reports-export-actions { flex-wrap: wrap; justify-content: flex-end; }
.reports-filter-card, .reports-metric-card, .reports-detail-card { margin-bottom: 16px; }
.reports-filter-form { display: grid; grid-template-columns: minmax(180px,1.25fr) minmax(150px,.8fr) minmax(150px,.8fr) auto; gap: 12px; align-items: end; }
.reports-filter-form label, .reports-identity-form label { display: grid; gap: 6px; color: var(--ink-700,#344054); font-weight: 650; font-size: 12px; }
.reports-filter-form input, .reports-filter-form select, .reports-identity-form input, .reports-identity-form textarea { width: 100%; min-width: 0; border: 1px solid var(--line,#dfe5e9); border-radius: 10px; background: #fff; color: var(--ink,#172033); padding: 10px 12px; font: inherit; }
.reports-filter-form input:focus, .reports-filter-form select:focus, .reports-identity-form input:focus, .reports-identity-form textarea:focus { outline: 3px solid rgba(200,16,46,.12); border-color: #c8102e; }
.reports-filter-submit { display: flex; gap: 8px; align-items: center; }
.reports-filter-submit .btn { white-space: nowrap; }
.reports-kpi-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin-bottom: 16px; }
.reports-kpi-card { background: #fff; border: 1px solid var(--line,#dfe5e9); border-radius: 14px; padding: 16px; min-width: 0; box-shadow: 0 4px 14px rgba(18,32,50,.025); }
.reports-kpi-card:before { content: ""; display: block; height: 4px; width: 34px; margin-bottom: 12px; border-radius: 9px; background: #c8102e; }
.reports-kpi-card span { display:block; color:#687385; font-size:12px; line-height:1.4; }
.reports-kpi-card strong { display:block; color:#17191d; font-size:clamp(18px,1.5vw,25px); font-weight:800; line-height:1.25; margin:7px 0; overflow-wrap:anywhere; }
.reports-kpi-card small { display:block; color:#707b89; font-size:11px; line-height:1.5; }
.reports-kpi-card.red { border-color:rgba(200,16,46,.22); background:linear-gradient(145deg,#fff,#fff8f9); }
.reports-operational-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.reports-operational-grid > div { min-width:0; padding:13px 14px; border:1px solid #e7eaee; border-radius:11px; background:#fbfcfd; }
.reports-operational-grid span { display:block; font-size:11px; color:#677282; line-height:1.4; }
.reports-operational-grid b { display:block; font-size:21px; font-weight:800; color:#17191d; margin:5px 0; }
.reports-operational-grid small { display:block; color:#687385; font-size:10px; line-height:1.45; }
.reports-accounting-note { margin:14px 0 0; border-left:3px solid #c8102e; background:#fff8f9; color:#555e6a; padding:11px 13px; border-radius:0 9px 9px 0; font-size:12px; line-height:1.6; }
.reports-settings-wrap { margin-bottom:16px; }
.reports-identity-settings { padding:0; overflow:hidden; }
.reports-identity-settings > summary { display:flex; justify-content:space-between; align-items:center; gap:18px; padding:16px 18px; cursor:pointer; list-style:none; }
.reports-identity-settings > summary::-webkit-details-marker { display:none; }
.reports-identity-settings > summary strong { display:block; font-size:14px; color:#172033; }
.reports-identity-settings > summary small { display:block; margin-top:4px; color:#6b7482; font-size:11px; line-height:1.5; }
.reports-summary-chevron { color:#c8102e; font-size:20px; transition:transform .18s ease; }
.reports-identity-settings[open] .reports-summary-chevron { transform:rotate(180deg); }
.reports-identity-form { border-top:1px solid #edf0f2; padding:18px; }
.reports-identity-form .reports-address-field { grid-column:1/-1; }
.reports-identity-form .panel-subline { margin:10px 0 0; }
.reports-detail-heading { align-items:flex-start; }
.reports-detail-badge { flex-shrink:0; color:#8c1027; background:#fff0f2; border:1px solid #f5d4da; border-radius:999px; padding:7px 10px; font-size:11px; font-weight:750; }
.reports-section-tabs { display:flex; flex-wrap:wrap; gap:7px; padding:0 0 14px; margin-bottom:12px; border-bottom:1px solid #edf0f2; }
.reports-section-tabs a { display:inline-flex; align-items:center; min-height:34px; padding:8px 11px; border:1px solid #e2e6ea; border-radius:9px; color:#4e5968; background:#fff; text-decoration:none; font-size:11px; font-weight:700; }
.reports-section-tabs a:hover { border-color:#e7a3ae; color:#a50c26; background:#fff8f9; }
.reports-section-tabs a.active { background:#c8102e; border-color:#c8102e; color:#fff; box-shadow:0 4px 10px rgba(200,16,46,.14); }
.reports-table-meta { display:flex; justify-content:space-between; flex-wrap:wrap; gap:8px; color:#6c7583; font-size:11px; margin:0 0 10px; }
.reports-table-shell { max-width:100%; overflow-x:auto; }
.reports-data-table { min-width:850px; }
.reports-data-table th { white-space:nowrap; }
.reports-data-table td { max-width:300px; overflow-wrap:anywhere; }
.reports-money { font-variant-numeric:tabular-nums; white-space:nowrap; font-weight:750; color:#25282d; }
@media (max-width: 1100px) {
    .reports-kpi-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .reports-filter-form { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .reports-filter-submit { align-self:end; }
    .reports-operational-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width: 640px) {
    .reports-hero { display:block; }
    .reports-export-actions { justify-content:flex-start; margin-top:14px; }
    .reports-export-actions .btn { flex:1 1 auto; }
    .reports-filter-form { grid-template-columns:minmax(0,1fr); }
    .reports-filter-submit { width:100%; }
    .reports-filter-submit .btn { flex:1; justify-content:center; }
    .reports-kpi-grid { grid-template-columns:minmax(0,1fr); }
    .reports-operational-grid { grid-template-columns:minmax(0,1fr); }
    .reports-detail-heading { display:block; }
    .reports-detail-badge { display:inline-flex; margin-top:8px; }
    .reports-section-tabs { flex-wrap:nowrap; overflow-x:auto; padding-bottom:12px; }
    .reports-section-tabs a { flex-shrink:0; }
    .reports-table-meta { display:grid; }
    .reports-identity-form .reports-address-field { grid-column:auto; }
}
.reports-wallet-snapshot { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:9px; margin-top:12px; }
.reports-wallet-snapshot > div { min-width:0; padding:10px 12px; border:1px solid #f0d9dd; border-radius:10px; background:#fffafb; }
.reports-wallet-snapshot span { display:block; color:#687385; font-size:10px; }
.reports-wallet-snapshot b { display:block; margin:5px 0; color:#22252b; font-size:14px; overflow-wrap:anywhere; }
.reports-wallet-snapshot small { color:#818a96; font-size:10px; }
@media (max-width: 1100px) { .reports-wallet-snapshot { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width: 640px) { .reports-wallet-snapshot { grid-template-columns:minmax(0,1fr); } }
