@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600&family=DM+Mono:wght@400;500&display=swap');


:root {
    /* PRIMARY */
    --color-primary: #5B3DF5;
    --color-primary-hover: #7158FF;
    /* STATUS COLORS */
    --color-success: #12B981;
    --color-warning: #F59E0B;
    --color-danger: #EF4444;
    /* BACKGROUND */
    --color-bg-main: #F5F6FA;
    --color-card: #FFFFFF;
    /* SIDEBAR */
    --color-sidebar: #1E1B2E;
    /* TEXT */
    --color-text-main: #1F2937;
    --color-text-muted: #6B7280;
    /* POS */
    --color-pos-accent: #49C5A8;
    --color-pos-accent-hover: #3FB79A;
    --zs-sidebar-collapsed-width: 84px;
    --zs-sidebar-icon-link-width: 44px;
    --zs-sidebar-toggle-size: 34px;
    --zs-sidebar-icon-size: 18px;
    --zs-sidebar-link-gap: 12px;
    --zs-sidebar-brand-gap: 12px;
}

html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    font-family: "DM Sans", sans-serif;
    background: var(--color-bg-main);
    color: var(--color-text-main);
    font-variant-numeric: lining-nums;
    font-feature-settings: "zero" 0;
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

/* =========================
   ADMIN PANEL LAYOUT
========================= */

.admin-shell {
    display: grid;
    grid-template-columns: 240px 1fr;
    height: 100vh;
    overflow: hidden;
}

/* =========================
   SIDEBAR
========================= */

.admin-sidebar {
    background: var(--color-sidebar);
    color: white;
    padding: 20px 0px 20px 0px;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.admin-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
}

.admin-brand-logo {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.admin-brand-title {
    font-weight: 700;
}

.admin-brand-subtitle {
    font-size: 12px;
    opacity: 0.7;
}

/* =========================
   SIDEBAR NAV
========================= */

.admin-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.admin-nav-link {
    color: #E5E7EB;
    text-decoration: none;
    padding: 14px 16px;
    border-radius: 8px;
    transition: background 0.2s ease;
}

    .admin-nav-link:hover {
        background: rgba(255, 255, 255, 0.08);
    }

/* =========================
   ZS BASE SIDEBAR
========================= */

.zs-sidebar-header {
    display: flex;
}

.zs-sidebar-brand {
    display: flex;
    align-items: center;
    gap: var(--zs-sidebar-brand-gap);
    min-width: 0;
}

.zs-sidebar-brand-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.zs-sidebar-brand-mark {
    flex-shrink: 0;
}

.zs-sidebar-brand-title {
    line-height: 1.1;
}

.zs-sidebar-brand-subtitle {
    line-height: 1.2;
}

.zs-sidebar-toggle {
    width: var(--zs-sidebar-toggle-size);
    height: var(--zs-sidebar-toggle-size);
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
}

.zs-sidebar-toggle span {
    width: 14px;
    height: 1.5px;
    display: block;
    border-radius: 999px;
}

.zs-sidebar-nav {
    display: flex;
    flex-direction: column;
}

.zs-sidebar-link {
    display: flex;
    align-items: center;
    gap: var(--zs-sidebar-link-gap);
    min-width: 0;
}

.zs-sidebar-link-icon {
    width: var(--zs-sidebar-icon-size);
    height: var(--zs-sidebar-icon-size);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: inherit;
}

.zs-sidebar-link-icon svg {
    width: var(--zs-sidebar-icon-size);
    height: var(--zs-sidebar-icon-size);
    display: block;
}

.zs-sidebar-link-label {
    min-width: 0;
    line-height: 1.2;
    white-space: nowrap;
}

[data-sidebar-shell].is-sidebar-collapsed .zs-sidebar {
    align-items: center;
}

[data-sidebar-shell].is-sidebar-collapsed .zs-sidebar-header {
    width: 100%;
    flex-direction: column;
    align-items: center;
}

[data-sidebar-shell].is-sidebar-collapsed .zs-sidebar-brand {
    justify-content: center;
}

[data-sidebar-shell].is-sidebar-collapsed .zs-sidebar-nav {
    width: 100%;
    align-items: center;
}

[data-sidebar-shell].is-sidebar-collapsed .zs-sidebar-brand-copy,
[data-sidebar-shell].is-sidebar-collapsed .zs-sidebar-link-label {
    display: none;
}

[data-sidebar-shell].is-sidebar-collapsed .zs-sidebar-link {
    width: var(--zs-sidebar-icon-link-width);
    padding-left: 0;
    padding-right: 0;
    justify-content: center;
}

.admin-sidebar-toggle {
    display: none;
    border: none;
}

.admin-nav-icon {
    display: none;
}


/* =========================
   MAIN
========================= */

.admin-main {
    display: flex;
    flex-direction: column;
    background: var(--color-bg-main);
    min-width: 0;
    height: 100vh;
    overflow: hidden;
}

/* =========================
   TOPBAR
========================= */

.admin-topbar {
    height: 60px;
    background: #fff;
    border-bottom: 1px solid #E5E7EB;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    flex-shrink: 0;
}

.admin-page-title {
    font-weight: 600;
}

.admin-topbar-user {
    font-size: 14px;
    color: #6B7280;
}

/* =========================
   CONTENT
========================= */

.admin-content {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

/* =========================
   ADMIN PANEL COMPONENTS
========================= */

.admin-page-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.admin-section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.admin-section-title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: var(--color-text-main);
}

.admin-section-subtitle {
    margin: 6px 0 0;
    font-size: 14px;
    color: var(--color-text-muted);
}

.admin-section-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.admin-dashboard-topbar {
    padding: 22px 24px;
    border: 1px solid #E5E7EB;
    border-radius: 20px;
    background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
    align-items: center;
}

.admin-dashboard-topbar-left {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.admin-dashboard-topbar-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-left: auto;
}

.admin-dashboard-topbar-meta,
.admin-dashboard-topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.admin-dashboard-date-chip,
.admin-dashboard-user-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 8px 14px;
    border: 1px solid #E2E8F0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--color-text-main);
}

.admin-dashboard-date-chip {
    font-weight: 600;
    color: #334155;
}

.admin-dashboard-date-chip i,
.admin-dashboard-user-chip i {
    width: 16px;
    height: 16px;
    color: var(--color-primary);
}

.admin-dashboard-user-chip {
    padding-right: 16px;
}

.admin-dashboard-user-chip-icon {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(91, 61, 245, 0.10);
    flex-shrink: 0;
}

.admin-dashboard-user-chip-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.15;
}

.admin-dashboard-user-chip-name {
    font-size: 13px;
    font-weight: 700;
    color: #0F172A;
}

.admin-dashboard-user-chip-role {
    font-size: 12px;
    color: var(--color-text-muted);
}

.admin-secondary-btn {
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 16px;
    border-radius: 12px;
    border: 1px solid #D7DEEA;
    background: #FFFFFF;
    color: #334155;
    text-decoration: none;
    font-weight: 600;
}

.admin-secondary-btn:hover {
    border-color: #C4CEE0;
    background: #F8FAFC;
    color: #0F172A;
}

.admin-topbar-primary-btn {
    gap: 8px;
    box-shadow: 0 12px 24px rgba(91, 61, 245, 0.18);
}

.admin-search-input {
    min-width: 260px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid #E5E7EB;
    background: #fff;
    padding: 0 14px;
    color: var(--color-text-main);
}

    .admin-search-input:focus {
        border-color: var(--color-primary);
        box-shadow: 0 0 0 0.2rem rgba(91, 61, 245, 0.12);
        outline: none;
    }

.admin-primary-btn {
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    border-radius: 12px;
    background: var(--color-primary);
    border: none;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

    .admin-primary-btn:hover {
        background: var(--color-primary-hover);
        color: #fff;
    }

.admin-card {
    background: var(--color-card);
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

/* =========================
   TABLE
========================= */

.admin-table {
    margin: 0;
    border-collapse: separate;
    border-spacing: 0;
}

.admin-table-wrap {
    max-height: 650px;
    overflow-y: auto;
    overflow-x: auto;
}

.admin-table-sticky thead th,
.admin-table thead th {
    position: sticky;
    top: 0;
    background: #F8FAFC;
    z-index: 10;
}

.admin-table thead th {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-muted);
    border-bottom: 1px solid #E5E7EB;
    padding: 14px 18px;
    white-space: nowrap;
}

.admin-table tbody td {
    padding: 16px 18px;
    border-bottom: 1px solid #F1F5F9;
    vertical-align: middle;
    background: #fff;
}

.admin-product-cell {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.admin-product-name {
    font-weight: 600;
    color: var(--color-text-main);
}

.admin-product-desc {
    font-size: 13px;
    color: var(--color-text-muted);
    max-width: 320px;
}

/* =========================
   DASHBOARD - STATS GRID
========================= */

.admin-dashboard-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

/* =========================
   DASHBOARD - STAT CARDS
========================= */

.admin-stat-card {
    background: var(--color-card);
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    padding: 22px;
    min-height: 110px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

    .admin-stat-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
        border-color: #D8E1EE;
        text-decoration: none;
        color: inherit;
    }

    a.admin-stat-card{
        text-decoration:none;
        color: inherit;
        display:block;
    }

.admin-stat-card-top {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-stat-icon-badge {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

    .admin-stat-icon-badge svg {
        width: 18px;
        height: 18px;
        stroke-width: 2,2;
    }

.admin-stat-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-muted);
}

.admin-stat-value {
    font-size: 30px;
    line-height: 1.1;
    font-weight: 700;
    color: var(--color-text-main);
}

.admin-stat-subtext {
    font-size: 13px;
    color: var(--color-text-muted);
}

.admin-stat-card-sales .admin-stat-icon-badge {
    background: rgba(91, 61, 245, 0.12);
    color: var(--color-primary);
}

.admin-stat-card-transactions .admin-stat-icon-badge {
    background: rgba(90, 162, 246, 0.12);
    color: #5AA2F6;
}

.admin-stat-card-lowstock .admin-stat-icon-badge {
    background: rgba(245, 158, 11, 0.12);
    color: var(--color-warning);
}

.admin-stat-card-outofstock .admin-stat-icon-badge,
.admin-stat-card-outstock .admin-stat-icon-badge {
    background: rgba(239, 68, 68, 0.12);
    color: var(--color-danger);
}

/* =========================
   DASHBOARD - ALT GRID
========================= */

.admin-dashboard-grid {
    margin-top: 28px;
    display: grid;
    grid-template-columns: 2fr 1.5fr 1fr;
    gap: 22px;
}

/* =========================
   DASHBOARD - WIDGET CARD ORTAK
========================= */

.admin-dashboard-chart-card,
.admin-dashboard-widget-card {
    padding: 20px;
    min-height: 240px;
}

.admin-widget-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.admin-widget-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--color-text-main);
}

.admin-widget-subtitle {
    margin-top: 6px;
    font-size: 12px;
    color: var(--color-text-muted);
}

.admin-widget-empty {
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed #E5E7EB;
    border-radius: 14px;
    background: #FAFBFD;
    color: var(--color-text-muted);
    font-size: 14px;
    text-align: center;
    padding: 16px;
}

.admin-widget-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(91, 61, 245, 0.10);
    color: var(--color-primary);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

/* =========================
   DASHBOARD - GÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã¢â‚¬Â ÃƒÂ¢Ã¢â€šÂ¬Ã¢â€Â¢ÃƒÆ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã‚Â ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬ÃƒÂ¢Ã¢â‚¬ÂÃ‚Â¢ÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬Ãƒâ€¦Ã‚Â¡ÃƒÆ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â¯ÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã¢â‚¬Â ÃƒÂ¢Ã¢â€šÂ¬Ã¢â€Â¢ÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Â¢ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡Ãƒâ€šÃ‚Â¬ÃƒÆ’Ã¢â‚¬Â¦Ãƒâ€šÃ‚Â¡ÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬Ãƒâ€¦Ã‚Â¡ÃƒÆ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â¿ÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã¢â‚¬Â ÃƒÂ¢Ã¢â€šÂ¬Ã¢â€Â¢ÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Â¢ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡Ãƒâ€šÃ‚Â¬ÃƒÆ’Ã¢â‚¬Â¦Ãƒâ€šÃ‚Â¡ÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬Ãƒâ€¦Ã‚Â¡ÃƒÆ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â½NLÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã¢â‚¬Â ÃƒÂ¢Ã¢â€šÂ¬Ã¢â€Â¢ÃƒÆ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã‚Â ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬ÃƒÂ¢Ã¢â‚¬ÂÃ‚Â¢ÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬Ãƒâ€¦Ã‚Â¡ÃƒÆ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â¯ÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã¢â‚¬Â ÃƒÂ¢Ã¢â€šÂ¬Ã¢â€Â¢ÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Â¢ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡Ãƒâ€šÃ‚Â¬ÃƒÆ’Ã¢â‚¬Â¦Ãƒâ€šÃ‚Â¡ÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬Ãƒâ€¦Ã‚Â¡ÃƒÆ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â¿ÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã¢â‚¬Â ÃƒÂ¢Ã¢â€šÂ¬Ã¢â€Â¢ÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Â¢ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡Ãƒâ€šÃ‚Â¬ÃƒÆ’Ã¢â‚¬Â¦Ãƒâ€šÃ‚Â¡ÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬Ãƒâ€¦Ã‚Â¡ÃƒÆ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â½K SATIÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã¢â‚¬Â ÃƒÂ¢Ã¢â€šÂ¬Ã¢â€Â¢ÃƒÆ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã‚Â ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬ÃƒÂ¢Ã¢â‚¬ÂÃ‚Â¢ÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬Ãƒâ€¦Ã‚Â¡ÃƒÆ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â¯ÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã¢â‚¬Â ÃƒÂ¢Ã¢â€šÂ¬Ã¢â€Â¢ÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Â¢ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡Ãƒâ€šÃ‚Â¬ÃƒÆ’Ã¢â‚¬Â¦Ãƒâ€šÃ‚Â¡ÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬Ãƒâ€¦Ã‚Â¡ÃƒÆ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â¿ÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã¢â‚¬Â ÃƒÂ¢Ã¢â€šÂ¬Ã¢â€Â¢ÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Â¢ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡Ãƒâ€šÃ‚Â¬ÃƒÆ’Ã¢â‚¬Â¦Ãƒâ€šÃ‚Â¡ÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬Ãƒâ€¦Ã‚Â¡ÃƒÆ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â½ GRAFÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã¢â‚¬Â ÃƒÂ¢Ã¢â€šÂ¬Ã¢â€Â¢ÃƒÆ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã‚Â ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬ÃƒÂ¢Ã¢â‚¬ÂÃ‚Â¢ÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬Ãƒâ€¦Ã‚Â¡ÃƒÆ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â¯ÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã¢â‚¬Â ÃƒÂ¢Ã¢â€šÂ¬Ã¢â€Â¢ÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Â¢ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡Ãƒâ€šÃ‚Â¬ÃƒÆ’Ã¢â‚¬Â¦Ãƒâ€šÃ‚Â¡ÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬Ãƒâ€¦Ã‚Â¡ÃƒÆ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â¿ÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã¢â‚¬Â ÃƒÂ¢Ã¢â€šÂ¬Ã¢â€Â¢ÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Â¢ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡Ãƒâ€šÃ‚Â¬ÃƒÆ’Ã¢â‚¬Â¦Ãƒâ€šÃ‚Â¡ÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬Ãƒâ€¦Ã‚Â¡ÃƒÆ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â½K KARTI
========================= */

.admin-dashboard-chart-card {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-height: 340px;
    background: linear-gradient(180deg, #FFFFFF 0%, #FCFCFD 100%);
    border: 1px solid #E8EDF5;
}

    .admin-dashboard-chart-card:hover {
        box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
    }

    .admin-dashboard-chart-card .admin-widget-header {
        margin-bottom: 0;
        align-items: flex-start;
    }

    .admin-dashboard-chart-card .admin-widget-title {
        font-size: 20px;
        line-height: 1.2;
    }

    .admin-dashboard-chart-card .admin-widget-badge {
        flex-shrink: 0;
    }

.admin-chart-summary {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.admin-chart-total {
    font-size: 34px;
    font-weight: 800;
    line-height: 1;
    color: var(--color-text-main);
    letter-spacing: -0.5px;
}

.admin-chart-canvas-wrap {
    position: relative;
    flex: 1;
    min-height: 180px;
    padding: 14px 12px 8px;
    border: 1px solid #EEF2F7;
    border-radius: 16px;
    background: linear-gradient(180deg, #FCFDFE 0%, #F8FAFC 100%);
}

    .admin-chart-canvas-wrap canvas {
        width: 100% !important;
        height: 180px !important;
        display: block;
    }

.admin-chart-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 4px;
    border-top: 1px solid #F1F5F9;
}

.admin-chart-footer-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.admin-chart-footer-label {
    font-size: 12px;
    color: var(--color-text-muted);
}

.admin-chart-footer-value {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-text-main);
}

/* =========================
   DASHBOARD - SON SATIÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã¢â‚¬Â ÃƒÂ¢Ã¢â€šÂ¬Ã¢â€Â¢ÃƒÆ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã‚Â ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬ÃƒÂ¢Ã¢â‚¬ÂÃ‚Â¢ÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬Ãƒâ€¦Ã‚Â¡ÃƒÆ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â¯ÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã¢â‚¬Â ÃƒÂ¢Ã¢â€šÂ¬Ã¢â€Â¢ÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Â¢ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡Ãƒâ€šÃ‚Â¬ÃƒÆ’Ã¢â‚¬Â¦Ãƒâ€šÃ‚Â¡ÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬Ãƒâ€¦Ã‚Â¡ÃƒÆ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â¿ÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã¢â‚¬Â ÃƒÂ¢Ã¢â€šÂ¬Ã¢â€Â¢ÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Â¢ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡Ãƒâ€šÃ‚Â¬ÃƒÆ’Ã¢â‚¬Â¦Ãƒâ€šÃ‚Â¡ÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬Ãƒâ€¦Ã‚Â¡ÃƒÆ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â½LAR
========================= */

.admin-sale-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    padding: 10px 12px;
    border-radius: 10px;
    transition: all 0.2s ease;
    margin-bottom: 6px;
}

    .admin-sale-row:hover {
        background: rgba(91, 61, 245, 0.05);
    }

.admin-sale-id {
    font-weight: 600;
    font-size: 13px;
    color: var(--color-text-main);
}

.admin-sale-time {
    font-size: 11px;
    color: var(--color-text-muted);
}

.admin-sale-payment {
    font-size: 12px;
    color: var(--color-primary);
    background: rgba(91, 61, 245, 0.08);
    padding: 4px 8px;
    border-radius: 6px;
}

.admin-sale-amount {
    font-weight: 800;
    font-size: 15px;
    color: var(--color-text-main);
}

/* =========================
   DASHBOARD - EN ÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã¢â‚¬Â ÃƒÂ¢Ã¢â€šÂ¬Ã¢â€Â¢ÃƒÆ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã‚Â ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬ÃƒÂ¢Ã¢â‚¬ÂÃ‚Â¢ÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬Ãƒâ€¦Ã‚Â¡ÃƒÆ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â¯ÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã¢â‚¬Â ÃƒÂ¢Ã¢â€šÂ¬Ã¢â€Â¢ÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Â¢ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡Ãƒâ€šÃ‚Â¬ÃƒÆ’Ã¢â‚¬Â¦Ãƒâ€šÃ‚Â¡ÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬Ãƒâ€¦Ã‚Â¡ÃƒÆ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â¿ÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã¢â‚¬Â ÃƒÂ¢Ã¢â€šÂ¬Ã¢â€Â¢ÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Â¢ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡Ãƒâ€šÃ‚Â¬ÃƒÆ’Ã¢â‚¬Â¦Ãƒâ€šÃ‚Â¡ÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬Ãƒâ€¦Ã‚Â¡ÃƒÆ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â½OK SATAN ÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã¢â‚¬Â ÃƒÂ¢Ã¢â€šÂ¬Ã¢â€Â¢ÃƒÆ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã‚Â ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬ÃƒÂ¢Ã¢â‚¬ÂÃ‚Â¢ÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬Ãƒâ€¦Ã‚Â¡ÃƒÆ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â¯ÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã¢â‚¬Â ÃƒÂ¢Ã¢â€šÂ¬Ã¢â€Â¢ÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Â¢ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡Ãƒâ€šÃ‚Â¬ÃƒÆ’Ã¢â‚¬Â¦Ãƒâ€šÃ‚Â¡ÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬Ãƒâ€¦Ã‚Â¡ÃƒÆ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â¿ÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã¢â‚¬Â ÃƒÂ¢Ã¢â€šÂ¬Ã¢â€Â¢ÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Â¢ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡Ãƒâ€šÃ‚Â¬ÃƒÆ’Ã¢â‚¬Â¦Ãƒâ€šÃ‚Â¡ÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬Ãƒâ€¦Ã‚Â¡ÃƒÆ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â½RÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã¢â‚¬Â ÃƒÂ¢Ã¢â€šÂ¬Ã¢â€Â¢ÃƒÆ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã‚Â ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬ÃƒÂ¢Ã¢â‚¬ÂÃ‚Â¢ÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬Ãƒâ€¦Ã‚Â¡ÃƒÆ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â¯ÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã¢â‚¬Â ÃƒÂ¢Ã¢â€šÂ¬Ã¢â€Â¢ÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Â¢ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡Ãƒâ€šÃ‚Â¬ÃƒÆ’Ã¢â‚¬Â¦Ãƒâ€šÃ‚Â¡ÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬Ãƒâ€¦Ã‚Â¡ÃƒÆ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â¿ÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã¢â‚¬Â ÃƒÂ¢Ã¢â€šÂ¬Ã¢â€Â¢ÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Â¢ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡Ãƒâ€šÃ‚Â¬ÃƒÆ’Ã¢â‚¬Â¦Ãƒâ€šÃ‚Â¡ÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬Ãƒâ€¦Ã‚Â¡ÃƒÆ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â½N
========================= */

.admin-top-product {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.admin-top-product-left {
    flex: 1;
    min-width: 0;
}

.admin-top-product-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text-muted);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.admin-top-product-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-text-main);
}

.admin-top-product-qty {
    font-size: 13px;
    color: var(--color-success);
    margin-top: 4px;
}

.admin-top-product-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(18, 185, 129, 0.10);
    color: var(--color-success);
    font-size: 13px;
    font-weight: 600;
}

.admin-top-product-icon-wrap {
    flex-shrink: 0;
}

.admin-top-product-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(245, 158, 11, 0.08));
    display: flex;
    align-items: center;
    justify-content: center;
}

    .admin-top-product-icon i {
        width: 26px;
        height: 26px;
        color: #D97706;
    }

.admin-top-product-advanced {
    position: relative;
    padding: 16px;
    border-radius: 14px;
    background: linear-gradient(135deg, #FFFFFF, #F9FAFB);
    overflow: hidden;
    transition: all 0.2s ease;
}

    .admin-top-product-advanced:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
    }

.admin-top-product-badge-top {
    font-size: 11px;
    font-weight: 600;
    color: #F59E0B;
    margin-bottom: 10px;
}

.admin-badge-top {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: #F59E0B;
    background: rgba(245, 158, 11, 0.1);
    padding: 4px 8px;
    border-radius: 6px;
}

.admin-top-product-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
}

.admin-top-product-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.admin-top-product-meta {
    font-size: 13px;
    color: var(--color-text-muted);
    margin-top: 6px;
}

.admin-top-product-visual {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    background: rgba(91, 61, 245, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .admin-top-product-visual i {
        width: 30px;
        height: 30px;
        color: var(--color-primary);
    }

.admin-recent-sale-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #E5E7EB;
}

.admin-recent-sale-id {
    font-weight: 600;
    font-size: 13px;
}

.admin-recent-sale-date {
    font-size: 12px;
    color: var(--color-text-muted);
}

.admin-recent-sale-amount {
    font-weight: 600;
    text-align: right;
}

.admin-recent-sale-payment {
    font-size: 12px;
    color: var(--color-text-muted);
    text-align: right;
}

/* =========================================
   ZS SALES - BASE
========================================= */

.zs-sales-page {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.zs-detail-shell {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* =========================================
   ZS SALES - 3-LAYER HEADER STRUCTURE
   Layer 1: header (sayfa bg üzerinde)
   Layer 2: chips (sayfa bg üzerinde)
   Layer 3: filter panel (white card)
========================================= */

/* Content wrapper */
.zs-sales-content {
    padding: 20px 28px 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Topbar card */
.zs-sales-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 22px;
    background: #FFFFFF;
    border: 1px solid #E8EAF0;
    border-radius: 15px;
    box-shadow: 0 1px 3px rgba(26, 28, 46, 0.06);
    flex-wrap: wrap;
}

.zs-sales-topbar-left {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.zs-sales-topbar-title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #1A1C2E;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.zs-sales-topbar-subtitle {
    margin: 0;
    font-size: 12px;
    color: #A0A4BC;
}

/* Legacy — kept for backwards compat, no longer rendered */
.zs-sales-header-layer {
    display: none;
}

.zs-sales-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.zs-sales-header-btn {
    min-height: 38px;
    padding: 0 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.zs-sales-header-btn-ghost {
    background: #ECFDF5;
    border-color: rgba(16, 185, 129, 0.20);
    color: #10B981;
}

.zs-sales-header-btn-ghost[disabled] {
    opacity: 1;
    cursor: not-allowed;
}

.zs-sales-header-btn-primary {
    border: none;
    background: linear-gradient(135deg, #5B8CFF 0%, #4C74F5 100%);
    color: #FFFFFF;
    box-shadow: 0 12px 24px rgba(76, 116, 245, 0.18);
}

.zs-sales-header-btn-primary:hover,
.zs-sales-header-btn-primary:focus {
    color: #FFFFFF;
    background: linear-gradient(135deg, #4F81FF 0%, #4169EA 100%);
}

/* Layer 2 — Chip / status bar */

    /* kart yok; sayfa arka planı üzerinde */


/* Sales sayfasına özel başlık hiyerarşisi */
.zs-sales-page .zs-page-title {
    font-size: 20px;
    letter-spacing: -0.025em;
}

.zs-sales-page .zs-page-subtitle {
    font-size: 12px;
    margin-top: 2px;
}

/* Sales chip bar — Layer 2, page bg üzerinde */
.zs-sales-chips-layer .zs-filter-bar {
    gap: 6px;
}

.zs-sales-chips-layer .zs-filter-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #E5E7EB;
    color: var(--color-text-main);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
}

.zs-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 12px;
    border: 1px solid transparent;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all .15s ease;
}

.zs-btn-ghost {
    background: #fff;
    border-color: #E5E7EB;
    color: var(--color-text-muted);
}

.zs-btn-danger {
    background: rgba(239,68,68,.12);
    border-color: rgba(239,68,68,.18);
    color: var(--color-danger);
}

.zs-btn-refund-all {
    background: rgba(239,68,68,.10);
    border-color: rgba(239,68,68,.18);
    color: var(--color-danger);
}

/* =========================================
   ZS SALES - HEADER
========================================= */

.zs-page-header,
.zs-detail-topbar,
.zs-detail-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.zs-page-title,
.zs-detail-title {
    margin: 0;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--color-text-main);
}

.zs-page-subtitle,
.zs-detail-date,
.zs-table-subtitle,
.zs-text-muted,
.zs-footer-text,
.zs-breadcrumb,
.zs-breadcrumb a {
    color: var(--color-text-muted);
    font-size: 13px;
}

.zs-page-subtitle {
    font-size: 12.5px;
    font-weight: 500;
    margin-top: 4px;
    color: #9ca3af;
    letter-spacing: .01em;
}

.zs-page-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.zs-search-form {
    margin: 0;
}

.zs-search-wrap {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: 280px;
    height: 42px;
    padding: 0 12px;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    background: #fff;
    color: var(--color-text-muted);
}

.zs-search-input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    color: var(--color-text-main);
    font-size: 14px;
}

.zs-detail-code {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(91,61,245,.08);
    color: var(--color-primary);
    font-size: 12px;
    font-weight: 700;
}

.zs-count-pill {
    display: inline;
    font-size: 12px;
    font-weight: 400;
    color: var(--color-text-secondary);
    background: none;
    padding: 0;
}

.zs-sale-no {
    display: inline;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--color-text-secondary);
    background: none;
    padding: 0;
    border-radius: 0;
}

/* =========================================
   ZS SALES - STATS
========================================= */

.zs-stats-grid,
.zs-detail-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.zs-stat-card,
.zs-detail-stat {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg,#FFFFFF 0%,#FCFCFD 100%);
    border: 1px solid rgba(91,61,245,.08);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 10px 24px rgba(17,24,39,.06);
}

    .zs-stat-card::after,
    .zs-detail-stat::after {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 3px;
    }

.zs-stat-blue::after,
.zs-ds-blue::after {
    background: linear-gradient(90deg,var(--color-primary),transparent);
}

.zs-stat-green::after,
.zs-ds-green::after {
    background: linear-gradient(90deg,var(--color-success),transparent);
}

.zs-stat-yellow::after,
.zs-ds-yellow::after {
    background: linear-gradient(90deg,var(--color-warning),transparent);
}

.zs-stat-red::after,
.zs-ds-red::after {
    background: linear-gradient(90deg,var(--color-danger),transparent);
}

.zs-stat-icon {
    margin-bottom: 10px;
    font-size: 15px;
}

.zs-stat-val,
.zs-ds-val {
    font-size: 28px;
    line-height: 1;
    font-weight: 800;
    color: var(--color-text-main);
}

.zs-ds-val-sm {
    font-size: 20px;
}

.zs-stat-lbl,
.zs-ds-label {
    margin-top: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-muted);
}

.zs-ds-sub {
    margin-top: 6px;
    font-size: 12px;
    color: var(--color-text-muted);
}

/* =========================================
   ZS SALES - FILTERS
========================================= */

