/* AI Power OMS — premium visual layer. Tokens live in voice-assistant.css. */

:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.admin-sidebar {
    background: #0B1220;
    border-right: 1px solid rgba(148, 163, 184, 0.12);
}
.sidebar-brand {
    padding: 14px 14px 12px;
    background: #0B1220;
}
.brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: var(--primary);
    font-size: 0.78rem;
}
.sidebar-nav a {
    border-radius: 8px;
    padding: 7px 10px;
    font-size: 0.82rem;
    color: #CBD5E1;
}
.sidebar-nav a:hover { background: rgba(255,255,255,0.06); }
.sidebar-nav a.active {
    background: rgba(37, 99, 235, 0.18);
    color: #fff;
    box-shadow: inset 2px 0 0 var(--primary);
}
.sidebar-nav a.nav-ai.active {
    background: rgba(37, 99, 235, 0.18);
}
.nav-section {
    margin: 16px 10px 5px;
    color: #64748B;
    letter-spacing: 0.1em;
}
.nav-group-toggle { color: #64748B; }
.nav-group-toggle:hover { color: #E2E8F0; }
.sidebar-foot { color: #64748B; font-size: 0.7rem; }

.admin-topbar {
    padding: 10px 1.5rem;
    background: #fff;
    border-bottom: 1px solid var(--line);
}
.topbar-title h1 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 650;
    letter-spacing: -0.02em;
    color: var(--text);
}
.topbar-title .eyebrow {
    margin: 0 0 2px;
    font-size: 0.7rem;
    color: var(--muted);
    font-weight: 600;
    letter-spacing: 0.01em;
}
.topbar-search {
    max-width: 280px;
    background: var(--bg);
}
.role-badge,
.sub-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--bg);
    color: var(--text-secondary);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}
.sub-pill.is-active { background: #ECFDF5; border-color: #BBF7D0; color: #047857; }
.sub-pill.is-warn { background: #FFFBEB; border-color: #FDE68A; color: #B45309; }
.sub-pill.is-error { background: #FEF2F2; border-color: #FECACA; color: #B91C1C; }
.role-badge.is-super { background: #EEF2FF; border-color: #C7D2FE; color: #3730A3; }
.role-badge.is-admin { background: #EFF6FF; border-color: #BFDBFE; color: #1D4ED8; }

.page-hero {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 16px;
    padding: 14px 1.5rem;
    border-bottom: 1px solid var(--line);
    background: none;
    box-shadow: none;
}
.page-hero-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #EFF6FF;
    color: var(--primary);
    font-size: 1rem;
}
.page-hero h2 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 650;
    letter-spacing: -0.02em;
}
.page-hero p {
    margin: 2px 0 0;
    font-size: 0.82rem;
    color: var(--muted);
}

.admin-content {
    padding: 18px 1.5rem 28px;
}
.form-card,
.data-card,
.panel,
.dash-panel {
    border-radius: var(--radius);
    box-shadow: none;
    border: 1px solid var(--line);
}
.form-card { padding: 18px 18px 16px; }
.form-section h3,
.premium-form-head h2,
.super-form-card h3 {
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 700;
}
.btn-primary,
.btn-ghost,
.btn-ai {
    border-radius: 8px;
    font-weight: 600;
    min-height: 36px;
}
.btn-primary { box-shadow: none; }
.btn-ai {
    background: var(--primary);
    color: #fff;
}
.btn-ai:hover { background: var(--primary-hover); color: #fff; }

.data-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #F8FAFC;
    font-size: 0.7rem;
}
.data-table td { font-size: 0.82rem; }
.data-table tbody tr:hover { background: #F8FAFC; }
.ol-num,
.data-table td:has(> .money),
.dash-table td:nth-child(4),
.dash-table td:nth-child(5) { text-align: right; font-variant-numeric: tabular-nums; }

.shop-toolbar,
.toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 14px;
}
.shop-toolbar input,
.shop-toolbar select,
.toolbar input,
.toolbar select {
    min-height: 36px;
    border-radius: 8px;
}

.date-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 12px;
    align-items: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px 14px;
    margin: 0 0 12px;
}
.date-filter-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.date-filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.date-chip {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--bg);
    color: var(--text);
    font-size: 0.8rem;
    font-weight: 650;
    text-decoration: none;
}
.date-chip:hover { border-color: var(--primary); color: var(--primary); }
.date-chip.is-active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}
.date-filter-custom {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: flex-end;
    margin-left: auto;
}
.date-filter-custom label {
    display: grid;
    gap: 4px;
    margin: 0;
    font-size: 0.72rem;
    color: var(--muted);
    font-weight: 650;
}
.date-filter-custom input[type="date"] {
    min-height: 34px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0 8px;
    background: #fff;
}
.super-shop-list .date-filter-bar {
    margin: 0 16px 8px;
}

.banner {
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 0.82rem;
}
.sub-access-banner {
    margin: 0 0 14px;
    border-left: 3px solid currentColor;
}

