:root {
    color-scheme: light;
    --ink: #17231f;
    --muted: #718078;
    --muted-dark: #a9b9b1;
    --paper: #f4f6f2;
    --white: #ffffff;
    --line: #e7ece7;
    --line-dark: rgba(255, 255, 255, .11);
    --green: #1f6f57;
    --green-bright: #2d896c;
    --green-soft: #e6f3eb;
    --mint: #c5ead6;
    --navy: #172c27;
    --navy-deep: #11231f;
    --gold: #d5a954;
    --shadow: 0 16px 42px rgba(21, 44, 35, .055);
    --radius: 19px;
    --radius-sm: 12px;
}

* { box-sizing: border-box; }

html { min-width: 320px; background: var(--paper); }

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }

:focus-visible {
    outline: 3px solid rgba(54, 139, 105, .45);
    outline-offset: 3px;
}

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 250px minmax(0, 1fr); }

.sidebar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    height: 100vh;
    padding: 29px 18px 18px;
    color: #eff8f2;
    background:
        radial-gradient(ellipse at 6% 7%, rgba(103, 168, 133, .25), transparent 40%),
        linear-gradient(165deg, #1a3931 0%, #112720 62%, #10231e 100%);
}

.brand-mark { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-mark img { display: block; width: 37px; height: 42px; object-fit: contain; }
.brand-mark span { color: rgba(242, 249, 244, .8); font-size: 10px; line-height: 1.55; letter-spacing: .19em; }
.brand-mark strong { color: #fff; font-weight: 750; }
.brand-mark-sidebar { padding: 1px 10px 30px; }

.sidebar-label { padding: 14px 12px 10px; color: #93a99e; font-size: 9px; font-weight: 750; letter-spacing: .17em; }
.side-nav { display: grid; gap: 5px; }
.side-nav-item {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 47px;
    gap: 12px;
    padding: 0 12px;
    border: 0;
    border-radius: 10px;
    color: #c1d1c9;
    background: transparent;
    text-align: left;
    font-size: 12px;
    font-weight: 590;
    cursor: pointer;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}
.side-nav-item:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.side-nav-item.is-active { color: #fff; background: rgba(197, 234, 214, .13); box-shadow: inset 3px 0 #a9ddbb; }
.side-nav-item.is-active .nav-symbol { color: #c1ebd0; }
.nav-symbol { width: 20px; color: #a9c2b4; font-size: 17px; text-align: center; line-height: 1; }
.nav-symbol-flower { font-size: 20px; }
.nav-symbol-sirat { font-size: 21px; }
.nav-symbol-export { font-size: 20px; }
.nav-arrow { margin-left: auto; color: #91a89b; font-size: 16px; }

.sidebar-bottom { margin-top: auto; }
.sidebar-status { display: flex; align-items: center; gap: 8px; padding: 0 12px 17px; color: #a5bbb0; font-size: 10px; }
.status-pulse { width: 7px; height: 7px; border-radius: 50%; background: #74d19b; box-shadow: 0 0 0 4px rgba(116, 209, 155, .12); }
.sidebar-user { display: flex; align-items: center; gap: 10px; padding: 14px 5px 12px; border-top: 1px solid var(--line-dark); }
.user-avatar { display: grid; width: 33px; height: 33px; flex: 0 0 33px; place-items: center; border: 1px solid rgba(255, 255, 255, .21); border-radius: 50%; color: #f4fff7; background: rgba(255, 255, 255, .09); font-size: 10px; font-weight: 750; }
.user-details { display: grid; min-width: 0; gap: 1px; }
.user-details strong { overflow: hidden; color: #f5faf6; font-size: 11px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.user-details span { color: #9bb1a5; font-size: 10px; }
.user-settings { display: grid; width: 30px; height: 30px; margin-left: auto; place-items: center; border-radius: 8px; color: #b4c9be; font-size: 16px; transition: background .2s ease; }
.user-settings:hover { background: rgba(255, 255, 255, .1); }
.logout-form { padding: 0 3px; }
.logout-button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 8px 9px; border: 0; border-radius: 8px; color: #a9bbb1; background: transparent; text-align: left; font-size: 11px; cursor: pointer; }
.logout-button:hover { color: #fff; background: rgba(255, 255, 255, .07); }

.main-content { width: 100%; max-width: 1680px; min-width: 0; margin: 0 auto; padding: 38px clamp(24px, 4vw, 64px) 24px; }
.page-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 26px; margin-bottom: 31px; }
.breadcrumb { display: flex; align-items: center; gap: 9px; margin-bottom: 8px; color: #98a49d; font-size: 10px; font-weight: 550; }
.breadcrumb a { transition: color .18s ease; }
.breadcrumb a:hover { color: var(--green); }
.breadcrumb strong { color: #65736b; font-weight: 650; }
.page-header h1 { margin: 0; color: #17251f; font-size: clamp(28px, 3vw, 36px); font-weight: 670; letter-spacing: -.045em; line-height: 1.1; }
.page-subtitle { margin: 9px 0 0; color: #78867e; font-size: 12px; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.update-pill { display: flex; align-items: center; gap: 9px; padding: 9px 12px; border: 1px solid #e5ebe6; border-radius: 11px; background: rgba(255, 255, 255, .7); }
.update-icon { display: grid; width: 27px; height: 27px; place-items: center; border-radius: 8px; color: var(--green); background: var(--green-soft); font-size: 18px; }
.update-pill > span:last-child { display: grid; gap: 1px; }
.update-pill small { color: #87938b; font-size: 9px; }
.update-pill strong { color: #46564d; font-size: 10px; font-weight: 640; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 40px; padding: 0 15px; border: 1px solid transparent; border-radius: 10px; font-size: 11px; font-weight: 650; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { color: #fff; background: linear-gradient(140deg, #258363, #1b6f56); box-shadow: 0 7px 16px rgba(31, 111, 87, .18); }
.button-primary:hover { background: linear-gradient(140deg, #2b916d, #1d775c); box-shadow: 0 10px 21px rgba(31, 111, 87, .24); }
.button-dark { color: #fff; background: #172c27; box-shadow: 0 6px 15px rgba(23, 44, 39, .11); }
.button-dark:hover { background: #25443a; }
.button-light { color: #335247; border-color: #e3eae5; background: #fff; }
.button-light:hover { border-color: #cddbd1; background: #fafffb; }
.button-wide { width: 100%; }

.mobile-workspace-nav { display: none; }
.dashboard-view { min-width: 0; }
.store-heading { display: flex; align-items: center; gap: 14px; margin-bottom: 19px; }
.store-mark { display: grid; width: 44px; height: 44px; flex: 0 0 44px; place-items: center; border-radius: 14px; color: #fff; font-family: Georgia, serif; font-size: 17px; font-weight: 700; }
.store-mark-tfm { background: linear-gradient(145deg, #4c9a75, #1d6c52); box-shadow: 0 7px 18px rgba(45, 128, 91, .17); }
.store-mark-sirat { background: linear-gradient(145deg, #b98752, #765531); box-shadow: 0 7px 18px rgba(150, 106, 54, .16); }
.store-heading h2 { margin: 3px 0 2px; color: #24352d; font-size: 21px; font-weight: 660; letter-spacing: -.025em; }
.store-heading p { margin: 0; color: #839087; font-size: 11px; }
.eyebrow { display: block; color: #829188; font-size: 9px; font-weight: 750; letter-spacing: .15em; line-height: 1.4; }
.store-tag { margin-left: auto; padding: 6px 10px; border: 1px solid #dbe8df; border-radius: 50px; color: #517461; background: #edf5ef; font-size: 9px; font-weight: 670; letter-spacing: .04em; }
.store-tag-sirat { color: #8b6941; border-color: #ecdfcf; background: #f7f0e6; }

.metrics-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin-bottom: 13px; }
.metric-card { position: relative; overflow: hidden; min-height: 135px; padding: 17px 17px 15px; border: 1px solid #e8ede8; border-radius: 15px; background: var(--white); box-shadow: 0 4px 16px rgba(26, 50, 39, .025); }
.metric-card-featured { border-color: #deebe1; background: linear-gradient(145deg, #fff, #f5faf6); }
.metric-topline { display: flex; align-items: center; gap: 9px; }
.metric-icon { display: grid; width: 27px; height: 27px; place-items: center; border-radius: 9px; font-size: 14px; font-weight: 700; }
.icon-revenue { color: #1f785b; background: #e5f3e9; }
.icon-orders { color: #5472a1; background: #eaf0f9; }
.icon-prepaid { color: #a17630; background: #f8f0df; font-size: 9px; }
.icon-cod { color: #9264a0; background: #f4eefa; font-size: 18px; }
.metric-label { color: #7b8980; font-size: 10px; font-weight: 580; }
.metric-value { display: block; overflow: hidden; margin-top: 13px; color: #1d2a24; font-size: clamp(20px, 2.3vw, 25px); font-weight: 680; letter-spacing: -.035em; line-height: 1.12; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.metric-note { display: block; margin-top: 7px; color: #9aa59e; font-size: 9px; }

.panel { min-width: 0; border: 1px solid #e7ece7; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.payment-panel { padding: 17px 19px 16px; margin-bottom: 15px; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.panel-heading h3 { margin: 3px 0 0; color: #24342c; font-size: 14px; font-weight: 660; letter-spacing: -.015em; }
.panel-caption { color: #9aa59e; font-size: 9px; }
.payment-mix-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; }
.mix-label { display: flex; align-items: center; justify-content: space-between; margin-bottom: 7px; color: #76847b; font-size: 10px; }
.mix-label span { display: flex; align-items: center; gap: 7px; }
.mix-label strong { color: #36473d; font-weight: 680; font-variant-numeric: tabular-nums; }
.mix-dot { width: 7px; height: 7px; border-radius: 50%; }
.prepaid-dot { background: #3b946d; }
.cod-dot { background: #c29b57; }
.mix-progress { display: block; width: 100%; height: 6px; overflow: hidden; border: 0; border-radius: 99px; background: #edf1ed; appearance: none; }
.mix-progress::-webkit-progress-bar { border-radius: 99px; background: #edf1ed; }
.prepaid-progress::-webkit-progress-value { border-radius: 99px; background: linear-gradient(90deg, #32825f, #83be91); }
.cod-progress::-webkit-progress-value { border-radius: 99px; background: linear-gradient(90deg, #ad8545, #dfbd79); }
.prepaid-progress::-moz-progress-bar { border-radius: 99px; background: #438e69; }
.cod-progress::-moz-progress-bar { border-radius: 99px; background: #c6a259; }

.report-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.report-panel { overflow: hidden; padding: 17px 17px 9px; }
.report-panel .panel-heading { margin-bottom: 12px; }
.table-scroll { overflow-x: auto; width: 100%; scrollbar-color: #cbd7cd transparent; scrollbar-width: thin; }
.data-table { width: 100%; min-width: 330px; border-collapse: collapse; text-align: left; }
.data-table th { padding: 10px 9px; border-bottom: 1px solid #edf0ed; color: #9aa59d; font-size: 8px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.data-table td { padding: 11px 9px; border-bottom: 1px solid #f0f2f0; color: #5c6c62; font-size: 10px; font-weight: 520; line-height: 1.45; vertical-align: top; }
.data-table th:first-child, .data-table td:first-child { padding-left: 3px; }
.data-table th:last-child, .data-table td:last-child { padding-right: 3px; text-align: right; font-variant-numeric: tabular-nums; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover td { color: #263b30; background: #fbfdfb; }
.data-table .empty-cell { padding: 24px 7px; color: #9aa59e; text-align: center !important; }
.page-footer { display: flex; justify-content: space-between; gap: 14px; padding: 27px 2px 4px; color: #a1aca4; font-size: 9px; }

/* Export page */
.export-content .page-header { margin-bottom: 36px; }
.export-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(220px, .7fr); align-items: start; gap: 18px; max-width: 1050px; }
.export-card { position: relative; overflow: hidden; padding: clamp(24px, 4vw, 42px); }
.export-card::before { position: absolute; top: -120px; right: -70px; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle, rgba(197, 234, 214, .36), transparent 70%); content: ""; pointer-events: none; }
.export-illustration { position: relative; display: flex; width: 79px; height: 75px; align-items: center; justify-content: center; margin-bottom: 27px; border-radius: 20px; background: #eaf4ec; }
.export-sheet { position: relative; display: grid; width: 39px; height: 48px; align-content: start; gap: 5px; padding: 11px 8px 7px; border: 1px solid #b4d6bc; border-radius: 7px; background: #fff; box-shadow: 0 7px 14px rgba(31, 111, 87, .09); transform: rotate(-5deg); }
.export-sheet span { display: block; height: 3px; border-radius: 5px; background: #d9e9dc; }
.export-sheet span:nth-child(2) { width: 78%; }
.export-sheet span:nth-child(3) { width: 60%; }
.export-sheet b { position: absolute; right: -13px; bottom: -5px; padding: 3px 5px; border: 2px solid #eaf4ec; border-radius: 5px; color: white; background: #3c956b; font-size: 7px; letter-spacing: .05em; transform: rotate(5deg); }
.export-spark { position: absolute; color: #cb9c48; font-style: normal; }
.spark-one { top: 10px; right: 12px; font-size: 14px; }
.spark-two { bottom: 11px; left: 13px; font-size: 9px; }
.export-intro h2 { margin: 8px 0 7px; color: #203229; font-size: 24px; font-weight: 670; letter-spacing: -.035em; }
.export-intro p { max-width: 450px; margin: 0; color: #7e8c82; font-size: 11px; }
.export-form { margin-top: 26px; }
.date-fields { display: grid; grid-template-columns: minmax(0, 1fr) 25px minmax(0, 1fr); align-items: end; gap: 11px; }
.field-group { display: grid; gap: 7px; }
.field-group label, .auth-form label { color: #58685e; font-size: 10px; font-weight: 650; }
.field-group input, .auth-form input { width: 100%; min-height: 43px; padding: 0 12px; border: 1px solid #dfe7e0; border-radius: 9px; outline: 0; color: #34463a; background: #fbfcfb; font-size: 11px; transition: border-color .18s ease, box-shadow .18s ease, background .18s ease; }
.field-group input:focus, .auth-form input:focus { border-color: #70a68b; background: #fff; box-shadow: 0 0 0 3px rgba(67, 142, 105, .12); }
.date-connector { display: grid; height: 43px; place-items: center; color: #a7b4aa; font-size: 17px; }
.date-presets { display: flex; flex-wrap: wrap; gap: 7px; margin: 14px 0 21px; }
.preset-button { padding: 6px 10px; border: 1px solid #e1e9e2; border-radius: 7px; color: #6f8175; background: #fff; font-size: 9px; cursor: pointer; transition: border-color .18s ease, color .18s ease, background .18s ease; }
.preset-button:hover { border-color: #bcd5c2; color: #256f52; background: #f4faf5; }
.export-submit { min-height: 45px; font-size: 11px; }
.export-footnote { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 12px 0 0; color: #99a59c; font-size: 9px; }
.form-alert, .form-success { padding: 11px 13px; border: 1px solid #f1d4d0; border-radius: 9px; color: #934a40; background: #fff5f3; font-size: 10px; line-height: 1.55; }
.form-success { border-color: #d2e8d7; color: #39724f; background: #f1faf3; }
.export-card > .form-alert, .export-card > .form-success { margin-top: 17px; }
.export-side-notes { display: grid; gap: 14px; }
.export-info-card { padding: 19px; }
.info-icon { display: grid; width: 29px; height: 29px; place-items: center; border-radius: 10px; color: #287657; background: #e7f4e9; font-size: 15px; font-weight: 700; }
.export-info-card h3 { margin: 13px 0 5px; color: #314238; font-size: 12px; font-weight: 670; }
.export-info-card p { margin: 0; color: #829087; font-size: 10px; line-height: 1.7; }
.export-help-card { overflow: hidden; padding: 20px; border-radius: var(--radius); color: white; background: radial-gradient(circle at 98% 5%, rgba(92, 159, 121, .38), transparent 42%), linear-gradient(145deg, #24493b, #173229); box-shadow: 0 12px 25px rgba(23, 51, 40, .12); }
.eyebrow-light { color: #a4c3ad; }
.export-help-card h3 { max-width: 220px; margin: 12px 0 17px; color: #f5fbf6; font-size: 17px; font-weight: 580; letter-spacing: -.02em; line-height: 1.35; }
.export-help-card a { display: inline-flex; align-items: center; gap: 8px; color: #c8ebd2; font-size: 10px; font-weight: 650; }
.export-help-card a:hover { color: #fff; }

/* Sign in and account pages */
.auth-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: #f3f5f1; }
.auth-layout { display: grid; width: min(100%, 990px); min-height: 610px; grid-template-columns: .93fr 1.07fr; overflow: hidden; border: 1px solid #e7ece7; border-radius: 24px; background: #fff; box-shadow: 0 28px 80px rgba(19, 49, 37, .1); }
.auth-brand-panel { position: relative; display: flex; flex-direction: column; min-height: 100%; padding: 35px 38px; color: #fff; background: radial-gradient(ellipse at 4% 11%, rgba(125, 183, 140, .25), transparent 39%), radial-gradient(ellipse at 110% 100%, rgba(60, 125, 89, .23), transparent 50%), linear-gradient(155deg, #1e4637, #122d25 75%); }
.brand-mark-light { align-self: flex-start; }
.brand-mark-light img { width: 39px; height: 45px; }
.auth-brand-copy { margin: auto 0; padding: 35px 0 50px; }
.auth-brand-copy h1 { margin: 14px 0 15px; color: #f7fbf7; font-size: clamp(37px, 5vw, 53px); font-weight: 560; letter-spacing: -.05em; line-height: 1.04; }
.auth-brand-copy p { max-width: 285px; margin: 0; color: #bbd0c2; font-size: 12px; line-height: 1.75; }
.auth-brand-footer { color: #93ac9b; font-size: 9px; }
.auth-form-panel { display: grid; align-items: center; justify-items: center; padding: 48px; background: #fff; }
.auth-form-wrap { width: min(100%, 360px); }
.auth-form-wrap h2 { margin: 7px 0; color: #1f3027; font-size: 24px; font-weight: 660; letter-spacing: -.035em; }
.auth-lede { margin: 0; color: #89958c; font-size: 11px; }
.auth-form { display: grid; gap: 9px; margin-top: 25px; }
.auth-form label:not(:first-child) { margin-top: 7px; }
.auth-form input { min-height: 45px; font-size: 12px; }
.auth-form button { min-height: 46px; margin-top: 9px; }
.auth-security-note { display: flex; align-items: center; gap: 8px; margin: 23px 0 0; color: #9aa59e; font-size: 9px; }
.security-dot { width: 7px; height: 7px; border-radius: 50%; background: #56a375; box-shadow: 0 0 0 3px #e4f3e8; }
.auth-back-link { align-self: flex-start; color: #bed7c4; font-size: 10px; }
.auth-back-link:hover { color: #fff; }
.auth-page-compact .auth-layout { min-height: 550px; }

@media (min-width: 1460px) {
    .main-content { padding-left: 72px; padding-right: 72px; }
    .metrics-grid { gap: 16px; }
    .metric-card { min-height: 148px; padding: 20px; }
    .metric-value { margin-top: 16px; font-size: 27px; }
}

@media (max-width: 1120px) {
    .app-shell { grid-template-columns: 220px minmax(0, 1fr); }
    .sidebar { padding-left: 13px; padding-right: 13px; }
    .main-content { padding: 30px 25px 21px; }
    .metrics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .metric-card { min-height: 124px; }
    .metric-value { font-size: 23px; }
    .export-layout { grid-template-columns: minmax(0, 1fr) 240px; }
}

@media (max-width: 790px) {
    .app-shell { display: block; }
    .sidebar { position: relative; display: block; width: 100%; height: auto; min-height: 0; padding: 13px 19px; }
    .brand-mark-sidebar { padding: 0; }
    .brand-mark-sidebar img { width: 31px; height: 34px; }
    .brand-mark span { font-size: 9px; }
    .sidebar-label, .side-nav, .sidebar-bottom { display: none; }
    .main-content { padding: 26px 18px 20px; }
    .page-header { align-items: flex-start; margin-bottom: 22px; }
    .page-header h1 { font-size: 28px; }
    .header-actions { gap: 8px; }
    .update-pill { display: none; }
    .button-dark { min-height: 37px; padding: 0 11px; font-size: 10px; }
    .mobile-workspace-nav { display: flex; gap: 5px; overflow-x: auto; margin-bottom: 22px; padding: 4px; border: 1px solid #e5ebe6; border-radius: 11px; background: #eaeFEB; }
    .workspace-tab { flex: 1 0 auto; min-height: 36px; padding: 0 13px; border: 0; border-radius: 8px; color: #718078; background: transparent; font-size: 10px; font-weight: 620; cursor: pointer; }
    .workspace-tab.is-active { color: #245a43; background: #fff; box-shadow: 0 2px 8px rgba(25, 55, 39, .08); }
    .store-heading { margin-bottom: 14px; }
    .payment-mix-grid { gap: 20px; }
    .export-content .page-header { margin-bottom: 23px; }
    .export-layout { grid-template-columns: minmax(0, 1fr); max-width: 620px; }
    .export-side-notes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 570px) {
    .main-content { padding: 22px 13px 17px; }
    .page-header { display: block; }
    .header-actions { margin-top: 15px; }
    .button-dark { width: 100%; min-height: 42px; }
    .page-header h1 { font-size: 26px; }
    .page-subtitle { font-size: 11px; }
    .mobile-workspace-nav { margin-bottom: 18px; }
    .store-heading { gap: 10px; }
    .store-mark { width: 39px; height: 39px; flex-basis: 39px; border-radius: 12px; font-size: 15px; }
    .store-heading h2 { font-size: 18px; }
    .store-heading p { max-width: 215px; font-size: 10px; }
    .store-tag { padding: 5px 7px; font-size: 8px; }
    .metrics-grid { gap: 9px; }
    .metric-card { min-height: 119px; padding: 13px 11px; border-radius: 13px; }
    .metric-topline { gap: 7px; }
    .metric-icon { width: 23px; height: 23px; border-radius: 7px; font-size: 12px; }
    .metric-label { font-size: 9px; }
    .metric-value { margin-top: 12px; font-size: clamp(17px, 5.5vw, 22px); }
    .metric-note { margin-top: 6px; font-size: 8px; }
    .panel { border-radius: 15px; }
    .payment-panel { padding: 15px 13px; }
    .payment-mix-grid { grid-template-columns: 1fr; gap: 14px; }
    .report-grid { grid-template-columns: minmax(0, 1fr); gap: 11px; }
    .report-panel { padding: 15px 12px 7px; }
    .panel-heading h3 { font-size: 13px; }
    .panel-caption { font-size: 8px; }
    .data-table { min-width: 300px; }
    .data-table th { font-size: 7px; }
    .data-table td { padding: 10px 7px; font-size: 9px; }
    .page-footer { padding-top: 21px; font-size: 8px; }
    .export-card { padding: 23px 17px; }
    .export-intro h2 { font-size: 21px; }
    .date-fields { grid-template-columns: minmax(0, 1fr); gap: 11px; }
    .date-connector { display: none; }
    .export-side-notes { grid-template-columns: minmax(0, 1fr); }
    .auth-page { padding: 0; background: #fff; }
    .auth-layout { display: flex; min-height: 100vh; flex-direction: column; border: 0; border-radius: 0; box-shadow: none; }
    .auth-brand-panel { min-height: 220px; padding: 21px 22px; }
    .auth-brand-copy { padding: 26px 0 12px; }
    .auth-brand-copy h1 { margin: 7px 0 8px; font-size: 29px; }
    .auth-brand-copy p { max-width: 290px; font-size: 10px; }
    .auth-brand-footer { display: none; }
    .auth-form-panel { flex: 1; align-items: flex-start; padding: 34px 24px; }
    .auth-form-wrap h2 { font-size: 21px; }
    .auth-security-note { font-size: 8px; }
    .auth-page-compact .auth-brand-panel { min-height: 190px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Sales analytics */
.analytics-content .page-header { margin-bottom: 23px; }
.analytics-filter { display: grid; grid-template-columns: minmax(240px, .9fr) minmax(500px, 1.2fr); align-items: center; gap: 14px 28px; padding: 18px 20px 13px; margin-bottom: 24px; }
.filter-copy h2 { margin: 4px 0 3px; color: #26392f; font-size: 15px; font-weight: 660; letter-spacing: -.02em; }
.filter-copy p { margin: 0; color: #849187; font-size: 10px; }
.filter-controls { display: grid; grid-template-columns: minmax(135px, 1fr) 20px minmax(135px, 1fr) auto; align-items: end; gap: 8px; }
.filter-controls .field-group span { color: #69786e; font-size: 9px; font-weight: 640; }
.filter-controls .field-group input { min-height: 39px; font-size: 10px; }
.filter-controls .button { min-height: 39px; padding: 0 13px; white-space: nowrap; font-size: 10px; }
.filter-arrow { display: grid; height: 39px; place-items: center; color: #9eaaa1; }
.filter-bottom { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding-top: 10px; border-top: 1px solid #f0f3f0; }
.filter-bottom > span { color: #9aa69e; font-size: 9px; }
.report-presets { display: flex; flex-wrap: wrap; gap: 6px; }
.report-presets .preset-button { padding: 5px 9px; font-size: 8px; }
.analytics-alert { grid-column: 1 / -1; margin: 0; }
.analytics-store { display: grid; gap: 13px; }
.analytics-store .store-heading { margin-bottom: 1px; }
.analytics-metrics { margin-bottom: 0; }
.trend-panel, .operations-panel, .repeat-panel, .meta-panel { padding: 17px 19px 13px; }
.trend-legend { display: flex; align-items: center; justify-content: space-between; margin: -3px 0 5px; color: #8c9990; font-size: 9px; }
.trend-legend > span:first-child { display: flex; align-items: center; gap: 7px; }
.trend-legend i { width: 15px; height: 3px; border-radius: 5px; background: #2f8966; }
.trend-total { color: #365746; font-size: 11px; font-weight: 680; font-variant-numeric: tabular-nums; }
.trend-chart-wrap { width: 100%; overflow: hidden; }
.trend-chart { display: block; width: 100%; height: auto; min-height: 170px; overflow: visible; }
.chart-grid-line { stroke: #edf1ed; stroke-width: 1; }
.chart-axis-label { fill: #9aa69e; font-family: inherit; font-size: 9px; }
.chart-area { fill: rgba(50, 139, 102, .10); }
.chart-line { fill: none; stroke: #2f8966; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2.7; }
.chart-point { fill: #fff; stroke: #2f8966; stroke-width: 1.5; }
.panel-footnote { margin: 11px 0 0; color: #98a49c; font-size: 9px; line-height: 1.6; }
.ops-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.ops-card { display: grid; min-height: 84px; align-content: start; gap: 4px; padding: 11px 12px; border: 1px solid #edf1ed; border-radius: 11px; background: #fbfcfb; }
.ops-card > span, .insight-item > span { color: #829087; font-size: 9px; font-weight: 580; }
.ops-card strong { color: #293b31; font-size: 20px; font-weight: 680; letter-spacing: -.03em; line-height: 1.2; font-variant-numeric: tabular-nums; }
.ops-card small { color: #9ba69f; font-size: 8px; line-height: 1.4; }
.ops-card-alert { border-color: #f0ded4; background: #fffaf7; }
.ops-card-alert strong { color: #a65f3e; }
.insight-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.insight-item { display: grid; gap: 7px; padding: 12px; border-radius: 10px; background: #f7faf7; }
.insight-item strong { color: #2c4537; font-size: 18px; font-weight: 690; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.analytics-report-grid { align-items: start; gap: 13px; }
.analytics-report-grid .report-panel { height: 100%; padding: 17px 16px 12px; }
.analytics-report-grid .panel-heading { align-items: flex-start; }
.analytics-campaign-panel { grid-column: 1 / -1; height: auto !important; }
.analytics-campaign-panel .meta-panel { padding: 2px 0 12px; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.analytics-campaign-panel .meta-panel .panel-heading { margin-bottom: 10px; }
.meta-status { display: inline-flex; align-items: center; padding: 4px 8px; border: 1px solid #f0e5d0; border-radius: 40px; color: #98753e; background: #fbf5e8; font-size: 8px; font-weight: 680; white-space: nowrap; }
.meta-status-ok { border-color: #d8eade; color: #427554; background: #eff7f0; }
.meta-metrics { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.meta-metrics > div { display: grid; align-content: start; gap: 6px; padding: 10px; border: 1px solid #edf1ed; border-radius: 10px; background: #fff; }
.meta-metrics span { color: #8b9890; font-size: 8px; line-height: 1.35; }
.meta-metrics strong { color: #2d4337; font-size: 13px; font-weight: 690; font-variant-numeric: tabular-nums; white-space: nowrap; }
.meta-empty { padding: 14px; border: 1px solid #edf1ed; border-radius: 10px; color: #839187; background: #fafcfb; font-size: 10px; }
.meta-warning { margin: 8px 0 0; color: #9a7951; font-size: 9px; line-height: 1.55; }
.analytics-table { min-width: 620px; }
.analytics-campaign-panel .analytics-table { min-width: 860px; }
.analytics-campaign-panel .analytics-table td:first-child { max-width: 155px; overflow-wrap: anywhere; }

@media (max-width: 1120px) {
    .analytics-filter { grid-template-columns: minmax(0, 1fr); gap: 15px; }
    .filter-controls { max-width: 720px; }
    .meta-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 790px) {
    .analytics-content .page-header { margin-bottom: 21px; }
    .analytics-filter { padding: 15px 13px 12px; margin-bottom: 17px; border-radius: 15px; }
    .filter-copy h2 { max-width: 290px; font-size: 14px; }
    .filter-copy p { max-width: 300px; font-size: 9px; }
    .filter-controls { grid-template-columns: minmax(0, 1fr) 16px minmax(0, 1fr); gap: 7px; }
    .filter-controls .button { grid-column: 1 / -1; width: 100%; margin-top: 3px; }
    .filter-arrow { height: 39px; }
    .filter-bottom { display: grid; gap: 8px; }
    .filter-bottom > span { line-height: 1.5; }
    .analytics-workspace-nav { display: flex; gap: 5px; overflow-x: auto; margin: 0 0 16px; padding: 4px; border: 1px solid #e5ebe6; border-radius: 11px; background: #eaeFEB; }
    .analytics-store { gap: 10px; }
    .trend-panel, .operations-panel, .repeat-panel, .meta-panel { padding: 14px 12px 11px; border-radius: 15px; }
    .trend-chart { min-height: 135px; }
    .chart-axis-label { font-size: 8px; }
    .ops-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
    .ops-card { min-height: 76px; padding: 9px; }
    .ops-card strong { font-size: 18px; }
    .insight-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
    .insight-item { padding: 10px; }
    .insight-item strong { font-size: 16px; }
    .analytics-report-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .analytics-campaign-panel { grid-column: auto; }
    .analytics-report-grid .report-panel { padding: 14px 12px 10px; }
    .analytics-report-grid .panel-heading { gap: 8px; }
    .meta-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
    .meta-metrics > div { padding: 8px; }
    .meta-metrics strong { font-size: 12px; }
}