.zs-filter-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.zs-filter-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #E5E7EB;
    color: var(--color-text-main);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
}

.zs-filter-chip-label {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.zs-filter-chip-icon {
    width: 14px;
    height: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 14px;
    color: #64748B;
}

.zs-filter-chip-icon svg {
    width: 14px;
    height: 14px;
    display: block;
}

.zs-filter-chip-icon.is-completed {
    border-radius: 4px;
    background: #34D399;
    color: #FFFFFF;
}

.zs-filter-chip-icon.is-completed svg,
.zs-filter-chip-icon.is-refunded svg,
.zs-filter-chip-icon.is-cash svg,
.zs-filter-chip-icon.is-card svg,
.zs-filter-chip-icon.is-partial-payment svg {
    width: 12px;
    height: 12px;
}

.zs-filter-chip-icon.is-partial {
    color: #F59E0B;
}

.zs-filter-chip-icon.is-refunded,
.zs-filter-chip-icon.is-cash,
.zs-filter-chip-icon.is-card,
.zs-filter-chip-icon.is-partial-payment {
    border-radius: 4px;
    background: #60A5FA;
    color: #FFFFFF;
}

.zs-filter-chip-icon.is-cash {
    background: #22C55E;
}

.zs-filter-chip-icon.is-card,
.zs-filter-chip-icon.is-partial-payment,
.zs-filter-chip.active.card .zs-filter-chip-icon.is-card,
.zs-filter-chip.active .zs-filter-chip-icon.is-partial-payment {
    background: #60A5FA;
    color: #FFFFFF;
    transform: none;
}

/* chip dot — badge zs-status-dot ile aynı görsel dil */
.zs-filter-chip-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    display: block;
    align-self: center;
}
.zs-filter-chip-dot.is-completed        { background: #12B981; }
.zs-filter-chip-dot.is-partial          { background: #F59E0B; }
.zs-filter-chip-dot.is-refunded         { background: #EF4444; }
.zs-filter-chip-dot.is-cash             { background: #12B981; }
.zs-filter-chip-dot.is-card             { background: #5B3DF5; }
.zs-filter-chip-dot.is-partial-payment  { background: #60A5FA; }

    .zs-filter-chip.active {
        background: rgba(91,61,245,.08);
        border-color: rgba(91,61,245,.16);
        color: var(--color-primary);
    }

        .zs-filter-chip.active.completed {
            background: rgba(18,185,129,.10);
            border-color: rgba(18,185,129,.18);
            color: var(--color-success);
        }

        .zs-filter-chip.active.partial {
            background: rgba(245,158,11,.10);
            border-color: rgba(245,158,11,.18);
            color: var(--color-warning);
        }

        .zs-filter-chip.active.refunded {
            background: rgba(239,68,68,.10);
            border-color: rgba(239,68,68,.18);
            color: var(--color-danger);
        }

        .zs-filter-chip.active.cash,
        .zs-filter-chip.active.card {
            background: rgba(91,61,245,.10);
            border-color: rgba(91,61,245,.18);
            color: var(--color-primary);
        }

.zs-filter-sep {
    width: 1px;
    height: 22px;
    background: #E5E7EB;
}
/* Filter card — 3-row container */
.zs-sales-filter-card {
    background: #FFFFFF;
    border: 1px solid #E8EAF0;
    border-radius: 15px;
    box-shadow: 0 1px 3px rgba(26, 28, 46, 0.06);
    overflow: hidden;
}

/* Row 1: Chips */
.zs-sales-filter-chips-row {
    padding: 10px 16px;
    border-bottom: 1px solid #F0F1F6;
}

.zs-sales-filter-chips-row .zs-sales-filter-bar {
    width: 100%;
    gap: 8px;
}

.zs-sales-filter-chips-row .zs-filter-chip {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 34px;
    padding: 0 13px;
    border-radius: 999px;
    background: #FFFFFF;
    border: 1px solid #E8EAF0;
    color: #1A1C2E;
    text-decoration: none;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1;
    box-sizing: border-box;
    transition: background 0.14s, border-color 0.14s;
}

.zs-sales-filter-chips-row .zs-filter-chip-dot {
    display: block;
    align-self: center;
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    margin: 0;
}

.zs-sales-filter-chips-row .zs-filter-chip-label {
    display: block;
    align-self: center;
    line-height: 1;
    white-space: nowrap;
}

.zs-sales-filter-chips-row .zs-filter-chip.active:not(.completed):not(.partial):not(.refunded):not(.cash):not(.card) {
    background: rgba(91, 61, 245, 0.08);
    border-color: rgba(91, 61, 245, 0.16);
    color: var(--color-primary);
}

/* Row 2: Filter inputs */
.zs-sales-filter-inputs-row {
    padding: 10px 16px;
    border-bottom: 1px solid #F0F1F6;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Legacy — no longer rendered */
.zs-sales-filter-panel {
    display: none;
}

.zs-sales-filter-head {
    display: none;
}

.zs-sales-filter-title {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--color-text-main);
}

.zs-sales-filter-subtitle {
    margin-top: 1px;
    color: var(--color-text-muted);
    font-size: 11px;
}

.zs-sales-filter-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr 1fr auto;
    gap: 8px;
    align-items: end;
}

.zs-sales-filter-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.zs-sales-filter-label {
    color: var(--color-text-muted);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.zs-sales-filter-input,
.zs-sales-filter-inputs-row .zs-search-wrap {
    width: 100%;
    height: 32px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    background: #F8FAFC;
}

.zs-sales-filter-input {
    padding: 0 10px;
    outline: none;
    color: var(--color-text-main);
    font-size: 12.5px;
}

.zs-sales-filter-input:focus {
    border-color: rgba(91,61,245,.35);
    background: #fff;
}

.zs-sales-filter-input[type="date"] {
    min-width: 0;
    padding-right: 8px;
}

.zs-sales-filter-search {
    padding: 0 11px;
}

.zs-sales-filter-inputs-row .zs-search-input {
    font-size: 13px;
}

.zs-sales-filter-actions {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 8px;
}

.zs-sales-filter-actions .zs-btn {
    min-height: 32px;
    border-radius: 8px;
    white-space: nowrap;
    font-size: 12.5px;
}

.zs-sales-filter-clear {
    background: #fff;
    border-color: #E5E7EB;
    color: var(--color-text-muted);
}

.zs-sales-filter-submit {
    background: #111827;
    color: #fff;
}

/* Row 3: Summary metrics */
.zs-sales-filter-summary-row {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 10px 16px;
}

.zs-sales-summary-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0 20px;
}

.zs-sales-summary-stat:first-child {
    padding-left: 0;
}

.zs-sales-summary-stat:last-child {
    padding-right: 0;
}

.zs-sales-summary-label {
    font-size: 10px;
    font-weight: 600;
    color: #B8BCCC;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.zs-sales-summary-value {
    font-size: 14px;
    font-weight: 700;
    color: #1A1C2E;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}

.zs-sales-summary-value.is-refund {
    color: #DC2626;
}

.zs-sales-summary-value.is-muted {
    color: #B8BCCC;
}

.zs-sales-summary-value.is-net {
    color: #16A34A;
}

.zs-sales-summary-sep {
    display: block;
    width: 1px;
    height: 24px;
    background: #E8EAF0;
    flex-shrink: 0;
}

/* Legacy — no longer rendered */
.zs-sales-summary-band,
.zs-sales-summary-strip {
    display: none;
}



/* =========================================
   ZS SALES - LIST TABLE DENSITY OVERRIDES
   Scope: sadece sales sayfasındaki ana liste tablosu.
   > .zs-table-card kullanımı modal'ı etkilemez.
========================================= */

.zs-sales-page .zs-sales-content > .zs-table-card .zs-table-toolbar {
    padding: 11px 18px;
}

.zs-sales-page .zs-sales-content > .zs-table-card .zs-table thead th {
    padding: 8px 14px;
}

.zs-sales-page .zs-sales-content > .zs-table-card .zs-table tbody td {
    padding: 8px 14px;
    font-size: 13px;
}

.zs-sales-page .zs-sales-content > .zs-table-card .zs-pay-badge,
.zs-sales-page .zs-sales-content > .zs-table-card .zs-status-badge {
    min-height: 24px;
    padding: 0 9px;
    font-size: 11px;
}

.zs-sales-page .zs-sales-content > .zs-table-card .zs-status-dot {
    width: 6px;
    height: 6px;
    margin-right: 6px;
}

.zs-sales-page .zs-sales-content > .zs-table-card .zs-detail-btn {
    height: 28px;
    min-width: 72px;
    padding: 0 10px;
    font-size: 11.5px;
    border-radius: 8px;
}

.zs-sales-page .zs-sales-content > .zs-table-card .zs-date-sub,
.zs-sales-page .zs-sales-content > .zs-table-card .zs-amount-sub {
    font-size: 11px;
    margin-top: 1px;
}

/* =========================================
   ZS SALES - TABLE CARD
========================================= */

.zs-table-card,
.zs-info-box {
    background: #fff;
    border: 1px solid rgba(91,61,245,.08);
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(17,24,39,.05);
    overflow: hidden;
}

.zs-table-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 20px 22px;
    border-bottom: 1px solid rgba(91,61,245,.08);
    background: linear-gradient(180deg,#FFFFFF 0%,#FCFCFD 100%);
}

.zs-table-toolbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.zs-table-title,
.zs-info-box-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--color-text-main);
}

.zs-table-wrap {
    overflow-x: auto;
}

.zs-table {
    width: 100%;
    border-collapse: collapse;
}

    .zs-table thead th {
        padding: 14px 18px;
        background: #F8FAFC;
        border-bottom: 1px solid #E5E7EB;
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: .10em;
        color: var(--color-text-muted);
        text-align: left;
        white-space: nowrap;
    }

    .zs-table tbody td {
        padding: 16px 18px;
        border-bottom: 1px solid #F1F5F9;
        vertical-align: middle;
        background: #fff;
        font-size: 13.5px;
        font-weight: 400;
    }

    .zs-table tbody tr:hover td {
        background: rgba(91,61,245,.03);
    }

.zs-date-main,
.zs-amount-main,
.zs-prod-name,
.zs-price-mono,
.zs-info-val,
.zs-items-text {
    font-weight: 700;
    color: var(--color-text-main);
}

.zs-date-sub,
.zs-amount-sub {
    font-size: 12px;
    color: var(--color-text-muted);
}

.zs-amount-sub,
.zs-info-val.red {
    color: var(--color-danger);
}

.zs-info-val.green,
.completed-text {
    color: var(--color-success);
}

.partial-text {
    color: var(--color-warning);
}

.refunded-text,
.cancelled-text {
    color: var(--color-danger);
}

.zs-pay-badge,
.zs-status-badge,
.zs-remaining-pill,
.zs-qty-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid transparent;
    white-space: nowrap;
}

    .zs-pay-badge.cash {
        background: rgba(18,185,129,.10);
        color: var(--color-success);
        border-color: rgba(18,185,129,.18);
    }

    .zs-pay-badge.card {
        background: rgba(91,61,245,.10);
        color: var(--color-primary);
        border-color: rgba(91,61,245,.18);
    }

    .zs-pay-badge.default,
    .zs-status-badge.draft,
    .zs-status-badge.unknown {
        background: rgba(107,114,128,.10);
        color: var(--color-text-muted);
        border-color: rgba(107,114,128,.18);
    }

    .zs-status-badge.completed {
        background: rgba(18,185,129,.10);
        color: var(--color-success);
        border-color: rgba(18,185,129,.18);
    }

    .zs-status-badge.partial {
        background: rgba(245,158,11,.10);
        color: var(--color-warning);
        border-color: rgba(245,158,11,.18);
    }

    .zs-status-badge.refunded,
    .zs-status-badge.cancelled {
        background: rgba(239,68,68,.10);
        color: var(--color-danger);
        border-color: rgba(239,68,68,.18);
    }

.zs-status-dot {
    width: 8px;
    height: 8px;
    margin-right: 8px;
    border-radius: 50%;
    background: currentColor;
}

.zs-qty-chip.returned,
.zs-remaining-pill.done {
    background: rgba(18,185,129,.10);
    color: var(--color-success);
    border-color: rgba(18,185,129,.18);
}

.zs-remaining-pill.active {
    background: rgba(245,158,11,.10);
    color: var(--color-warning);
    border-color: rgba(245,158,11,.18);
}

.zs-detail-btn,
.zs-iade-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 96px;
    height: 36px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid rgba(91,61,245,.16);
    background: rgba(91,61,245,.08);
    color: var(--color-primary);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

    .zs-iade-btn.active {
        background: rgba(239,68,68,.10);
        border-color: rgba(239,68,68,.18);
        color: var(--color-danger);
    }

    .zs-iade-btn.done {
        background: rgba(18,185,129,.10);
        border-color: rgba(18,185,129,.18);
        color: var(--color-success);
    }

.zs-empty-row {
    text-align: center;
    color: var(--color-text-muted);
    padding: 28px !important;
}

.zs-empty-icon {
    font-size: 24px;
    margin-bottom: 8px;
}

/* =========================================
   ZS SALES - TABLE FOOTER
========================================= */

.zs-table-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 22px;
    border-top: 1px solid rgba(91,61,245,.08);
    background: #fff;
}

.zs-pagination {
    display: flex;
    align-items: center;
    gap: 8px;
}

.zs-page-btn,
.zs-page-current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
}

.zs-page-btn {
    border: 1px solid #E5E7EB;
    background: #fff;
    color: var(--color-text-main);
    text-decoration: none;
}

    .zs-page-btn.disabled {
        pointer-events: none;
        opacity: .45;
    }

.zs-page-current {
    background: rgba(91,61,245,.08);
    color: var(--color-primary);
    border: 1px solid rgba(91,61,245,.16);
}

.zs-page-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    font-size: 13px;
    color: var(--color-text-muted);
    pointer-events: none;
}

/* =========================================
   ZS DETAILS - REFUND
========================================= */

.zs-refund-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
}

.zs-qty-ctrl {
    display: inline-flex;
    align-items: center;
    height: 36px;
    border: 1px solid #D7DDEA;
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
}

.zs-qty-ctrl-btn {
    width: 34px;
    height: 34px;
    border: none;
    background: #F8FAFC;
    color: var(--color-text-main);
    font-size: 18px;
    font-weight: 700;
}

.zs-qty-ctrl-val {
    min-width: 28px;
    padding: 0 10px;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--color-text-main);
}

.zs-detail-bottom {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.zs-info-box {
    padding: 20px 22px;
}

.zs-info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(91,61,245,.06);
}

    .zs-info-row:last-child {
        border-bottom: none;
    }

    .zs-info-row.total {
        margin-top: 4px;
        padding-top: 16px;
        border-top: 1px solid rgba(91,61,245,.10);
        border-bottom: none;
    }

.zs-info-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-muted);
}

/* =========================================
   ZS SALES DETAIL MODAL
========================================= */

body.zs-modal-open {
    overflow: hidden;
}

.zs-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1100;
    background: rgba(15, 23, 42, 0.34);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 36px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
}

.zs-modal-shell {
    width: 100%;
    max-width: 980px;
    margin-top: 24px;
}

.zs-modal-content {
    width: 100%;
}

.zs-modal-loading,
.zs-modal-error {
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    color: var(--color-text-muted);
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.16);
}
.admin-products-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1200;
    background: rgba(15, 23, 42, 0.34);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 36px 20px;
    display: none;
    align-items: flex-start;
    justify-content: center;
    overflow-y: auto;
}

.admin-products-modal-overlay.is-visible,
.admin-products-modal-overlay[aria-hidden="false"] {
    display: flex;
}

.admin-products-modal-dialog {
    width: min(720px, 100%);
    margin-top: 24px;
}

.admin-products-modal-card {
    background: #fff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 24px;
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.22);
    overflow: hidden;
}

.admin-products-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
    border-bottom: 1px solid #EEF2F7;
}

.admin-products-modal-title {
    margin: 0;
    font-size: 24px;
    font-weight: 800;
    color: #0F172A;
}

.admin-products-modal-subtitle {
    margin: 8px 0 0;
    font-size: 14px;
    line-height: 1.6;
    color: #64748B;
}

.admin-products-modal-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 999px;
    background: #F8FAFC;
    color: #475569;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.admin-products-modal-close:hover,
.admin-products-modal-close:focus {
    background: #E2E8F0;
    color: #0F172A;
    transform: translateY(-1px);
}

.admin-products-modal-body {
    padding: 24px;
}

.admin-products-create-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.admin-products-form-summary {
    margin: 0;
    padding: 14px 16px;
    border-radius: 16px;
    background: #FEF2F2;
    border: 1px solid #FECACA;
    color: #B91C1C;
}

.admin-products-form-summary.validation-summary-valid {
    display: none;
}

.field-validation-valid {
    display: none;
}

.admin-products-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.admin-products-form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-products-form-field--full {
    grid-column: 1 / -1;
}

.admin-products-form-label {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: #0F172A;
}

.admin-products-form-control {
    min-height: 48px;
}

.admin-products-form-textarea {
    min-height: 120px;
    resize: vertical;
}

.admin-products-barcode-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 18px;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    background: #F8FAFC;
}

.admin-products-barcode-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.admin-products-barcode-title {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    color: #0F172A;
}

.admin-products-barcode-note {
    margin: 4px 0 0;
    font-size: 13px;
    line-height: 1.5;
    color: #64748B;
}

.admin-products-barcode-status {
    flex: 0 0 auto;
    color: #64748B;
    font-size: 12px;
    font-weight: 700;
}

.admin-products-barcode-form {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto auto;
    gap: 12px;
    align-items: end;
}

.admin-products-barcode-check {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: #334155;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.admin-products-barcode-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-products-barcode-row {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto auto;
    gap: 12px;
    align-items: center;
    padding: 10px 12px;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    background: #FFFFFF;
}

.admin-products-barcode-value {
    color: #0F172A;
    font-size: 14px;
    font-weight: 800;
    word-break: break-word;
}

.admin-products-barcode-meta {
    color: #475569;
    font-size: 13px;
    font-weight: 700;
}

.admin-products-barcode-primary {
    justify-self: start;
    padding: 4px 8px;
    border-radius: 999px;
    background: #EEF2FF;
    color: #3730A3;
    font-size: 12px;
    font-weight: 800;
}

.admin-products-barcode-empty {
    padding: 14px;
    border: 1px dashed #CBD5E1;
    border-radius: 12px;
    color: #64748B;
    font-size: 13px;
    text-align: center;
}

@media (max-width: 760px) {
    .admin-products-barcode-form,
    .admin-products-barcode-row {
        grid-template-columns: 1fr;
    }

    .admin-products-barcode-header {
        flex-direction: column;
    }
}

.admin-products-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.admin-products-modal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.admin-products-modal-btn:hover,
.admin-products-modal-btn:focus {
    transform: translateY(-1px);
}

.admin-products-modal-btn--ghost {
    background: #F8FAFC;
    border-color: #E2E8F0;
    color: #334155;
}

.admin-products-modal-btn--ghost:hover,
.admin-products-modal-btn--ghost:focus {
    background: #EEF2F7;
    color: #0F172A;
}

.admin-products-modal-btn--primary {
    background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
    color: #FFFFFF;
    box-shadow: 0 16px 28px rgba(37, 99, 235, 0.22);
}

.admin-products-modal-btn--primary:hover,
.admin-products-modal-btn--primary:focus {
    background: linear-gradient(135deg, #1D4ED8 0%, #1E40AF 100%);
    color: #FFFFFF;
}

.admin-products-modal-btn--danger {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    color: #FFFFFF;
    box-shadow: 0 16px 28px rgba(239, 68, 68, 0.22);
}

.admin-products-modal-btn--danger:hover,
.admin-products-modal-btn--danger:focus {
    background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%);
    color: #FFFFFF;
}

.admin-products-modal-dialog--sm {
    width: min(420px, 100%);
}

.zs-sale-modal {
    width: min(760px, 100%);
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.22);
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.9);
    display: flex;
    flex-direction: column;
    max-height: 92vh;
}

.zs-sale-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
    border-bottom: 1px solid #EEF2F7;
}

.zs-sale-modal-title {
    margin: 0;
    font-size: 24px;
    font-weight: 800;
    color: #0F172A;
}

.zs-sale-modal-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.zs-sale-badge-code {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(91, 61, 245, 0.08);
    color: var(--color-primary);
    font-size: 12px;
    font-weight: 700;
}

.zs-sale-modal-date {
    font-size: 13px;
    color: var(--color-text-muted);
}

.zs-sale-modal-close {
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 12px;
    background: #F8FAFC;
    color: var(--color-text-muted);
    font-size: 15px;
    cursor: pointer;
}

.zs-sale-modal-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-bottom: 1px solid #EEF2F7;
}

.zs-sale-stat-card {
    padding: 16px 18px;
    border-right: 1px solid #EEF2F7;
}

    .zs-sale-stat-card:last-child {
        border-right: none;
    }

.zs-sale-stat-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 10px;
}

.zs-sale-stat-value {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.05;
    color: var(--color-text-main);
}

    .zs-sale-stat-value.blue {
        color: var(--color-primary);
    }

    .zs-sale-stat-value.red {
        color: var(--color-danger);
    }

    .zs-sale-stat-value.green {
        color: var(--color-success);
    }

.zs-sale-stat-status {
    font-size: 15px;
    font-weight: 800;
    color: var(--color-text-main);
}

.zs-sale-stat-sub {
    margin-top: 8px;
    font-size: 12px;
    color: var(--color-text-muted);
}

.zs-sale-modal-body {
    padding: 20px 24px 22px;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.zs-sale-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 12px;
    flex-shrink: 0;
}

.zs-sale-section-title {
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--color-text-main);
}

.zs-sale-section-sub {
    margin-top: 4px;
    font-size: 12px;
    color: var(--color-text-muted);
}

.zs-sale-section-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.zs-sale-items-table-wrap {
    border: 1px solid #EEF2F7;
    border-radius: 16px;
    overflow-x: hidden;
    overflow-y: auto;
    background: #fff;
    flex: 1;
    min-height: 160px;
    max-height: 380px;
}

.zs-sale-items-table {
    width: 100%;
    border-collapse: collapse;
}

    .zs-sale-items-table thead th {
        padding: 11px 16px;
        background: #F8FAFC;
        border-bottom: 1px solid #EEF2F7;
        font-size: 11px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .08em;
        color: var(--color-text-muted);
        text-align: left;
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .zs-sale-items-table tbody td {
        padding: 11px 16px;
        border-bottom: 1px solid #F3F4F6;
        font-size: 14px;
        color: var(--color-text-main);
        vertical-align: middle;
    }

    .zs-sale-items-table tbody tr:last-child td {
        border-bottom: none;
    }

.zs-sale-product-name {
    font-weight: 700;
    line-height: 1.35;
}

.zs-item-pay-badges {
    display: flex;
    gap: 4px;
    margin-top: 4px;
    flex-wrap: wrap;
}

.zs-item-pay-badge {
    display: inline-flex;
    align-items: center;
    height: 20px;
    padding: 0 7px;
    border-radius: 5px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1;
}

.zs-item-pay-badge--cash {
    background: #ECFDF5;
    color: #059669;
    border: 1px solid #A7F3D0;
}

.zs-item-pay-badge--card {
    background: #EEF2FF;
    color: #4F46E5;
    border: 1px solid #C7D2FE;
}

.zs-sale-muted {
    color: var(--color-text-muted);
}

.zs-sale-refund-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    border-radius: 999px;
    background: #FEF2F2;
    color: #DC2626;
    font-size: 12px;
    font-weight: 700;
}

.zs-sale-summary-panel {
    margin-top: 14px;
    margin-left: auto;
    width: 100%;
    max-width: 360px;
    border-top: 1px solid #EEF2F7;
    padding-top: 12px;
    flex-shrink: 0;
}

.zs-sale-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    font-size: 14px;
    color: var(--color-text-main);
}

    .zs-sale-summary-row.total {
        margin-top: 6px;
        padding-top: 14px;
        border-top: 1px solid #EEF2F7;
    }

    .zs-sale-summary-row .red {
        color: var(--color-danger);
    }

    .zs-sale-summary-row .green {
        color: var(--color-success);
    }

.zs-sale-payment-breakdown {
    margin-top: 10px;
    padding: 8px 10px;
    border-radius: 10px;
    background: #F8FAFC;
    border: 1px solid #EEF2F7;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.zs-sale-payment-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.zs-sale-payment-row-label {
    color: var(--color-text-muted);
    font-weight: 500;
}

.zs-sale-payment-row-value {
    font-weight: 700;
    color: var(--color-text-main);
    font-size: 13px;
}

.zs-sale-empty {
    text-align: center;
    color: var(--color-text-muted);
    padding: 20px !important;
}

.zs-sale-btn {
    border: none;
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.zs-sale-btn-danger-outline {
    background: #FFF1F2;
    color: #E11D48;
    border: 1px solid #FDA4AF;
}

.zs-sale-btn-danger-soft {
    background: #FFF1F2;
    color: #E11D48;
    border: 1px solid #FBCFE8;
    min-width: 88px;
}

/* =========================================
   SALES REFUND CONFIRM MODAL
========================================= */

.refund-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1200;
    padding: 24px;
}

.refund-modal-card {
    width: 100%;
    max-width: 440px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.22);
    overflow: hidden;
    animation: refundModalIn 0.18s ease-out;
    border: 1px solid rgba(226, 232, 240, 0.9);
}

.refund-modal-header {
    padding: 20px 24px 12px 24px;
    border-bottom: 1px solid #f1f5f9;
}

    .refund-modal-header h5 {
        margin: 0;
        font-size: 20px;
        font-weight: 700;
        color: #0f172a;
    }

.refund-modal-body {
    padding: 16px 24px 8px 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

    .refund-modal-body p {
        margin: 0;
        font-size: 15px;
        line-height: 1.6;
        color: #475569;
    }


.refund-flow-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 16px;
    border-radius: 20px;
    border: 1px solid #E2E8F0;
    background: #F8FAFC;
}

.refund-flow-stack .refund-split-section {
    margin-top: 0;
    padding-top: 16px;
    border-top: 1px solid #E2E8F0;
}

.refund-modal-backdrop.is-confirm-only .refund-flow-stack {
    display: none;
}

.refund-qty-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.refund-qty-copy {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.refund-qty-title {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #475569;
}

.refund-qty-description {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #64748B;
}

.refund-qty-summary-surface {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid #E2E8F0;
    background: linear-gradient(180deg, #FBFCFE 0%, #FFFFFF 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.refund-qty-summary-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.refund-qty-summary-row--product {
    grid-column: 1 / -1;
}

.refund-qty-summary-label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748B;
}

.refund-qty-summary-value {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    color: #0F172A;
    word-break: break-word;
    font-variant-numeric: tabular-nums;
}

.refund-qty-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.refund-qty-field-label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #475569;
}

.refund-qty-input-shell {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 54px;
    padding: 0 14px 0 16px;
    border-radius: 14px;
    border: 1.5px solid #E2E8F0;
    background: #FBFCFE;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.refund-qty-input-shell:focus-within {
    border-color: #2563EB;
    background: #FFFFFF;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
}

.refund-qty-input {
    width: 100%;
    min-height: 54px;
    border: none;
    background: transparent;
    padding: 0;
    font-size: 18px;
    font-weight: 700;
    color: #0F172A;
    outline: none;
    font-variant-numeric: tabular-nums;
}

.refund-qty-input::-webkit-outer-spin-button,
.refund-qty-input::-webkit-inner-spin-button {
    margin: 0;
}

.refund-qty-input-suffix {
    flex-shrink: 0;
    padding: 6px 10px;
    border-radius: 999px;
    background: #EEF2F7;
    color: #475569;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.refund-qty-status {
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid #E2E8F0;
    background: #F8FAFC;
    font-size: 13px;
    line-height: 1.55;
    color: #64748B;
}

.refund-qty-section.is-valid .refund-qty-summary-surface {
    border-color: rgba(16, 185, 129, 0.22);
    background: linear-gradient(180deg, #F0FDF4 0%, #FFFFFF 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 14px 30px rgba(16, 185, 129, 0.06);
}

.refund-qty-section.is-valid .refund-qty-status {
    border-color: #A7F3D0;
    background: #ECFDF5;
    color: #047857;
}

.refund-qty-section.is-invalid .refund-qty-summary-surface {
    border-color: rgba(245, 158, 11, 0.24);
    background: linear-gradient(180deg, #FFFBEB 0%, #FFFFFF 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 14px 30px rgba(245, 158, 11, 0.08);
}

.refund-qty-section.is-invalid .refund-qty-status {
    border-color: #FDE68A;
    background: #FFFBEB;
    color: #B45309;
}

.refund-qty-section.is-invalid #refundQtySelectedValue {
    color: #B45309;
}

.refund-qty-section.is-valid #refundQtySelectedValue {
    color: #047857;
}
.refund-split-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 14px;
    padding-top: 18px;
    border-top: 1px solid #E2E8F0;
}