.dash-home { gap: 16px; }
.dash-welcome {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(240px, 0.7fr);
    gap: 20px;
    align-items: stretch;
    background: #fff;
    color: var(--text);
    border: 1px solid var(--line);
    box-shadow: none;
    padding: 22px 24px;
    border-radius: var(--radius);
}
.dash-hero p,
.dash-hero .dash-kicker { color: var(--muted); }
.dash-hero h2 { color: var(--text); font-size: 1.55rem; font-weight: 700; letter-spacing: -0.03em; }
.dash-kicker {
    color: var(--primary);
    text-transform: none;
    letter-spacing: 0;
    font-size: 0.8rem;
    font-weight: 600;
}
.dash-hero-ghost {
    background: #fff !important;
    border-color: var(--line) !important;
    color: var(--text) !important;
}
.dash-hero-ghost:hover { background: var(--bg) !important; color: var(--text) !important; }
.dash-hero-actions .btn-primary,
.dash-hero-actions .btn-ghost { width: auto; }
.dash-home .dash-ai-hints { margin-top: 16px; }
.dash-home .dash-ai-chips a {
    background: #F1F5F9;
    border: 1px solid var(--line);
    color: var(--text-secondary);
}
.dash-home .dash-panel { padding: 16px; }
.dash-home .dash-panel-head { margin-bottom: 12px; }
.dash-hero-meta {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
    text-align: left;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #F8FAFC;
}
.dash-hero-date span,
.dash-hero-date strong,
.dash-hero-pills span { color: var(--text-secondary); }
.dash-hero-date span { font-size: 0.75rem; font-weight: 600; }
.dash-hero-date strong { display: block; margin-top: 2px; color: var(--text); font-size: 1.15rem; }
.dash-hero-pills span {
    background: var(--bg);
    border-color: var(--line);
    color: var(--text-secondary);
}
.dash-welcome-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dash-welcome-tile {
    display: block;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    text-decoration: none;
    color: inherit;
}
.dash-welcome-tile span { display: block; color: var(--muted); font-size: 0.68rem; font-weight: 650; }
.dash-welcome-tile strong { display: block; margin-top: 3px; color: var(--text); font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.dash-orb { display: none; }

.dash-kpi { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.dash-home .dash-kpi-card {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 14px 12px;
    border-radius: 10px;
    box-shadow: none;
}
.dash-home .dash-kpi-card::before { width: 3px; }
.dash-home .dash-kpi-icon { width: 34px; height: 34px; margin: 0; border-radius: 8px; font-size: 0.95rem; flex: 0 0 auto; }
.dash-kpi-copy { min-width: 0; }
.dash-kpi-card:hover { transform: none; }
.dash-kpi-card strong { font-size: 1.28rem; letter-spacing: -0.03em; }
.dash-home .dash-kpi-card span { font-size: 0.7rem; font-weight: 650; text-transform: uppercase; letter-spacing: 0.03em; }

.dash-split {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 14px;
}
.dash-inv-card .inv-overview,
.dash-inv-card .dash-mini { margin: 0; }
.dash-inv-card .inv-overview { margin-bottom: 12px; }
.inv-overview {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}
.inv-overview article {
    background: #F8FAFC;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 12px;
}
.inv-overview article i { display: block; margin-bottom: 8px; color: var(--primary); font-size: 1rem; }
.inv-overview span { display: block; color: var(--muted); font-size: 0.7rem; font-weight: 650; }
.inv-overview strong { display: block; margin-top: 4px; font-size: 1.12rem; color: var(--text); font-variant-numeric: tabular-nums; }

.dash-alerts { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.dash-alerts li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #F8FAFC;
    color: var(--text-secondary);
    font-size: 0.82rem;
    line-height: 1.45;
}
.dash-alerts i { margin-top: 1px; }
.dash-alerts .is-ok { background: #F0FDF4; border-color: #BBF7D0; }
.dash-alerts .is-ok i { color: #047857; }
.dash-alerts .is-warn { background: #FFFBEB; border-color: #FDE68A; }
.dash-alerts .is-warn i { color: #B45309; }
.dash-alerts .is-due { background: #FEF2F2; border-color: #FECACA; }
.dash-alerts .is-due i { color: #B91C1C; }
.dash-alerts .is-info { background: #EFF6FF; border-color: #BFDBFE; }
.dash-alerts .is-info i { color: #1D4ED8; }
.dash-alert-card .dash-quick {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
}
.dash-alert-card .dash-quick a {
    min-height: 40px;
    padding: 8px 10px;
    font-size: 0.78rem;
}

.user-stats .dash-mini-card:first-child {
    border-color: #BFDBFE;
    background: #F8FBFF;
}
.role-perm-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}
.role-access-grid .role-perm-row {
    margin: 0 0 8px;
}
.role-perm-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}
.role-access-grid .role-perm-actions input,
.role-access-grid .role-perm-menu input {
    position: static !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    width: 16px !important;
    min-width: 16px;
    height: 16px !important;
    min-height: 16px !important;
    padding: 0 !important;
    margin: 0 6px 0 0 !important;
    accent-color: #2563EB;
    cursor: pointer;
}
.role-perm-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.role-perm-chip,
.role-perm-actions label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    font-size: 0.72rem;
    font-weight: 600;
}
.role-perm-chip:has(input:checked),
.role-perm-menu:has(input:checked) span {
    color: #1D4ED8;
}
.role-perm-chip:has(input:checked) {
    border-color: #BFDBFE;
    background: #EFF6FF;
}
.field-hint {
    display: block;
    margin-top: 4px;
    color: #64748B;
    font-size: 0.75rem;
    font-weight: 500;
}
.tile-preview {
    background: #F8FAFC;
    border-style: dashed;
}
.bt-default-uom {
    display: block;
    margin-top: 12px;
    max-width: 320px;
}
.bt-cat-list {
    list-style: none;
    margin: 0 0 12px;
    padding: 0;
    display: grid;
    gap: 6px;
}
.bt-cat-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--bg);
}
.bt-cat-list li span { font-weight: 650; flex: 1; }
.bt-cat-list li em { color: var(--muted); font-size: 0.75rem; font-style: normal; }
.tile-room-calc {
    margin-top: 12px;
    padding: 12px 14px;
    border: 1px dashed #93C5FD;
    border-radius: 10px;
    background: #F8FBFF;
}
.tile-room-calc label { margin-bottom: 0; }
.tile-room-calc input { max-width: 220px; }

.bt-empty,
.dash-empty,
.pos-empty {
    text-align: center;
    padding: 28px 16px;
    color: var(--muted);
}
.bt-empty h3,
.pos-empty strong { color: var(--text); }

.app-toast {
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.ui-modal-dialog {
    border-radius: 12px;
    border: 1px solid var(--line);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
}

@media (max-width: 1200px) {
    .dash-kpi { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .inv-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dash-welcome,
    .dash-split { grid-template-columns: 1fr; }
}
@media (max-width: 980px) {
    .admin-content { padding: 14px 14px 24px; }
    .dash-kpi,
    .dash-mini,
    .inv-overview,
    .stat-grid { grid-template-columns: 1fr 1fr; }
    .dash-hero { flex-direction: column; align-items: flex-start; }
    .dash-hero-meta { text-align: left; width: 100%; }
    .dash-hero-pills { align-items: flex-start; }
    .topbar-search { display: none; }
}
.page-hero-icon-grad {
    background: #EFF6FF;
    color: var(--primary);
    box-shadow: none;
}
.dash-kpi-card {
    border-radius: var(--radius);
    box-shadow: none;
}
.dash-kpi-card::before { width: 3px; }
.dash-kpi-card:hover {
    transform: none;
    box-shadow: none;
}

.super-dashboard-hero,
.super-shop-focus {
    background: #fff;
    color: var(--text);
    border: 1px solid var(--line);
    box-shadow: none;
    border-radius: var(--radius);
    padding: 22px 24px;
}
.super-dashboard-kicker,
.super-shop-focus-kicker { color: var(--primary); letter-spacing: 0.06em; }
.super-dashboard-copy h2,
.super-shop-focus h2 { color: var(--text); font-size: 1.35rem; letter-spacing: -0.02em; }
.super-dashboard-copy p,
.super-shop-focus p { color: var(--muted); }
.super-dashboard-actions .btn-ghost {
    border-color: var(--line);
    background: #fff;
    color: var(--text);
}
.super-health-card {
    background: var(--bg);
    border: 1px solid var(--line);
    box-shadow: none;
    backdrop-filter: none;
}
.super-health-head span,
.super-health-meta span { color: var(--muted); }
.super-health-head strong,
.super-health-meta strong { color: var(--text); }
.super-health-track { background: #E2E8F0; }
.super-shop-avatar {
    background: #EFF6FF;
    color: var(--primary);
    border-color: #BFDBFE;
    box-shadow: none;
}
.super-shop-focus-side strong { color: var(--text); }
.super-editor {
    border: 1px solid var(--line);
    box-shadow: none;
    background: #fff;
}
.super-editor-head {
    background: #F8FAFC;
    color: var(--text);
    border-bottom: 1px solid var(--line);
}
.super-editor-head span:first-child { color: var(--muted); }
.super-editor-head h2 { color: var(--text); }

.action-more {
    position: relative;
    display: inline-block;
}
.action-more > summary {
    list-style: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 28px;
    padding: 3px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--text-secondary);
    font-size: 0.72rem;
    font-weight: 650;
}
.action-more > summary::-webkit-details-marker { display: none; }
.action-more-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    z-index: 8;
    min-width: 180px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.1);
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.action-more-menu .action-chip,
.action-more-menu .inline-form { width: 100%; }
.action-more-menu .action-chip { justify-content: flex-start; }
.super-shop-list .table-actions {
    min-width: 0;
    white-space: nowrap;
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
    justify-content: flex-end;
    align-items: center;
}
.super-shop-list .table-actions .action-chip {
    margin-right: 0;
    padding: 2px 8px;
    min-height: 26px;
    font-size: 0.7rem;
}
.super-shop-list .shop-table-wrap {
    overflow-x: auto;
}
@media (min-width: 1101px) {
    .super-shop-list .ol-table thead th:last-child,
    .super-shop-list .ol-table td.table-actions {
        position: sticky;
        right: 0;
        z-index: 3;
        background: #fff;
        box-shadow: -8px 0 12px -10px rgba(15, 23, 42, 0.25);
    }
    .super-shop-list .ol-table thead th:last-child {
        background: #F8FAFC;
    }
}

.user-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}
.user-avatar {
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #EEF2FF;
    color: #3730A3;
    font-size: 0.75rem;
    font-weight: 700;
}
.hist-op {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #F8FAFC;
    color: var(--text-secondary);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.hist-op.is-sale { background: #EFF6FF; border-color: #BFDBFE; color: #1D4ED8; }
.hist-op.is-add { background: #ECFDF5; border-color: #BBF7D0; color: #047857; }
.hist-op.is-adjust { background: #FFFBEB; border-color: #FDE68A; color: #B45309; }
.hist-op.is-damage { background: #FEF2F2; border-color: #FECACA; color: #B91C1C; }
.hist-op.is-transfer { background: #F5F3FF; border-color: #DDD6FE; color: #6D28D9; }

.lock-card {
    box-shadow: var(--shadow) !important;
    border-radius: 12px !important;
}
.auth-body {
    background: var(--bg) !important;
}

@media (max-width: 980px) {
    .data-table:not(.ol-table) { display: block; overflow-x: auto; }
}
@media (max-width: 640px) {
    .dash-kpi,
    .dash-mini,
    .inv-overview,
    .stat-grid,
    .dash-grid { grid-template-columns: 1fr; }
    .role-badge { display: none; }
    .form-grid { grid-template-columns: 1fr; }
    .page-hero { align-items: flex-start; }
    .page-hero-actions { width: 100%; }
    .super-dashboard-hero { grid-template-columns: 1fr; }
    .dash-welcome-tiles,
    .dash-alert-card .dash-quick { grid-template-columns: 1fr; }
}

/* ——— Shared page layout ——— */
.oms-page {
    display: grid;
    gap: 16px;
}
.oms-page > .toolbar,
.oms-page > .shop-toolbar,
.oms-page > .invoice-toolbar,
.oms-page > .payment-toolbar,
.oms-page > .challan-toolbar {
    margin: 0;
    padding: 12px 1.5rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.oms-page > .shop-stats,
.oms-page > .dash-mini,
.oms-page .shop-stats {
    margin: 0;
}
.oms-page .dash-mini-card,
.oms-page .shop-stats .dash-mini-card {
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: none;
    background: #fff;
    padding: 12px 14px;
}
.oms-page .data-card,
.oms-page .form-card,
.oms-page .panel,
.oms-page .stock-desk,
.oms-page .product-form-card,
.oms-page .pos-wrap {
    margin: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: none;
    background: #fff;
}
.oms-page .card-head {
    padding: 12px 1.5rem;
    border-bottom: 1px solid var(--line);
    background: #F8FAFC;
}
.oms-page .premium-form-head,
.oms-page .form-section h3 {
    margin-bottom: 14px;
}
.oms-page .form-section {
    padding: 16px 0 4px;
    border-top: 1px solid var(--line);
}
.oms-page .form-section:first-child { border-top: 0; padding-top: 0; }
.oms-page .report-tabs,
.oms-page .log-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 8px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.oms-page .report-tabs a,
.oms-page .log-tabs a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.78rem;
    font-weight: 650;
}
.oms-page .report-tabs a.is-on,
.oms-page .log-tabs a.is-on {
    background: #EFF6FF;
    color: #1D4ED8;
}
.oms-page .report-hero {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0;
    padding: 18px 20px;
    background: #fff;
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: none;
}
.oms-page .report-hero-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: #EFF6FF;
    color: var(--primary);
}
.oms-page .report-hero-copy span,
.oms-page .report-hero-copy p,
.oms-page .report-hero-value span,
.oms-page .report-hero-value small { color: var(--muted); }
.oms-page .report-hero-copy h2,
.oms-page .report-hero-value strong { color: var(--text); }
.oms-page .voice-welcome {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.oms-page .voice-welcome h2 {
    margin: 0 0 4px;
    font-size: 1.35rem;
    letter-spacing: -0.03em;
}
.oms-page .voice-welcome p { margin: 0; color: var(--muted); font-size: 0.86rem; }
.oms-page .stage {
    margin: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: #fff;
}
.oms-page .item-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    padding: 12px 0;
    border-top: 1px solid var(--line);
}

/* ——— Full-app responsive layer ——— */
html, body.admin-body, body.auth-body {
    max-width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
}
img, video, iframe, svg { max-width: 100%; height: auto; }
input, select, textarea, button, .btn-primary, .btn-ghost, .btn-ai {
    max-width: 100%;
}
.admin-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100dvh;
    max-height: 100dvh;
}
.admin-body, .admin-app {
    height: auto;
    max-height: none;
    min-height: 100dvh;
}
.admin-main, .admin-content, .form-card, .data-card, .panel, .dash-panel,
.super-editor, .super-form-card, .page-hero, .shop-table-wrap {
    min-width: 0;
    max-width: 100%;
}

@media (max-width: 1180px) {
    .dash-grid,
    .dash-grid-even,
    .page-split,
    .pos-wrap,
    .pay-wrap,
    .super-overview-grid,
    .super-dashboard-hero,
    .challan-create-wrap,
    .profile-premium { grid-template-columns: 1fr; }
    .pos-summary { position: static; width: 100%; }
}

@media (max-width: 980px) {
    .admin-app { width: 100%; }
    .admin-main,
    .admin-app.is-collapsed .admin-main { margin-left: 0; width: 100%; flex: 1 1 auto; }
    .admin-sidebar {
        position: fixed !important;
        inset: 0 auto 0 0;
        width: min(300px, 86vw) !important;
        flex: none !important;
        transform: translateX(-110%);
        z-index: 40;
        padding-bottom: env(safe-area-inset-bottom);
    }
    .admin-app.sidebar-open .admin-sidebar {
        transform: translateX(0);
        box-shadow: 18px 0 40px rgba(15, 23, 42, 0.22);
    }
    .admin-app.is-collapsed .admin-sidebar {
        width: min(300px, 86vw) !important;
        flex-basis: auto !important;
    }
    .admin-app.is-collapsed .brand-copy,
    .admin-app.is-collapsed .nav-section,
    .admin-app.is-collapsed .nav-group-toggle,
    .admin-app.is-collapsed .sidebar-foot { display: block; }
    .admin-app.is-collapsed .nav-group-toggle { display: flex; }
    .admin-app.is-collapsed .nav-label { display: inline; }
    .admin-app.is-collapsed .sidebar-brand {
        flex-direction: row;
        justify-content: flex-start;
        gap: 12px;
        padding: 14px 14px 12px;
    }
    .admin-app.is-collapsed .sidebar-nav a {
        justify-content: flex-start;
        padding: 8px 10px;
    }
    .admin-app.is-collapsed .sidebar-nav a i { margin: 0; width: 18px; }
    .sidebar-toggle { display: inline-grid; place-items: center; flex: 0 0 auto; }
    .admin-topbar {
        gap: 8px;
        padding: 10px 12px;
        align-items: center;
    }
    .topbar-title { flex: 1 1 auto; }
    .topbar-title .eyebrow {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }
    .topbar-title h1 {
        font-size: 1rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .topbar-search { display: none !important; }
    .topbar-meta {
        margin-left: 0;
        justify-content: flex-end;
        flex: 0 1 auto;
    }
    .topbar-meta .btn-ai { display: none; }
    .admin-body.is-platform .topbar-meta .btn-ai { display: inline-flex; }
    .shop-pill { max-width: 220px; min-height: 0; }
    .shop-pill span, .shop-pill-copy { max-width: 110px; }
    .shop-pill .shop-logo { width: 35px; height: 35px; }
    .dash-brand .shop-logo, .dash-kicker .shop-logo { width: 72px; height: 72px; }
    .topbar-menu {
        position: fixed;
        right: 10px;
        left: 10px;
        top: 58px;
        min-width: 0;
        width: auto;
    }
    .page-hero {
        flex-wrap: wrap;
        gap: 10px;
        padding: 12px 1.5rem;
    }
    .page-hero-actions {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }
    .toolbar, .shop-toolbar {
        width: 100%;
        align-items: stretch;
    }
    .toolbar input, .toolbar select,
    .shop-toolbar input, .shop-toolbar select,
    .shop-search { flex: 1 1 100%; min-width: 0; width: 100%; }
    .form-grid,
    .super-form,
    .super-access-grid { grid-template-columns: 1fr 1fr; }
    .span-2 { grid-column: 1 / -1; }
    .data-card,
    .shop-table-wrap,
    .dash-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .data-table:not(.ol-table) { min-width: 680px; }
    .table-actions { white-space: normal; }
    .ui-modal { padding: 12px; }
    .ui-modal-dialog,
    .ui-modal-dialog.is-wide { width: min(100%, 920px); max-height: 92dvh; }
}

@media (max-width: 720px) {
    .admin-content { padding: 12px 1.5rem 28px; padding-bottom: calc(28px + env(safe-area-inset-bottom)); }
    .form-grid,
    .super-form,
    .super-access-grid,
    .check-grid,
    .dash-kpi,
    .dash-mini,
    .dash-quick,
    .inv-overview,
    .stat-grid,
    .shop-stats,
    .shop-card-grid,
    .type-card-grid,
    .oms-page .item-grid { grid-template-columns: 1fr !important; }
    .oms-page .report-hero,
    .oms-page .voice-welcome { flex-direction: column; align-items: flex-start; }
    .span-2 { grid-column: auto; }
    .page-hero h2 { font-size: 1.05rem; }
    .page-hero p { font-size: 0.78rem; }
    .page-hero-actions .btn-primary,
    .page-hero-actions .btn-ghost,
    .toolbar .btn-primary,
    .toolbar .btn-ghost,
    .form-actions .btn-primary,
    .form-actions .btn-ghost,
    .super-save .btn-primary { width: 100%; justify-content: center; }
    .role-badge, .sub-pill { display: none; }
    .topbar-meta .pill span { max-width: 64px; }
    .ui-modal { padding: 0; }
    .ui-modal-dialog,
    .ui-modal-dialog.is-wide {
        width: 100%;
        height: 100%;
        max-height: 100dvh;
        border-radius: 0;
    }
    .app-toast { left: 12px; right: 12px; bottom: 12px; }
    .pos-sqft input { width: 100%; }
    .premium-form-head { flex-wrap: wrap; }
}

@media (max-width: 480px) {
    .admin-topbar { padding: 8px 10px; }
    .shop-pill span,
    .topbar-meta .pill span { display: none; }
    .topbar-title .eyebrow { display: none; }
    .dash-welcome { padding: 16px; }
    .dash-hero h2 { font-size: 1.25rem; }
    .dash-ai-chips { display: flex; flex-wrap: wrap; }
    .action-more-menu { left: 0; right: auto; min-width: 160px; }
}

/* ——— Soft color lift ——— */
body.admin-body,
.admin-main {
    background: #EEF3FB;
}
.admin-content {
    background:
        radial-gradient(720px 280px at 100% -40px, rgba(99, 102, 241, 0.10), transparent 55%),
        radial-gradient(640px 240px at -80px 0, rgba(14, 165, 233, 0.10), transparent 50%),
        #EEF3FB;
}
.page-hero {
    background: linear-gradient(135deg, #F8FBFF, #FFFFFF 62%, #F5F3FF);
    border-color: #D7E3F4;
    padding: 14px 1.5rem;
}
.page-hero-icon,
.page-hero-icon-grad {
    background: linear-gradient(135deg, #DBEAFE, #E0E7FF);
    color: #1D4ED8;
    box-shadow: none;
}
.dash-welcome {
    background: linear-gradient(135deg, #EEF4FF 0%, #FFFFFF 52%, #F5F3FF 100%);
    border-color: #C7D7F0;
}
.dash-hero-meta,
.dash-welcome-tile {
    background: #fff;
    border-color: #D7E3F4;
}
.dash-welcome-tile:first-child { border-color: #BFDBFE; background: #F0F7FF; }
.dash-welcome-tile:last-child { border-color: #FDE68A; background: #FFFBEB; }
.dash-home .dash-kpi-card.is-orders { background: linear-gradient(180deg, #F5F3FF, #fff); }
.dash-home .dash-kpi-card.is-sales { background: linear-gradient(180deg, #EFF6FF, #fff); }
.dash-home .dash-kpi-card.is-due { background: linear-gradient(180deg, #FFFBEB, #fff); }
.dash-home .dash-kpi-card.is-stock { background: linear-gradient(180deg, #FEF2F2, #fff); }
.inv-overview article:nth-child(1) { background: #EFF6FF; border-color: #BFDBFE; }
.inv-overview article:nth-child(1) i { color: #2563EB; }
.inv-overview article:nth-child(2) { background: #ECFDF5; border-color: #BBF7D0; }
.inv-overview article:nth-child(2) i { color: #15803D; }
.inv-overview article:nth-child(3) { background: #F5F3FF; border-color: #DDD6FE; }
.inv-overview article:nth-child(3) i { color: #6D28D9; }
.inv-overview article:nth-child(4) { background: #FEF2F2; border-color: #FECACA; }
.inv-overview article:nth-child(4) i { color: #B91C1C; }

.dash-mini-card:nth-child(1) i,
.shop-stats .dash-mini-card:nth-child(1) i { background: #DBEAFE; color: #1D4ED8; }
.dash-mini-card:nth-child(2) i,
.shop-stats .dash-mini-card:nth-child(2) i { background: #DCFCE7; color: #15803D; }
.dash-mini-card:nth-child(3) i,
.shop-stats .dash-mini-card:nth-child(3) i { background: #FEF3C7; color: #B45309; }
.dash-mini-card:nth-child(4) i,
.shop-stats .dash-mini-card:nth-child(4) i { background: #EDE9FE; color: #6D28D9; }
.dash-mini-card:nth-child(5) i { background: #CFFAFE; color: #0E7490; }
.dash-mini-card:nth-child(6) i { background: #FFE4E6; color: #BE123C; }
.oms-page .dash-mini-card:nth-child(1),
.oms-page .shop-stats .dash-mini-card:nth-child(1) { background: #F8FBFF; border-color: #BFDBFE; }
.oms-page .dash-mini-card:nth-child(2),
.oms-page .shop-stats .dash-mini-card:nth-child(2) { background: #F3FDF7; border-color: #BBF7D0; }
.oms-page .dash-mini-card:nth-child(3),
.oms-page .shop-stats .dash-mini-card:nth-child(3) { background: #FFFBEB; border-color: #FDE68A; }
.oms-page .dash-mini-card:nth-child(4),
.oms-page .shop-stats .dash-mini-card:nth-child(4) { background: #F8F5FF; border-color: #DDD6FE; }

.oms-page .card-head { background: #F3F7FF; }
.oms-page .report-hero {
    background: linear-gradient(135deg, #EEF4FF, #fff 58%, #F5F3FF);
    border-color: #C7D7F0;
}
.oms-page .report-tabs a.is-on,
.oms-page .log-tabs a.is-on { background: #DBEAFE; color: #1D4ED8; }
.oms-page .voice-welcome {
    background: linear-gradient(135deg, #EEF4FF, #fff 60%, #F5F3FF);
    border-color: #C7D7F0;
}
.sidebar-nav a.active {
    background: #2563EB;
    color: #fff;
    box-shadow: none;
}
.sidebar-nav a.nav-ai.active {
    background: linear-gradient(135deg, #2563EB, #7C3AED);
}
.brand-mark {
    background: linear-gradient(135deg, #2563EB, #7C3AED);
}
.btn-primary {
    background: linear-gradient(180deg, #3B82F6, #2563EB);
    border-color: #1D4ED8;
    color: #fff;
}
.btn-primary:hover { background: #1D4ED8; color: #fff; }
.btn-ai {
    background: linear-gradient(135deg, #4F46E5, #2563EB);
    color: #fff;
}
.badge-active, .badge-in, .badge-delivered, .badge-paid, .badge-success { background: #DCFCE7; color: #166534; border-color: #86EFAC; }
.badge-pending, .badge-partial, .badge-low, .badge-trial { background: #FEF3C7; color: #92400E; border-color: #FCD34D; }
.badge-cancelled, .badge-out, .badge-danger, .badge-expired, .badge-suspended { background: #FEE2E2; color: #991B1B; border-color: #FCA5A5; }
.badge-open, .badge-new { background: #DBEAFE; color: #1E40AF; border-color: #93C5FD; }

/* ——— Super Admin dashboard: mobile ——— */
.super-shop-filters {
    padding: 12px 16px 8px;
}
.super-shop-filters .form-actions {
    align-items: flex-end;
}

@media (max-width: 980px) {
    .admin-content:has(.super-dashboard-hero) .page-hero,
    .admin-content:has(.super-editor) .page-hero {
        display: none;
    }
    .super-dash-toolbar { display: none; }
    .super-dashboard-hero {
        padding: 16px;
        gap: 14px;
        margin-bottom: 12px;
    }
    .super-dashboard-copy h2 {
        font-size: 1.18rem;
        line-height: 1.25;
    }
    .super-dashboard-copy p { font-size: 0.8rem; }
    .super-dashboard-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin-top: 14px;
        width: 100%;
    }
    .super-dashboard-actions .btn-primary,
    .super-dashboard-actions .btn-ghost {
        width: 100%;
        justify-content: center;
    }
    .super-health-card { padding: 14px; }
    .super-health-meta {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }
    .super-health-meta strong { font-size: 0.95rem; }
    .super-health-meta span {
        font-size: 0.58rem;
        line-height: 1.25;
        overflow-wrap: anywhere;
    }
    .super-stats {
        grid-template-columns: 1fr 1fr !important;
        gap: 8px;
    }
    .super-stats .dash-mini-card {
        min-width: 0;
        padding: 10px 12px;
        align-items: flex-start;
    }
    .super-stats .dash-mini-card span {
        white-space: normal;
        line-height: 1.25;
    }
    .super-stats .dash-mini-card strong {
        white-space: normal;
    }
    .super-overview-grid { gap: 10px; margin-bottom: 12px; }
    .super-money-total strong { font-size: 1.55rem; }
    .super-collection-foot {
        flex-wrap: wrap;
        margin: 14px;
        gap: 8px;
    }
    .super-shop-filters {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        padding: 12px 14px 6px;
    }
    .date-filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .date-filter-custom {
        margin-left: 0;
        width: 100%;
    }
    .date-filter-custom label { flex: 1 1 140px; }
    .super-shop-list .date-filter-bar { margin: 0 12px 8px; }
    .super-shop-filters .form-actions {
        grid-column: 1 / -1;
        margin: 0;
    }
    .super-shop-filters .form-actions .btn-primary {
        width: 100%;
        justify-content: center;
    }
    .super-shop-list,
    .super-shop-list .shop-table-wrap {
        overflow: visible;
    }
    .super-shop-list .ol-table tbody tr {
        grid-template-columns: 1fr 1fr;
        gap: 8px 12px;
        margin: 0 10px 10px;
        padding: 12px 12px 10px;
        border: 1px solid var(--line);
        border-radius: 12px;
        background: #fff;
    }
    .super-shop-list .ol-table tbody tr:last-child { margin-bottom: 12px; }
    .super-shop-list .ol-table tbody td {
        min-width: 0;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 3px;
        overflow-wrap: anywhere;
    }
    .super-shop-list .ol-table tbody td::before { max-width: 100%; }
    .super-shop-list .ol-table tbody td[data-label="Shop"] {
        grid-column: 1 / -1;
        padding-bottom: 8px;
        margin-bottom: 2px;
        border-bottom: 1px solid var(--line);
    }
    .super-shop-list .ol-table tbody td[data-label="Shop"]::before { display: none; }
    .super-shop-list .ol-table tbody td[data-label="Status"] { grid-column: 1 / -1; }
    .super-shop-list .ol-table tbody td[data-label="Actions"] {
        grid-column: 1 / -1;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 6px;
        padding-top: 8px;
        margin-top: 2px;
        border-top: 1px solid var(--line);
    }
    .super-shop-list .ol-table tbody td[data-label="Actions"]::before { display: none; }
    .super-shop-list .shop-name { font-size: 1rem; }
    .super-shop-list .table-actions {
        min-width: 0;
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
        white-space: normal;
    }
    .super-shop-list .action-more { max-width: 100%; }
    .super-shop-list .action-more[open] { width: 100%; }
    .super-shop-list .action-more-menu {
        position: static;
        right: auto;
        left: auto;
        top: auto;
        width: 100%;
        min-width: 0;
        margin-top: 6px;
        box-shadow: none;
        background: #F8FAFC;
    }
    .super-editor-head {
        flex-wrap: wrap;
        gap: 10px;
        padding: 16px;
    }
    .super-form { padding: 12px; }
    .super-access-head { flex-wrap: wrap; }
    .super-access-head > div:last-child {
        display: flex;
        flex-wrap: wrap;
        gap: 7px;
    }
}

@media (max-width: 720px) {
    .super-dashboard-actions { grid-template-columns: 1fr; }
    .super-shop-filters { grid-template-columns: 1fr !important; }
    .super-form-card .form-grid { grid-template-columns: 1fr !important; }
    .super-form-card .span-2 { grid-column: 1 / -1; }
    .super-access-grid { grid-template-columns: 1fr !important; }
    .super-save { justify-content: stretch; }
    .super-save .btn-primary { width: 100%; }
    .super-access-head > div:last-child { width: 100%; }
    .super-access-head .action-chip { flex: 1 1 auto; justify-content: center; }
}

@media (max-width: 480px) {
    .super-dashboard-copy h2 { font-size: 1.08rem; }
    .super-health-head { gap: 8px; }
    .super-health-head strong { font-size: 1.35rem; }
    .super-shop-list .ol-table tbody tr {
        margin-left: 8px;
        margin-right: 8px;
        padding: 12px 10px 10px;
    }
    .super-shop-mini-meta { gap: 6px; }
    .super-shop-focus-main { align-items: flex-start; }
}

@media (max-width: 360px) {
    .super-health-meta { grid-template-columns: 1fr 1fr; }
    .super-stats .dash-mini-card { padding: 9px 10px; }
}

.sidebar-brand-logo {
    width: auto;
    max-width: 168px;
    height: auto;
    max-height: 52px;
    object-fit: contain;
    flex: 1 1 auto;
    border-radius: 10px;
    background: #fff;
    padding: 6px 8px;
}
.sidebar-brand .brand-copy { display: none; }
.admin-app.is-collapsed .sidebar-brand-logo {
    max-width: 52px;
    max-height: 38px;
    padding: 4px;
    flex: 0 0 auto;
}
.shop-logo {
    width: 64px;
    height: 64px;
    max-width: none;
    border-radius: 12px;
    object-fit: contain;
    flex: 0 0 auto;
    margin-right: 8px;
    border: 1px solid rgba(15, 23, 42, 0.10);
    background: #fff;
    padding: 5px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 6px 14px rgba(15, 23, 42, 0.08);
}
.shop-pill {
    display: flex !important;
    flex-direction: row;
    align-items: center !important;
    gap: 10px;
    max-width: 280px;
    min-height: 0;
    height: auto;
    padding: 4px 10px 4px 4px !important;
    border-radius: 999px !important;
    border: 1px solid var(--line);
    background: var(--bg);
    box-shadow: none;
}
.shop-pill .shop-logo {
    width: 35px;
    height: 35px;
    margin-right: 0;
    border-radius: 50%;
    object-fit: cover;
    padding: 0;
    border: 1px solid rgba(15, 23, 42, 0.10);
    box-shadow: none;
    background: #fff;
}
.shop-pill-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    text-align: left;
    line-height: 1.2;
}
.shop-pill-copy strong {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.shop-pill-copy em {
    display: block;
    margin-top: 1px;
    font-style: normal;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.dash-kicker,
.dash-brand {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    text-transform: none;
    letter-spacing: 0;
    font-size: 0.92rem;
    font-weight: 600;
}
.dash-brand .shop-logo,
.dash-kicker .shop-logo {
    width: 96px;
    height: 96px;
    margin-right: 0;
    border-radius: 18px;
    padding: 8px;
    object-fit: contain;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
}
.dash-brand-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    text-align: left;
}
.dash-brand-admin {
    display: block;
    margin-top: 4px;
    font-size: 0.92rem;
    font-weight: 650;
    color: var(--muted);
}
.dash-kicker-shop { font-weight: 800; font-size: 1.25rem; color: var(--text); letter-spacing: -0.02em; }
.auth-brand-logo {
    width: min(280px, 100%);
    max-width: 280px;
    height: auto;
    display: block;
    margin: 0 auto;
    object-fit: contain;
    background: #fff;
    border-radius: 16px;
    padding: 10px 12px;
}
.auth-brand { text-align: center; align-items: stretch; }
.auth-brand-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    width: 100%;
    flex: 1 1 auto;
}
.auth-support {
    margin-top: auto;
    width: 100%;
    text-align: left;
    border-top: 1px solid rgba(148, 163, 184, 0.22);
    padding-top: 16px;
    display: grid;
    gap: 7px;
    color: #CBD5E1;
    font-size: 0.88rem;
    line-height: 1.45;
}
.auth-support-title {
    margin: 0 0 2px;
    color: #F8FAFC;
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.auth-support p { margin: 0; max-width: none; color: #CBD5E1; display: flex; align-items: flex-start; gap: 8px; }
.auth-support-ico { margin-right: 0; color: var(--cyan); flex: 0 0 auto; margin-top: 2px; font-size: 0.95rem; }
.auth-brand .auth-tagline {
    margin: 0;
    max-width: 28ch;
    color: #CBD5E1;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    line-height: 1.55;
}
.auth-brand .auth-points { text-align: left; }
.btn.btn-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 30px;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}
.btn.btn-success {
    background: #16A34A;
    border: 1px solid #15803D;
    color: #fff;
}
.btn.btn-success:hover { background: #15803D; color: #fff; }
.btn.btn-primary {
    background: #2563EB;
    border: 1px solid #1D4ED8;
    color: #fff;
}
.btn.btn-primary:hover { background: #1D4ED8; color: #fff; }

.admin-topbar .shop-pill,
button.pill.shop-pill,
span.pill.shop-pill {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    min-height: 0;
    padding: 4px 10px 4px 4px;
    border-radius: 999px;
    box-shadow: none;
}
.admin-topbar .shop-pill .shop-logo {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
    padding: 0;
    margin: 0;
    box-shadow: none;
}
.admin-topbar .page-hero,
.page-hero {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.dash-home .dash-kpi-card.is-profit { background: linear-gradient(180deg, #ECFDF5, #fff); }
.profit-breakdown {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}
.profit-breakdown article {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    padding: 14px 16px;
}
.profit-breakdown span {
    display: block;
    color: #64748B;
    font-size: 0.72rem;
    font-weight: 650;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.profit-breakdown strong {
    display: block;
    margin-top: 6px;
    font-size: 1.15rem;
    letter-spacing: -0.03em;
}
.profit-breakdown article.is-ok { background: #ECFDF5; border-color: #A7F3D0; }
.profit-breakdown article.is-loss { background: #FEF2F2; border-color: #FECACA; }
.dash-profit-note { margin: 12px 0 0; }
.ledger-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}
.ledger-pick { min-width: min(100%, 420px); flex: 1 1 320px; }
.ledger-pick > label { display: block; width: 100%; }
.ledger-combo {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    margin-top: 6px;
    border: 1px solid #BFDBFE;
    border-radius: 11px;
    background: #fff;
}
.ledger-combo:focus-within {
    border-color: #60A5FA;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .12);
}
.ledger-combo > i { padding-left: 13px; color: #64748B; }
.ledger-combo > input[type="search"] {
    min-height: 44px;
    width: 100%;
    padding: 10px;
    border: 0;
    outline: 0;
    background: transparent;
    font: inherit;
}
.ledger-combo > button {
    width: 40px;
    height: 40px;
    margin-right: 3px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #64748B;
    cursor: pointer;
}
.ledger-results {
    position: absolute;
    z-index: 30;
    top: calc(100% + 7px);
    left: 0;
    right: 0;
    max-height: 280px;
    overflow-y: auto;
    padding: 6px;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(15, 23, 42, .16);
}
.ledger-results[hidden] { display: none; }
.ledger-option {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 9px 11px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    text-align: left;
    cursor: pointer;
    font: inherit;
}
.ledger-option:hover,
.ledger-option:focus { background: #EFF6FF; }
.ledger-option small { color: #64748B; font-size: .8rem; }
.ledger-empty { padding: 12px; color: #64748B; font-size: .9rem; }
.ledger-actions { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 900px) {
    .profit-breakdown { grid-template-columns: 1fr 1fr; }
}
