/* Super Admin: navy sidebar with icons, header controls and the Overview screen (admin-overview.js). */
.visually-hidden{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.ov-ic{width:18px;height:18px;flex:none;display:inline-block;vertical-align:middle}

/* Sidebar */
.dashboard{grid-template-columns:256px minmax(0,1fr)!important}
.dashboard>.sidebar{width:256px;padding:16px 12px 18px;background:linear-gradient(180deg,#0b2049 0%,#0c2251 55%,#0a1c41 100%);border-right:0}
.dashboard>.sidebar>.admin-brand{gap:12px;padding:0 6px 18px}
.dashboard>.sidebar .admin-brand .brand-mark{width:54px;height:54px;border:0;border-radius:10px;background-color:#fff;box-shadow:0 4px 10px #0003}
.dashboard>.sidebar .admin-brand strong{font-size:17px!important;font-weight:800;letter-spacing:-.01em}
.dashboard>.sidebar .admin-brand small{font-size:12px!important;color:#c9d6ef}
.dashboard>.sidebar nav{gap:2px}
.dashboard>.sidebar .sidebar-label{margin:16px 8px 6px;padding:0;color:#9db0d3;font-size:11px!important;font-weight:700;letter-spacing:.06em}
.dashboard>.sidebar nav>.nav-item:first-child{margin-bottom:6px}
.dashboard>.sidebar .nav-item{min-height:36px;gap:12px;padding:0 10px;border:0;border-radius:10px;color:#eef3fd;font-weight:600}
.dashboard>.sidebar nav .nav-item>span:last-child{font-size:14px!important;font-weight:600}
.dashboard>.sidebar .nav-item:hover{background:#16325f;color:#fff}
.dashboard>.sidebar .nav-item.is-active{background:linear-gradient(95deg,#2563eb,#2f6ff2);color:#fff;box-shadow:0 6px 16px #0b3fb055}
.dashboard>.sidebar .nav-icon{width:22px;min-width:22px;height:22px;display:grid;place-items:center;color:#dfe8fb;font-size:0!important}
.dashboard>.sidebar .nav-icon .ov-ic{width:18px;height:18px}
.dashboard>.sidebar .nav-icon[class*="tone-"]{width:26px;min-width:26px;height:26px;border-radius:7px;color:#fff}
.dashboard>.sidebar .nav-icon.tone-blue{background:#3b82f6}.dashboard>.sidebar .nav-icon.tone-purple{background:#8b5cf6}
.dashboard>.sidebar .nav-icon.tone-orange{background:#f97316}.dashboard>.sidebar .nav-icon.tone-pink{background:#ec4899}
.dashboard>.sidebar .nav-icon[class*="tone-"] .ov-ic{width:15px;height:15px}

/* Header */
.dashboard>.admin-main{padding:16px 24px 28px!important;background:#f3f6fb}
.dashboard .topbar{align-items:flex-start;gap:16px;margin-bottom:6px}
.dashboard .topbar .eyebrow{margin:0 0 4px;color:#2563eb;font-size:11px!important;font-weight:700;letter-spacing:.06em}
.dashboard .topbar h1{color:#0f1d3d;font-size:28px!important;font-weight:800;letter-spacing:-.02em;line-height:1.15}
.dashboard .topbar-subtitle{margin:8px 0 0;color:#5b6b8c;font-size:13px}
.dashboard .topbar-actions{gap:12px;padding-top:12px}
.ov-menu{position:relative}
.ov-pill,.dashboard .admin-search,.ov-bell{min-height:40px;border:1px solid #e3eaf5!important;border-radius:10px!important;background:#fff;box-shadow:0 2px 8px #1b3a6b0d!important}
.ov-pill{display:inline-flex;align-items:center;gap:10px;padding:0 14px;color:#1e2b4a;font-size:12.5px;font-weight:600;cursor:pointer}
.ov-range{min-width:255px;justify-content:space-between}
.ov-range>.ov-ic:first-child{color:#1e2b4a;width:17px;height:17px}
.ov-chev{width:14px;height:14px;color:#1e2b4a}
.dashboard .admin-search{width:296px!important;gap:10px;padding:0 14px;color:#6b7a99}
.dashboard .admin-search .ov-ic{width:16px;height:16px}
.dashboard .admin-search input{font-size:12.5px!important}
.ov-bell{position:relative;width:42px;height:42px;display:grid;place-items:center;padding:0;color:#1e2b4a;cursor:pointer}
.ov-bell .ov-ic{width:19px;height:19px}
.ov-bell-dot{position:absolute;top:8px;right:9px;width:8px;height:8px;border:2px solid #fff;border-radius:50%;background:#ef4444;box-sizing:content-box}
.ov-bell-dot[hidden]{display:none}
.ov-admin{display:flex;align-items:center;gap:10px;padding:0 0 0 6px;border:0;background:none;color:#0f1d3d;text-align:left;cursor:pointer}
.ov-avatar{width:38px;height:38px;display:grid;place-items:center;border-radius:50%;background:#1d4ed8;color:#fff;font-size:16px;font-weight:700}
.ov-admin-text strong{display:block;font-size:14px;font-weight:700;line-height:1.2}
.ov-admin-text small{display:flex;align-items:center;gap:3px;color:#5b6b8c;font-size:12px}
.ov-chev-sm{width:11px;height:11px}
.ov-pop{position:absolute;top:calc(100% + 8px);right:0;z-index:60;min-width:230px;display:grid;gap:2px;padding:8px;border:1px solid #e3eaf5;border-radius:12px;background:#fff;box-shadow:0 18px 40px #0f1d3d24}
.ov-pop[hidden]{display:none}
.ov-range-pop{left:0;right:auto;min-width:270px}
.ov-pop-title{margin:2px 8px 6px;color:#6b7a99;font-size:11px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;overflow:hidden;text-overflow:ellipsis}
.ov-pop>button,.ov-pop>a,.ov-pop [data-ov-bell-list]>button{display:flex;align-items:center;gap:10px;width:100%;min-height:38px;padding:7px 10px;border:0;border-radius:8px;background:none;color:#1e2b4a;font-size:13px;font-weight:600;text-align:left;text-decoration:none;cursor:pointer}
.ov-pop>button:hover,.ov-pop>a:hover,.ov-pop [data-ov-bell-list]>button:hover,.ov-pop>button.is-selected{background:#eef3ff;color:#1d4ed8}
.ov-pop button small{display:block;color:#6b7a99;font-size:11px;font-weight:500}
.ov-pop .ov-danger{color:#dc2626}
.ov-pop-empty{margin:4px 10px 8px;color:#6b7a99;font-size:13px}
.ov-range-custom{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:6px;padding:10px 8px 4px;border-top:1px solid #eef2f8}
.ov-range-custom label{display:grid;gap:4px;color:#5b6b8c;font-size:11px;font-weight:700}
.ov-range-custom input{min-height:34px;padding:0 8px;border:1px solid #dfe6f2;border-radius:8px;color:#1e2b4a;font-size:12px}
.ov-range-custom .admin-button{grid-column:1/-1;min-height:36px;border-radius:8px}

/* Overview layout */
.admin-view[data-view="overview"].is-visible{gap:12px}
.ov-report-row{display:flex;justify-content:flex-end;margin-top:-4px}
.ov-reports{min-height:36px;font-size:13px;font-weight:700;color:#0f1d3d}
.ov-report-pop{min-width:290px}
.ov-card,.ov-kpi,.ov-partner{border:1px solid #e6edf7;border-radius:14px;background:#fff;box-shadow:0 4px 14px #14326406}
.ov-kpis{display:grid;grid-template-columns:1.28fr 1fr 1.05fr 1.14fr 1.16fr 1.24fr 1.28fr;gap:12px}
.ov-kpi{min-height:100px;display:flex;align-items:center;gap:13px;padding:12px 14px;line-height:1.3}
.ov-kpi-icon{width:50px;height:50px;flex:none;display:grid;place-items:center;border-radius:14px}
.ov-kpi-icon .ov-ic{width:26px;height:26px}
.ov-kpi>div,.ov-partner>div{flex:1;min-width:0;display:grid;gap:3px}
.ov-kpi-label{color:#1e2b4a;font-size:12px;font-weight:600;white-space:normal;line-height:1.25}
.ov-kpi-value{display:flex;align-items:center;gap:8px;min-width:0}
.ov-kpi-value strong{color:#0f1d3d;font-size:24px;font-weight:800;line-height:1.15;letter-spacing:-.01em;white-space:nowrap}
.ov-kpi small,.ov-partner small{color:#6b7a99;font-size:11.5px;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ov-delta{display:inline-flex;align-items:center;gap:2px;padding:2px 7px;border-radius:6px;background:#e7f8ee;color:#16a34a;font-size:12px;font-style:normal;font-weight:700;white-space:nowrap}
.ov-delta[hidden]{display:none}
.ov-delta .ov-ic{width:12px;height:12px}
.ov-delta.is-down{background:#fdecec;color:#dc2626}.ov-delta .ov-down{transform:rotate(180deg)}
.ov-delta.is-flat{background:#eef2f7;color:#5b6b8c}
.tone-green .ov-kpi-icon{background:#dff7ea;color:#16a34a}
.tone-blue .ov-kpi-icon{background:#e1ecff;color:#2563eb}
.tone-purple .ov-kpi-icon{background:#efe7ff;color:#7c3aed}
.tone-teal .ov-kpi-icon{background:#ddf5ee;color:#0f9f6e}
.tone-pink .ov-kpi-icon{background:#fde4f2;color:#db2777}
.tone-orange .ov-kpi-icon{background:#ffeedd;color:#ea580c}
.tone-rose .ov-kpi-icon{background:#ffe1e8;color:#e11d48}
.ov-kpi.tone-green{background:linear-gradient(120deg,#fff 55%,#f1fbf5)}.ov-kpi.tone-blue{background:linear-gradient(120deg,#fff 55%,#f2f6ff)}
.ov-kpi.tone-purple{background:linear-gradient(120deg,#fff 55%,#f7f2ff)}.ov-kpi.tone-teal{background:linear-gradient(120deg,#fff 55%,#f0fbf7)}
.ov-kpi.tone-pink{background:linear-gradient(120deg,#fff 55%,#fdf2f8)}.ov-kpi.tone-orange{background:linear-gradient(120deg,#fff 55%,#fff6ee)}
.ov-kpi.tone-rose{background:linear-gradient(120deg,#fff5f7 0%,#ffe9ee 100%)}
.ov-kpi.tone-purple .ov-kpi-label{color:#7c3aed}.ov-kpi.tone-orange .ov-kpi-label{color:#1e2b4a}.ov-kpi.tone-rose .ov-kpi-label{color:#e11d48}

.ov-top{display:grid;grid-template-columns:minmax(0,1.58fr) minmax(0,1fr) 334px;grid-template-areas:"sales channels quick" "partners partners quick";gap:12px}
.ov-sales{grid-area:sales}.ov-channels{grid-area:channels}.ov-quicks{grid-area:quick}
.ov-partners{grid-area:partners;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.ov-card{min-width:0;padding:14px 18px;line-height:1.35}
.ov-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:8px}
.ov-card-head h2{display:flex;align-items:center;gap:9px;margin:0;color:#0f1d3d;font-size:16px;font-weight:800}
.ov-card-head p{margin:4px 0 0 27px;color:#6b7a99;font-size:12px}
.ov-title-ic{width:18px;height:18px;color:#2563eb}
.ov-bolt{color:#2563eb}
.ov-select select{min-height:32px;padding:0 28px 0 12px;font-family:inherit;font-size:12px!important;font-weight:600;line-height:1;border:1px solid #dfe6f2;border-radius:8px;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%231e2b4a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 10px center/11px no-repeat;color:#1e2b4a;appearance:none;cursor:pointer}
.ov-chart{width:100%}
.ov-sales-svg{display:block;width:100%;height:182px}
.ov-sales-svg .ov-grid{stroke:#edf1f7;stroke-width:1}
.ov-sales-svg .ov-axis{fill:#7a879e;font-size:15px}
.ov-sales-svg .ov-line{fill:none;stroke:#2563eb;stroke-width:3;stroke-linejoin:round;stroke-linecap:round}
.ov-sales-svg .ov-dot{fill:#2563eb;stroke:#fff;stroke-width:2}

.ov-donut-wrap{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:16px 18px;padding:8px 0 4px}
.ov-donut{position:relative;width:164px;height:164px;flex:none}
.ov-donut svg{width:100%;height:100%;display:block}
.ov-donut-center{position:absolute;inset:0;display:grid;place-content:center;text-align:center}
.ov-donut-center strong{color:#0f1d3d;font-size:22px;font-weight:800;line-height:1.1}
.ov-donut-center span{color:#5b6b8c;font-size:12px}
.ov-legend{flex:1 1 210px;min-width:0;display:grid;gap:12px;margin:0;padding:0;list-style:none}
.ov-legend li{display:grid;grid-template-columns:11px minmax(0,1fr) 38px 34px;align-items:center;gap:9px;color:#1e2b4a;font-size:12.5px;line-height:1.3}
.ov-legend i{width:11px;height:11px;border-radius:50%}
.ov-legend span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ov-legend b{font-weight:700;text-align:right}
.ov-legend em{color:#5b6b8c;font-style:normal;text-align:right}

.ov-quicks{display:flex;flex-direction:column;gap:8px}
.ov-quicks .ov-card-head{margin-bottom:4px}
.ov-quick{display:flex;align-items:center;gap:12px;min-height:46px;padding:0 16px;border:0;border-radius:8px;color:#fff;font-size:13.5px;font-weight:700;text-align:left;cursor:pointer;box-shadow:0 4px 10px #0f1d3d1a;transition:filter .15s ease,transform .15s ease}
.ov-quick:hover{filter:brightness(1.06);transform:translateY(-1px)}
.ov-quick>span{flex:1}
.ov-quick .ov-ic{width:18px;height:18px}
.ov-quick-go{width:15px!important;height:15px!important}
.ov-quick.tone-blue{background:linear-gradient(95deg,#1d5fe0,#2b6ff0)}
.ov-quick.tone-green{background:linear-gradient(95deg,#1fa765,#29b874)}
.ov-quick.tone-purple{background:linear-gradient(95deg,#7c4ee6,#8f5cf2)}
.ov-quick.tone-orange{background:linear-gradient(95deg,#f2711c,#fb8a32)}
.ov-quick.tone-pink{background:linear-gradient(95deg,#ec3f87,#f4559a)}
.ov-quick-more{display:flex;align-items:center;gap:10px;min-height:34px;margin-top:auto;padding:0 14px;border:1px solid #e3eaf5;border-radius:8px;background:#f5f8fd;color:#1d4ed8;font-size:12.5px;font-weight:700;cursor:pointer}
.ov-quick-more>span{flex:1;text-align:left}
.ov-quick-more .ov-ic{width:15px;height:15px}

.ov-partner{min-height:88px;display:flex;align-items:center;gap:14px;padding:12px 14px;line-height:1.3}
.ov-partner-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
.ov-partner-label{min-width:0;font-size:13px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ov-partner.tone-blue .ov-partner-label{color:#2563eb}.ov-partner.tone-purple .ov-partner-label{color:#7c3aed}
.ov-partner.tone-orange .ov-partner-label{color:#ea580c}.ov-partner.tone-pink .ov-partner-label{color:#db2777}
.ov-partner.tone-blue .ov-kpi-icon{background:#e6efff;color:#2563eb}.ov-partner.tone-pink .ov-kpi-icon{background:#ffe4ee;color:#e11d48}
.ov-link{display:inline-flex;align-items:center;gap:4px;padding:0;border:0;background:none;color:#1d4ed8;font-size:12px;font-weight:700;text-decoration:underline;text-underline-offset:3px;white-space:nowrap;cursor:pointer}
.ov-link .ov-ic{width:13px;height:13px}

.ov-bottom{display:grid;grid-template-columns:minmax(0,1fr) 420px;gap:12px;align-items:start}
.ov-orders{padding:16px 18px 10px}
.dashboard .ov-table{min-width:760px;font-size:13px!important}
.dashboard .ov-table thead th{padding:9px 14px;border:0;background:#f5f8fc;color:#34425f;font-size:11px!important;font-weight:700;letter-spacing:.03em}
.dashboard .ov-table thead th:first-child{border-radius:8px 0 0 8px}.dashboard .ov-table thead th:last-child{border-radius:0 8px 8px 0}
.dashboard .ov-table td{padding:8px 14px;border-bottom:1px solid #f0f3f8;color:#1e2b4a;vertical-align:middle;white-space:nowrap}
.ov-order-link,.ov-view{padding:0;border:0;background:none;color:#1d4ed8;font:inherit;font-weight:700;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.ov-view{font-weight:600}
.ov-tag,.ov-status{display:inline-block;padding:3px 9px;border-radius:6px;font-size:11.5px;font-weight:600;line-height:1.35}
.tag-dealer{background:#e8f0ff;color:#1d4ed8}.tag-direct{background:#e9f1ff;color:#2563eb}
.tag-business{background:#f1e8ff;color:#7c3aed}.tag-referral{background:#ffe8ef;color:#e11d48}
.tag-delivery{background:#fff0e5;color:#ea580c}.tag-marketing{background:#ffe4f0;color:#db2777}
.ov-status.tone-green{background:#e3f7ea;color:#15803d}.ov-status.tone-orange{background:#fff0de;color:#c2410c}
.ov-status.tone-blue{background:#e5efff;color:#1d4ed8}.ov-status.tone-red{background:#fde8e8;color:#b91c1c}
.ov-empty{color:#6b7a99;font-size:13px}
.ov-activity-list{display:grid;margin:0;padding:0;list-style:none}
.ov-activity-list li{display:grid;grid-template-columns:28px minmax(0,1fr) auto;align-items:start;gap:12px;padding:7px 0}
.ov-act-ic{width:28px;height:28px;display:grid;place-items:center;border-radius:50%;color:#fff}
.ov-act-ic .ov-ic{width:14px;height:14px}
.ov-act-ic.tone-green{background:#22b573}.ov-act-ic.tone-orange{background:#f97316}.ov-act-ic.tone-purple{background:#8b5cf6}
.ov-act-ic.tone-blue{background:#2563eb}.ov-act-ic.tone-pink{background:#ec4899}
.ov-act-text{min-width:0;display:grid;gap:1px}
.ov-act-text strong{color:#0f1d3d;font-size:13px;font-weight:700}
.ov-act-text small{color:#6b7a99;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ov-activity-list time{color:#6b7a99;font-size:12px;white-space:nowrap}

/* Smaller screens */
@media(max-width:1600px){.ov-kpis{grid-template-columns:repeat(4,minmax(0,1fr))}.ov-partners{grid-template-columns:repeat(2,minmax(0,1fr))}.ov-bottom{grid-template-columns:minmax(0,1fr) 380px}}
@media(max-width:1500px){.ov-bottom{grid-template-columns:minmax(0,1fr)}}
@media(max-width:1350px){.ov-top{grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-areas:"sales sales" "channels quick" "partners partners"}.ov-bottom{grid-template-columns:minmax(0,1fr)}.ov-range{min-width:0}.dashboard .admin-search{width:230px!important}}
@media(max-width:1120px){.dashboard{grid-template-columns:220px minmax(0,1fr)!important}.dashboard>.sidebar{width:220px}.dashboard .topbar{flex-wrap:wrap}.dashboard .topbar-actions{flex-wrap:wrap;padding-top:0}}
@media(max-width:900px){.ov-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.ov-top{grid-template-columns:minmax(0,1fr);grid-template-areas:"sales" "channels" "quick" "partners"}.ov-partners{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:800px){.dashboard{grid-template-columns:minmax(0,1fr)!important}.dashboard>.sidebar{width:100%}.dashboard>.sidebar .sidebar-label{display:none}.dashboard>.sidebar .nav-item{min-height:44px;flex-direction:column;justify-content:center;gap:3px;padding:4px;text-align:center}.dashboard>.sidebar nav .nav-item>span:last-child{font-size:10.5px!important;line-height:1.2}}
@media(max-width:600px){.dashboard>.admin-main{padding:14px 16px 24px!important}.dashboard .topbar-actions{width:100%}.dashboard .admin-search{width:100%!important;order:5}.ov-range{flex:1}.ov-admin-text{display:none}.ov-kpis,.ov-partners{grid-template-columns:minmax(0,1fr)}.ov-donut-wrap{flex-direction:column;align-items:stretch}.ov-donut{margin:0 auto}.ov-pop{position:fixed;left:16px!important;right:16px!important;top:auto;min-width:0}}

/* Session check after a refresh: shown instead of the login form until the saved session is verified. */
.admin-checking{min-height:100vh;display:grid;place-content:center;justify-items:center;gap:14px;background:#f3f6fb;color:#33476b;font-size:15px;font-weight:600}
.admin-checking[hidden]{display:none}
.admin-checking p{margin:0}
.admin-checking-mark{width:56px;height:56px;border-radius:12px;background:#fff url('../images/logo/monagadu-501-logo.png') center/contain no-repeat;box-shadow:0 6px 18px #0f1d3d1f;animation:admin-checking 1.2s ease-in-out infinite}
@keyframes admin-checking{50%{transform:scale(.92);opacity:.7}}
@media(prefers-reduced-motion:reduce){.admin-checking-mark{animation:none}}
/* Keep the sidebar logout action aligned inside a full-width button box. */
.dashboard > .sidebar .sidebar-bottom { min-width: 0; }
.dashboard > .sidebar .sidebar-bottom > [data-admin-email] { overflow-wrap: anywhere; }
.dashboard > .sidebar .sidebar-bottom > .signout-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 10px 16px;
  border: 1px solid #49668e;
  border-radius: 10px;
  background: #19365f;
  color: #fff;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
}
.dashboard > .sidebar .sidebar-bottom > .signout-button:hover { background: #254978; border-color: #7b9cc9; }
.dashboard > .sidebar .sidebar-bottom > .signout-button:focus-visible { outline: 3px solid #93c5fd; outline-offset: 3px; }