.refund-split-copy {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.refund-split-title {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #475569;
}

.refund-split-description {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #64748B;
}

.refund-split-summary-surface {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid #E2E8F0;
    background: linear-gradient(180deg, #FBFCFE 0%, #FFFFFF 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.refund-split-summary-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.refund-split-summary-label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748B;
}

.refund-split-summary-value {
    font-size: 19px;
    font-weight: 700;
    line-height: 1.3;
    color: #0F172A;
    font-variant-numeric: tabular-nums;
    word-break: break-word;
}

.refund-split-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.refund-split-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.refund-split-field-label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #475569;
}

.refund-split-input-shell {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 50px;
    padding: 0 14px 0 40px;
    border-radius: 14px;
    border: 1.5px solid #E2E8F0;
    background: #FBFCFE;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.refund-split-input-shell:focus-within {
    border-color: #2563EB;
    background: #FFFFFF;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
}

.refund-split-input-prefix {
    position: absolute;
    left: 14px;
    font-size: 14px;
    font-weight: 700;
    color: #64748B;
}

.refund-split-input {
    width: 100%;
    min-height: 50px;
    border: none;
    background: transparent;
    padding: 0;
    font-size: 15px;
    font-weight: 600;
    color: #0F172A;
    outline: none;
    font-variant-numeric: tabular-nums;
}

.refund-split-input::placeholder {
    color: #94A3B8;
}

.refund-split-status {
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid #E2E8F0;
    background: #F8FAFC;
    font-size: 13px;
    line-height: 1.55;
    color: #64748B;
}

.refund-split-section.is-valid .refund-split-summary-surface {
    border-color: rgba(16, 185, 129, 0.22);
    background: linear-gradient(180deg, #F0FDF4 0%, #FFFFFF 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 14px 30px rgba(16, 185, 129, 0.06);
}

.refund-split-section.is-valid .refund-split-status {
    border-color: #A7F3D0;
    background: #ECFDF5;
    color: #047857;
}

.refund-split-section.is-invalid .refund-split-summary-surface {
    border-color: rgba(245, 158, 11, 0.24);
    background: linear-gradient(180deg, #FFFBEB 0%, #FFFFFF 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 14px 30px rgba(245, 158, 11, 0.08);
}

.refund-split-section.is-invalid .refund-split-status {
    border-color: #FDE68A;
    background: #FFFBEB;
    color: #B45309;
}

.refund-split-section.is-invalid #refundSplitEnteredTotal {
    color: #B45309;
}

.refund-split-section.is-valid #refundSplitEnteredTotal {
    color: #047857;
}

/* Toggle butonu — link tarzı, browser default button stilini sıfırlar */
.refund-split-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 10px;
    padding: 0;
    background: none;
    border: none;
    font-size: 13px;
    font-weight: 600;
    color: #64748B;
    cursor: pointer;
    transition: color 0.15s;
}

.refund-split-toggle-btn:hover {
    color: #334155;
}

.refund-split-toggle-icon {
    font-size: 11px;
}

/* Açılan detay kutusu — görsel ayraç */
.refund-split-detail {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #EEF2F7;
}

.refund-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 20px 24px 24px 24px;
}

    .refund-modal-footer .btn {
        min-width: 120px;
        border-radius: 12px;
        font-weight: 600;
        padding: 10px 16px;
    }

.refund-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.52);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    z-index: 1200;
    padding: 36px 20px;
    overflow-y: auto;
}

.refund-modal-card {
    width: 100%;
    max-width: 500px;
    background: #FFFFFF;
    border-radius: 28px;
    box-shadow: 0 32px 90px rgba(15, 23, 42, 0.24);
    overflow: hidden;
    animation: refundModalIn 0.18s ease-out;
    border: 1px solid rgba(226, 232, 240, 0.96);
}

.refund-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: clamp(22px, 4vw, 28px) clamp(20px, 4vw, 28px) 14px;
    border-bottom: none;
}

.refund-modal-header-copy {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}

.refund-modal-kicker {
    display: none;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid #FFE4E6;
    background: #FFF1F2;
    color: #BE123C;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.refund-modal-title {
    margin: 0;
    font-size: 24px;
    font-weight: 800;
    color: #0F172A;
}

.refund-modal-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 999px;
    background: #F8FAFC;
    box-shadow: inset 0 0 0 1px rgba(226, 232, 240, 0.92);
    color: #475569;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.refund-modal-close:hover,
.refund-modal-close:focus {
    background: #E2E8F0;
    color: #0F172A;
    transform: translateY(-1px);
}

.refund-modal-body {
    padding: 0 clamp(20px, 4vw, 28px) clamp(18px, 3vw, 24px);
}

.refund-confirm-text {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    color: #475569;
}

.refund-confirm-summary {
    display: none;
    flex-direction: column;
    gap: 14px;
    padding: 18px 20px;
    border-radius: 20px;
    border: 1px solid rgba(239, 68, 68, 0.18);
    background: linear-gradient(180deg, #FFF7F7 0%, #FFFFFF 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 14px 30px rgba(239, 68, 68, 0.06);
}

.refund-confirm-summary-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.refund-confirm-summary-label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748B;
}

.refund-confirm-summary-value {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    color: #0F172A;
    word-break: break-word;
}

.refund-modal-footer {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 0 clamp(20px, 4vw, 28px) clamp(22px, 4vw, 28px);
}

.refund-modal-btn {
    flex: 1 1 0;
    min-height: 48px;
    padding: 0 20px;
    border-radius: 16px;
    font-weight: 700;
    border: 1px solid transparent;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.refund-modal-btn:hover,
.refund-modal-btn:focus {
    transform: translateY(-1px);
}

.refund-modal-btn--ghost {
    background: #F8FAFC;
    border-color: #E2E8F0;
    color: #334155;
}

.refund-modal-btn--ghost:hover,
.refund-modal-btn--ghost:focus {
    background: #EEF2F7;
    color: #0F172A;
}

.refund-modal-btn--danger {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    color: #FFFFFF;
    box-shadow: 0 16px 28px rgba(239, 68, 68, 0.22);
}

.refund-modal-btn--danger:hover,
.refund-modal-btn--danger:focus {
    background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%);
    color: #FFFFFF;
}

.refund-modal-backdrop.is-confirm-only .refund-modal-kicker {
    display: inline-flex;
}

.refund-modal-backdrop.is-confirm-only .refund-modal-body {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.refund-modal-backdrop.is-confirm-only .refund-confirm-summary {
    display: flex;
}

.refund-modal-backdrop.is-confirm-only .refund-modal-footer {
    padding-top: 0;
}

@media (max-width: 640px) {
    .refund-modal-backdrop {
        padding: 20px 14px;
    }

    .refund-modal-card {
        border-radius: 24px;
    }

    .refund-modal-header,
    .refund-modal-body,
    .refund-modal-footer {
        padding-left: 18px;
        padding-right: 18px;
    }

    .refund-modal-footer {
        flex-direction: column-reverse;
    }
    .refund-qty-summary-surface,
    .refund-split-summary-surface,
    .refund-split-fields {
        grid-template-columns: 1fr;
    }
}
@keyframes refundModalIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* =========================
   RESPONSIVE - TABLET
========================= */

@media (max-width: 1200px) {
    .admin-dashboard-stats,
    .zs-stats-grid,
    .zs-detail-stats,
    .zs-sale-modal-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .zs-sales-filter-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .zs-sales-filter-actions {
        justify-content: flex-start;
    }
}

/* =========================
   RESPONSIVE - MOBILE
========================= */

@media (max-width: 768px) {
    .admin-content {
        padding: 16px;
    }

    .admin-search-input {
        min-width: 100%;
        width: 100%;
    }

    .admin-section-actions {
        width: 100%;
    }

    .admin-dashboard-topbar {
        padding: 18px;
    }

    .admin-dashboard-topbar-right,
    .admin-dashboard-topbar-meta,
    .admin-dashboard-topbar-actions {
        width: 100%;
    }

    .admin-dashboard-topbar-right {
        justify-content: flex-start;
    }

    .admin-dashboard-date-chip,
    .admin-dashboard-user-chip {
        width: 100%;
        justify-content: flex-start;
    }

    .admin-dashboard-topbar-actions .admin-secondary-btn,
    .admin-dashboard-topbar-actions .admin-topbar-primary-btn {
        flex: 1 1 160px;
    }

    .admin-dashboard-stats {
        grid-template-columns: 1fr;
    }

    .admin-stat-value {
        font-size: 26px;
    }

    .admin-chart-total {
        font-size: 28px;
    }

    .admin-chart-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-top-product-body {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-sale-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .zs-page-header,
    .zs-detail-topbar,
    .zs-detail-heading,
    .zs-table-footer,
    .zs-table-toolbar,
    .zs-sale-modal-header,
    .zs-sale-section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .zs-page-actions,
    .zs-search-form,
    .zs-search-wrap {
        width: 100%;
    }

    .zs-stats-grid,
    .zs-detail-stats,
    .zs-detail-bottom,
    .zs-sale-modal-stats {
        grid-template-columns: 1fr;
    }

    .zs-filter-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #E5E7EB;
    color: var(--color-text-main);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
}

    .zs-sales-filter-grid {
        grid-template-columns: 1fr;
    }

    .zs-sales-filter-actions,
    .zs-sales-filter-actions .zs-btn,
    .zs-sales-filter-excel {
        width: 100%;
    }

    .zs-sales-summary-band {
        flex-direction: column;
        align-items: flex-start;
    }

    .zs-sales-summary-strip {
        width: 100%;
    }

    .zs-modal-overlay {
        padding: 16px;
    }

    .zs-modal-shell {
        max-width: 100%;
        margin-top: 12px;
    }

    .zs-sale-modal {
        border-radius: 16px;
    }

    .zs-sale-modal-title {
        font-size: 22px;
    }

    .zs-sale-modal-body {
        padding: 18px;
    }

    .zs-sale-summary-panel {
        max-width: 100%;
    }
}


/* =========================
   DASHBOARD - PREMIUM OVERRIDES
========================= */

.admin-dashboard-shell {
    --dashboard-bg: #F4F5F8;
    --dashboard-white: #FFFFFF;
    --dashboard-border: #E8EAF0;
    --dashboard-text: #1A1C2E;
    --dashboard-muted: #6B6F88;
    --dashboard-subtle: #A0A4BC;
    --dashboard-accent: #5B6AF0;
    --dashboard-accent-soft: #EEF0FD;
    --dashboard-accent-glow: rgba(91,106,240,0.18);
    --dashboard-success: #10B981;
    --dashboard-success-soft: #ECFDF5;
    --dashboard-warning: #F59E0B;
    --dashboard-warning-soft: #FFFBEB;
    --dashboard-danger: #F43F5E;
    --dashboard-danger-soft: #FFF1F3;
    gap: 24px;
    font-family: "DM Sans", sans-serif;
}

.admin-dashboard-shell .admin-section-title,
.admin-dashboard-shell .admin-section-subtitle,
.admin-dashboard-shell .admin-dashboard-section-title,
.admin-dashboard-shell .admin-dashboard-section-copy,
.admin-dashboard-shell .admin-widget-title,
.admin-dashboard-shell .admin-stat-label,
.admin-dashboard-shell .admin-sale-id,
.admin-dashboard-shell .admin-top-product-name,
.admin-dashboard-shell .admin-top-product-meta {
    font-family: "DM Sans", sans-serif;
}


.admin-dashboard-shell .admin-dashboard-topbar {
    position: relative;
    overflow: visible;
    padding: 24px 28px;
    border-radius: 16px;
    border: 1px solid var(--dashboard-border);
    background: var(--dashboard-white);
    box-shadow: 0 4px 16px rgba(26,28,46,0.08), 0 2px 6px rgba(26,28,46,0.05);
}

.admin-dashboard-shell .admin-dashboard-topbar::after {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(91,106,240,0.16), rgba(91,106,240,0));
}

.admin-dashboard-shell .admin-dashboard-topbar-left {
    gap: 4px;
}

.admin-dashboard-shell .admin-section-title {
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--dashboard-text);
}

.admin-dashboard-shell .admin-section-subtitle {
    margin-top: 0;
    font-size: 12px;
    font-weight: 500;
    color: var(--dashboard-subtle);
}


.admin-dashboard-shell .topbar-profile {
    position: relative;
    flex-shrink: 0;
}

.admin-dashboard-shell .topbar-profile-btn {
    border: 1px solid var(--dashboard-border);
    background: #FFFFFF;
    border-radius: 14px;
    padding: 6px 10px 6px 6px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(26, 28, 46, 0.06);
}

.admin-dashboard-shell .topbar-profile-btn:focus-visible {
    outline: 2px solid rgba(91, 106, 240, 0.28);
    outline-offset: 3px;
}

.admin-dashboard-shell .profile-avatar,
.admin-dashboard-shell .profile-card-avatar {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: linear-gradient(135deg, #667EEA, #764BA2);
    color: #FFFFFF;
    display: grid;
    place-items: center;
    font-size: 13px;
    font-weight: 800;
    flex-shrink: 0;
}

.admin-dashboard-shell .profile-inline {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
    min-width: 0;
}

.admin-dashboard-shell .profile-name {
    font-size: 12px;
    font-weight: 700;
    color: var(--dashboard-text);
    white-space: nowrap;
}

.admin-dashboard-shell .profile-role {
    font-size: 10px;
    color: var(--dashboard-subtle);
    white-space: nowrap;
}

.admin-dashboard-shell .topbar-profile-card {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    min-width: 220px;
    padding: 14px;
    border-radius: 16px;
    border: 1px solid var(--dashboard-border);
    background: #FFFFFF;
    box-shadow: 0 18px 40px rgba(26, 28, 46, 0.12);
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity 0.16s ease, transform 0.16s ease;
    z-index: 9999;
}

.admin-dashboard-shell .topbar-profile:hover .topbar-profile-card,
.admin-dashboard-shell .topbar-profile:focus-within .topbar-profile-card {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.admin-dashboard-shell .profile-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--dashboard-border);
}

.admin-dashboard-shell .profile-card-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.admin-dashboard-shell .profile-card-copy strong {
    font-size: 13px;
    color: var(--dashboard-text);
}

.admin-dashboard-shell .profile-card-copy span,
.admin-dashboard-shell .profile-card-row span {
    font-size: 11px;
    color: var(--dashboard-subtle);
}

.admin-dashboard-shell .profile-card-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.admin-dashboard-shell .profile-card-row strong {
    font-size: 12px;
    color: var(--dashboard-text);
}

.admin-dashboard-shell .admin-dashboard-topbar-meta,
.admin-dashboard-shell .admin-dashboard-topbar-actions {
    gap: 10px;
}

.admin-dashboard-shell .admin-dashboard-date-chip,
.admin-dashboard-shell .admin-dashboard-user-chip {
    min-height: 40px;
    padding: 7px 14px;
    border-radius: 8px;
    border: 1px solid var(--dashboard-border);
    background: var(--dashboard-bg);
    color: var(--dashboard-muted);
    box-shadow: none;
}

.admin-dashboard-shell .admin-dashboard-date-chip {
    font-size: 12px;
    font-weight: 500;
}

.admin-dashboard-shell .admin-dashboard-date-chip i,
.admin-dashboard-shell .admin-dashboard-user-chip i {
    color: var(--dashboard-accent);
}

.admin-dashboard-shell .admin-dashboard-user-chip {
    gap: 9px;
    padding-right: 14px;
}

.admin-dashboard-shell .admin-dashboard-user-chip-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(91,106,240,0.16), rgba(91,106,240,0.08));
}

.admin-dashboard-shell .admin-dashboard-user-chip-name {
    font-size: 12px;
    font-weight: 700;
    color: var(--dashboard-text);
}

.admin-dashboard-shell .admin-dashboard-user-chip-role {
    font-size: 10px;
    color: var(--dashboard-subtle);
}

.admin-dashboard-shell .admin-secondary-btn,
.admin-dashboard-shell .admin-topbar-primary-btn {
    height: 40px;
    border-radius: 8px;
    padding: 0 14px;
    font-size: 12px;
    font-weight: 700;
    gap: 6px;
    font-family: "DM Sans", sans-serif;
}

.admin-dashboard-shell .admin-secondary-btn {
    border-color: var(--dashboard-border);
    background: var(--dashboard-white);
    color: var(--dashboard-muted);
}

.admin-dashboard-shell .admin-secondary-btn:hover {
    background: #FAFBFF;
    border-color: #C8CADE;
    color: var(--dashboard-text);
}

.admin-dashboard-shell .admin-topbar-primary-btn {
    background: var(--dashboard-accent);
    box-shadow: 0 3px 10px var(--dashboard-accent-glow);
}

.admin-dashboard-shell .admin-topbar-primary-btn:hover {
    background: #4A59E0;
    transform: translateY(-1px);
}

.admin-dashboard-shell .admin-dashboard-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: -6px;
}

.admin-dashboard-shell .admin-dashboard-section-title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--dashboard-text);
}

.admin-dashboard-shell .admin-dashboard-section-copy {
    margin-top: 4px;
    font-size: 11.5px;
    color: var(--dashboard-subtle);
}

.admin-dashboard-shell .admin-dashboard-section-link {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--dashboard-accent);
    text-decoration: none;
}

.admin-dashboard-shell .admin-dashboard-section-link:hover {
    text-decoration: underline;
}

.admin-dashboard-shell .admin-dashboard-stats {
    gap: 16px;
}

.admin-dashboard-shell .admin-stat-card {
    position: relative;
    overflow: hidden;
    min-height: 0;
    padding: 20px 22px;
    border-radius: 14px;
    border: 1px solid var(--dashboard-border);
    background: var(--dashboard-white);
    box-shadow: 0 1px 3px rgba(26,28,46,0.06), 0 1px 2px rgba(26,28,46,0.04);
    gap: 0;
}

.admin-dashboard-shell .admin-stat-card::after {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, rgba(91,106,240,0.9), rgba(91,106,240,0));
}

.admin-dashboard-shell .admin-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(26,28,46,0.08), 0 2px 6px rgba(26,28,46,0.05);
    border-color: var(--dashboard-border);
}

.admin-dashboard-shell .admin-stat-card-top {
    justify-content: space-between;
    margin-bottom: 16px;
}

.admin-dashboard-shell .admin-stat-icon-badge {
    width: 38px;
    height: 38px;
    border-radius: 10px;
}

.admin-dashboard-shell .admin-stat-icon-badge svg {
    width: 17px;
    height: 17px;
    stroke-width: 2,1;
}

.admin-dashboard-shell .admin-stat-value {
    margin-bottom: 6px;
    font-size: 29px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--dashboard-text);
}

.admin-dashboard-shell .admin-stat-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--dashboard-muted);
}

.admin-dashboard-shell .admin-stat-subtext {
    margin-top: 4px;
    font-size: 11px;
    color: var(--dashboard-subtle);
}

.admin-dashboard-shell .admin-stat-pill {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 600;
    border: 1px solid transparent;
}

.admin-dashboard-shell .admin-stat-pill-primary {
    background: var(--dashboard-accent-soft);
    color: var(--dashboard-accent);
}

.admin-dashboard-shell .admin-stat-pill-success,
.admin-dashboard-shell .admin-stat-pill-success-soft {
    background: var(--dashboard-success-soft);
    color: var(--dashboard-success);
}

.admin-dashboard-shell .admin-stat-pill-warning {
    background: var(--dashboard-warning-soft);
    color: var(--dashboard-warning);
}

.admin-dashboard-shell .admin-stat-pill-danger {
    background: var(--dashboard-danger-soft);
    color: var(--dashboard-danger);
}

.admin-dashboard-shell .admin-stat-pill-neutral {
    background: #F3F4F8;
    color: var(--dashboard-muted);
}

.admin-dashboard-shell .admin-stat-card-sales .admin-stat-icon-badge {
    background: var(--dashboard-accent-soft);
    color: var(--dashboard-accent);
}

.admin-dashboard-shell .admin-stat-card-transactions .admin-stat-icon-badge {
    background: var(--dashboard-success-soft);
    color: var(--dashboard-success);
}

.admin-dashboard-shell .admin-stat-card-lowstock .admin-stat-icon-badge {
    background: var(--dashboard-warning-soft);
    color: var(--dashboard-warning);
}

.admin-dashboard-shell .admin-stat-card-outofstock .admin-stat-icon-badge {
    background: var(--dashboard-danger-soft);
    color: var(--dashboard-danger);
}

.admin-dashboard-shell .admin-dashboard-grid {
    margin-top: 0;
    gap: 16px;
    grid-template-columns: 1.6fr 1fr 1fr;
}

.admin-dashboard-shell .admin-dashboard-chart-card,
.admin-dashboard-shell .admin-dashboard-widget-card {
    border-radius: 14px;
    border: 1px solid var(--dashboard-border);
    background: var(--dashboard-white);
    box-shadow: 0 1px 3px rgba(26,28,46,0.06), 0 1px 2px rgba(26,28,46,0.04);
    padding: 0;
}

.admin-dashboard-shell .admin-widget-header {
    margin-bottom: 0;
    padding: 18px 20px 14px;
    border-bottom: 1px solid var(--dashboard-border);
}

.admin-dashboard-shell .admin-widget-title {
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--dashboard-text);
}

.admin-dashboard-shell .admin-widget-subtitle {
    margin-top: 4px;
    font-size: 11px;
    color: var(--dashboard-subtle);
}

.admin-dashboard-shell .admin-widget-badge {
    height: 24px;
    padding: 0 9px;
    border-radius: 20px;
    font-size: 10.5px;
    font-weight: 700;
    background: linear-gradient(135deg, #F59E0B, #EF4444);
    color: #fff;
}

.admin-dashboard-shell .admin-widget-badge-success {
    background: var(--dashboard-success-soft);
    color: var(--dashboard-success);
}

.admin-dashboard-shell .admin-chart-summary {
    padding: 16px 20px 0;
}

.admin-dashboard-shell .admin-chart-total {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--dashboard-text);
}

.admin-dashboard-shell .admin-chart-total-label {
    margin-top: 2px;
    font-size: 11px;
    color: var(--dashboard-subtle);
    font-family: "DM Sans", sans-serif;
}

.admin-dashboard-shell .admin-chart-canvas-wrap {
    margin: 16px 20px 0;
    min-height: 0;
    height: 182px;
    padding: 16px 18px 10px;
    border-radius: 14px;
    border: 1px solid var(--dashboard-border);
    background: linear-gradient(180deg, #FFFFFF 0%, #FAFBFF 100%);
}

.admin-dashboard-shell .admin-chart-canvas-wrap canvas {
    height: 154px !important;
}

.admin-dashboard-shell .admin-chart-footer {
    margin: 12px 20px 20px;
    padding-top: 0;
    border-top: none;
    font-size: 10.5px;
    color: var(--dashboard-subtle);
}

.admin-dashboard-shell .admin-chart-footer-label {
    font-size: 10px;
    color: var(--dashboard-subtle);
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.admin-dashboard-shell .admin-chart-footer-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--dashboard-text);
}

.admin-dashboard-shell .admin-dashboard-widget-card {
    min-height: 352px;
}

.admin-dashboard-shell .admin-recent-sales {
    padding: 6px 0;
}

.admin-dashboard-shell .admin-sale-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 20px;
    margin: 0;
    border-radius: 0;
    border-bottom: 1px solid rgba(232,234,240,0.6);
}

.admin-dashboard-shell .admin-sale-row:last-child {
    border-bottom: none;
}

.admin-dashboard-shell .admin-sale-row:hover {
    background: #FAFBFF;
}

.admin-dashboard-shell .admin-sale-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.admin-dashboard-shell .admin-sale-copy {
    min-width: 0;
}

.admin-dashboard-shell .admin-sale-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--dashboard-accent);
    flex-shrink: 0;
}

.admin-dashboard-shell .admin-sale-row:nth-child(2n) .admin-sale-dot {
    background: var(--dashboard-success);
}

.admin-dashboard-shell .admin-sale-row:nth-child(3n) .admin-sale-dot {
    background: var(--dashboard-warning);
}

.admin-dashboard-shell .admin-sale-id {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--dashboard-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-dashboard-shell .admin-sale-time {
    margin-top: 1px;
    font-size: 10.5px;
    color: var(--dashboard-subtle);
}

.admin-dashboard-shell .admin-sale-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.admin-dashboard-shell .admin-sale-payment {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 0 8px;
    border-radius: 5px;
    background: var(--dashboard-success-soft);
    color: var(--dashboard-success);
    font-size: 10px;
    font-weight: 700;
}

.admin-dashboard-shell .admin-sale-amount {
    font-size: 13px;
    font-weight: 700;
    color: var(--dashboard-text);
}

.admin-dashboard-shell .admin-dashboard-top-seller-card .admin-widget-header {
    border-bottom: none;
    padding-bottom: 8px;
}

.admin-dashboard-shell .admin-top-product-advanced {
    margin: 0 20px 20px;
    padding: 20px;
    border-radius: 14px;
    border: 1px solid var(--dashboard-border);
    background: linear-gradient(180deg, #FFFFFF 0%, #F9FAFC 100%);
    box-shadow: none;
}

.admin-dashboard-shell .admin-top-product-advanced:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(26,28,46,0.08), 0 2px 6px rgba(26,28,46,0.05);
}

.admin-dashboard-shell .admin-top-product-badge-top {
    margin-bottom: 14px;
}

.admin-dashboard-shell .admin-badge-top {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(245,158,11,0.12), rgba(244,63,94,0.08));
    color: var(--dashboard-warning);
    border: 1px solid rgba(245,158,11,0.2);
    font-size: 10px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 6px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.admin-dashboard-shell .admin-top-product-body {
    align-items: flex-start;
    gap: 16px;
}

.admin-dashboard-shell .admin-top-product-info {
    flex: 1;
}

.admin-dashboard-shell .admin-top-product-name {
    font-size: 19px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--dashboard-text);
}

.admin-dashboard-shell .admin-top-product-meta {
    margin-top: 6px;
    margin-bottom: 18px;
    font-size: 12px;
    color: var(--dashboard-subtle);
}

.admin-dashboard-shell .admin-top-product-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.admin-dashboard-shell .admin-top-product-stat {
    background: var(--dashboard-bg);
    border-radius: 9px;
    padding: 11px 13px;
    border: 1px solid var(--dashboard-border);
}

.admin-dashboard-shell .admin-top-product-stat-label {
    margin-bottom: 4px;
    font-size: 10px;
    font-weight: 600;
    color: var(--dashboard-subtle);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.admin-dashboard-shell .admin-top-product-stat-value {
    font-size: 15px;
    font-weight: 700;
    color: var(--dashboard-text);
}

.admin-dashboard-shell .admin-top-product-visual {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(91,106,240,0.12), rgba(91,106,240,0.04));
}

.admin-dashboard-shell .admin-top-product-visual i {
    color: var(--dashboard-accent);
}

.admin-dashboard-shell .admin-widget-empty {
    min-height: 250px;
    margin: 0 20px 20px;
    border-radius: 12px;
    background: #FAFBFF;
    border: 1px dashed var(--dashboard-border);
    color: var(--dashboard-subtle);
    font-size: 12px;
}

@media (max-width: 1280px) {
    .admin-dashboard-shell .admin-dashboard-grid {
        grid-template-columns: 1fr 1fr;
    }

    .admin-dashboard-shell .admin-dashboard-chart-card {
        grid-column: 1 / -1;
    }
}

@media (max-width: 992px) {
    .admin-dashboard-shell .admin-dashboard-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-dashboard-shell .admin-dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .admin-dashboard-shell {
        gap: 20px;
    }

    .admin-dashboard-shell .admin-dashboard-topbar {
        padding: 20px;
    }

    .admin-dashboard-shell .admin-dashboard-section-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-dashboard-shell .admin-dashboard-topbar-right,
    .admin-dashboard-shell .admin-dashboard-topbar-meta,
    .admin-dashboard-shell .admin-dashboard-topbar-actions {
        width: 100%;
    }

    .admin-dashboard-shell .admin-dashboard-topbar-right {
        justify-content: flex-start;
    }
    .admin-dashboard-shell .topbar-profile {
        width: 100%;
    }

    .admin-dashboard-shell .topbar-profile-btn {
        width: 100%;
        justify-content: flex-start;
    }

    .admin-dashboard-shell .topbar-profile-card {
        left: 0;
        right: auto;
        min-width: min(220px, 100%);
    }

    .admin-dashboard-shell .admin-dashboard-stats {
        grid-template-columns: 1fr;
    }

    .admin-dashboard-shell .admin-sale-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-dashboard-shell .admin-sale-right {
        width: 100%;
        justify-content: space-between;
    }

    .admin-dashboard-shell .admin-top-product-body {
        flex-direction: column;
    }

    .admin-dashboard-shell .admin-top-product-stat-grid {
        grid-template-columns: 1fr;
        width: 100%;
    }
}

/* =========================
   DASHBOARD - LAYOUT REFINEMENTS
========================= */

.admin-dashboard-shell {
    gap: 20px;
}

.admin-dashboard-shell .admin-dashboard-stats,
.admin-dashboard-shell .admin-dashboard-grid,
.admin-dashboard-shell .admin-dashboard-bottom-grid {
    align-items: stretch;
}

.admin-dashboard-shell .admin-dashboard-bottom-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.admin-dashboard-shell .admin-dashboard-bottom-card {
    border-radius: 14px;
    border: 1px solid var(--dashboard-border);
    background: var(--dashboard-white);
    box-shadow: 0 1px 3px rgba(26,28,46,0.06), 0 1px 2px rgba(26,28,46,0.04);
    padding: 0;
}

.admin-dashboard-shell .admin-widget-link {
    font-size: 11px;
    font-weight: 700;
    color: var(--dashboard-accent);
    text-decoration: none;
}

.admin-dashboard-shell .admin-widget-link:hover {
    text-decoration: underline;
}

.admin-dashboard-shell .admin-widget-badge-neutral {
    background: #F3F4F8;
    color: var(--dashboard-muted);
}

.admin-dashboard-shell .admin-stock-summary,
.admin-dashboard-shell .admin-performance-summary {
    padding: 18px 20px 20px;
}

.admin-dashboard-shell .admin-stock-summary {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.admin-dashboard-shell .admin-stock-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.admin-dashboard-shell .admin-stock-summary-tile,
.admin-dashboard-shell .admin-performance-metric {
    border: 1px solid var(--dashboard-border);
    border-radius: 12px;
    background: var(--dashboard-bg);
    padding: 12px 13px;
}

.admin-dashboard-shell .admin-stock-summary-kicker,
.admin-dashboard-shell .admin-performance-label {
    display: block;
    margin-bottom: 4px;
    font-size: 10px;
    font-weight: 600;
    color: var(--dashboard-subtle);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.admin-dashboard-shell .admin-stock-summary-value,
.admin-dashboard-shell .admin-performance-value {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: var(--dashboard-text);
}

.admin-dashboard-shell .admin-stock-summary-note,
.admin-dashboard-shell .admin-performance-hero-copy,
.admin-dashboard-shell .admin-stock-status-copy {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    color: var(--dashboard-subtle);
}

.admin-dashboard-shell .admin-stock-status-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.admin-dashboard-shell .admin-stock-status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid var(--dashboard-border);
    background: var(--dashboard-white);
}

.admin-dashboard-shell .admin-stock-status-main {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-dashboard-shell .admin-stock-status-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.admin-dashboard-shell .admin-stock-status-icon-warning {
    background: var(--dashboard-warning-soft);
    color: var(--dashboard-warning);
}

.admin-dashboard-shell .admin-stock-status-icon-danger {
    background: var(--dashboard-danger-soft);
    color: var(--dashboard-danger);
}

.admin-dashboard-shell .admin-stock-status-title {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--dashboard-text);
}

.admin-dashboard-shell .admin-stock-status-value {
    font-size: 15px;
    font-weight: 700;
    color: var(--dashboard-text);
}

.admin-dashboard-shell .admin-performance-summary {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.admin-dashboard-shell .admin-performance-hero {
    border: 1px solid var(--dashboard-border);
    border-radius: 14px;
    background: linear-gradient(180deg, #FFFFFF 0%, #FAFBFF 100%);
    padding: 16px 18px;
}

.admin-dashboard-shell .admin-performance-total {
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
    color: var(--dashboard-text);
    letter-spacing: -0.03em;
}

.admin-dashboard-shell .admin-performance-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

@media (max-width: 992px) {
    .admin-dashboard-shell .admin-dashboard-bottom-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .admin-dashboard-shell .admin-stock-summary-grid,
    .admin-dashboard-shell .admin-performance-grid {
        grid-template-columns: 1fr;
    }

    .admin-dashboard-shell .admin-stock-status-row {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* =========================
   DASHBOARD SUPPORT AREA
========================= */

.admin-dashboard-shell .admin-dashboard-support-area {
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 20px 24px;
    border: 1px solid #D4D7EE;
    border-radius: 12px;
    background: #ECEEF8;
}

.admin-dashboard-shell .admin-support-intro {
    flex: 0 0 auto;
    width: 220px;
}

.admin-dashboard-shell .admin-support-intro-heading {
    font-size: 13px;
    font-weight: 700;
    color: var(--dashboard-text);
    margin-bottom: 4px;
}

.admin-dashboard-shell .admin-support-intro-desc {
    font-size: 12px;
    color: var(--dashboard-muted);
    line-height: 1.55;
}

.admin-dashboard-shell .admin-support-divider {
    width: 1px;
    height: 40px;
    background: var(--dashboard-border);
    flex-shrink: 0;
}

.admin-dashboard-shell .admin-support-channels {
    flex: 1;
    display: flex;
    gap: 20px;
}

.admin-dashboard-shell .admin-support-channel {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.admin-dashboard-shell .admin-support-channel-icon-wrap {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: var(--dashboard-accent-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--dashboard-accent);
}

.admin-dashboard-shell .admin-support-channel-icon-wrap svg {
    width: 16px;
    height: 16px;
}

.admin-dashboard-shell .admin-support-channel-label {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--dashboard-subtle);
    margin-bottom: 3px;
}

.admin-dashboard-shell .admin-support-channel-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--dashboard-text);
}

@media (max-width: 992px) {
    .admin-dashboard-shell .admin-dashboard-support-area {
        flex-wrap: wrap;
        gap: 18px;
    }

    .admin-dashboard-shell .admin-support-divider {
        display: none;
    }

    .admin-dashboard-shell .admin-support-intro {
        width: 100%;
    }

    .admin-dashboard-shell .admin-support-channels {
        width: 100%;
        flex-wrap: wrap;
    }
}

@media (max-width: 576px) {
    .admin-dashboard-shell .admin-support-channels {
        flex-direction: column;
        gap: 14px;
    }
}

/* =========================
   SHARED PRODUCT SIDEBAR FAMILY
========================= */
.admin-shell[data-sidebar-shell="admin"],
.pos-shell[data-sidebar-shell="pos"] {
    --zs-product-sidebar-open-width: 220px;
    --zs-product-sidebar-panel-padding: 18px 12px;
    --zs-product-sidebar-brand-margin-bottom: 18px;
    --zs-product-sidebar-brand-padding-bottom: 16px;
    --zs-product-sidebar-open-brand-height: 60px;
    --zs-product-sidebar-wordmark-height: 52px;
}

.pos-shell[data-sidebar-shell="pos"] {
    --zs-product-sidebar-panel-padding: 16px 12px;
}

.admin-shell[data-sidebar-shell="admin"] .zs-sidebar,
.pos-shell[data-sidebar-shell="pos"] .zs-sidebar {
    background: linear-gradient(180deg, #1C1E2E 0%, #17192A 100%);
    padding: var(--zs-product-sidebar-panel-padding);
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.08);
    overflow-x: hidden;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-shell[data-sidebar-shell="admin"] .zs-sidebar-header,
.pos-shell[data-sidebar-shell="pos"] .zs-sidebar-header {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 10px;
    margin-bottom: var(--zs-product-sidebar-brand-margin-bottom);
    padding-bottom: var(--zs-product-sidebar-brand-padding-bottom);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-shell[data-sidebar-shell="admin"] .zs-sidebar-brand,
.pos-shell[data-sidebar-shell="pos"] .zs-sidebar-brand {
    display: flex;
    flex: 1;
    min-width: 0;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 16px 0;
}

.admin-shell[data-sidebar-shell="admin"] .zs-sidebar-brand-wordmark,
.pos-shell[data-sidebar-shell="pos"] .zs-sidebar-brand-wordmark {
    display: block;
    height: 36px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    object-position: center center;
}

.admin-shell[data-sidebar-shell="admin"] .zs-sidebar-brand-icon,
.pos-shell[data-sidebar-shell="pos"] .zs-sidebar-brand-icon {
    display: none;
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.admin-shell[data-sidebar-shell="admin"] .zs-sidebar-toggle,
.pos-shell[data-sidebar-shell="pos"] .zs-sidebar-toggle {
    display: inline-flex;
    flex: 0 0 auto;
    align-self: flex-start;
    position: relative;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: #FFFFFF;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03), 0 8px 18px rgba(0, 0, 0, 0.16);
    transition: background 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.admin-shell[data-sidebar-shell="admin"] .zs-sidebar-toggle:hover,
.pos-shell[data-sidebar-shell="pos"] .zs-sidebar-toggle:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.24);
    transform: translateY(-1px);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04), 0 12px 22px rgba(0, 0, 0, 0.2);
}

.admin-shell[data-sidebar-shell="admin"] .zs-sidebar-toggle:focus-visible,
.pos-shell[data-sidebar-shell="pos"] .zs-sidebar-toggle:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.55);
    outline-offset: 3px;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.28);
}

.admin-shell[data-sidebar-shell="admin"] .zs-sidebar-toggle span,
.pos-shell[data-sidebar-shell="pos"] .zs-sidebar-toggle span {
    background: #FFFFFF;
}

.admin-shell[data-sidebar-shell="admin"] .zs-sidebar-nav,
.pos-shell[data-sidebar-shell="pos"] .zs-sidebar-nav {
    gap: 8px;
    padding-top: 4px;
}

.admin-shell[data-sidebar-shell="admin"] .zs-sidebar-link-icon,
.pos-shell[data-sidebar-shell="pos"] .zs-sidebar-link-icon {
    color: rgba(255, 255, 255, 0.84);
}

.admin-shell[data-sidebar-shell="admin"] .zs-sidebar-link,
.pos-shell[data-sidebar-shell="pos"] .zs-sidebar-link {
    width: 100%;
    min-height: 46px;
    padding: 0 12px;
    border-radius: 14px;
    color: rgba(255, 255, 255, 0.78);
    font-family: "DM Sans", sans-serif;
    font-size: 12.5px;
    font-weight: 600;
    box-shadow: inset 0 0 0 1px transparent;
    transition: background 0.16s ease, color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.admin-shell[data-sidebar-shell="admin"] .zs-sidebar-link:hover,
.pos-shell[data-sidebar-shell="pos"] .zs-sidebar-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #FFFFFF;
    transform: translateY(-1px);
}

.admin-shell[data-sidebar-shell="admin"] .zs-sidebar-link:hover .zs-sidebar-link-icon,
.pos-shell[data-sidebar-shell="pos"] .zs-sidebar-link:hover .zs-sidebar-link-icon {
    color: #FFFFFF;
}

.admin-shell[data-sidebar-shell="admin"] .zs-sidebar-link.is-active,
.pos-shell[data-sidebar-shell="pos"] .zs-sidebar-link.is-active {
    background: transparent;
    box-shadow: none;
    border-left: 2px solid rgba(255,255,255,0.7);
    border-radius: 0;
    color: #FFFFFF;
}

.admin-shell[data-sidebar-shell="admin"] .zs-sidebar-link.is-active .zs-sidebar-link-icon,
.pos-shell[data-sidebar-shell="pos"] .zs-sidebar-link.is-active .zs-sidebar-link-icon {
    color: #FFFFFF;
}

.admin-shell[data-sidebar-shell="admin"].is-sidebar-collapsed .zs-sidebar-header,
.pos-shell[data-sidebar-shell="pos"].is-sidebar-collapsed .zs-sidebar-header {
    gap: 12px;
    padding-bottom: 14px;
}

.admin-shell[data-sidebar-shell="admin"].is-sidebar-collapsed .zs-sidebar-brand,
.pos-shell[data-sidebar-shell="pos"].is-sidebar-collapsed .zs-sidebar-brand {
    display: flex;
    flex: 1;
    width: 100%;
    min-width: 0;
    height: auto;
    padding: 16px 0;
    align-items: center;
    justify-content: center;
}

.admin-shell[data-sidebar-shell="admin"].is-sidebar-collapsed .zs-sidebar-brand-wordmark,
.pos-shell[data-sidebar-shell="pos"].is-sidebar-collapsed .zs-sidebar-brand-wordmark {
    display: none;
}

.admin-shell[data-sidebar-shell="admin"].is-sidebar-collapsed .zs-sidebar-brand-icon,
.pos-shell[data-sidebar-shell="pos"].is-sidebar-collapsed .zs-sidebar-brand-icon {
    display: block;
    margin: 0 auto;
}

.admin-shell[data-sidebar-shell="admin"]:not(.is-sidebar-collapsed) .zs-sidebar-brand,
.pos-shell[data-sidebar-shell="pos"]:not(.is-sidebar-collapsed) .zs-sidebar-brand {
    justify-content: flex-start;
    min-height: var(--zs-product-sidebar-open-brand-height);
    padding: 6px 0;
    overflow: visible;
}

.admin-shell[data-sidebar-shell="admin"]:not(.is-sidebar-collapsed) .zs-sidebar-brand-wordmark,
.pos-shell[data-sidebar-shell="pos"]:not(.is-sidebar-collapsed) .zs-sidebar-brand-wordmark {
    height: var(--zs-product-sidebar-wordmark-height);
    max-width: 100%;
    object-position: left center;
    filter: none;
}

.admin-shell[data-sidebar-shell="admin"]:not(.is-sidebar-collapsed) .zs-sidebar-toggle,
.pos-shell[data-sidebar-shell="pos"]:not(.is-sidebar-collapsed) .zs-sidebar-toggle {
    align-self: center;
}
.admin-shell[data-sidebar-shell="admin"] {
    grid-template-columns: var(--zs-product-sidebar-open-width) minmax(0, 1fr);
    transition: grid-template-columns 0.18s ease;
}

.admin-shell.no-sidebar-transition {
    transition: none !important;
}

.admin-shell[data-sidebar-shell="admin"].is-sidebar-collapsed {
    grid-template-columns: var(--zs-sidebar-collapsed-width) minmax(0, 1fr);
}

.admin-shell[data-sidebar-shell="admin"] .admin-sidebar {
    background: linear-gradient(180deg, #1C1E2E 0%, #17192A 100%);
    padding: 18px 12px;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.08);
    overflow-x: hidden;
    margin: 16px 0 16px 16px;
    height: calc(100vh - 32px);
    top: 16px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-shell[data-sidebar-shell="admin"] .admin-sidebar-brand {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 10px;
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-shell[data-sidebar-shell="admin"] .admin-brand-box {
    display: flex;
    flex: 1;
    min-width: 0;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 16px 0;
}

.admin-shell[data-sidebar-shell="admin"] .admin-brand-wordmark {
    display: block;
    height: 36px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    object-position: center center;
}

.admin-shell[data-sidebar-shell="admin"] .admin-brand-icon {
    display: none;
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.admin-shell[data-sidebar-shell="admin"] .admin-sidebar-toggle {
    display: inline-flex;
    flex: 0 0 auto;
    align-self: flex-start;
    position: relative;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: #FFFFFF;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03), 0 8px 18px rgba(0, 0, 0, 0.16);
    transition: background 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.admin-shell[data-sidebar-shell="admin"] .admin-sidebar-toggle:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.24);
    transform: translateY(-1px);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04), 0 12px 22px rgba(0, 0, 0, 0.2);
}

.admin-shell[data-sidebar-shell="admin"] .admin-sidebar-toggle:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.55);
    outline-offset: 3px;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.28);
}

.admin-shell[data-sidebar-shell="admin"] .admin-sidebar-toggle span {
    background: #FFFFFF;
}

.admin-shell[data-sidebar-shell="admin"] .admin-sidebar-nav {
    gap: 8px;
    padding-top: 4px;
}

.admin-shell[data-sidebar-shell="admin"] .admin-nav-icon {
    display: inline-flex;
    color: rgba(255, 255, 255, 0.84);
}

.admin-shell[data-sidebar-shell="admin"] .admin-nav-link {
    width: 100%;
    min-height: 46px;
    padding: 0 12px;
    border-radius: 14px;
    color: rgba(255, 255, 255, 0.78);
    font-family: "DM Sans", sans-serif;
    font-size: 12.5px;
    font-weight: 600;
    box-shadow: inset 0 0 0 1px transparent;
    transition: background 0.16s ease, color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.admin-shell[data-sidebar-shell="admin"] .admin-nav-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #FFFFFF;
    transform: translateY(-1px);
}

.admin-shell[data-sidebar-shell="admin"] .admin-nav-link:hover .admin-nav-icon {
    color: #FFFFFF;
}

.admin-shell[data-sidebar-shell="admin"] .admin-nav-link.is-active {
    background: transparent;
    box-shadow: none;
    border-left: 2px solid rgba(255,255,255,0.7);
    border-radius: 0;
    color: #FFFFFF;
}

.admin-shell[data-sidebar-shell="admin"] .admin-nav-link.is-active .admin-nav-icon {
    color: #FFFFFF;
}

.admin-shell[data-sidebar-shell="admin"].is-sidebar-collapsed .admin-sidebar-brand {
    gap: 12px;
    padding-bottom: 14px;
    align-items: center;
}

.admin-shell[data-sidebar-shell="admin"].is-sidebar-collapsed .admin-brand-box {
    display: flex;
    flex: 0 0 var(--zs-sidebar-icon-link-width);
    width: var(--zs-sidebar-icon-link-width);
    min-width: var(--zs-sidebar-icon-link-width);
    min-height: var(--zs-sidebar-icon-link-width);
    height: var(--zs-sidebar-icon-link-width);
    padding: 0;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.admin-shell[data-sidebar-shell="admin"].is-sidebar-collapsed .admin-brand-wordmark {
    display: none;
}

.admin-shell[data-sidebar-shell="admin"].is-sidebar-collapsed .admin-brand-icon {
    display: block;
    margin: 0 auto;
}

.admin-shell[data-sidebar-shell="admin"].is-sidebar-collapsed .admin-sidebar-toggle {
    width: var(--zs-sidebar-icon-link-width);
    height: var(--zs-sidebar-icon-link-width);
    align-self: center;
    margin: 0 auto;
}

.admin-shell[data-sidebar-shell="admin"]:not(.is-sidebar-collapsed) .admin-sidebar-brand {
    gap: 12px;
}

.admin-shell[data-sidebar-shell="admin"]:not(.is-sidebar-collapsed) .admin-brand-box {
    justify-content: flex-start;
    min-height: 60px;
    padding: 6px 0;
    overflow: visible;
}

.admin-shell[data-sidebar-shell="admin"]:not(.is-sidebar-collapsed) .admin-brand-wordmark {
    height: 52px;
    max-width: 100%;
    object-position: left center;
    filter: none;
}

.admin-shell[data-sidebar-shell="admin"]:not(.is-sidebar-collapsed) .admin-sidebar-toggle {
    align-self: center;
}
/* =========================
   DASHBOARD - COMPACT ADJUSTMENTS
========================= */

body:has(.admin-dashboard-shell) .admin-topbar {
    display: none;
}

body:has(.admin-dashboard-shell) .admin-content {
    padding-top: 18px;
}

.admin-dashboard-shell .admin-dashboard-grid {
    gap: 14px;
}

.admin-dashboard-shell .admin-dashboard-chart-card,
.admin-dashboard-shell .admin-dashboard-widget-card {
    min-height: 0;
}

.admin-dashboard-shell .admin-dashboard-chart-card .admin-widget-header,
.admin-dashboard-shell .admin-dashboard-widget-card .admin-widget-header,
.admin-dashboard-shell .admin-dashboard-bottom-card .admin-widget-header {
    padding: 16px 18px 12px;
}

.admin-dashboard-shell .admin-widget-title {
    font-size: 13px;
}

.admin-dashboard-shell .admin-widget-subtitle {
    margin-top: 3px;
    font-size: 10.5px;
}

.admin-dashboard-shell .admin-chart-summary {
    padding: 12px 18px 0;
}

.admin-dashboard-shell .admin-chart-total {
    font-size: 24px;
}

.admin-dashboard-shell .admin-chart-canvas-wrap {
    margin: 12px 18px 0;
    height: 146px;
    padding: 12px 14px 8px;
}

.admin-dashboard-shell .admin-chart-canvas-wrap canvas {
    height: 122px !important;
}

.admin-dashboard-shell .admin-chart-footer {
    margin: 10px 18px 16px;
}

.admin-dashboard-shell .admin-recent-sales {
    padding: 2px 0;
}

.admin-dashboard-shell .admin-sale-row {
    padding: 9px 18px;
}

.admin-dashboard-shell .admin-dashboard-recent-sales-card,
.admin-dashboard-shell .admin-dashboard-top-seller-card {
    min-height: 0;
}

.admin-dashboard-shell .admin-top-product-advanced {
    margin: 0 18px 18px;
    padding: 16px;
}

.admin-dashboard-shell .admin-top-product-meta {
    margin-bottom: 14px;
}

.admin-dashboard-shell .admin-top-product-stat-grid {
    gap: 10px;
}

.admin-dashboard-shell .admin-top-product-stat {
    padding: 10px 12px;
}

.admin-dashboard-shell .admin-top-product-stat-value {
    font-size: 14px;
}

.admin-dashboard-shell .admin-top-product-visual {
    width: 60px;
    height: 60px;
    border-radius: 16px;
}

.admin-dashboard-shell .admin-top-product-visual i {
    width: 26px;
    height: 26px;
}


/* =========================
   PRODUCTS LIST
========================= */

body:has(.admin-products-page) .admin-topbar {
    display: none;
}

body:has(.admin-products-page) .admin-content {
    padding: 0;
}

body:has(.admin-categories-page) .admin-topbar {
    display: none;
}

body:has(.admin-categories-page) .admin-content {
    padding: 0;
}

body:has(.admin-brands-page) .admin-topbar {
    display: none;
}

body:has(.admin-brands-page) .admin-content {
    padding: 0;
}

body:has(.zs-sales-page) .admin-topbar {
    display: none;
}

body:has(.zs-sales-page) .admin-content {
    padding: 0;
}

body:has(.zs-reports-page) .admin-topbar {
    display: none;
}

body:has(.zs-reports-page) .admin-content {
    padding: 0;
}

body:has(.admin-stock-page) .admin-topbar {
    display: none;
}

body:has(.admin-stock-page) .admin-content {
    padding: 0;
}

.admin-products-page {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    font-family: "DM Sans", sans-serif;
    color: #1A1C2E;
}

.admin-products-topbar {
    background: #FFFFFF;
    border: 1px solid #E8EAF0;
    border-radius: 15px;
    box-shadow: 0 1px 3px rgba(26, 28, 46, 0.06);
    padding: 14px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.admin-products-topbar-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.admin-products-topbar-title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #1A1C2E;
    line-height: 1.3;
}

.admin-products-topbar-subtitle {
    margin: 0;
    font-size: 12px;
    color: #A0A4BC;
}

.admin-products-topbar-meta {
    margin: 0;
    margin-top: 5px;
    font-size: 11.5px;
    font-weight: 500;
    color: #6B6F88;
}

.admin-products-topbar-right {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.admin-products-topbar-stats {
    display: flex;
    align-items: center;
    gap: 0;
}

.admin-products-topbar-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    padding: 0 18px;
}

.admin-products-topbar-stat:first-child {
    padding-left: 0;
}

.admin-products-topbar-stat:not(:last-child) {
    border-right: 1px solid #E8EAF0;
}

.admin-products-topbar-stat-value {
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #1A1C2E;
    line-height: 1.2;
}

.admin-products-topbar-stat-label {
    font-size: 10px;
    font-weight: 600;
    color: #B8BCCC;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.admin-products-topbar-divider {
    width: 1px;
    height: 28px;
    background: #E8EAF0;
    flex-shrink: 0;
}

.admin-products-search-form {
    margin: 0;
}

.admin-products-search-shell {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 210px;
    height: 36px;
    padding: 0 11px;
    border-radius: 10px;
    border: 1px solid transparent;
    background: #F4F5F8;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.admin-products-search-shell:focus-within {
    border-color: rgba(91, 106, 240, 0.4);
    box-shadow: 0 0 0 3px rgba(91, 106, 240, 0.08);
}

.admin-products-search-shell svg {
    color: #A0A4BC;
    flex-shrink: 0;
}

.admin-products-search-shell input {
    width: 100%;
    border: none;
    background: transparent;
    outline: none;
    color: #1A1C2E;
    font-size: 12.5px;
    font-family: inherit;
}

.admin-products-search-shell input::placeholder {
    color: #A0A4BC;
}

.admin-products-topbar-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 9px;
    border: 1px solid transparent;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.admin-products-topbar-btn--ghost {
    background: #FFFFFF;
    border-color: #E8EAF0;
    color: #6B6F88;
}

.admin-products-topbar-btn--ghost:hover {
    background: #F8FAFC;
    border-color: #D2D7E1;
    color: #1A1C2E;
}

.admin-products-topbar-btn--primary {
    background: #5B6AF0;
    color: #FFFFFF;
    box-shadow: 0 3px 10px rgba(91, 106, 240, 0.18);
}

.admin-products-topbar-btn--primary:hover {
    background: #4A59E0;
    color: #FFFFFF;
    transform: translateY(-1px);
}

.admin-products-content {
    padding: 20px 28px 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.admin-products-stats-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.admin-products-stat-card {
    position: relative;
    overflow: hidden;
    background: #FFFFFF;
    border: 1px solid #E8EAF0;
    border-radius: 14px;
    padding: 18px 20px;
    box-shadow: 0 1px 3px rgba(26, 28, 46, 0.06), 0 1px 2px rgba(26, 28, 46, 0.04);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.admin-products-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(26, 28, 46, 0.08);
}

.admin-products-stat-card::after {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 2px;
}

.admin-products-stat-card.is-blue::after {
    background: linear-gradient(90deg, #5B6AF0, transparent);
}

.admin-products-stat-card.is-green::after {
    background: linear-gradient(90deg, #10B981, transparent);
}

.admin-products-stat-card.is-yellow::after {
    background: linear-gradient(90deg, #F59E0B, transparent);
}

.admin-products-stat-card.is-red::after {
    background: linear-gradient(90deg, #F43F5E, transparent);
}

.admin-products-stat-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.admin-products-stat-icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

.admin-products-stat-icon.is-blue {
    background: #EEF0FD;
}

.admin-products-stat-icon.is-green {
    background: #ECFDF5;
}

.admin-products-stat-icon.is-yellow {
    background: #FFFBEB;
}

.admin-products-stat-icon.is-red {
    background: #FFF1F3;
}

.admin-products-stat-value {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.admin-products-stat-label {
    margin-top: 3px;
    font-size: 11.5px;
    font-weight: 500;
    color: #6B6F88;
}

.admin-products-filter-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 10px 16px;
    background: #FFFFFF;
    border: 1px solid #E8EAF0;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(26, 28, 46, 0.04);
}

.admin-products-filter-chips {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-products-filter-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.admin-products-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid #E8EAF0;
    background: #FFFFFF;
    color: #6B6F88;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.15s ease;
}

.admin-products-filter-btn:hover {
    border-color: #C8CADE;
    color: #1A1C2E;
}

.admin-products-filter-btn span {
    opacity: 0.62;
    font-size: 11px;
}

.admin-products-filter-btn.is-active {
    background: #EEF0FD;
    border-color: rgba(91, 106, 240, 0.3);
    color: #5B6AF0;
}

.admin-products-filter-btn.is-warning {
    background: #FFFBEB;
    border-color: rgba(245, 158, 11, 0.26);
    color: #B45309;
}

.admin-products-filter-btn.is-hot {
    background: #FFF1F3;
    border-color: rgba(244, 63, 94, 0.22);
    color: #E11D48;
}

.admin-products-filter-btn.is-danger {
    background: #FEF2F2;
    border-color: rgba(239, 68, 68, 0.26);
    color: #DC2626;
}

.admin-products-filter-btn.is-barcode {
    background: #ECFDF5;
    border-color: rgba(16, 185, 129, 0.24);
    color: #047857;
}

.admin-products-filter-separator {
    width: 1px;
    height: 20px;
    background: #E8EAF0;
    margin: 0 10px;
}

.admin-products-table-card {
    background: #FFFFFF;
    border: 1px solid #E8EAF0;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(26, 28, 46, 0.06), 0 1px 2px rgba(26, 28, 46, 0.04);
    overflow: hidden;
}

.admin-products-table-toolbar {
    padding: 16px 22px;
    border-bottom: 1px solid #E8EAF0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.admin-products-table-toolbar-left,
.admin-products-table-toolbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-products-table-title {
    font-size: 14px;
    font-weight: 700;
    color: #1A1C2E;
}

.admin-products-count-pill,
.admin-products-toolbar-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 25px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid #E8EAF0;
    background: #F4F5F8;
    color: #6B6F88;
    font-size: 11px;
}

.admin-products-table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
}

.admin-products-table thead th {
    padding: 11px 20px;
    text-align: left;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #A0A4BC;
    background: rgba(244, 245, 248, 0.72);
    border-bottom: 1px solid #E8EAF0;
    white-space: nowrap;
}

.admin-products-table thead th:last-child {
    text-align: right;
}

.admin-products-table tbody tr {
    border-bottom: 1px solid rgba(232, 234, 240, 0.6);
    transition: background-color 0.12s ease;
}

.admin-products-table tbody tr:last-child {
    border-bottom: none;
}

.admin-products-table tbody tr:hover {
    background: #FAFBFF;
}

.admin-products-table tbody td {
    padding: 15px 20px;
    font-size: 13.5px;
    vertical-align: middle;
    background: transparent;
}

.admin-products-row.is-inactive {
    opacity: 0.82;
}

.admin-products-product-cell {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 0;
}

.admin-products-product-thumb {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid #E8EAF0;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.admin-products-product-thumb.is-indigo {
    background: #EEF0FD;
}

.admin-products-product-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.admin-products-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-products-name {
    font-size: 13.5px;
    font-weight: 600;
    color: #1A1C2E;
}

.admin-products-meta-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-products-desc {
    font-size: 11px;
    color: #A0A4BC;
}

.admin-products-hot-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 22px;
    padding: 0 7px;
    border-radius: 6px;
    background: linear-gradient(135deg, #F59E0B, #EF4444);
    color: #FFFFFF;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.admin-products-status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 11px;
    font-weight: 700;
}

.admin-products-status-pill.is-active {
    background: #ECFDF5;
    border-color: #B7E4C7;
    color: #0F766E;
}

.admin-products-status-pill.is-passive {
    background: #F3F4F6;
    border-color: #D7DCE3;
    color: #667085;
}

.admin-products-category-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 7px;
    font-size: 11.5px;
    font-weight: 600;
}

.admin-products-category-pill.is-indigo {
    background: #EEF0FD;
    color: #5B6AF0;
}

.admin-products-category-pill.is-green {
    background: #F0FDF4;
    color: #10B981;
}

.admin-products-category-pill.is-amber {
    background: #FFF7ED;
    color: #D97706;
}

.admin-products-category-pill.is-slate {
    background: #F3F4F6;
    color: #667085;
}

.admin-products-brand-text {
    font-size: 12.5px;
    font-weight: 500;
    color: #6B6F88;
}



.admin-products-price-text {
    font-size: 13.5px;
    font-weight: 600;
    color: #1A1C2E;
}

.admin-products-stock-cell {
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-products-stock-num {
    min-width: 24px;
    font-size: 13px;
    font-weight: 700;
}

.admin-products-stock-num.is-good {
    color: #10B981;
}

.admin-products-stock-num.is-low {
    color: #F59E0B;
}

.admin-products-stock-num.is-empty {
    color: #F43F5E;
}

.admin-products-stock-bar {
    width: 64px;
    height: 5px;
    border-radius: 999px;
    background: #E8EAF0;
    overflow: hidden;
}

.admin-products-stock-fill {
    height: 100%;
    border-radius: 999px;
}

.admin-products-stock-fill.is-good {
    background: #10B981;
}

.admin-products-stock-fill.is-low {
    background: #F59E0B;
}

.admin-products-stock-fill.is-empty {
    background: #F43F5E;
}

.admin-stock-page {
    max-width: 1120px;
    margin: 0 auto;
    padding: 24px;
}

.admin-stock-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.admin-stock-title {
    margin: 0;
    color: #1A1C2E;
    font-size: 28px;
    font-weight: 750;
}

.admin-stock-subtitle {
    margin: 6px 0 0;
    color: #6B6F88;
    font-size: 14px;
}

.admin-stock-help-pill,
.admin-stock-kicker,
.admin-stock-label span {
    color: #6B6F88;
}

.admin-stock-help-pill {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border: 1px solid #E8EAF0;
    border-radius: 999px;
    background: #FFFFFF;
    font-size: 12px;
    font-weight: 650;
    white-space: nowrap;
}

.admin-stock-tabs {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 4px;
    margin-bottom: 16px;
    border: 1px solid #E8EAF0;
    border-radius: 999px;
    background: #FFFFFF;
}

.admin-stock-tab {
    min-height: 34px;
    padding: 0 14px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #6B6F88;
    font-size: 12.5px;
    font-weight: 750;
}

.admin-stock-tab.is-active {
    background: #EEF0FD;
    color: #5B6AF0;
}

.admin-stock-scan-card,
.admin-stock-product-card,
.admin-stock-movement-card,
.admin-stock-result-card,
.admin-stock-barcode-panel {
    border: 1px solid #E8EAF0;
    border-radius: 12px;
    background: #FFFFFF;
    box-shadow: 0 1px 3px rgba(26, 28, 46, 0.06), 0 1px 2px rgba(26, 28, 46, 0.04);
}

.admin-stock-scan-card,
.admin-stock-movement-card,
.admin-stock-barcode-panel {
    padding: 20px;
}

.admin-stock-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.admin-stock-kicker {
    display: block;
    margin-bottom: 2px;
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-stock-section-title {
    margin: 0;
    color: #1A1C2E;
    font-size: 16px;
    font-weight: 750;
}

.admin-stock-label {
    display: block;
    margin-bottom: 7px;
    color: #1A1C2E;
    font-size: 12.5px;
    font-weight: 700;
}

.admin-stock-scan-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.admin-stock-barcode-input,
.admin-stock-input {
    width: 100%;
    border: 1px solid #D7DCE3;
    border-radius: 8px;
    background: #FFFFFF;
    color: #1A1C2E;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.admin-stock-barcode-input {
    min-height: 48px;
    padding: 0 15px;
    font-size: 16px;
    font-weight: 650;
}

.admin-stock-input {
    min-height: 42px;
    padding: 0 12px;
    font-size: 13.5px;
}

.admin-stock-barcode-input:focus,
.admin-stock-input:focus {
    border-color: #5B6AF0;
    box-shadow: 0 0 0 3px rgba(91, 106, 240, 0.12);
}

.admin-stock-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 8px;
    border: 1px solid transparent;
    font-size: 13px;
    font-weight: 750;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.admin-stock-btn:disabled {
    cursor: not-allowed;
    opacity: 0.65;
}

.admin-stock-btn-secondary {
    min-height: 48px;
    border-color: #D7DCE3;
    background: #FFFFFF;
    color: #1A1C2E;
}

.admin-stock-btn-primary {
    background: #5B6AF0;
    color: #FFFFFF;
}

.admin-stock-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
    gap: 16px;
    margin-top: 16px;
}

.admin-stock-product-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px;
}

.admin-stock-product-main {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 0;
}

.admin-stock-product-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: #EEF0FD;
    color: #5B6AF0;
    font-size: 20px;
    font-weight: 800;
}

.admin-stock-product-name {
    margin: 0;
    color: #1A1C2E;
    font-size: 18px;
    font-weight: 750;
}

.admin-stock-product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 7px;
}

.admin-stock-product-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 9px;
    border-radius: 999px;
    background: #F4F5F8;
    color: #6B6F88;
    font-size: 11px;
    font-weight: 650;
}

.admin-stock-current-box,
.admin-stock-result-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.admin-stock-current-box {
    align-items: flex-end;
    flex-shrink: 0;
}

.admin-stock-current-box span,
.admin-stock-result-card span {
    color: #6B6F88;
    font-size: 11px;
    font-weight: 700;
}

.admin-stock-current-box strong {
    color: #10B981;
    font-size: 28px;
    line-height: 1;
}

.admin-stock-movement-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.admin-stock-movement-option {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid #E8EAF0;
    border-radius: 999px;
    background: #FFFFFF;
    color: #6B6F88;
    font-size: 13px;
    font-weight: 750;
    cursor: pointer;
}

.admin-stock-movement-option:has(.admin-stock-movement-radio:checked) {
    border-color: rgba(91, 106, 240, 0.28);
    background: #EEF0FD;
    color: #5B6AF0;
}

.admin-stock-movement-radio {
    margin: 0;
}

.admin-stock-form-grid {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 12px;
    margin: 16px 0;
}

.admin-stock-field {
    min-width: 0;
}

.admin-stock-result-card {
    grid-column: 1 / -1;
    padding: 16px 18px;
    border-color: rgba(16, 185, 129, 0.28);
    background: #ECFDF5;
}

.admin-stock-result-card strong {
    color: #047857;
    font-size: 24px;
    line-height: 1;
}

.admin-stock-inline-note {
    margin: 6px 0 0;
    color: #6B6F88;
    font-size: 12.5px;
}

.admin-stock-barcode-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.admin-stock-filter-chips {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}

.admin-stock-filter-chip {
    min-height: 32px;
    padding: 0 12px;
    border: 1px solid #E8EAF0;
    border-radius: 999px;
    background: #FFFFFF;
    color: #6B6F88;
    font-size: 12px;
    font-weight: 750;
}

.admin-stock-filter-chip.is-active {
    border-color: rgba(91, 106, 240, 0.28);
    background: #EEF0FD;
    color: #5B6AF0;
}

.admin-stock-barcode-search {
    max-width: 300px;
}

.admin-stock-barcode-status {
    margin-bottom: 10px;
    color: #6B6F88;
    font-size: 12px;
    font-weight: 700;
}

.admin-stock-barcode-list {
    display: grid;
    gap: 8px;
}

.admin-stock-barcode-row {
    display: grid;
    grid-template-columns: minmax(220px, 1.4fr) auto minmax(190px, 0.8fr) auto;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid #E8EAF0;
    border-radius: 10px;
    background: #FFFFFF;
}

.admin-stock-barcode-info {
    min-width: 0;
}

.admin-stock-barcode-name {
    color: #1A1C2E;
    font-size: 13.5px;
    font-weight: 750;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-stock-barcode-price {
    margin-top: 2px;
    color: #047857;
    font-size: 11.5px;
    font-weight: 700;
}

.admin-stock-barcode-meta {
    margin-top: 4px;
    color: #6B6F88;
    font-size: 11.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-stock-barcode-state {
    display: inline-flex;
    justify-content: center;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    align-items: center;
    font-size: 11px;
    font-weight: 750;
    white-space: nowrap;
}

.admin-stock-barcode-state.is-missing {
    background: #FFFBEB;
    color: #B45309;
}

.admin-stock-barcode-state.is-assigned {
    background: #ECFDF5;
    color: #047857;
}

.admin-stock-barcode-chip {
    grid-column: 3 / -1;
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 6px;
    background: #F0FDF4;
    border: 1px solid #BBF7D0;
    color: #15803D;
    font-size: 12px;
    font-weight: 650;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-stock-row-barcode-input {
    min-width: 0;
}

.admin-stock-barcode-empty {
    padding: 18px;
    border: 1px dashed #D7DCE3;
    border-radius: 10px;
    color: #6B6F88;
    text-align: center;
    font-size: 13px;
    font-weight: 650;
}

@media (max-width: 900px) {
    .admin-stock-page {
        padding: 18px 12px;
    }

    .admin-stock-hero,
    .admin-stock-product-card {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-stock-help-pill {
        white-space: normal;
    }

    .admin-stock-workspace,
    .admin-stock-form-grid {
        grid-template-columns: 1fr;
    }

    .admin-stock-current-box {
        align-items: flex-start;
    }

    .admin-stock-barcode-row {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .admin-stock-barcode-search {
        max-width: none;
    }
}

@media (max-width: 560px) {
    .admin-stock-scan-row {
        grid-template-columns: 1fr;
    }
}

.admin-products-barcode-status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.admin-products-barcode-status-pill.is-complete {
    background: #ECFDF5;
    border-color: #B7E4C7;
    color: #047857;
}

.admin-products-barcode-status-pill.is-missing {
    background: #FFFBEB;
    border-color: rgba(245, 158, 11, 0.32);
    color: #B45309;
}

.admin-products-barcode-status-pill.is-none {
    background: #F3F4F6;
    border-color: #D7DCE3;
    color: #667085;
}

.admin-products-action-cell {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex-wrap: wrap;
}

.admin-products-inline-form {
    display: inline-flex;
    margin: 0;
}

.admin-products-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 13px;
    border-radius: 7px;
    border: none;
    font-family: inherit;
    font-size: 11.5px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.15s ease;
    cursor: pointer;
}

.admin-products-action-btn.edit {
    background: #EEF0FD;
    color: #5B6AF0;
}

.admin-products-action-btn.edit:hover {
    background: rgba(91, 106, 240, 0.18);
    color: #4655E0;
}

.admin-products-action-btn.toggle-off {
    background: #FFF1F3;
    color: #F43F5E;
}

.admin-products-action-btn.toggle-off:hover {
    background: rgba(244, 63, 94, 0.15);
}

.admin-products-action-btn.toggle-on {
    background: #ECFDF5;
    color: #10B981;
}

.admin-products-action-btn.toggle-on:hover {
    background: rgba(16, 185, 129, 0.16);
}

.admin-products-table-footer {
    padding: 14px 22px;
    border-top: 1px solid #E8EAF0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.admin-products-page-info {
    font-size: 12px;
    color: #A0A4BC;
}

.admin-products-page-btns {
    display: flex;
    align-items: center;
    gap: 6px;
}

.admin-products-page-btn {
    width: 30px;
    height: 30px;
    border-radius: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #E8EAF0;
    background: #FFFFFF;
    color: #6B6F88;
    font-size: 12px;
    font-weight: 600;
}

.admin-products-page-btn.is-active {
    background: #5B6AF0;
    border-color: #5B6AF0;
    color: #FFFFFF;
}

.admin-products-page-btn.is-disabled {
    opacity: 0.5;
}

@media (max-width: 1199.98px) {
    .admin-products-stats-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* =========================
   SHARED PAGINATION
========================= */

.zs-table-footer {
    padding: 12px 22px;
    border-top: 1px solid #E8EAF0;
    background: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.zs-page-info {
    font-size: 12px;
    color: #A0A4BC;
}

.zs-page-btns {
    display: flex;
    align-items: center;
    gap: 4px;
}

.zs-page-btn {
    min-width: 30px;
    height: 30px;
    padding: 0 6px;
    border-radius: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #E8EAF0;
    background: #FFFFFF;
    color: #6B6F88;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    user-select: none;
    transition: background 0.13s ease, color 0.13s ease, border-color 0.13s ease;
}

.zs-page-btn:hover:not(.is-active):not(.is-disabled):not(.is-ellipsis) {
    background: #F4F5F8;
    border-color: #D0D5E0;
    color: #1A1C2E;
}

.zs-page-btn.is-active {
    background: #5B6AF0;
    border-color: #5B6AF0;
    color: #FFFFFF;
}

.zs-page-btn.is-disabled {
    opacity: 0.38;
    cursor: default;
    pointer-events: none;
}

.zs-page-btn.is-ellipsis {
    border: none;
    background: transparent;
    cursor: default;
    pointer-events: none;
    color: #A0A4BC;
    font-size: 13px;
}

/* =========================
   LOGIN PAGE
========================= */

body.login-page {
    min-height: 100vh;
    margin: 0;
    overflow: hidden;
    background: #07080F;
    color: #FFFFFF;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

.login-page .login-bg-canvas,
.login-page .login-splash-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.login-page .login-bg-canvas {
    z-index: 0;
}

.login-page .login-shell {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 36px 18px;
}

.login-page .login-wrap {
    position: relative;
    z-index: 1;
    width: min(400px, 100%);
    opacity: 0;
    transform: translateY(24px);
    animation: login-fade-up 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards;
}

.login-page .login-brand-block {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 36px;
}

.login-page .login-brand-icon {
    width: 52px;
    height: 52px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #534AB7;
    color: #FFFFFF;
    font-size: 30px;
    font-weight: 700;
    box-shadow: 0 0 30px rgba(83, 74, 183, 0.5);
}

.login-page .login-brand-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.login-page .login-brand-name {
    font-size: 26px;
    font-weight: 600;
    color: #FFFFFF;
    letter-spacing: -0.5px;
    line-height: 1;
}

.login-page .login-brand-one {
    font-size: 11px;
    font-weight: 600;
    color: #A5B4FC;
    letter-spacing: 5px;
    line-height: 1;
}

.login-page .login-card {
    padding: 36px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    box-shadow: 0 16px 44px rgba(3, 6, 19, 0.24);
}

.login-page .login-card-copy {
    margin-bottom: 28px;
}

.login-page .login-card-title {
    margin: 0;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 600;
    color: #FFFFFF;
}

.login-page .login-card-subtitle {
    margin: 6px 0 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
}

.login-page .login-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    margin-bottom: 20px;
    border-radius: 10px;
    background: rgba(244, 63, 94, 0.10);
    border: 1px solid rgba(244, 63, 94, 0.25);
}

.login-page .login-alert-icon {
    flex-shrink: 0;
    font-size: 16px;
    line-height: 1.1;
}

.login-page .login-alert-body {
    min-width: 0;
}

.login-page .login-alert-list {
    margin: 0;
    color: #FDA4AF;
    font-size: 13px;
}

.login-page .login-alert-list ul {
    margin: 0;
    padding-left: 18px;
}

.login-page .login-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.login-page .login-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.login-page .login-form-label {
    display: block;
    margin: 0;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.3px;
    color: rgba(255, 255, 255, 0.5);
}

.login-page .form-input {
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.06);
    color: #FFFFFF;
    font-size: 14px;
    line-height: 1.4;
    font-family: inherit;
    outline: none;
    box-shadow: none;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.login-page .form-input::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

.login-page .form-input:focus {
    border-color: rgba(83, 74, 183, 0.7);
    background: rgba(83, 74, 183, 0.08);
}

.login-page .form-input.is-invalid,
.login-page .form-input.input-validation-error {
    border-color: rgba(244, 63, 94, 0.7);
    background: rgba(244, 63, 94, 0.06);
    animation: login-shake 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

.login-page .login-validation {
    min-height: 16px;
    font-size: 12px;
    line-height: 1.35;
    color: #FDA4AF;
}

.login-page .login-validation:empty {
    display: none;
}

.login-page .btn-login {
    position: relative;
    overflow: hidden;
    width: 100%;
    min-height: 48px;
    padding: 13px 16px;
    border: none;
    border-radius: 10px;
    background: #534AB7;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(83, 74, 183, 0.4);
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.login-page .btn-login:hover {
    background: #4338CA;
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(83, 74, 183, 0.5);
}

.login-page .btn-login:active {
    transform: translateY(0);
}

.login-page .btn-login.loading {
    pointer-events: none;
    background: #4338CA;
}

.login-page .btn-text {
    transition: opacity 0.2s ease;
}

.login-page .btn-login.loading .btn-text {
    opacity: 0;
}

.login-page .btn-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #FFFFFF;
    border-radius: 50%;
    opacity: 0;
    transform: translate(-50%, -50%);
    transition: opacity 0.2s ease;
}

.login-page .btn-login.loading .btn-spinner {
    opacity: 1;
    animation: login-spin 0.7s linear infinite;
}

body.login-page.is-login-submitting {
    overflow: hidden;
}

.login-page .splash-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    background: #07080F;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.login-page .splash-overlay[hidden] {
    display: none !important;
}

.login-page .splash-overlay.show {
    opacity: 1;
    pointer-events: all;
}

.login-page .login-splash-canvas {
    z-index: 0;
    opacity: 0;
    transition: opacity 0.45s ease 0.12s;
}

.login-page .splash-overlay.show .login-splash-canvas {
    opacity: 1;
}

.login-page .splash-logo,
.login-page .splash-loader,
.login-page .splash-tagline,
.login-page .welcome-msg {
    position: relative;
    z-index: 1;
}

.login-page .splash-logo {
    display: flex;
    align-items: center;
    gap: 18px;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.7s ease 0.3s, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.3s;
}

.login-page .splash-overlay.show .splash-logo {
    opacity: 1;
    transform: translateY(0);
}

.login-page .splash-icon {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #534AB7;
    color: #FFFFFF;
    font-size: 42px;
    font-weight: 700;
    box-shadow: 0 0 40px rgba(83, 74, 183, 0.6);
}

.login-page .splash-wordmark {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.login-page .splash-velora {
    font-size: 34px;
    font-weight: 600;
    color: #FFFFFF;
    letter-spacing: -1px;
    line-height: 1;
}

.login-page .splash-one {
    font-size: 13px;
    font-weight: 600;
    color: #A5B4FC;
    letter-spacing: 6px;
    line-height: 1;
}

.login-page .splash-loader {
    width: 180px;
    height: 2px;
    overflow: hidden;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.07);
    opacity: 0;
    transition: opacity 0.4s ease 0.5s;
}

.login-page .splash-overlay.show .splash-loader {
    opacity: 1;
}

.login-page .splash-loader-fill {
    width: 34%;
    height: 100%;
    border-radius: 2px;
    background: linear-gradient(90deg, #534AB7, #818CF8, #C7D2FE);
    box-shadow: 0 0 10px #818CF8;
    transform: translateX(-130%) scaleX(0.86);
}

.login-page .splash-overlay.show .splash-loader-fill {
    animation: login-splash-loader-loop 1.25s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.login-page .splash-tagline {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.2);
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0;
    transition: opacity 0.5s ease 0.6s;
}

.login-page .welcome-msg {
    font-size: 13px;
    color: rgba(165, 180, 252, 0.7);
    letter-spacing: 1px;
    opacity: 0;
    transition: opacity 0.5s ease 0.8s;
}

.login-page .splash-overlay.show .splash-tagline,
.login-page .splash-overlay.show .welcome-msg {
    opacity: 1;
}

@keyframes login-fade-up {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes login-spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes login-shake {
    0%,
    100% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-6px);
    }

    40% {
        transform: translateX(6px);
    }

    60% {
        transform: translateX(-4px);
    }

    80% {
        transform: translateX(4px);
    }
}

@keyframes login-splash-loader-loop {
    0% {
        transform: translateX(-130%) scaleX(0.86);
    }

    50% {
        transform: translateX(82%) scaleX(1);
    }

    100% {
        transform: translateX(250%) scaleX(0.88);
    }
}

@media (max-width: 575.98px) {
    .login-page .login-shell {
        padding: 28px 16px;
    }

    .login-page .login-brand-block {
        margin-bottom: 28px;
    }

    .login-page .login-card {
        padding: 28px 22px;
    }

    .login-page .splash-logo {
        gap: 14px;
    }

    .login-page .splash-icon {
        width: 60px;
        height: 60px;
        font-size: 34px;
    }

    .login-page .splash-velora {
        font-size: 28px;
    }
}


.admin-products-confirm-overlay {
    z-index: 1250;
    background: rgba(15, 23, 42, 0.48);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.admin-products-confirm-dialog {
    width: min(500px, 100%);
    margin-top: clamp(24px, 7vh, 64px);
}

.admin-products-confirm-card {
    border-radius: 28px;
    border: 1px solid rgba(226, 232, 240, 0.96);
    box-shadow: 0 32px 90px rgba(15, 23, 42, 0.24);
}

.admin-products-confirm-header {
    align-items: flex-start;
    border-bottom: none;
    padding: clamp(22px, 4vw, 28px) clamp(20px, 4vw, 28px) 14px;
}

.admin-products-confirm-copy {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}

.admin-products-confirm-header .admin-products-modal-close {
    flex-shrink: 0;
    box-shadow: inset 0 0 0 1px rgba(226, 232, 240, 0.92);
}

.admin-products-confirm-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.admin-products-confirm-overlay.is-danger .admin-products-confirm-kicker {
    background: #FFF1F2;
    border-color: #FFE4E6;
    color: #BE123C;
}

.admin-products-confirm-overlay.is-primary .admin-products-confirm-kicker {
    background: #EFF6FF;
    border-color: #BFDBFE;
    color: #1D4ED8;
}

.admin-products-confirm-body {
    padding: 0 clamp(20px, 4vw, 28px) clamp(18px, 3vw, 24px);
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.admin-products-confirm-message {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    color: #475569;
}

.admin-products-confirm-summary {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 18px 20px;
    border-radius: 20px;
    border: 1px solid #E2E8F0;
    background: linear-gradient(180deg, #FBFCFE 0%, #FFFFFF 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.admin-products-confirm-overlay.is-danger .admin-products-confirm-summary {
    border-color: rgba(239, 68, 68, 0.18);
    background: linear-gradient(180deg, #FFF7F7 0%, #FFFFFF 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 14px 30px rgba(239, 68, 68, 0.06);
}

.admin-products-confirm-overlay.is-primary .admin-products-confirm-summary {
    border-color: rgba(37, 99, 235, 0.18);
    background: linear-gradient(180deg, #F8FBFF 0%, #FFFFFF 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 14px 30px rgba(37, 99, 235, 0.06);
}

.admin-products-confirm-summary-label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748B;
}

.admin-products-confirm-summary-name {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    color: #0F172A;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-products-confirm-footer {
    padding: 0 clamp(20px, 4vw, 28px) clamp(22px, 4vw, 28px);
    justify-content: space-between;
    gap: 12px;
}

.admin-products-confirm-footer .admin-products-modal-btn {
    flex: 1 1 0;
    min-height: 48px;
    padding: 0 20px;
    border-radius: 16px;
}

/* =========================
   ADMIN CATEGORIES PAGE
========================= */

.admin-categories-page {
    display: flex;
    flex-direction: column;
}

.admin-categories-topbar {
    background: #FFFFFF;
    border: 1px solid #E8EAF0;
    border-radius: 15px;
    box-shadow: 0 1px 3px rgba(26, 28, 46, 0.06);
    padding: 14px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.admin-categories-topbar-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.admin-categories-topbar-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #1A1C2E;
}

.admin-categories-topbar-subtitle {
    margin: 0;
    font-size: 12px;
    color: #A0A4BC;
}

.admin-categories-topbar-right {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.admin-categories-topbar-stats {
    display: flex;
    align-items: center;
    gap: 0;
}

.admin-categories-topbar-stat {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    padding: 0 18px;
}

.admin-categories-topbar-stat:first-child {
    padding-left: 0;
}

.admin-categories-topbar-stat:not(:last-child) {
    border-right: 1px solid #E8EAF0;
}

.admin-categories-topbar-stat-value {
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #1A1C2E;
    line-height: 1;
}

.admin-categories-topbar-stat-label {
    font-size: 10px;
    font-weight: 600;
    color: #B8BCCC;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    line-height: 1;
}

.admin-categories-topbar-divider {
    width: 1px;
    height: 28px;
    background: #E8EAF0;
    flex-shrink: 0;
}

.admin-categories-content {
    padding: 20px 28px 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.admin-categories-list-search-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 210px;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid #E8EAF0;
    background: #F4F5F8;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.admin-categories-list-search-wrap:focus-within {
    border-color: rgba(91, 106, 240, 0.4);
    box-shadow: 0 0 0 3px rgba(91, 106, 240, 0.08);
}

.admin-categories-list-search-wrap svg {
    color: #A0A4BC;
    flex-shrink: 0;
}

.admin-categories-list-search-wrap input {
    width: 100%;
    border: none;
    background: transparent;
    outline: none;
    color: #1A1C2E;
    font-size: 12.5px;
    font-family: inherit;
}

.admin-categories-list-search-wrap input::placeholder {
    color: #A0A4BC;
}

.admin-categories-create-btn {
    border: none;
    background: linear-gradient(135deg, #5B3DF5 0%, #7B63FF 100%);
    color: #FFFFFF;
    box-shadow: 0 14px 28px rgba(91, 61, 245, 0.18);
}

.admin-categories-create-btn:hover,
.admin-categories-create-btn:focus {
    color: #FFFFFF;
    background: linear-gradient(135deg, #5136DF 0%, #6C56F1 100%);
}

.admin-categories-flash {
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(16, 185, 129, 0.18);
    background: #ECFDF5;
    color: #047857;
    font-size: 14px;
}

.admin-categories-stats .zs-stat-card {
    min-height: 170px;
}

.admin-categories-stat-card {
    display: block;
    color: inherit;
    text-decoration: none;
    border: 1px solid #E5E7EB;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.admin-categories-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

.admin-categories-stat-card:focus-visible {
    outline: 2px solid rgba(91, 106, 240, 0.24);
    outline-offset: 3px;
}

.admin-categories-stat-card.is-active {
    border-color: rgba(91, 106, 240, 0.28);
    box-shadow: 0 16px 32px rgba(91, 106, 240, 0.12);
    transform: translateY(-2px);
}

.admin-categories-info-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border: 1px solid rgba(91, 106, 240, 0.2);
    border-radius: 11px;
    background: linear-gradient(135deg, #EEF0FD, #F0F4FF);
}

.admin-categories-info-icon {
    flex-shrink: 0;
    font-size: 16px;
    line-height: 1;
}

.admin-categories-info-text {
    margin: 0;
    font-size: 12.5px;
    line-height: 1.6;
    color: #5B6AF0;
    font-weight: 500;
}

.admin-categories-info-text strong {
    color: #5B6AF0;
    font-weight: 700;
}
.admin-categories-clear-link {
    font-size: 13px;
    font-weight: 700;
    color: var(--color-primary);
    text-decoration: none;
}

.admin-categories-list-card {
    padding: 0;
    overflow: hidden;
    border: 1px solid #E8EAF0;
    border-radius: 15px;
    background: #FFFFFF;
    box-shadow: 0 1px 3px rgba(26, 28, 46, 0.06);
}

.admin-categories-list-head {
    padding: 11px 22px;
    border-bottom: 1px solid #E8EAF0;
    background: linear-gradient(180deg, #FCFCFD 0%, #FFFFFF 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.admin-categories-list-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-categories-list-tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.admin-categories-toolbar-stats {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-categories-toolbar-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 11.5px;
    font-weight: 700;
    white-space: nowrap;
}

.admin-categories-toolbar-pill.is-active {
    background: #ECFDF5;
    border-color: rgba(16, 185, 129, 0.18);
    color: #10B981;
}

.admin-categories-toolbar-pill.is-passive {
    background: #FFFBEB;
    border-color: rgba(245, 158, 11, 0.18);
    color: #D97706;
}

.admin-categories-list-wrap {
    padding: 0;
    background: #FFFFFF;
}

.admin-categories-list-table {
    width: 100%;
    min-width: 940px;
    border-collapse: collapse;
    table-layout: fixed;
}

.admin-categories-list-table th,
.admin-categories-list-table td {
    box-sizing: border-box;
    vertical-align: middle;
    padding: 0;
}

.admin-categories-list-table thead tr {
    background: rgba(244, 245, 248, 0.72);
}

.admin-categories-list-table tbody tr {
    border-bottom: 1px solid rgba(232, 234, 240, 0.68);
    transition: background 0.14s ease, opacity 0.14s ease;
}

.admin-categories-list-table tbody tr:last-child {
    border-bottom: none;
}

.admin-categories-list-table tbody tr:hover {
    background: #FAFBFF;
}

.admin-categories-list-row.is-passive .admin-categories-id-chip,
.admin-categories-list-row.is-passive .admin-categories-name,
.admin-categories-list-row.is-passive .admin-categories-meta,
.admin-categories-list-row.is-passive .admin-categories-icon-badge {
    opacity: 0.82;
}

col.admin-categories-list-col-id {
    width: 7%;
}

col.admin-categories-list-col-category {
    width: 31%;
}

col.admin-categories-list-col-count {
    width: 19%;
}

col.admin-categories-list-col-status {
    width: 14%;
}

col.admin-categories-list-col-actions {
    width: 29%;
}

.admin-categories-list-head-cell,
.admin-categories-list-center,
.admin-categories-list-start,
.admin-categories-row-actions {
    box-sizing: border-box;
    width: 100%;
}

.admin-categories-list-head-cell {
    display: flex;
    align-items: center;
    min-height: 36px;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #98A2B3;
}

.admin-categories-list-head-cell.is-id,
.admin-categories-list-head-cell.is-count,
.admin-categories-list-head-cell.is-status {
    justify-content: center;
    padding: 7px 10px;
}

.admin-categories-list-head-cell.is-category {
    justify-content: flex-start;
    padding: 7px 20px;
}

.admin-categories-list-head-cell.is-actions {
    justify-content: flex-end;
    padding: 7px 18px 7px 12px;
}

.admin-categories-list-center {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 10px 10px;
}

.admin-categories-list-start {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 52px;
    padding: 10px 20px;
}

.admin-categories-id-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 6px;
    border: 1px solid #E8EAF0;
    background: #F4F5F8;
    color: #6B6F88;
    font-size: 12px;
    line-height: 1;
}

.admin-categories-name-cell {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.admin-categories-icon-badge {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #E8EAF0;
    background: linear-gradient(180deg, #FFF7ED 0%, #FFFFFF 100%);
    font-size: 16px;
    flex-shrink: 0;
}

.admin-categories-name-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.admin-categories-name {
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.35;
    color: #1A1C2E;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-categories-meta {
    font-size: 11.5px;
    line-height: 1.35;
    color: #6B6F88;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-categories-product-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid #E5E7EB;
    background: #F8FAFC;
    color: #6B7280;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.admin-categories-product-pill.has-products {
    background: #EEF0FD;
    border-color: rgba(91, 106, 240, 0.22);
    color: #5B6AF0;
}

.admin-categories-status-pill {
    min-width: 72px;
    justify-content: center;
}

.admin-categories-row-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    min-height: 68px;
    padding: 16px 18px 16px 12px;
    margin-left: auto;
    width: 100%;
    flex-wrap: nowrap;
}

.admin-categories-inline-form {
    display: inline-flex;
    margin: 0;
}

.admin-categories-row-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 13px;
    border-radius: 8px;
    border: 1px solid transparent;
    font-family: inherit;
    font-size: 11.5px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.15s ease;
}

.admin-categories-row-btn.is-edit {
    background: #EEF0FD;
    color: #5B6AF0;
}

.admin-categories-row-btn.is-edit:hover {
    background: rgba(91, 106, 240, 0.18);
    color: #4655E0;
}

.admin-categories-row-btn.is-danger {
    background: #FFF1F3;
    color: #F43F5E;
}

.admin-categories-row-btn.is-danger:hover {
    background: rgba(244, 63, 94, 0.15);
}

.admin-categories-row-btn.is-success {
    background: #ECFDF5;
    color: #10B981;
}

.admin-categories-row-btn.is-success:hover {
    background: rgba(16, 185, 129, 0.16);
}

.admin-categories-empty {
    padding: 32px !important;
    text-align: center;
    color: var(--color-text-muted);
}

@media (max-width: 768px) {
    .admin-categories-info-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-categories-list-head {
        align-items: flex-start;
    }

    .admin-categories-list-tools {
        width: 100%;
        justify-content: space-between;
    }

    .admin-categories-toolbar-stats {
        width: 100%;
    }

    .admin-categories-row-actions {
        justify-content: flex-start;
    }

    .admin-categories-name-cell {
        align-items: flex-start;
    }
}
.admin-categories-confirm-overlay {
    z-index: 1250;
    background: rgba(15, 23, 42, 0.48);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.admin-categories-confirm-dialog {
    width: min(500px, 100%);
    margin-top: clamp(24px, 7vh, 64px);
}

.admin-categories-confirm-card {
    border-radius: 28px;
    border: 1px solid rgba(226, 232, 240, 0.96);
    box-shadow: 0 32px 90px rgba(15, 23, 42, 0.24);
}

.admin-categories-confirm-header {
    align-items: flex-start;
    border-bottom: none;
    padding: clamp(22px, 4vw, 28px) clamp(20px, 4vw, 28px) 14px;
}

.admin-categories-confirm-copy {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}

.admin-categories-confirm-header .admin-products-modal-close {
    flex-shrink: 0;
    box-shadow: inset 0 0 0 1px rgba(226, 232, 240, 0.92);
}

.admin-categories-confirm-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: #FFF1F2;
    border-color: #FFE4E6;
    color: #BE123C;
}

.admin-categories-confirm-body {
    padding: 0 clamp(20px, 4vw, 28px) clamp(18px, 3vw, 24px);
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.admin-categories-confirm-message {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    color: #475569;
}

.admin-categories-confirm-summary {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 18px 20px;
    border-radius: 20px;
    border: 1px solid rgba(239, 68, 68, 0.18);
    background: linear-gradient(180deg, #FFF7F7 0%, #FFFFFF 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 14px 30px rgba(239, 68, 68, 0.06);
}

.admin-categories-confirm-summary-label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748B;
}

.admin-categories-confirm-summary-name {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    color: #0F172A;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-categories-confirm-footer {
    padding: 0 clamp(20px, 4vw, 28px) clamp(22px, 4vw, 28px);
    justify-content: space-between;
    gap: 12px;
}

.admin-categories-confirm-footer .admin-products-modal-btn {
    flex: 1 1 0;
    min-height: 48px;
    padding: 0 20px;
    border-radius: 16px;
}

.admin-categories-confirm-submit {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    color: #FFFFFF;
    box-shadow: 0 16px 28px rgba(239, 68, 68, 0.22);
}

.admin-categories-confirm-submit:hover,
.admin-categories-confirm-submit:focus {
    background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%);
    color: #FFFFFF;
}

.admin-categories-empty {
    padding: 32px !important;
    text-align: center;
    color: var(--color-text-muted);
}

@media (max-width: 768px) {
    .admin-categories-info-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-categories-toolbar-meta {
        width: 100%;
        justify-content: flex-start;
    }

    .admin-categories-create-btn {
        width: 100%;
        justify-content: center;
    }

    .admin-categories-action-cell {
        width: 100%;
        justify-content: flex-start;
    }

    .admin-categories-name-cell {
        align-items: flex-start;
    }
}

/* =========================
   ADMIN BRANDS PAGE
========================= */

.admin-brands-page {
    display: flex;
    flex-direction: column;
}

.admin-brands-content {
    padding: 20px 28px 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.admin-brands-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 22px;
    background: #FFFFFF;
    border: 1px solid #E8EAF0;
    border-radius: 15px;
    box-shadow: 0 1px 3px rgba(26, 28, 46, 0.06);
}

.admin-brands-topbar-left {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.admin-brands-topbar-title {
    font-size: 15px;
    font-weight: 700;
    color: #1A1C2E;
    margin: 0;
    line-height: 1.3;
}

.admin-brands-topbar-subtitle {
    font-size: 12px;
    color: #A0A4BC;
    margin: 0;
}

.admin-brands-topbar-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.admin-brands-topbar-stats {
    display: flex;
    align-items: center;
    gap: 0;
}

.admin-brands-topbar-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    padding: 0 18px;
}

.admin-brands-topbar-stat:first-child {
    padding-left: 0;
}

.admin-brands-topbar-stat:not(:last-child) {
    border-right: 1px solid #E8EAF0;
}

.admin-brands-topbar-stat-value {
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #1A1C2E;
    line-height: 1.2;
}

.admin-brands-topbar-stat-label {
    font-size: 10px;
    font-weight: 600;
    color: #B8BCCC;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.admin-brands-topbar-divider {
    display: block;
    width: 1px;
    height: 28px;
    background: #E8EAF0;
}

.admin-brands-create-btn {
    border: none;
    background: linear-gradient(135deg, #5B3DF5 0%, #7B63FF 100%);
    color: #FFFFFF;
    box-shadow: 0 14px 28px rgba(91, 61, 245, 0.18);
}

.admin-brands-create-btn:hover,
.admin-brands-create-btn:focus {
    color: #FFFFFF;
    background: linear-gradient(135deg, #5136DF 0%, #6C56F1 100%);
}

.admin-brands-stats .zs-stat-card {
    min-height: 170px;
}

.admin-brands-stat-card {
    display: block;
    color: inherit;
    text-decoration: none;
    border: 1px solid #E5E7EB;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.admin-brands-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

.admin-brands-stat-card:focus-visible {
    outline: 2px solid rgba(91, 106, 240, 0.24);
    outline-offset: 3px;
}

.admin-brands-stat-card.is-active {
    border-color: rgba(91, 106, 240, 0.28);
    box-shadow: 0 16px 32px rgba(91, 106, 240, 0.12);
    transform: translateY(-2px);
}

.admin-brands-list-card {
    padding: 0;
    overflow: hidden;
    border: 1px solid #E8EAF0;
    border-radius: 15px;
    background: #FFFFFF;
    box-shadow: 0 1px 3px rgba(26, 28, 46, 0.06);
}

.admin-brands-list-head {
    padding: 11px 22px;
    border-bottom: 1px solid #E8EAF0;
    background: linear-gradient(180deg, #FCFCFD 0%, #FFFFFF 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.admin-brands-list-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-brands-list-tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.admin-brands-list-search-wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: 7px;
    width: 210px;
    height: 36px;
    padding: 0 11px;
    background: #F4F5F8;
    border-radius: 10px;
    color: #A0A4BC;
}

.admin-brands-list-search-wrap .zs-search-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 12.5px;
    color: #1A1C2E;
    outline: none;
}

.admin-brands-list-search-wrap .zs-search-input::placeholder {
    color: #B8BCCC;
}

.admin-brands-toolbar-stats {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-brands-toolbar-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 11.5px;
    font-weight: 700;
    white-space: nowrap;
}

.admin-brands-toolbar-pill.is-active {
    background: #ECFDF5;
    border-color: rgba(16, 185, 129, 0.18);
    color: #10B981;
}

.admin-brands-toolbar-pill.is-passive {
    background: #FFFBEB;
    border-color: rgba(245, 158, 11, 0.18);
    color: #D97706;
}

.admin-brands-clear-link {
    font-size: 13px;
    font-weight: 700;
    color: var(--color-primary);
    text-decoration: none;
}

.admin-brands-list-wrap {
    padding: 0;
    background: #FFFFFF;
}

.admin-brands-list-table {
    width: 100%;
    min-width: 900px;
    border-collapse: collapse;
    table-layout: fixed;
}

.admin-brands-list-table th,
.admin-brands-list-table td {
    box-sizing: border-box;
    vertical-align: middle;
    padding: 0;
}

.admin-brands-list-table thead tr {
    background: rgba(244, 245, 248, 0.72);
}

.admin-brands-list-table tbody tr {
    border-bottom: 1px solid rgba(232, 234, 240, 0.68);
    transition: background 0.14s ease, opacity 0.14s ease;
}

.admin-brands-list-table tbody tr:last-child {
    border-bottom: none;
}

.admin-brands-list-table tbody tr:hover {
    background: #FAFBFF;
}

.admin-brands-list-row.is-passive .admin-brands-avatar,
.admin-brands-list-row.is-passive .admin-brands-name,
.admin-brands-list-row.is-passive .admin-brands-meta {
    opacity: 0.82;
}

col.admin-brands-list-col-brand {
    width: 45%;
}

col.admin-brands-list-col-count {
    width: 17%;
}

col.admin-brands-list-col-status {
    width: 14%;
}

col.admin-brands-list-col-actions {
    width: 24%;
}

.admin-brands-list-head-cell,
.admin-brands-list-center,
.admin-brands-list-start,
.admin-brands-row-actions {
    box-sizing: border-box;
    width: 100%;
}

.admin-brands-list-head-cell {
    display: flex;
    align-items: center;
    min-height: 36px;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #98A2B3;
}

.admin-brands-list-head-cell.is-count,
.admin-brands-list-head-cell.is-status {
    justify-content: center;
    padding: 7px 10px;
}

.admin-brands-list-head-cell.is-brand {
    justify-content: flex-start;
    padding: 7px 22px;
}

.admin-brands-list-head-cell.is-actions {
    justify-content: flex-end;
    padding: 7px 18px 7px 12px;
}

.admin-brands-list-center {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 10px 10px;
}

.admin-brands-list-start {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 52px;
    padding: 10px 22px;
}

.admin-brands-name-cell {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.admin-brands-avatar {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: #FFFFFF;
    flex-shrink: 0;
    box-shadow: 0 6px 14px rgba(26, 28, 46, 0.14);
}

.admin-brands-avatar.is-indigo {
    background: linear-gradient(135deg, #5B6AF0, #7C89F7);
}

.admin-brands-avatar.is-green {
    background: linear-gradient(135deg, #10B981, #34D399);
}

.admin-brands-avatar.is-amber {
    background: linear-gradient(135deg, #F59E0B, #FBBF24);
}

.admin-brands-avatar.is-rose {
    background: linear-gradient(135deg, #F43F5E, #FB7185);
}

.admin-brands-name-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.admin-brands-name {
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.35;
    color: #1A1C2E;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-brands-meta {
    font-size: 11.5px;
    line-height: 1.35;
    color: #6B6F88;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-brands-product-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid #E5E7EB;
    background: #F8FAFC;
    color: #6B7280;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.admin-brands-product-pill.has-products {
    background: #EEF0FD;
    border-color: rgba(91, 106, 240, 0.22);
    color: #5B6AF0;
}

.admin-brands-status-pill {
    min-width: 72px;
    justify-content: center;
}

.admin-brands-row-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    min-height: 72px;
    padding: 16px 18px 16px 12px;
    margin-left: auto;
    width: 100%;
    flex-wrap: nowrap;
}

.admin-brands-inline-form {
    display: inline-flex;
    margin: 0;
}

.admin-brands-row-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 13px;
    border-radius: 8px;
    border: 1px solid transparent;
    font-family: inherit;
    font-size: 11.5px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.15s ease;
}

.admin-brands-row-btn.is-edit {
    background: #EEF0FD;
    color: #5B6AF0;
}

.admin-brands-row-btn.is-edit:hover {
    background: rgba(91, 106, 240, 0.18);
    color: #4655E0;
}

.admin-brands-row-btn.is-danger {
    background: #FFF1F3;
    color: #F43F5E;
}

.admin-brands-row-btn.is-danger:hover {
    background: rgba(244, 63, 94, 0.15);
}

.admin-brands-row-btn.is-success {
    background: #ECFDF5;
    color: #10B981;
}

.admin-brands-row-btn.is-success:hover {
    background: rgba(16, 185, 129, 0.16);
}


.admin-brands-confirm-overlay {
    z-index: 1250;
    background: rgba(15, 23, 42, 0.48);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.admin-brands-confirm-dialog {
    width: min(500px, 100%);
    margin-top: clamp(24px, 7vh, 64px);
}

.admin-brands-confirm-card {
    border-radius: 28px;
    border: 1px solid rgba(226, 232, 240, 0.96);
    box-shadow: 0 32px 90px rgba(15, 23, 42, 0.24);
}

.admin-brands-confirm-header {
    align-items: flex-start;
    border-bottom: none;
    padding: clamp(22px, 4vw, 28px) clamp(20px, 4vw, 28px) 14px;
}

.admin-brands-confirm-copy {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}

.admin-brands-confirm-header .admin-products-modal-close {
    flex-shrink: 0;
    box-shadow: inset 0 0 0 1px rgba(226, 232, 240, 0.92);
}

.admin-brands-confirm-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.admin-brands-confirm-overlay.is-danger .admin-brands-confirm-kicker {
    background: #FFF1F2;
    border-color: #FFE4E6;
    color: #BE123C;
}

.admin-brands-confirm-overlay.is-primary .admin-brands-confirm-kicker {
    background: #EFF6FF;
    border-color: #BFDBFE;
    color: #1D4ED8;
}

.admin-brands-confirm-body {
    padding: 0 clamp(20px, 4vw, 28px) clamp(18px, 3vw, 24px);
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.admin-brands-confirm-message {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    color: #475569;
}

.admin-brands-confirm-summary {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 18px 20px;
    border-radius: 20px;
    border: 1px solid #E2E8F0;
    background: linear-gradient(180deg, #FBFCFE 0%, #FFFFFF 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.admin-brands-confirm-overlay.is-danger .admin-brands-confirm-summary {
    border-color: rgba(239, 68, 68, 0.18);
    background: linear-gradient(180deg, #FFF7F7 0%, #FFFFFF 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 14px 30px rgba(239, 68, 68, 0.06);
}

.admin-brands-confirm-overlay.is-primary .admin-brands-confirm-summary {
    border-color: rgba(37, 99, 235, 0.18);
    background: linear-gradient(180deg, #F8FBFF 0%, #FFFFFF 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 14px 30px rgba(37, 99, 235, 0.06);
}

.admin-brands-confirm-summary-label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748B;
}

.admin-brands-confirm-summary-name {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    color: #0F172A;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-brands-confirm-footer {
    padding: 0 clamp(20px, 4vw, 28px) clamp(22px, 4vw, 28px);
    justify-content: space-between;
    gap: 12px;
}

.admin-brands-confirm-footer .admin-products-modal-btn {
    flex: 1 1 0;
    min-height: 48px;
    padding: 0 20px;
    border-radius: 16px;
}

.admin-brands-empty {
    padding: 32px !important;
    text-align: center;
    color: var(--color-text-muted);
}

@media (max-width: 768px) {
    .admin-brands-list-head {
        align-items: flex-start;
    }

    .admin-brands-list-tools {
        width: 100%;
        justify-content: space-between;
    }

    .admin-brands-toolbar-stats {
        width: 100%;
    }

    .admin-brands-row-actions {
        justify-content: flex-start;
    }

    .admin-brands-name-cell {
        align-items: flex-start;
    }
}

/* =========================
   ADMIN SIDEBAR FOOTER
========================= */

.admin-shell[data-sidebar-shell="admin"] .admin-sidebar-footer {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-shell[data-sidebar-shell="admin"] .admin-sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-shell[data-sidebar-shell="admin"] .admin-sidebar-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: linear-gradient(135deg, #667EEA, #764BA2);
    color: #FFFFFF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    flex-shrink: 0;
}

.admin-shell[data-sidebar-shell="admin"] .admin-sidebar-user-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.admin-shell[data-sidebar-shell="admin"] .admin-sidebar-user-name {
    font-size: 12px;
    font-weight: 700;
    color: #FFFFFF;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-shell[data-sidebar-shell="admin"] .admin-sidebar-user-meta {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.62);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-shell[data-sidebar-shell="admin"] .admin-sidebar-logout-form {
    width: 100%;
    margin: 0;
}

.admin-shell[data-sidebar-shell="admin"] .admin-sidebar-logout-btn {
    width: 100%;
    min-height: 42px;
    padding: 0 12px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.86);
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    font-family: "DM Sans", sans-serif;
    font-size: 12px;
    font-weight: 600;
    transition: background 0.16s ease, color 0.16s ease, transform 0.16s ease, border-color 0.16s ease;
}

.admin-shell[data-sidebar-shell="admin"] .admin-sidebar-logout-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #FFFFFF;
    border-color: rgba(255, 255, 255, 0.16);
    transform: translateY(-1px);
}

.admin-shell[data-sidebar-shell="admin"] .admin-sidebar-logout-icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.admin-shell[data-sidebar-shell="admin"] .admin-sidebar-logout-icon svg {
    width: 18px;
    height: 18px;
    display: block;
}

.admin-shell[data-sidebar-shell="admin"].is-sidebar-collapsed .admin-sidebar-footer {
    align-items: center;
}

.admin-shell[data-sidebar-shell="admin"].is-sidebar-collapsed .admin-sidebar-user {
    width: var(--zs-sidebar-icon-link-width);
    padding: 0;
    border: none;
    background: transparent;
    justify-content: center;
}

.admin-shell[data-sidebar-shell="admin"].is-sidebar-collapsed .admin-sidebar-user-copy,
.admin-shell[data-sidebar-shell="admin"].is-sidebar-collapsed .admin-sidebar-logout-label {
    display: none;
}

.admin-shell[data-sidebar-shell="admin"].is-sidebar-collapsed .admin-sidebar-user-avatar {
    width: var(--zs-sidebar-icon-link-width);
    height: var(--zs-sidebar-icon-link-width);
}

.admin-shell[data-sidebar-shell="admin"].is-sidebar-collapsed .admin-sidebar-logout-btn {
    width: var(--zs-sidebar-icon-link-width);
    min-height: var(--zs-sidebar-icon-link-width);
    padding: 0;
    justify-content: center;
}

/* =========================
   ADMIN SIDEBAR TOOLTIPS
========================= */

.admin-sidebar-floating-tooltip {
    position: fixed;
    left: 0;
    top: 0;
    transform: translateY(-50%) translateX(-6px);
    padding: 7px 10px;
    border-radius: 10px;
    background: rgba(17, 24, 39, 0.96);
    color: #FFFFFF;
    font-family: "DM Sans", sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.01em;
    white-space: nowrap;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.22);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.16s ease, transform 0.16s ease;
    z-index: 10000;
}

.admin-sidebar-floating-tooltip.is-visible {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

.zs-row-refund {
    background: #FEF5F5;
    border-left: 3px solid #E24B4A;
}

.zs-row-refund:hover {
    background: #FDEAEA;
}

/* =========================================
   REPORTS PAGE
========================================= */

.zs-reports-page {
    display: flex;
    flex-direction: column;
    gap: 26px;
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding: 38px 48px 52px 16px;
}

.zs-report-hero {
    display: grid;
    grid-template-columns: minmax(380px, 1fr) minmax(720px, auto);
    align-items: center;
    gap: 40px;
    margin-bottom: 0;
    min-height: 96px;
    width: 100%;
}

.zs-report-hero-copy {
    min-width: 320px;
}

.zs-report-hero .admin-section-title {
    margin: 0;
    font-size: 22px;
    line-height: 1.15;
    font-weight: 800;
    color: var(--color-text-main);
}

.zs-report-hero .admin-section-subtitle {
    margin: 8px 0 0;
    max-width: 620px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--color-text-muted);
}

.zs-report-filter-bar {
    background: var(--color-card);
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 7px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 4px;
    margin-left: auto;
    width: fit-content;
    max-width: 100%;
    box-shadow: 0 4px 14px rgba(26, 28, 46, 0.06);
}

.zs-report-filter-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0 8px;
}

.zs-report-filter-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.zs-report-filter-input {
    height: 42px;
    min-width: 158px;
    padding: 0 12px;
    border: 1px solid #E5E7EB;
    border-radius: 7px;
    font-size: 13px;
    font-family: inherit;
    color: var(--color-text-main);
    background: #FAFBFC;
    outline: none;
    transition: border-color 0.15s;
}

.zs-report-filter-input:focus {
    border-color: var(--color-primary);
}

.zs-report-filter-sep {
    width: 1px;
    height: 34px;
    background: #E5E7EB;
    flex-shrink: 0;
}

.zs-report-preset-group {
    display: flex;
    gap: 2px;
    flex-wrap: wrap;
}

.zs-report-preset-btn {
    display: inline-flex;
    align-items: center;
    height: 42px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 700;
    color: var(--color-text-muted);
    background: var(--color-card);
    cursor: pointer;
    text-decoration: none;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.zs-report-preset-btn:hover,
.zs-report-preset-btn.is-active {
    border-color: var(--color-primary);
    color: #fff;
    background: var(--color-primary);
    text-decoration: none;
}

.zs-report-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    min-width: 86px;
    padding: 0 22px;
    border: none;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    background: var(--color-primary);
    cursor: pointer;
    transition: opacity 0.15s;
    margin-left: auto;
}

.zs-report-submit-btn:hover {
    opacity: 0.88;
}

.zs-report-custom-range {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 8px;
    padding-left: 10px;
    border-left: 1px solid #E5E7EB;
}

.zs-report-custom-range span {
    width: 8px;
    height: 1px;
    background: #D1D5DB;
}

.zs-report-summary-grid {
    margin-top: 0;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.zs-report-tabs {
    display: flex;
    align-items: center;
    gap: 0;
    border-bottom: 1px solid #E5E7EB;
}

.zs-report-tab {
    display: inline-flex;
    align-items: center;
    height: 40px;
    padding: 0 18px;
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    background: none;
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: -1px;
    transition: color 0.15s, border-color 0.15s;
}

.zs-report-tab:hover {
    color: var(--color-primary);
    background: none;
    border-color: transparent;
    box-shadow: none;
}

.zs-report-tab.is-active {
    border-bottom-color: var(--color-primary);
    color: var(--color-primary);
    background: none;
    box-shadow: none;
}

.zs-report-tab-panels {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.zs-report-tab-panel {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.zs-report-panel-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
    gap: 24px;
    align-items: stretch;
}

.zs-report-stat-card {
    gap: 6px;
    position: relative;
    overflow: hidden;
    padding: 16px 18px 15px;
    border-radius: 12px;
    transition: transform 0.2s, border-color 0.2s;
}

.zs-report-stat-card .admin-stat-value {
    font-size: 22px;
    line-height: 1.08;
    margin: 2px 0;
}

.zs-report-stat-card .admin-stat-label {
    font-size: 10px;
    margin-bottom: 3px;
}

.zs-report-stat-card:hover {
    transform: translateY(-2px);
    border-color: var(--color-primary);
}

.zs-report-stat-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    width: 100%;
    height: 2px;
    background: #E5E7EB;
}

.zs-report-stat-card.is-gross::before { background: var(--color-primary); }
.zs-report-stat-card.is-cash::before { background: #059669; }
.zs-report-stat-card.is-card::before { background: #4F46E5; }
.zs-report-stat-card.is-refund::before { background: var(--color-danger); }
.zs-report-stat-card.is-net::before { background: var(--color-success); }

.zs-report-stat-top {
    display: flex;
    align-items: center;
    gap: 10px;
}

.zs-report-stat-icon {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #F3F4F6;
    color: var(--color-text-main);
    font-size: 13px;
    font-weight: 800;
    flex-shrink: 0;
}

.zs-report-stat-card.is-gross .zs-report-stat-icon {
    background: rgba(91, 61, 245, 0.10);
    color: var(--color-primary);
}

.zs-report-stat-card.is-count .zs-report-stat-icon {
    background: rgba(90, 162, 246, 0.12);
    color: #2563EB;
}

.zs-report-stat-card.is-refund .zs-report-stat-icon {
    background: rgba(239, 68, 68, 0.10);
    color: var(--color-danger);
}

.zs-report-stat-card.is-net .zs-report-stat-icon {
    background: rgba(18, 185, 129, 0.12);
    color: var(--color-success);
}

.zs-report-value-refund {
    color: var(--color-danger) !important;
}

.zs-report-value-cash {
    color: #059669 !important;
}

.zs-report-value-card {
    color: #4F46E5 !important;
}

.zs-report-value-success {
    color: var(--color-success) !important;
}

.zs-report-card-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    gap: 4px;
    font-size: 10px;
    line-height: 1;
    padding: 4px 7px;
    border-radius: 999px;
    font-weight: 700;
}

.zs-report-card-badge.is-up {
    color: #059669;
    background: rgba(5, 150, 105, 0.10);
}

.zs-report-card-badge.is-down {
    color: var(--color-danger);
    background: rgba(239, 68, 68, 0.10);
}

.zs-report-block {
    background: var(--color-card);
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    padding: 20px 22px;
}

.zs-report-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.zs-report-section-title {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.zs-report-section-subtitle {
    margin: 5px 0 0;
    color: var(--color-text-muted);
    font-size: 13px;
    line-height: 1.45;
}

.zs-report-mid-grid,
.zs-report-bottom-grid {
    display: grid;
    gap: 28px;
}

.zs-report-mid-grid {
    grid-template-columns: minmax(0, 1fr) 440px;
    align-items: stretch;
}

.zs-report-bottom-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch;
}

.zs-report-table-card,
.zs-report-refund-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.zs-report-table-card .zs-report-card-header,
.zs-report-refund-card .zs-report-card-header {
    min-height: 42px;
    align-items: center;
    padding-bottom: 14px;
    margin-bottom: 16px;
    border-bottom: 1px solid #EEF0F4;
}

.zs-report-table-card .zs-report-data-table,
.zs-report-refund-card .zs-report-refund-split {
    margin-top: 0;
}

.zs-report-card {
    background: var(--color-card);
    border: 1px solid #E5E7EB;
    border-radius: 14px;
    padding: 20px;
    box-shadow: none;
}

.zs-report-bottom-grid .zs-report-card {
    padding-top: 28px;
}

.zs-report-chart-card {
    min-height: 390px;
}

.zs-report-flow-card {
    min-height: 390px;
    display: flex;
    flex-direction: column;
}

.zs-report-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 16px;
}

.zs-report-card-title {
    color: var(--color-text-main);
    font-size: 15px;
    font-weight: 700;
}

.zs-report-card-hint {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text-muted);
    white-space: nowrap;
}

.zs-report-category-card {
    min-height: 390px;
}

.zs-report-trend-list,
.zs-report-rank-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.zs-report-trend-item,
.zs-report-rank-item {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    background: #F8FAFC;
    border: 1px solid #EEF0F4;
    border-radius: 12px;
}

.zs-report-rank-item {
    grid-template-columns: minmax(0, 1fr) auto;
}

.zs-report-rank-item div {
    min-width: 0;
}

.zs-report-rank-item strong,
.zs-report-trend-item strong {
    color: var(--color-text-main);
    font-size: 13px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.zs-report-rank-item span {
    display: block;
    margin-top: 3px;
    color: var(--color-text-muted);
    font-size: 12px;
}

.zs-report-trend-label {
    color: var(--color-text-main);
    font-size: 12px;
    font-weight: 700;
}

.zs-report-trend-bar {
    height: 10px;
    overflow: hidden;
    background: #E9EEF6;
    border-radius: 999px;
}

.zs-report-trend-bar span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--color-primary) 0%, #7C6BFF 100%);
}

.zs-report-mini-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.zs-report-mini-card,
.zs-report-daypart-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px;
    background: #F8FAFC;
    border: 1px solid #EEF0F4;
    border-radius: 12px;
}

.zs-report-mini-card span,
.zs-report-daypart-card span {
    color: var(--color-text-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.zs-report-mini-card strong,
.zs-report-daypart-card strong {
    color: var(--color-text-main);
    font-size: 20px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.zs-report-mini-card strong.is-pos,
.zs-report-rank-item strong.is-pos,
.zs-report-daypart-card strong.is-pos {
    color: #059669;
}

.zs-report-mini-card strong.is-card {
    color: #4F46E5;
}

.zs-report-mini-card strong.is-neg {
    color: var(--color-danger);
}

.zs-report-daypart-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.zs-report-daypart-card small {
    color: var(--color-text-muted);
    font-size: 12px;
}

.zs-report-category-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.zs-report-category-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px 18px;
    background: #F8FAFC;
    border: 1px solid #EEF0F4;
    border-radius: 12px;
}

.zs-report-category-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.zs-report-category-top strong,
.zs-report-category-amount strong {
    display: block;
    color: var(--color-text-main);
    font-size: 14px;
    font-weight: 700;
}

.zs-report-category-top span,
.zs-report-category-amount span {
    display: block;
    margin-top: 4px;
    color: var(--color-text-muted);
    font-size: 12px;
}

.zs-report-category-amount {
    text-align: right;
}

.zs-report-category-bar {
    height: 8px;
    overflow: hidden;
    background: #E9EEF6;
    border-radius: 999px;
}

.zs-report-category-bar span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--color-primary) 0%, #7C6BFF 100%);
}

.zs-report-panel-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    padding: 20px;
    border: 1px dashed #D7DCE5;
    border-radius: 12px;
    color: var(--color-text-muted);
    font-size: 13px;
    text-align: center;
    background: #FAFBFC;
}

.zs-report-bar-chart {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 262px;
    padding-bottom: 34px;
    position: relative;
}

.zs-report-bar-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    height: 100%;
    justify-content: flex-end;
}

.zs-report-bar-wrap {
    width: 100%;
    display: flex;
    gap: 3px;
    align-items: flex-end;
    justify-content: center;
    height: 226px;
}

.zs-report-bar {
    flex: 0 1 42px;
    min-height: 3px;
    border-radius: 4px 4px 0 0;
    cursor: pointer;
    position: relative;
    transition: opacity 0.2s;
}

.zs-report-bar:hover {
    opacity: 0.8;
}

.zs-report-bar:hover::after {
    content: attr(data-val);
    position: absolute;
    top: -22px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 9px;
    color: #FFFFFF;
    white-space: nowrap;
    background: var(--color-text-main);
    padding: 2px 5px;
    border-radius: 4px;
}

.zs-report-bar.is-gross { background: var(--color-primary); }
.zs-report-bar.is-cash { background: #059669; }
.zs-report-bar.is-card { background: #4F46E5; }
.zs-report-bar.is-refund { background: var(--color-danger); }

.zs-report-bar-label {
    color: var(--color-text-muted);
    font-size: 10px;
    font-weight: 600;
    margin-top: 6px;
}

.zs-report-chart-legend {
    display: flex;
    gap: 16px;
    margin-top: 8px;
}

.zs-report-chart-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--color-text-muted);
    font-size: 11px;
    font-weight: 600;
}

.zs-report-chart-legend i,
.zs-report-donut-legend i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.zs-report-chart-legend i.is-cash,
.zs-report-donut-legend i.is-cash { background: #059669; }

.zs-report-chart-legend i.is-card,
.zs-report-donut-legend i.is-card { background: #4F46E5; }

.zs-report-chart-legend i.is-refund { background: var(--color-danger); }

.zs-report-channel-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.zs-report-channel-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.zs-report-channel-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.zs-report-channel-top span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-text-main);
    font-size: 13px;
    font-weight: 700;
}

.zs-report-channel-top strong {
    color: var(--color-text-main);
    font-size: 13px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.zs-report-channel-top strong.is-cash {
    color: #059669;
}

.zs-report-channel-top strong.is-card {
    color: #4F46E5;
}

.zs-report-channel-top i {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 999px;
    flex-shrink: 0;
}

.zs-report-channel-top i.is-cash,
.zs-report-channel-track span.is-cash {
    background: #059669;
}

.zs-report-channel-top i.is-card,
.zs-report-channel-track span.is-card {
    background: #4F46E5;
}

.zs-report-channel-track {
    height: 6px;
    overflow: hidden;
    background: #EEF0F4;
    border-radius: 999px;
}

.zs-report-channel-track span {
    display: block;
    height: 100%;
    min-width: 3px;
    border-radius: 999px;
}

.zs-report-channel-meta {
    color: var(--color-text-muted);
    font-size: 10px;
    text-align: right;
}

.zs-report-donut-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-top: auto;
    padding-top: 34px;
}

.zs-report-donut {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background:
        radial-gradient(circle at center, var(--color-card) 0 52%, transparent 53%),
        conic-gradient(#059669 0 calc(var(--cash-share) * 1%), #4F46E5 0 calc((var(--cash-share) + var(--card-share)) * 1%), #EEF0F4 0 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.zs-report-donut span {
    color: var(--color-text-main);
    font-size: 11px;
    font-weight: 800;
}

.zs-report-donut-legend {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 92px;
}

.zs-report-donut-legend div {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-text-muted);
    font-size: 12px;
}

.zs-report-donut-legend span {
    margin-left: auto;
    color: var(--color-text-main);
    font-size: 11px;
    font-weight: 800;
}

.zs-report-refund-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px;
    margin-bottom: 14px;
    background: #FEF2F2;
    border: 1px solid #FEE2E2;
    border-radius: 12px;
}

.zs-report-refund-total span {
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 700;
}

.zs-report-refund-total strong {
    color: var(--color-danger);
    font-size: 24px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.zs-report-refund-split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}

.zs-report-refund-split > div,
.zs-report-net-list > div {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 16px;
    background: #F8FAFC;
    border: 1px solid #EEF0F4;
    border-radius: 10px;
}

.zs-report-refund-split span,
.zs-report-net-list span {
    color: var(--color-text-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.zs-report-refund-split strong {
    color: var(--color-danger);
    font-size: 19px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.zs-report-refund-split strong.is-warning {
    color: #B7791F;
}

.zs-report-refund-split strong.is-success {
    color: var(--color-success);
}

.zs-report-data-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
}

.zs-report-reconcile-table {
    overflow: hidden;
    background: #FFFFFF;
    border: 1px solid #EEF0F4;
    border-radius: 12px;
}

.zs-report-data-table th {
    font-size: 10px;
    font-weight: 800;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid #E5E7EB;
    white-space: nowrap;
}

.zs-report-data-table td {
    padding: 14px;
    font-size: 13px;
    color: var(--color-text-muted);
    border-bottom: 1px solid rgba(229, 231, 235, 0.75);
    vertical-align: middle;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
}

.zs-report-data-table tr:last-child td {
    border-bottom: none;
}

.zs-report-data-table tbody tr:hover td {
    background: #F8FAFC;
    color: var(--color-text-main);
}

.zs-report-data-table .is-right,
.zs-report-data-table .is-num {
    text-align: right;
}

.zs-report-data-table .is-num {
    font-size: 13px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    overflow: visible;
}

.zs-report-data-table .is-rank {
    color: var(--color-primary);
    font-weight: 800;
}

.zs-report-data-table .is-pos {
    color: #059669;
}

.zs-report-data-table .is-neg {
    color: var(--color-danger);
}

.zs-report-data-table .is-card {
    color: #4F46E5;
}

.zs-report-reconcile-table th {
    padding: 11px 12px;
    background: #F8FAFC;
}

.zs-report-reconcile-table td {
    padding: 12px;
}

.zs-report-reconcile-table tbody tr:nth-child(even) td {
    background: #FCFCFD;
}

.zs-report-reconcile-table td:first-child {
    color: var(--color-primary);
    font-weight: 800;
    text-align: center;
}

.zs-report-reconcile-table .zs-report-badge {
    min-width: 64px;
}

.zs-report-reconcile-table tr.is-total td {
    background: #F8FAFC;
    border-top: 1px solid #DDE3EA;
    color: var(--color-text-main);
    font-weight: 800;
}

.zs-report-reconcile-table tr.is-total .is-num {
    font-size: 14px;
}

.zs-report-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.2;
}

.zs-report-reconcile-table th:nth-child(1),
.zs-report-reconcile-table td:nth-child(1) {
    width: 40px;
}

.zs-report-reconcile-table th:nth-child(2),
.zs-report-reconcile-table td:nth-child(2) {
    width: 34%;
    color: var(--color-text-main);
    font-weight: 700;
}

.zs-report-reconcile-table th:nth-child(3),
.zs-report-reconcile-table td:nth-child(3) {
    width: 17%;
}

.zs-report-reconcile-table th:nth-child(4),
.zs-report-reconcile-table td:nth-child(4) {
    width: 92px;
}

.zs-report-reconcile-table th:nth-child(5),
.zs-report-reconcile-table td:nth-child(5) {
    width: 142px;
}

.zs-report-refund-table th:nth-child(1),
.zs-report-refund-table td:nth-child(1) {
    width: 36%;
    color: var(--color-text-main);
    font-weight: 700;
}

.zs-report-refund-table th:nth-child(2),
.zs-report-refund-table td:nth-child(2) {
    width: 84px;
}

.zs-report-refund-table th:nth-child(3),
.zs-report-refund-table td:nth-child(3),
.zs-report-refund-table th:nth-child(4),
.zs-report-refund-table td:nth-child(4) {
    width: 132px;
}

.zs-report-category-table th:nth-child(1),
.zs-report-category-table td:nth-child(1) {
    width: 42%;
    color: var(--color-text-main);
    font-weight: 700;
}

.zs-report-category-table th:nth-child(2),
.zs-report-category-table td:nth-child(2),
.zs-report-category-table th:nth-child(3),
.zs-report-category-table td:nth-child(3) {
    width: 104px;
}

.zs-report-category-table th:nth-child(4),
.zs-report-category-table td:nth-child(4) {
    width: 138px;
}

.zs-report-products-table th:nth-child(1),
.zs-report-products-table td:nth-child(1),
.zs-report-refund-products-table th:nth-child(1),
.zs-report-refund-products-table td:nth-child(1) {
    width: 34%;
    color: var(--color-text-main);
    font-weight: 700;
}

.zs-report-products-table th:nth-child(2),
.zs-report-products-table td:nth-child(2),
.zs-report-refund-products-table th:nth-child(2),
.zs-report-refund-products-table td:nth-child(2) {
    width: 26%;
}

.zs-report-products-table th:nth-child(3),
.zs-report-products-table td:nth-child(3),
.zs-report-refund-products-table th:nth-child(3),
.zs-report-refund-products-table td:nth-child(3) {
    width: 96px;
}

.zs-report-products-table th:nth-child(4),
.zs-report-products-table td:nth-child(4),
.zs-report-refund-products-table th:nth-child(4),
.zs-report-refund-products-table td:nth-child(4) {
    width: 138px;
}

.zs-report-badge.is-cash {
    background: rgba(5, 150, 105, 0.10);
    color: #059669;
}

.zs-report-badge.is-card {
    background: rgba(79, 70, 229, 0.12);
    color: #4F46E5;
}

.zs-report-badge.is-refund {
    background: rgba(239, 68, 68, 0.10);
    color: var(--color-danger);
}

.zs-report-badge.is-net {
    background: rgba(18, 185, 129, 0.12);
    color: var(--color-success);
}

.zs-report-refund-split small,
.zs-report-net-list small {
    color: var(--color-text-muted);
    font-size: 12px;
}

.zs-report-table {
    overflow: hidden;
    border: none;
    border-radius: 0;
}

.zs-report-table.is-compact {
    margin-top: 16px;
}

.zs-report-table-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    padding: 8px 12px;
    border-bottom: 1px solid #E5E7EB;
}

.zs-report-table-head span {
    color: var(--color-text-muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.zs-report-table-head span:last-child {
    text-align: right;
}

.zs-report-table-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 10px 12px;
    background: #fff;
    border-bottom: 1px solid rgba(229, 231, 235, 0.75);
}

.zs-report-table-row:last-child {
    border-bottom: none;
}

.zs-report-table-row span {
    color: var(--color-text-muted);
    font-size: 13px;
}

.zs-report-table-row strong {
    color: var(--color-text-main);
    font-size: 14px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    text-align: right;
    white-space: nowrap;
}

.zs-report-table-row strong.is-cash,
.zs-report-table-row strong.is-pos { color: #059669; }
.zs-report-table-row strong.is-card { color: #4F46E5; }
.zs-report-table-row strong.is-refund {
    color: var(--color-danger);
}

.zs-report-table-row strong.is-net {
    color: var(--color-success);
}

.zs-report-net-list {
    display: grid;
    gap: 12px;
}

.zs-report-net-list > div {
    padding: 16px;
}

.zs-report-net-list strong {
    color: var(--color-text-main);
    font-size: 22px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.zs-reconcile-card-badge {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    height: 20px;
    padding: 0 8px;
    border-radius: 5px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
    margin-bottom: 2px;
}

.zs-reconcile-card-badge.is-cash {
    background: #ECFDF5;
    color: #059669;
    border: 1px solid #A7F3D0;
}

.zs-reconcile-card-badge.is-card {
    background: #EEF2FF;
    color: #4F46E5;
    border: 1px solid #C7D2FE;
}

.zs-reconcile-card-badge.is-net {
    background: #F0F9FF;
    color: #0284C7;
    border: 1px solid #BAE6FD;
}

/* Dönem özet satırı */
.zs-report-period-info {
    background: #FAFBFC;
    border: 1px solid #EEF0F4;
    border-radius: 12px;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 0;
    flex-wrap: wrap;
}

.zs-report-period-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 14px 20px;
}

.zs-report-period-item:first-child {
    padding-left: 0;
}

.zs-report-period-sep {
    width: 1px;
    height: 32px;
    background: #E5E7EB;
    flex-shrink: 0;
}

.zs-report-period-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.zs-report-period-value {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-text-main);
    font-variant-numeric: tabular-nums;
}

/* Boş durum */
.zs-report-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 52px 40px;
    background: var(--color-card);
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    text-align: center;
    gap: 8px;
}

.zs-report-empty-icon {
    color: #D1D5DB;
    margin-bottom: 4px;
}

.zs-report-empty-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-text-main);
}

.zs-report-empty-desc {
    font-size: 14px;
    color: var(--color-text-muted);
    max-width: 360px;
    line-height: 1.55;
}

/* Sıfır işlem bilgi notu */
.zs-report-zero-note {
    padding: 12px 16px;
    background: #FFFBEB;
    border: 1px solid #FDE68A;
    border-radius: 10px;
    font-size: 13px;
    color: #92400E;
    font-weight: 500;
}

/* Dönem Özeti - muhasebe satırları */
.zs-report-summary-rows {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.zs-report-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border-radius: 8px;
    background: #F8FAFC;
    border: 1px solid transparent;
}

.zs-report-summary-row.is-highlight {
    background: rgba(18, 185, 129, 0.08);
    border-color: rgba(18, 185, 129, 0.18);
}

.zs-report-summary-row-label {
    font-size: 12px;
    color: var(--color-text-muted);
    font-weight: 500;
}

.zs-report-summary-row.is-highlight .zs-report-summary-row-label {
    font-weight: 700;
    color: var(--color-text-main);
}

.zs-report-summary-row-value {
    font-size: 13px;
    font-weight: 700;
    color: var(--color-text-main);
    font-variant-numeric: tabular-nums;
}

.zs-report-summary-row.is-highlight .zs-report-summary-row-value {
    font-size: 17px;
    font-weight: 800;
    color: var(--color-success);
}

.zs-report-summary-row-value.is-neg {
    color: var(--color-danger);
}

.zs-report-summary-row-value.is-accent {
    color: var(--color-primary);
}

/* Yatay bar listesi (Ürün Performansı) */
.zs-report-horiz-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.zs-report-horiz-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.zs-report-horiz-item-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.zs-report-horiz-item-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text-main);
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.zs-report-horiz-item-value {
    font-size: 13px;
    font-weight: 800;
    color: var(--color-primary);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.zs-report-horiz-item-bar {
    height: 5px;
    background: #EEF0F4;
    border-radius: 999px;
    overflow: hidden;
}

.zs-report-horiz-item-bar span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--color-primary) 0%, #7C6BFF 100%);
}

/* Ödeme yöntemi kartları */
.zs-report-payment-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.zs-report-payment-card {
    background: var(--color-card);
    border: 1px solid #E5E7EB;
    border-top: 3px solid #E5E7EB;
    border-radius: 12px;
    padding: 18px 20px;
}

.zs-report-payment-card.is-cash {
    border-top-color: #059669;
}

.zs-report-payment-card.is-card {
    border-top-color: #4F46E5;
}

.zs-report-payment-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.zs-report-payment-card-icon {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: #F3F4F6;
}

.zs-report-payment-card.is-cash .zs-report-payment-card-icon {
    background: rgba(5, 150, 105, 0.10);
}

.zs-report-payment-card.is-card .zs-report-payment-card-icon {
    background: rgba(79, 70, 229, 0.10);
}

.zs-report-payment-card-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--color-text-main);
}

.zs-report-payment-card-rows {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.zs-report-payment-card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

.zs-report-payment-card-row span {
    color: var(--color-text-muted);
}

.zs-report-payment-card-row strong {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.zs-report-payment-card-row strong.is-pos {
    color: #059669;
}

.zs-report-payment-card-row strong.is-neg {
    color: var(--color-danger);
}

.zs-report-payment-card-row strong.is-card {
    color: #4F46E5;
}

.zs-report-payment-card-divider {
    height: 1px;
    background: #E5E7EB;
    margin: 4px 0;
}

.zs-report-payment-card-net {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

.zs-report-payment-card-net span {
    font-size: 12px;
    font-weight: 700;
    color: var(--color-text-main);
}

.zs-report-payment-card-net strong {
    font-size: 17px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.zs-report-payment-card.is-cash .zs-report-payment-card-net strong {
    color: #059669;
}

.zs-report-payment-card.is-card .zs-report-payment-card-net strong {
    color: #4F46E5;
}

.zs-report-payment-card-share {
    margin-top: 12px;
}

.zs-report-payment-card-share-track {
    height: 4px;
    background: #EEF0F4;
    border-radius: 999px;
    overflow: hidden;
}

.zs-report-payment-card-share-fill {
    height: 100%;
    border-radius: 999px;
}

.zs-report-payment-card-share-fill.is-cash {
    background: #059669;
}

.zs-report-payment-card-share-fill.is-card {
    background: #4F46E5;
}

.zs-report-payment-card-share-label {
    font-size: 10px;
    color: var(--color-text-muted);
    margin-top: 4px;
}

/* Kategori pay bar */
.zs-report-cat-share {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 120px;
}

.zs-report-cat-share-track {
    flex: 1;
    height: 5px;
    background: #EEF0F4;
    border-radius: 999px;
    overflow: hidden;
}

.zs-report-cat-share-track span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--color-primary) 0%, #7C6BFF 100%);
}

.zs-report-cat-share-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--color-text-muted);
    white-space: nowrap;
    min-width: 34px;
    text-align: right;
}

/* Kart içi alt bölüm (Saatlik sekmesi için) */
.zs-report-card-section {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #EEF0F4;
}

.zs-report-card-section-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--color-text-main);
    margin-bottom: 14px;
}

/* Dönem dağılımı bar listesi */
.zs-report-daypart-bars {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.zs-report-daypart-bar-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.zs-report-daypart-bar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.zs-report-daypart-bar-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text-main);
}

.zs-report-daypart-bar-meta {
    font-size: 11px;
    color: var(--color-text-muted);
}

.zs-report-daypart-bar-pct {
    font-size: 12px;
    font-weight: 700;
    color: var(--color-primary);
}

.zs-report-daypart-bar-track {
    height: 5px;
    background: #EEF0F4;
    border-radius: 999px;
    overflow: hidden;
}

.zs-report-daypart-bar-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--color-primary) 0%, #7C6BFF 100%);
}

/* Sekme panel grid hizalama — her sekme kendi içerik yüksekliğini kullansın */
[data-report-panel="sales-summary"] .zs-report-panel-grid,
[data-report-panel="hourly-distribution"] .zs-report-panel-grid,
[data-report-panel="product-performance"] .zs-report-panel-grid {
    align-items: start;
}

/* Saatlik dağılım — kompakt liste */
[data-report-panel="hourly-distribution"] .zs-report-trend-list {
    gap: 7px;
}

[data-report-panel="hourly-distribution"] .zs-report-trend-item {
    padding: 8px 12px;
}

[data-report-panel="hourly-distribution"] .zs-report-panel-empty {
    min-height: 120px;
}

/* Ürün performansı — kompakt yatay listeler */
[data-report-panel="product-performance"] .zs-report-horiz-list {
    gap: 9px;
}

[data-report-panel="product-performance"] .zs-report-horiz-item {
    gap: 4px;
}

/* Ürün detay tablosu — daha kompakt satır yüksekliği */
.zs-report-products-table td {
    padding: 10px 14px;
}

/* Ödeme mutabakatı — kanal bölümleri arası görsel ayraç */
.zs-report-summary-row.is-section-end {
    margin-bottom: 8px;
}

/* Özet satır değer renk utility'leri */
.zs-report-summary-row-value.is-pos {
    color: #059669;
}

.zs-report-summary-row-value.is-card {
    color: #4F46E5;
}

/* =============================================
   REPORTS — SEMANTIC COLOR LAYER
   ============================================= */

/* KPI: İşlem Sayısı (is-count) */
.zs-report-stat-card.is-count::before {
    background: #0891B2;
}
.zs-report-stat-card.is-count:hover {
    border-color: #0891B2;
}
.zs-report-stat-card.is-count .zs-report-stat-icon {
    background: rgba(8, 145, 178, 0.12);
    color: #0891B2;
}

/* KPI: Ortalama Sepet (is-avg) */
.zs-report-stat-card.is-avg::before {
    background: #D97706;
}
.zs-report-stat-card.is-avg:hover {
    border-color: #D97706;
}
.zs-report-stat-card.is-avg .zs-report-stat-icon {
    background: rgba(217, 119, 6, 0.10);
    color: #D97706;
}

/* KPI value utilities */
.zs-report-value-gross { color: var(--color-primary) !important; }
.zs-report-value-count { color: #0891B2 !important; }
.zs-report-value-avg   { color: #D97706 !important; }

/* Stat icon inside KPI card */
.zs-report-stat-card .zs-report-stat-icon {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    margin-bottom: 6px;
}

/* Thicker KPI top accent bar */
.zs-report-stat-card::before {
    height: 3px;
}

/* --- Tabs: pill/segment style --- */
.zs-report-tabs {
    background: #F3F4F6;
    border: 1px solid #E5E7EB;
    border-bottom: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 4px;
    gap: 2px;
    width: fit-content;
}
.zs-report-tab {
    height: 36px;
    border-radius: 8px;
    border: 1px solid transparent;
    border-bottom: 1px solid transparent;
    margin-bottom: 0;
}
.zs-report-tab:hover {
    background: rgba(91, 61, 245, 0.06);
    color: var(--color-primary);
    border-color: transparent;
    box-shadow: none;
}
.zs-report-tab.is-active {
    background: #ffffff;
    border: 1px solid #E0E3EB;
    color: var(--color-primary);
    box-shadow: 0 1px 4px rgba(26, 28, 46, 0.08);
}

/* --- Sales Trend bars: purple (scoped to panel) --- */
[data-report-panel="sales-summary"] .zs-report-trend-bar {
    background: rgba(91, 61, 245, 0.09);
}
[data-report-panel="sales-summary"] .zs-report-trend-bar span {
    background: linear-gradient(90deg, #5B3DF5 0%, #9B87F5 100%);
}

/* --- Hourly Distribution: amber/warm intensity --- */
[data-report-panel="hourly-distribution"] .zs-report-trend-item {
    background: #FFFBEB;
    border-color: #FEF3C7;
}
[data-report-panel="hourly-distribution"] .zs-report-trend-bar {
    background: rgba(245, 158, 11, 0.14);
}
[data-report-panel="hourly-distribution"] .zs-report-trend-bar span {
    background: linear-gradient(90deg, #D97706 0%, #F59E0B 80%, #FCD34D 100%);
}
[data-report-panel="hourly-distribution"] .zs-report-trend-label {
    color: #92400E;
    font-weight: 700;
}
[data-report-panel="hourly-distribution"] .zs-report-trend-item strong {
    color: #D97706;
}

/* --- Zirve Saatler (peak hours) list --- */
.zs-report-peak-list .zs-report-horiz-item-bar span {
    background: linear-gradient(90deg, #EA580C 0%, #F59E0B 100%);
}
.zs-report-peak-list .zs-report-horiz-item-value {
    color: #EA580C;
}

/* --- Dönem Dağılımı bars: time-of-day semantic colors --- */
.zs-report-daypart-bar-item:nth-child(1) .zs-report-daypart-bar-fill { background: #0EA5E9; }
.zs-report-daypart-bar-item:nth-child(2) .zs-report-daypart-bar-fill { background: #F59E0B; }
.zs-report-daypart-bar-item:nth-child(3) .zs-report-daypart-bar-fill { background: #F97316; }
.zs-report-daypart-bar-item:nth-child(4) .zs-report-daypart-bar-fill { background: #8B5CF6; }
.zs-report-daypart-bar-item:nth-child(5) .zs-report-daypart-bar-fill { background: #475569; }
.zs-report-daypart-bar-item:nth-child(1) .zs-report-daypart-bar-pct  { color: #0369A1; }
.zs-report-daypart-bar-item:nth-child(2) .zs-report-daypart-bar-pct  { color: #B45309; }
.zs-report-daypart-bar-item:nth-child(3) .zs-report-daypart-bar-pct  { color: #C2410C; }
.zs-report-daypart-bar-item:nth-child(4) .zs-report-daypart-bar-pct  { color: #7C3AED; }
.zs-report-daypart-bar-item:nth-child(5) .zs-report-daypart-bar-pct  { color: #475569; }

/* --- Product Performance: Revenue list (violet cascade) --- */
.zs-report-revenue-list .zs-report-horiz-item:nth-child(1) { --hc: #5B3DF5; }
.zs-report-revenue-list .zs-report-horiz-item:nth-child(2) { --hc: #6D28D9; }
.zs-report-revenue-list .zs-report-horiz-item:nth-child(3) { --hc: #7C3AED; }
.zs-report-revenue-list .zs-report-horiz-item:nth-child(4) { --hc: #8B5CF6; }
.zs-report-revenue-list .zs-report-horiz-item:nth-child(5) { --hc: #A78BFA; }
.zs-report-revenue-list .zs-report-horiz-item-bar span     { background: var(--hc, #5B3DF5); }
.zs-report-revenue-list .zs-report-horiz-item-value        { color: #5B3DF5; }

/* --- Product Performance: Qty list (cyan cascade) --- */
.zs-report-qty-list .zs-report-horiz-item:nth-child(1) { --hc: #0891B2; }
.zs-report-qty-list .zs-report-horiz-item:nth-child(2) { --hc: #0E7490; }
.zs-report-qty-list .zs-report-horiz-item:nth-child(3) { --hc: #06B6D4; }
.zs-report-qty-list .zs-report-horiz-item:nth-child(4) { --hc: #22D3EE; }
.zs-report-qty-list .zs-report-horiz-item:nth-child(5) { --hc: #38BDF8; }
.zs-report-qty-list .zs-report-horiz-item-bar span     { background: var(--hc, #0891B2); }
.zs-report-qty-list .zs-report-horiz-item-value        { color: #0891B2; }

/* --- Category table: per-row accent colors --- */
.zs-report-category-table tbody tr:nth-child(1)   { --rc: #5B3DF5; }
.zs-report-category-table tbody tr:nth-child(2)   { --rc: #0891B2; }
.zs-report-category-table tbody tr:nth-child(3)   { --rc: #059669; }
.zs-report-category-table tbody tr:nth-child(4)   { --rc: #D97706; }
.zs-report-category-table tbody tr:nth-child(5)   { --rc: #7C3AED; }
.zs-report-category-table tbody tr:nth-child(6)   { --rc: #BE185D; }
.zs-report-category-table tbody tr:nth-child(n+7) { --rc: #0E7490; }
.zs-report-category-table .zs-report-cat-share-track span {
    background: var(--rc, var(--color-primary));
}

/* --- Products table: violet cascade --- */
.zs-report-products-table tbody tr:nth-child(1)   { --rc: #5B3DF5; }
.zs-report-products-table tbody tr:nth-child(2)   { --rc: #6D28D9; }
.zs-report-products-table tbody tr:nth-child(3)   { --rc: #7C3AED; }
.zs-report-products-table tbody tr:nth-child(4)   { --rc: #8B5CF6; }
.zs-report-products-table tbody tr:nth-child(5)   { --rc: #A78BFA; }
.zs-report-products-table tbody tr:nth-child(n+6) { --rc: #C4B5FD; }
.zs-report-products-table .zs-report-cat-share-track span {
    background: var(--rc, var(--color-primary));
}

/* Ortalama Sepet accent → amber */
.zs-report-summary-row-value.is-accent { color: #D97706; }

/* =============================================
   REPORTS — HIERARCHY & POLISH v2
   ============================================= */

/* Global card surface: stronger borders, subtle shadow, larger radius */
.zs-reports-page .zs-report-card {
    border-color: #E9EBF0;
    border-radius: 16px;
    box-shadow: 0 1px 4px rgba(26, 28, 46, 0.06), 0 1px 2px rgba(26, 28, 46, 0.04);
    padding: 22px 24px;
}
.zs-reports-page .zs-report-card:hover {
    box-shadow: 0 4px 16px rgba(26, 28, 46, 0.09);
    transition: box-shadow 0.2s;
}

/* Card header: separator line */
.zs-report-card-header {
    padding-bottom: 16px;
    border-bottom: 1px solid #F0F2F5;
    margin-bottom: 20px;
}
.zs-report-card-title { font-size: 14px; font-weight: 700; }
.zs-report-card-hint  { font-size: 11px; color: #9CA3AF; }

/* Card inner section dividers */
.zs-report-card-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #F0F2F5;
}
.zs-report-card-section-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #9CA3AF;
    margin-bottom: 14px;
}

/* --- KPI Cards: full redesign --- */
.zs-report-stat-card {
    padding: 20px 22px 18px;
    border-radius: 16px;
    gap: 0;
}
.zs-report-stat-card.is-gross  { background: linear-gradient(150deg, #fff 0%, rgba(91,61,245,0.04) 100%); }
.zs-report-stat-card.is-count  { background: linear-gradient(150deg, #fff 0%, rgba(8,145,178,0.04) 100%); }
.zs-report-stat-card.is-refund { background: linear-gradient(150deg, #fff 0%, rgba(239,68,68,0.04) 100%); }
.zs-report-stat-card.is-avg    { background: linear-gradient(150deg, #fff 0%, rgba(217,119,6,0.04) 100%); }

.zs-report-stat-card.is-gross:hover  { border-color: rgba(91,61,245,0.35); }
.zs-report-stat-card.is-count:hover  { border-color: rgba(8,145,178,0.35); }
.zs-report-stat-card.is-refund:hover { border-color: rgba(239,68,68,0.35); }
.zs-report-stat-card.is-avg:hover    { border-color: rgba(217,119,6,0.35); }

/* Hide v1 inner elements (replaced by kpi-* structure) */
.zs-report-stat-card .admin-stat-label,
.zs-report-stat-card .admin-stat-value,
.zs-report-stat-card .zs-report-card-badge,
.zs-report-stat-card .zs-report-stat-icon { display: none; }

/* KPI head row: label (left) + icon (right) */
.zs-report-kpi-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}
.zs-report-kpi-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #9CA3AF;
    line-height: 1.3;
    padding-top: 2px;
}
.zs-report-kpi-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.zs-report-stat-card.is-gross  .zs-report-kpi-icon { background: rgba(91,61,245,0.10); color: #5B3DF5; }
.zs-report-stat-card.is-count  .zs-report-kpi-icon { background: rgba(8,145,178,0.10); color: #0891B2; }
.zs-report-stat-card.is-refund .zs-report-kpi-icon { background: rgba(239,68,68,0.10); color: #EF4444; }
.zs-report-stat-card.is-avg    .zs-report-kpi-icon { background: rgba(217,119,6,0.10); color: #D97706; }

/* KPI main value */
.zs-report-kpi-value {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.05;
    font-variant-numeric: tabular-nums;
    color: #1F2937;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}
.zs-report-stat-card.is-gross  .zs-report-kpi-value { color: #5B3DF5; }
.zs-report-stat-card.is-count  .zs-report-kpi-value { color: #0891B2; }
.zs-report-stat-card.is-refund .zs-report-kpi-value { color: #DC2626; }
.zs-report-stat-card.is-avg    .zs-report-kpi-value { color: #D97706; }

/* KPI meta / helper text */
.zs-report-kpi-meta {
    font-size: 11.5px;
    color: #9CA3AF;
    font-weight: 500;
    line-height: 1.4;
}

/* --- Tab bar: segment control (override v1) --- */
.zs-report-tabs {
    background: #F3F4F6;
    border: 1px solid #E5E7EB;
    border-bottom: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 4px;
    gap: 2px;
    width: fit-content;
}
.zs-report-tab {
    height: 38px;
    padding: 0 22px;
    border-radius: 9px;
    border: 1px solid transparent;
    border-bottom: 1px solid transparent;
    margin-bottom: 0;
    font-size: 13px;
    font-weight: 600;
    color: #6B7280;
}
.zs-report-tab:hover {
    background: rgba(91,61,245,0.06);
    color: #5B3DF5;
    border-color: transparent;
    box-shadow: none;
}
.zs-report-tab.is-active {
    background: #ffffff;
    border: 1px solid #DDE1EB;
    color: #5B3DF5;
    font-weight: 700;
    box-shadow: 0 1px 4px rgba(26,28,46,0.10);
}
.zs-report-tab-panels { margin-top: 4px; }

/* --- Trend bars: taller + scoped overrides --- */
.zs-reports-page .zs-report-trend-bar {
    height: 12px;
    border-radius: 4px;
}
.zs-reports-page .zs-report-trend-bar span { border-radius: 3px; }
.zs-reports-page .zs-report-trend-item {
    padding: 11px 14px;
    border-radius: 10px;
}
.zs-reports-page .zs-report-trend-item strong {
    min-width: 88px;
    text-align: right;
    font-size: 13px;
}
.zs-reports-page .zs-report-trend-label {
    font-size: 12px;
    font-weight: 700;
    min-width: 52px;
}

/* Hourly bars: even taller + amber + warm item bg */
[data-report-panel="hourly-distribution"] .zs-report-trend-bar { height: 14px; }
[data-report-panel="hourly-distribution"] .zs-report-trend-bar span {
    background: linear-gradient(90deg, #B45309 0%, #D97706 50%, #F59E0B 100%);
}
[data-report-panel="hourly-distribution"] .zs-report-trend-item {
    background: #FFFBEB;
    border-color: #FEF3C7;
    padding: 9px 13px;
}
[data-report-panel="hourly-distribution"] .zs-report-trend-label { color: #92400E; }
[data-report-panel="hourly-distribution"] .zs-report-trend-item strong { color: #B45309; }

/* --- Summary rows polish --- */
.zs-report-summary-rows { gap: 4px; }
.zs-report-summary-row { padding: 10px 14px; }
.zs-report-summary-row.is-highlight {
    background: rgba(18,185,129,0.09);
    border: 1px solid rgba(18,185,129,0.22);
}
.zs-report-summary-row.is-highlight .zs-report-summary-row-value {
    font-size: 18px;
    font-weight: 800;
}

/* Dönem özeti sağ panel: soft differentiation from left trend card */
[data-report-panel="sales-summary"] .zs-report-panel-grid .zs-report-card:last-child {
    background: linear-gradient(160deg, #fff 0%, #F9FAFB 100%);
    border-color: #E2E6EE;
}

.zs-report-card-trend {
    padding: 20px 22px 18px !important;
}

.zs-report-card-trend .zs-report-trend-card-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
        "title metrics"
        "hint metrics"
        "note metrics";
    gap: 4px 18px;
    align-items: start;
    padding-bottom: 14px;
    margin-bottom: 16px;
    border-bottom: 1px solid #F0F2F5;
}

.zs-report-card-trend .zs-report-card-title {
    grid-area: title;
}

.zs-report-card-trend .zs-report-card-hint {
    grid-area: hint;
    margin: 0;
    color: #94A3B8;
}

.zs-report-card-trend .zs-report-card-title + .zs-report-card-hint {
    display: none;
}

.zs-report-trend-copy-note {
    grid-area: note;
    font-size: 12px;
    color: #64748B;
    line-height: 1.4;
}

.zs-report-trend-metrics {
    grid-area: metrics;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.zs-report-trend-metric {
    min-width: 88px;
    padding: 10px 12px;
    border: 1px solid #E6EAF0;
    border-radius: 12px;
    background: #FBFCFD;
}

.zs-report-trend-metric strong {
    display: block;
    font-size: 20px;
    line-height: 1.05;
    font-weight: 800;
    color: #0F172A;
    letter-spacing: -0.03em;
}

.zs-report-trend-metric span {
    display: block;
    margin-top: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #94A3B8;
}

.zs-report-trend-metric.is-up strong {
    color: #0F766E;
}

.zs-report-trend-metric.is-down strong {
    color: #B45309;
}

.zs-report-weekly-chart {
    height: 196px;
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 12px;
    align-items: end;
}

.zs-report-weekly-bar-item {
    min-width: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.zs-report-weekly-bar-track {
    width: 100%;
    height: 148px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0 4px;
    border-radius: 14px;
    background: linear-gradient(180deg, #F8FAFC 0%, #EEF2F7 100%);
}

.zs-report-weekly-bar-track span {
    width: 100%;
    min-height: 16px;
    display: block;
    border-radius: 10px 10px 6px 6px;
    background: linear-gradient(180deg, #34D399 0%, #0F766E 100%);
    box-shadow: 0 12px 24px rgba(15, 118, 110, 0.18);
}

.zs-report-weekly-bar-label {
    font-size: 12px;
    font-weight: 700;
    color: #475569;
    text-align: center;
}

/* --- Horiz items: card wrapper --- */
.zs-reports-page .zs-report-horiz-item {
    padding: 10px 14px;
    background: #F8FAFC;
    border: 1px solid #EEF0F4;
    border-radius: 10px;
    gap: 6px;
}
.zs-reports-page .zs-report-horiz-item:hover { background: #F0F2F8; }
.zs-reports-page .zs-report-horiz-item-bar {
    height: 6px;
    border-radius: 3px;
}
.zs-reports-page .zs-report-horiz-item-bar span { border-radius: 3px; }

/* --- Table color stripes (inherits --rc from tr via CSS custom property) --- */
.zs-report-category-table tbody td:first-child {
    box-shadow: inset 3px 0 0 var(--rc, var(--color-primary));
    padding-left: 14px;
}
.zs-report-products-table tbody td:first-child {
    box-shadow: inset 3px 0 0 var(--rc, var(--color-primary));
    padding-left: 14px;
}

/* Table header: soft background */
.zs-reports-page .zs-report-data-table th {
    background: #F8FAFC;
    border-bottom-color: #E5E7EB;
}

/* --- Channel progress: taller --- */
.zs-report-channel-track {
    height: 8px;
    border-radius: 4px;
}
.zs-report-channel-track span { border-radius: 4px; }

/* --- Daypart bars: taller --- */
.zs-report-daypart-bar-track {
    height: 8px;
    border-radius: 4px;
}
.zs-report-daypart-bar-fill { border-radius: 4px; }

/* --- Cat share: taller --- */
.zs-report-cat-share-track {
    height: 6px;
    border-radius: 3px;
}
.zs-report-cat-share-track span { border-radius: 3px; }

/* --- Payment cards: tint backgrounds + elevation --- */
.zs-report-payment-card {
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(26,28,46,0.05);
    padding: 20px 22px;
}
.zs-report-payment-card.is-cash {
    background: linear-gradient(150deg, #fff 0%, rgba(5,150,105,0.04) 100%);
}
.zs-report-payment-card.is-card {
    background: linear-gradient(150deg, #fff 0%, rgba(79,70,229,0.04) 100%);
}
.zs-report-payment-card-net {
    padding-top: 10px;
    border-top: 1px solid #F0F2F5;
    margin-top: 10px;
}

/* Donut chart: slightly larger */
.zs-report-donut {
    width: 96px;
    height: 96px;
}
.zs-report-donut span { font-size: 12px; }

/* Channel list spacing */
.zs-report-channel-list { gap: 20px; }
.zs-report-channel-item { gap: 9px; }

.zs-report-payment-distribution {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    align-items: center;
    gap: 24px;
}

.zs-report-payment-distribution .zs-report-donut-wrap {
    margin: 0;
    justify-content: flex-start;
}

.zs-report-channel-line {
    display: flex;
    justify-content: flex-end;
    font-size: 12px;
    font-weight: 800;
    color: #64748B;
}

.zs-report-payment-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 18px;
}

.zs-report-reconcile-strip {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    border-radius: 14px;
    background: #111827;
    border: 1px solid #111827;
}

.zs-report-reconcile-strip > div {
    padding: 16px 18px;
    background: rgba(255,255,255,0.04);
}

.zs-report-reconcile-strip span {
    display: block;
    margin-bottom: 6px;
    font-size: 11px;
    font-weight: 700;
    color: rgba(255,255,255,0.62);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.zs-report-reconcile-strip strong {
    display: block;
    font-size: 16px;
    font-weight: 800;
    color: #F9FAFB;
    font-variant-numeric: tabular-nums;
}

.zs-report-reconcile-strip .is-net {
    text-align: right;
    background: rgba(52,211,153,0.16);
}

.zs-report-reconcile-strip .is-net strong {
    color: #A7F3D0;
    font-size: 19px;
}

@media (max-width: 1200px) {
    .zs-report-hero {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .zs-report-filter-bar {
        margin-left: 0;
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .zs-report-mid-grid,
    .zs-report-bottom-grid {
        grid-template-columns: 1fr;
    }

    .zs-report-panel-grid,
    .zs-report-daypart-grid {
        grid-template-columns: 1fr;
    }

}

@media (min-width: 1600px) {
    .zs-reports-page {
        max-width: none;
        padding-left: 20px;
        padding-right: 64px;
    }

    .zs-report-mid-grid {
        grid-template-columns: minmax(0, 1fr) 460px;
    }

    .zs-report-bottom-grid {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    }
}

@media (max-width: 768px) {
    .zs-reports-page {
        padding: 20px 16px 28px;
        gap: 20px;
    }

    .zs-report-filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .zs-report-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
    }

    .zs-report-tab {
        flex-shrink: 0;
        padding: 0 14px;
    }

    .zs-report-custom-range {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
        flex-wrap: wrap;
    }

    .zs-report-filter-input {
        min-width: 0;
        flex: 1 1 140px;
    }

    .zs-report-hero .admin-section-title {
        font-size: 28px;
    }

    .zs-report-filter-sep {
        display: none;
    }

    .zs-report-submit-btn {
        margin-left: 0;
        width: 100%;
        justify-content: center;
    }

    .zs-report-card-header {
        flex-direction: column;
    }

    .zs-report-card-trend .zs-report-trend-card-top {
        grid-template-columns: 1fr;
        grid-template-areas:
            "title"
            "note"
            "metrics";
    }

    .zs-report-trend-copy-note {
        margin-top: -2px;
    }

    .zs-report-trend-metrics {
        width: 100%;
        justify-content: space-between;
    }

    .zs-report-trend-metric {
        flex: 1 1 0;
        min-width: 0;
    }

    .zs-report-weekly-chart {
        height: 168px;
        gap: 8px;
    }

    .zs-report-weekly-bar-track {
        height: 124px;
        padding: 0 2px;
    }

    .zs-report-card-hint {
        white-space: normal;
    }

    .zs-report-data-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .zs-report-reconcile-table {
        min-width: 680px;
    }

    .zs-report-category-table,
    .zs-report-products-table,
    .zs-report-refund-products-table {
        min-width: 560px;
    }

    .zs-report-refund-table {
        min-width: 560px;
    }

    .zs-report-refund-split {
        grid-template-columns: 1fr;
    }

    .zs-report-table-row {
        grid-template-columns: 1fr;
    }

    .zs-report-table-row strong {
        text-align: left;
        white-space: normal;
    }

    .zs-report-period-info {
        flex-direction: column;
        align-items: flex-start;
    }

    .zs-report-period-sep {
        display: none;
    }

    .zs-report-period-item {
        padding: 6px 0;
    }
}

/* =============================================
   SETTINGS PAGE
   ============================================= */

.zs-settings-page {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 1180px;
    margin: 0 auto;
}

body:has(.zs-settings-page) .admin-topbar {
    display: none;
}

body:has(.zs-settings-page) .admin-content {
    padding-top: 24px;
}

.zs-settings-hero {
    margin-bottom: 0;
    padding: 2px 0 0;
    border: none;
    background: transparent;
    box-shadow: none;
}

.zs-settings-hero .admin-section-title {
    font-size: 26px;
    line-height: 1.2;
    letter-spacing: 0;
}

.zs-settings-hero .admin-section-subtitle {
    max-width: 560px;
    margin-top: 6px;
}

.zs-settings-tabs {
    width: 100%;
    max-width: 720px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: center;
    gap: 4px;
    padding: 5px;
    background: #F5F7FB;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.zs-settings-tab {
    height: 42px;
    padding: 0 16px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    color: #6B7280;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
}

.zs-settings-tab:hover {
    background: rgba(91, 61, 245, 0.06);
    color: var(--color-primary);
}

.zs-settings-tab.is-active {
    background: #fff;
    border-color: #D8DEEA;
    color: var(--color-primary);
    font-weight: 700;
    box-shadow: 0 6px 16px rgba(26, 28, 46, 0.08);
}

.zs-settings-panels {
    display: block;
}

.zs-settings-panel {
    display: none;
}

.zs-settings-panel.is-active {
    display: block;
}

.zs-settings-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr);
    gap: 24px;
    align-items: start;
}

.zs-settings-card {
    background: var(--color-card);
    border: 1px solid #E1E7EF;
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.045);
}

.zs-settings-card-wide {
    width: 100%;
    max-width: 1120px;
}

.zs-settings-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #F0F2F5;
}

.zs-settings-card-header > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.zs-settings-card-heading {
    min-width: 0;
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 12px !important;
}

.zs-settings-card-heading > div {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.zs-settings-card-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #EEF2FF;
    color: var(--color-primary);
}

.zs-settings-card-icon svg {
    width: 19px;
    height: 19px;
    fill: currentColor;
}

.zs-settings-card-actions {
    flex: 0 0 auto;
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    justify-content: flex-end;
}

.zs-settings-card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-text-main);
}

.zs-settings-card-desc {
    font-size: 13px;
    color: var(--color-text-muted);
}

.zs-settings-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.zs-settings-form-row,
.zs-settings-sales-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
}

.zs-settings-sales-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.zs-settings-form-row.is-logo-row {
    grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.25fr);
}

.zs-settings-form-group,
.zs-settings-password-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.zs-settings-password-field {
    position: relative;
}

.zs-settings-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text-main);
    letter-spacing: 0;
}

.zs-settings-input,
.zs-settings-textarea {
    width: 100%;
    background: #fff;
    border: 1px solid #DDE4EE;
    border-radius: 10px;
    font-size: 14px;
    color: var(--color-text-main);
    font-family: inherit;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
    outline: none;
}

.zs-settings-input {
    height: 42px;
    padding: 0 13px;
}

.zs-settings-textarea {
    min-height: 92px;
    padding: 10px 12px;
    resize: vertical;
}

.zs-settings-input:focus,
.zs-settings-textarea:focus {
    border-color: var(--color-primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(91, 61, 245, 0.08);
}

.zs-settings-input[readonly],
.zs-settings-input:disabled {
    color: #64748B;
    background: #F1F5F9;
    cursor: not-allowed;
}

.zs-settings-password-field .zs-settings-input {
    padding-right: 78px;
}

.zs-settings-password-toggle {
    position: absolute;
    right: 8px;
    top: 28px;
    height: 26px;
    padding: 0 10px;
    border: 1px solid #E2E8F0;
    border-radius: 7px;
    background: #F8FAFC;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
}

.zs-settings-helper {
    margin-top: -2px;
    padding: 10px 12px;
    border: 1px solid #E0E7FF;
    border-radius: 10px;
    background: #F8FAFF;
    font-size: 12px;
    color: #475569;
}

.zs-settings-upload {
    min-height: 126px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border: 1px dashed #B8C4D6;
    border-radius: 12px;
    background: linear-gradient(180deg, #FBFDFF 0%, #F6F8FC 100%);
    color: #475569;
    cursor: pointer;
}

.zs-settings-upload:hover {
    border-color: var(--color-primary);
    background: #F8FAFF;
}

.zs-settings-upload input {
    display: none;
}

.zs-settings-upload-icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #EEF2FF;
    color: var(--color-primary);
    font-size: 22px;
    font-weight: 600;
}

.zs-settings-upload strong,
.zs-settings-upload small {
    display: block;
}

.zs-settings-upload strong {
    font-size: 13px;
    color: #1F2937;
}

.zs-settings-upload small {
    margin-top: 2px;
    font-size: 12px;
    color: #94A3B8;
}

.zs-settings-logo-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 10px;
    padding: 10px 12px;
    border: 1px solid #D7E2F8;
    border-radius: 10px;
    background: #F8FAFF;
    color: #475569;
}

.zs-settings-logo-info strong {
    font-size: 12px;
    font-weight: 700;
    color: #1E3A8A;
}

.zs-settings-logo-info span {
    font-size: 12px;
    line-height: 1.45;
}

.zs-settings-toggle-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.zs-settings-toggle-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 15px 16px;
    border: 1px solid #E1E7EF;
    border-radius: 12px;
    background: #FBFCFE;
    cursor: pointer;
}

.zs-settings-toggle-row:hover {
    border-color: #CBD5E1;
    background: #F8FAFC;
}

.zs-settings-toggle-row strong,
.zs-settings-toggle-row small {
    display: block;
}

.zs-settings-toggle-row strong {
    font-size: 13px;
    color: #1F2937;
}

.zs-settings-toggle-row small {
    margin-top: 3px;
    font-size: 12px;
    color: var(--color-text-muted);
}

.zs-settings-toggle-row input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.zs-settings-toggle-row i {
    width: 42px;
    height: 24px;
    position: relative;
    border-radius: 999px;
    background: #CBD5E1;
    transition: background 0.15s;
}

.zs-settings-toggle-row i::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.2);
    transition: transform 0.15s;
}

.zs-settings-toggle-row input:checked + i {
    background: var(--color-primary);
}

.zs-settings-toggle-row input:checked + i::after {
    transform: translateX(18px);
}

.zs-settings-form-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 4px;
}

.zs-settings-btn {
    min-width: 104px;
    height: 38px;
    padding: 0 18px;
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s, box-shadow 0.15s, transform 0.15s;
}

.zs-settings-btn:hover {
    background: var(--color-primary-hover);
    box-shadow: 0 8px 18px rgba(91, 61, 245, 0.18);
}

.zs-settings-alert {
    font-size: 13px;
    font-weight: 500;
    padding: 11px 13px;
    border-radius: 10px;
    margin-bottom: 14px;
}

.zs-settings-alert.is-success {
    background: #ECFDF5;
    color: #065F46;
    border: 1px solid #A7F3D0;
}

.zs-settings-alert.is-error {
    background: #FEF2F2;
    color: #991B1B;
    border: 1px solid #FECACA;
}

.zs-settings-alert.is-info {
    background: #EFF6FF;
    color: #1D4ED8;
    border: 1px solid #BFDBFE;
}

@media (max-width: 992px) {
    .zs-settings-grid,
    .zs-settings-form-row,
    .zs-settings-sales-grid,
    .zs-settings-form-row.is-logo-row {
        grid-template-columns: 1fr;
    }

    .zs-settings-card-wide {
        max-width: none;
    }
}

@media (max-width: 768px) {
    .zs-settings-tabs {
        width: 100%;
        max-width: none;
        display: flex;
        overflow-x: auto;
    }

    .zs-settings-tab {
        flex: 1 0 auto;
        padding: 0 14px;
    }

    .zs-settings-card-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .zs-settings-card-actions,
    .zs-settings-card-actions .zs-settings-btn {
        width: 100%;
    }

    .zs-settings-card {
        padding: 20px;
    }
}

/* ============================================================
   Saatlik Dağılım — yeni kompakt tasarım
   ============================================================ */

/* Kolon chart container */
.zs-hourly-col-chart {
    display: flex;
    gap: 4px;
    margin-top: 4px;
}

/* Her kolon: eşit genişlik */
.zs-hourly-col-item {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    cursor: default;
}

/* Bar track: sabit yükseklik — span'ın % height'ı için şart */
.zs-hourly-col-track {
    width: 100%;
    height: 140px;
    display: flex;
    align-items: flex-end;
    background: rgba(245, 158, 11, 0.09);
    border-radius: 4px 4px 0 0;
    overflow: hidden;
}

/* Bar dolgusu */
.zs-hourly-col-track span {
    width: 100%;
    min-height: 5px;
    display: block;
    border-radius: 4px 4px 0 0;
    background: linear-gradient(180deg, #F59E0B 0%, #D97706 100%);
}

.zs-hourly-col-item:hover .zs-hourly-col-track span {
    background: linear-gradient(180deg, #FBBF24 0%, #F59E0B 100%);
}

/* Saat etiketi */
.zs-hourly-col-label {
    font-size: 9px;
    font-weight: 700;
    color: #92400E;
    white-space: nowrap;
    overflow: hidden;
    max-width: 100%;
}

/* Saat Analizi: 2x2 metrik grid */
.zs-hourly-metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 16px;
}

.zs-hourly-metric-cell {
    background: #FFFBEB;
    border: 1px solid #FEF3C7;
    border-radius: 8px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.zs-hourly-metric-cell span {
    font-size: 11px;
    color: var(--color-text-muted);
    font-weight: 600;
}

.zs-hourly-metric-cell strong {
    font-size: 17px;
    font-weight: 800;
    color: var(--color-text-main);
    line-height: 1.2;
}

.zs-hourly-metric-cell.is-peak strong {
    color: #D97706;
}

.zs-hourly-metric-cell.is-quiet strong {
    color: #92400E;
    opacity: 0.65;
}

/* Dönem Dağılımı: 4-kolon mini kart grid */
.zs-hourly-daypart-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.zs-hourly-daypart-card {
    display: flex;
    flex-direction: column;
    gap: 3px;
    background: var(--color-surface-soft, #F8FAFC);
    border: 1px solid var(--color-border, #EEF0F4);
    border-radius: 10px;
    padding: 14px 16px;
}

.zs-hourly-daypart-name {
    font-size: 10px;
    font-weight: 700;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2px;
}

.zs-hourly-daypart-ciro {
    font-size: 18px;
    font-weight: 800;
    color: var(--color-text-main);
    line-height: 1.2;
}

.zs-hourly-daypart-txn {
    font-size: 11px;
    color: var(--color-text-muted);
}

.zs-hourly-daypart-progress {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 7px;
}

.zs-hourly-daypart-bar-track {
    flex: 1;
    height: 4px;
    background: #EEF0F4;
    border-radius: 999px;
    overflow: hidden;
}

.zs-hourly-daypart-bar-fill {
    height: 100%;
    border-radius: 999px;
    background: #F59E0B;
}

.zs-hourly-daypart-pct {
    font-size: 12px;
    font-weight: 700;
    color: var(--color-text-main);
    min-width: 34px;
    text-align: right;
}

/* Dönem renkleri: zaman dilimi semantiği */
.zs-hourly-daypart-card:nth-child(1) .zs-hourly-daypart-bar-fill { background: #0EA5E9; }
.zs-hourly-daypart-card:nth-child(2) .zs-hourly-daypart-bar-fill { background: #F59E0B; }
.zs-hourly-daypart-card:nth-child(3) .zs-hourly-daypart-bar-fill { background: #F97316; }
.zs-hourly-daypart-card:nth-child(4) .zs-hourly-daypart-bar-fill { background: #8B5CF6; }
.zs-hourly-daypart-card:nth-child(5) .zs-hourly-daypart-bar-fill { background: #475569; }
.zs-hourly-daypart-card:nth-child(1) .zs-hourly-daypart-pct { color: #0369A1; }
.zs-hourly-daypart-card:nth-child(2) .zs-hourly-daypart-pct { color: #B45309; }
.zs-hourly-daypart-card:nth-child(3) .zs-hourly-daypart-pct { color: #C2410C; }
.zs-hourly-daypart-card:nth-child(4) .zs-hourly-daypart-pct { color: #7C3AED; }
.zs-hourly-daypart-card:nth-child(5) .zs-hourly-daypart-pct { color: #475569; }

[data-report-panel="hourly-distribution"] {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

[data-report-panel="hourly-distribution"] .zs-hourly-daypart-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

[data-report-panel="hourly-distribution"] .zs-hourly-daypart-card {
    min-height: 172px;
    gap: 6px;
    padding: 16px 17px;
    border-radius: 14px;
    background: #fff;
    border-color: #E8ECF3;
}

.zs-hourly-daypart-card.is-busiest {
    border-color: rgba(217,119,6,0.35);
    background: linear-gradient(160deg, #fff 0%, #FFFBEB 100%);
}

.zs-hourly-daypart-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 28px;
    gap: 8px;
    margin-bottom: 2px;
}

.zs-hourly-daypart-icon {
    width: 28px;
    height: 28px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #F8FAFC;
    color: #64748B;
}

.zs-hourly-daypart-badge {
    padding: 3px 7px;
    border-radius: 999px;
    background: #FEF3C7;
    color: #92400E;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1.2;
    white-space: nowrap;
    align-self: flex-start;
}

.zs-hourly-daypart-range {
    font-size: 12px;
    color: #94A3B8;
    font-weight: 600;
    line-height: 1.25;
}

.zs-hourly-daypart-pct-large {
    margin-top: 2px;
    font-size: 30px;
    line-height: 1;
    font-weight: 800;
    color: #111827;
    font-variant-numeric: tabular-nums;
}

.zs-hourly-daypart-txn {
    line-height: 1.35;
    font-weight: 600;
}

[data-report-panel="hourly-distribution"] .zs-hourly-daypart-name {
    margin-bottom: 0;
    color: #334155;
    font-size: 11px;
    letter-spacing: 0.04em;
}

[data-report-panel="hourly-distribution"] .zs-hourly-daypart-progress {
    margin-top: auto;
    padding-top: 8px;
}

[data-report-panel="hourly-distribution"] .zs-hourly-daypart-bar-track {
    height: 5px;
}

.zs-hourly-peak-panel {
    max-width: none;
    padding-top: 18px !important;
    padding-bottom: 18px !important;
}

.zs-hourly-peak-panel .zs-report-card-header {
    margin-bottom: 14px;
    padding-bottom: 12px;
}

.zs-hourly-peak-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.zs-hourly-peak-row {
    display: grid;
    grid-template-columns: 30px minmax(70px, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 10px 12px 11px;
    border: 1px solid #EEF0F4;
    border-radius: 10px;
    background: #F8FAFC;
}

.zs-hourly-peak-rank {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #111827;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

.zs-hourly-peak-hour {
    font-size: 13px;
    font-weight: 700;
    color: #334155;
}

.zs-hourly-peak-row strong {
    font-size: 13px;
    color: #D97706;
    font-variant-numeric: tabular-nums;
}

.zs-hourly-peak-row .zs-report-horiz-item-bar {
    grid-column: 2 / 4;
}

@media (max-width: 1200px) {
    .zs-hourly-peak-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .zs-report-payment-distribution,
    .zs-report-payment-cards,
    .zs-report-reconcile-strip {
        grid-template-columns: 1fr;
    }

    .zs-report-reconcile-strip .is-net {
        text-align: left;
    }

    .zs-hourly-daypart-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    [data-report-panel="hourly-distribution"] .zs-hourly-daypart-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .zs-hourly-metrics-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .zs-hourly-col-track {
        height: 100px;
    }
}

