:root {
    --primary: #1f6f46;
    --primary-dark: #155635;
    --primary-light: #3ba16d;
    --accent: #f5b942;
    --accent-soft: #fff2c7;
    --bg: #edf5ee;
    --bg-strong: #e4efe6;
    --surface: #ffffff;
    --surface-muted: #f7faf7;
    --text: #1d2a22;
    --text-soft: #5a6d63;
    --border: rgba(27, 69, 49, 0.08);
    --card-shadow: 0 12px 32px rgba(22, 72, 47, 0.08);
    --radius: 18px;
}

* { box-sizing: border-box; }

body {
    background:
        radial-gradient(circle at top left, rgba(59, 161, 109, 0.12), transparent 24%),
        linear-gradient(180deg, var(--bg) 0%, #f5faf6 100%);
    font-family: 'Segoe UI', system-ui, sans-serif;
    color: var(--text);
}

img { max-width: 100%; }

a { text-decoration: none; }

.app-body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-bottom: 76px;
}

.app-navbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    background:
        radial-gradient(ellipse at 50% -80%, rgba(93, 181, 129, .4), transparent 58%),
        linear-gradient(115deg, #103d2b 0%, #155635 52%, #1f6f46 100%);
    box-shadow: 0 12px 30px rgba(16, 61, 43, 0.22);
    border-bottom: 4px solid var(--accent);
    padding: .85rem 0;
}

.app-shell {
    flex: 1 0 auto;
    width: 100%;
}

.app-footer {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1020;
    border-top: 3px solid var(--accent);
    background:
        radial-gradient(ellipse at 12% 0%, rgba(59,161,109,.08), transparent 36%),
        linear-gradient(115deg, #fff 0%, #f7faf7 55%, #edf5ee 100%);
    box-shadow: 0 -10px 28px rgba(22,72,47,.09);
}

.app-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem 1.35rem;
    flex-wrap: wrap;
    min-height: 76px;
    padding-top: .6rem;
    padding-bottom: .6rem;
}

.app-footer-brand {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    color: var(--primary-dark);
    white-space: nowrap;
}

.app-footer-brand:hover {
    color: var(--primary);
}

.app-footer-mark {
    display: inline-flex;
    width: 2.35rem;
    height: 2.35rem;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(31,111,70,.12);
    border-radius: 12px;
    background: linear-gradient(145deg, #e5f2e8, #fff);
    color: var(--primary);
    box-shadow: 0 4px 10px rgba(22,72,47,.06);
    font-size: 1.05rem;
}

.app-footer-brand-copy {
    display: grid;
    gap: .08rem;
    line-height: 1.2;
}

.app-footer-brand-copy strong {
    font-size: .88rem;
    font-weight: 850;
    letter-spacing: -.015em;
}

.app-footer-brand-copy small {
    color: #819087;
    font-size: .65rem;
    font-weight: 550;
}

.app-footer-note,
.app-footer-credit,
.app-footer-copy {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    color: var(--text-soft);
    font-size: .74rem;
    white-space: nowrap;
}

.app-footer-note i {
    color: var(--primary-light);
    font-size: .85rem;
}

.app-footer-credit {
    padding-left: 1rem;
    border-left: 1px solid rgba(27,69,49,.12);
    color: #52665a;
    font-weight: 700;
}

.app-footer-credit-label {
    color: #8a9890;
    font-size: .68rem;
    font-weight: 550;
}

.app-footer-copy {
    padding: .38rem .65rem;
    border: 1px solid rgba(27,69,49,.08);
    border-radius: 999px;
    background: rgba(255,255,255,.72);
    color: #738178;
    font-size: .68rem;
}

.app-footer-copy span {
    color: var(--primary-dark);
    font-weight: 750;
}

.app-navbar .container {
    gap: 1.25rem;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.08rem;
    letter-spacing: -0.03em;
    color: white !important;
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    white-space: nowrap;
    margin-right: .25rem;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-copy small {
    margin-top: .2rem;
    color: rgba(255,255,255,.72);
    font-size: .66rem;
    font-weight: 500;
    letter-spacing: .015em;
}

.navbar-toggler {
    color: white;
    border: 1px solid rgba(255,255,255,0.55);
    background: rgba(255,255,255,0.12);
    border-radius: 12px;
    font-size: 1.5rem;
    padding: .3rem .7rem;
    line-height: 1;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 .2rem rgba(255,255,255,.2);
}

.app-nav-links {
    flex-direction: row;
    align-items: center;
    gap: .35rem;
    margin: 0 auto;
    padding: .35rem;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 15px;
    background: rgba(5, 35, 23, .34);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.07);
}

.brand-mark {
    width: 2.65rem;
    height: 2.65rem;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #f7c85e, #f1a91f);
    color: #173c2a;
    border: 1px solid rgba(255,255,255,.38);
    box-shadow: 0 4px 12px rgba(0,0,0,.18);
    font-size: 1.2rem;
}

.btn-nav,
.btn-site,
.btn-logout {
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.22);
    background: rgba(255,255,255,0.08);
    color: white;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    min-height: 2.65rem;
    padding: .5rem .9rem;
    border: 1px solid transparent;
    background: transparent;
    color: #fff;
    font-weight: 750;
    box-shadow: none;
    white-space: nowrap;
    font-size: .84rem;
}

.btn-nav:hover,
.btn-nav:focus-visible {
    background: rgba(255,255,255,.14);
    border-color: rgba(255,255,255,.18);
    color: #fff;
    transform: translateY(-1px);
}

.btn-nav.active {
    background: #fff;
    border-color: #fff;
    color: #164b32;
    box-shadow: 0 4px 12px rgba(0,0,0,.16);
}

.btn-nav.active:hover,
.btn-nav.active:focus-visible {
    background: #fff2c7;
    border-color: #fff2c7;
    color: #103d2b;
}

.user-bar {
    flex-shrink: 0;
    gap: .55rem !important;
}

.btn-site,
.btn-logout {
    min-height: 2.55rem;
    padding: .45rem .85rem;
    border-color: rgba(255,255,255,.46);
    background: rgba(255,255,255,.1);
    color: #fff;
    font-size: .82rem;
    font-weight: 700;
    white-space: nowrap;
}

.btn-public-signup {
    min-height: 2.55rem;
    padding: .45rem .85rem;
    border: 1px solid var(--accent);
    background: var(--accent);
    color: #332400;
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 750;
    white-space: nowrap;
}

.btn-public-signup:hover,
.btn-public-signup:focus-visible {
    border-color: #ffd36b;
    background: #ffd36b;
    color: #332400;
}

.btn-site:hover,
.btn-site:focus-visible,
.btn-logout:hover,
.btn-logout:focus-visible {
    background: rgba(255,255,255,.2);
    border-color: rgba(255,255,255,.8);
    color: #fff;
}

.user-badge {
    background: rgba(7, 39, 26, .32);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 999px;
    padding: 0.55rem 0.8rem;
    font-weight: 700;
    font-size: .72rem;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.app-shell {
    padding-top: 1.5rem;
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-bottom: 1.5rem;
    padding: 1.1rem 1.25rem;
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(255,255,255,0.96), rgba(245,250,246,0.9));
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border);
}

.page-header h4 {
    margin: 0;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.02em;
}

.card-stat {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    padding: 1.25rem 1.25rem 1.1rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbf8 100%);
    transition: transform .18s ease, box-shadow .18s ease;
}
.card-stat:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 36px rgba(22, 72, 47, 0.12);
}
.card-stat .icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(31, 111, 70, 0.1);
    color: var(--primary);
    font-size: 1.4rem;
    flex-shrink: 0;
}
.card-stat .value {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.04em;
}
.card-stat .label {
    color: var(--text-soft);
    font-size: 0.82rem;
    font-weight: 600;
}

.category-pill {
    border-radius: 999px;
    padding: .55rem .95rem;
    border: 1px solid var(--border);
    background: white;
    color: var(--text-soft);
    text-decoration: none;
    font-size: .82rem;
    font-weight: 700;
    transition: all .15s ease;
}
.category-pill.active,
.category-pill:hover {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-color: transparent;
    color: white;
    box-shadow: 0 8px 18px rgba(31, 111, 70, 0.22);
}

.product-card {
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: radial-gradient(circle at top, rgba(59, 161, 109, 0.04), white 60%);
    box-shadow: var(--card-shadow);
    min-height: 220px;
    transition: transform .18s ease, box-shadow .18s ease;
}
.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 38px rgba(22, 72, 47, 0.12);
}
.product-card .badge-alerte { background: #d94a41; }
.product-card .badge-ok { background: var(--primary-light); }

.btn,
.form-control,
.form-select {
    border-radius: 12px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    border-color: var(--primary);
    box-shadow: 0 10px 18px rgba(31, 111, 70, 0.18);
}
.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-color: var(--primary-light);
}

.btn-accent {
    background: linear-gradient(135deg, #f5b942, #f2a900);
    border-color: #f2a900;
    color: white;
    box-shadow: 0 10px 18px rgba(242, 169, 0, 0.24);
}

.form-control,
.form-select {
    border: 1px solid rgba(27, 69, 49, 0.12);
    background: rgba(255,255,255,0.75);
    box-shadow: none;
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(59, 161, 109, 0.45);
    box-shadow: 0 0 0 0.2rem rgba(59, 161, 109, 0.15);
}

.pos-btn {
    border-radius: 18px;
    padding: 2rem 1rem;
    font-size: 1.3rem;
    font-weight: 800;
    border: none;
    box-shadow: var(--card-shadow);
    transition: transform .15s ease;
}
.pos-btn:hover { transform: scale(1.03); }
.pos-btn.depot { background: linear-gradient(135deg, #2c5f2d, #3f8f41); color: white; }
.pos-btn.retrait { background: linear-gradient(135deg, #c62828, #e57373); color: white; }

.solde-caisse {
    background: linear-gradient(135deg, #1b2d1d, #324b39);
    color: white;
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    box-shadow: var(--card-shadow);
}

.cash-balance-label {
    color: rgba(255,255,255,.72);
    font-size: .9rem;
    font-weight: 650;
}

.cash-balance-label i {
    color: #f5c35b;
    margin-right: .35rem;
}

.cash-balance-value {
    margin-top: .2rem;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -.04em;
    line-height: 1.1;
}

.cash-balance-period {
    color: rgba(255,255,255,.92);
    text-align: right;
}

.cash-balance-period > span {
    color: rgba(255,255,255,.65);
    font-size: .82rem;
}

.cash-balance-period > div {
    margin-top: .25rem;
    font-weight: 700;
}

.cash-balance-period i {
    color: #f5c35b;
}

.dashboard-insights {
    padding: clamp(1rem, 2.5vw, 1.5rem);
    border: 1px solid rgba(27, 69, 49, .09);
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(246,250,247,.96));
    box-shadow: 0 16px 38px rgba(22,72,47,.08);
}

.insights-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.section-eyebrow {
    display: inline-block;
    margin-bottom: .3rem;
    color: var(--primary);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.insights-heading h5 {
    color: var(--text);
    font-weight: 800;
    letter-spacing: -.025em;
}

.insights-heading h5 i {
    color: var(--primary-light);
    margin-right: .3rem;
}

.insights-filter {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .5rem;
    flex-wrap: wrap;
}

.insights-filter input[type="date"] {
    width: 150px;
    background: #fff;
}

.insights-filter select {
    width: auto;
    min-width: 180px;
    background: #fff;
}

.filter-separator {
    color: var(--text-soft);
    font-size: .8rem;
}

.insight-stat {
    display: flex;
    align-items: center;
    gap: .9rem;
    height: 100%;
    min-height: 88px;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(27,69,49,.08);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 5px 16px rgba(22,72,47,.045);
}

.insight-stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.8rem;
    height: 2.8rem;
    flex: 0 0 2.8rem;
    border-radius: 14px;
    font-size: 1.2rem;
}

.insight-stat-icon.sales,
.insight-stat-icon.deposits { background: rgba(45,155,105,.13); color: #218354; }
.insight-stat-icon.revenue,
.insight-stat-icon.count { background: rgba(69,136,213,.12); color: #3976bd; }
.insight-stat-icon.entries { background: rgba(229,173,56,.18); color: #a97708; }
.insight-stat-icon.withdrawals { background: rgba(223,102,88,.13); color: #c84e42; }

.insight-stat-label {
    display: block;
    margin-bottom: .2rem;
    color: var(--text-soft);
    font-size: .78rem;
    font-weight: 650;
}

.insight-stat strong {
    display: block;
    color: var(--text);
    font-size: clamp(1.1rem, 2.4vw, 1.45rem);
    font-weight: 800;
    letter-spacing: -.03em;
    overflow-wrap: anywhere;
}

.chart-card {
    min-width: 0;
    padding: 1.15rem;
    border: 1px solid rgba(27,69,49,.08);
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 5px 16px rgba(22,72,47,.045);
}

.chart-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: .5rem;
}

.chart-heading h6 {
    margin-bottom: .2rem;
    color: var(--text);
    font-size: .95rem;
    font-weight: 800;
}

.chart-heading p {
    margin: 0;
    color: var(--text-soft);
    font-size: .76rem;
}

.chart-heading-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    flex: 0 0 2.2rem;
    border-radius: 11px;
    background: rgba(31,111,70,.09);
    color: var(--primary);
}

.chart-canvas {
    position: relative;
    width: 100%;
    height: 280px;
}

.chart-canvas-doughnut {
    max-width: 430px;
    height: 300px;
    margin: 0 auto;
}

.chart-empty {
    display: flex;
    min-height: 245px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    color: var(--text-soft);
    text-align: center;
}

.chart-empty i {
    color: rgba(31,111,70,.35);
    font-size: 2rem;
}

.history-page-header {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 95% 0%, rgba(59,161,109,.13), transparent 30%),
        linear-gradient(135deg, #fff 0%, #f5faf6 100%);
}

.history-page-header h4 i {
    margin-right: .35rem;
    color: var(--primary);
}

.history-page-header .section-eyebrow {
    margin-bottom: .4rem;
}

.history-filter {
    padding: 1.25rem;
    border-radius: 18px;
}

.filter-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: 1rem;
}

.filter-heading h5 {
    color: var(--text);
    font-size: 1rem;
    font-weight: 800;
}

.filter-heading h5 i {
    margin-right: .3rem;
    color: var(--primary);
}

.filter-heading .section-eyebrow {
    margin-bottom: .2rem;
}

.history-table-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    flex-wrap: wrap;
    margin: 1.5rem 0 .75rem;
}

.history-table-heading h5 {
    margin: 0 0 .2rem;
    color: var(--text);
    font-size: 1rem;
    font-weight: 800;
}

.history-table-heading h5 i {
    margin-right: .25rem;
    color: var(--primary);
}

.history-table-heading > div > span {
    color: var(--text-soft);
    font-size: .8rem;
}

.history-period {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .45rem .75rem;
    border: 1px solid rgba(31,111,70,.12);
    border-radius: 999px;
    background: rgba(255,255,255,.8);
    color: var(--primary-dark);
    font-size: .78rem;
    font-weight: 700;
}

.data-table .table {
    margin: 0;
}

.data-table thead th {
    padding: .9rem .85rem;
    white-space: nowrap;
}

.data-table tbody td {
    padding: .8rem .85rem;
    border-color: rgba(27,69,49,.07);
}

.data-table tbody tr {
    transition: background-color .15s ease;
}

.data-table tbody tr:hover {
    background-color: rgba(59,161,109,.055);
}

.data-table tbody td:last-child {
    white-space: nowrap;
}

.auth-card {
    max-width: 420px;
    margin: 4rem auto;
    border-radius: 22px;
    box-shadow: 0 20px 60px rgba(19, 47, 34, 0.12);
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.93);
    overflow: hidden;
}

.auth-card .text-center {
    padding-top: 0.75rem;
}

.login-page,
.register-page {
    min-height: 100vh;
    padding-bottom: 0;
    background:
        radial-gradient(ellipse at 15% 10%, rgba(76, 161, 112, .13), transparent 34%),
        linear-gradient(145deg, #edf5ee, #f8faf7 58%, #e8f1e9);
}

.login-page .app-shell,
.register-page .app-shell {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 2rem;
    padding-bottom: 2rem !important;
}

.login-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
    width: min(100%, 980px);
    min-height: 590px;
    overflow: hidden;
    border: 1px solid rgba(27, 69, 49, .1);
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 30px 90px rgba(22, 72, 47, .16);
}

.register-layout { min-height: 720px; }

.register-form-panel { padding-top: 2.5rem; padding-bottom: 2.5rem; }

.register-form-panel .login-form-heading { margin-bottom: 1.4rem; }

.register-form .mb-3 { margin-bottom: .85rem !important; }

.register-form .login-input { min-height: 2.9rem; }

.login-welcome {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 2rem;
    overflow: hidden;
    padding: clamp(2rem, 5vw, 3.5rem);
    color: #fff;
    background:
        radial-gradient(ellipse at 95% 5%, rgba(91, 184, 130, .32), transparent 43%),
        linear-gradient(150deg, #103d2b, #155635 58%, #1f6f46);
}

.login-brand {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    width: fit-content;
    color: #fff;
    font-size: 1.08rem;
    font-weight: 800;
    letter-spacing: -.02em;
}

.login-brand:hover { color: #fff; }

.login-brand-mark,
.login-mobile-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.7rem;
    height: 2.7rem;
    border-radius: 14px;
    color: #173c2a;
    background: linear-gradient(145deg, #f7c85e, #f1a91f);
    font-size: 1.2rem;
}

.login-welcome-copy,
.login-feature-list {
    position: relative;
    z-index: 1;
}

.login-eyebrow {
    display: inline-block;
    color: var(--primary-light);
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.login-welcome .login-eyebrow { color: #f5c35b; }

.login-welcome-copy h1 {
    max-width: 440px;
    margin: .8rem 0 1rem;
    color: #fff;
    font-size: clamp(2rem, 4vw, 3.15rem);
    font-weight: 800;
    letter-spacing: -.055em;
    line-height: 1.08;
}

.login-welcome-copy p {
    max-width: 390px;
    margin: 0;
    color: rgba(255,255,255,.76);
    font-size: 1rem;
    line-height: 1.7;
}

.login-feature-list {
    display: grid;
    gap: .85rem;
}

.login-feature-list > div {
    display: flex;
    align-items: center;
    gap: .75rem;
    color: rgba(255,255,255,.9);
    font-size: .9rem;
    font-weight: 600;
}

.login-feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 12px;
    color: #f5c35b;
    background: rgba(255,255,255,.08);
}

.login-decoration {
    position: absolute;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 50%;
    pointer-events: none;
}

.login-decoration-one {
    right: -130px;
    bottom: 105px;
    width: 330px;
    height: 330px;
}

.login-decoration-two {
    right: -75px;
    bottom: 160px;
    width: 220px;
    height: 220px;
}

.login-form-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(2rem, 5vw, 4.25rem);
}

.login-form-heading { margin-bottom: 2rem; }

.login-mobile-mark { display: none; margin-bottom: 1.25rem; }

.login-form-heading h2 {
    margin: .45rem 0 .35rem;
    color: var(--text);
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -.045em;
}

.login-form-heading p {
    margin: 0;
    color: var(--text-soft);
}

.login-form .form-label {
    margin-bottom: .5rem;
    color: #31473a;
    font-size: .85rem;
    font-weight: 700;
}

.login-input-wrap { position: relative; }

.login-input-wrap > i:first-child {
    position: absolute;
    top: 50%;
    left: 1rem;
    z-index: 2;
    color: #789183;
    transform: translateY(-50%);
}

.login-input {
    min-height: 3.25rem;
    padding: .75rem 2.8rem;
    border: 1px solid #dfe9e1;
    border-radius: 12px;
    background: #fbfdfb;
    font-size: .9rem;
}

.login-input:focus {
    border-color: var(--primary-light);
    background: #fff;
    box-shadow: 0 0 0 .22rem rgba(59,161,109,.13);
}

.login-password-toggle {
    position: absolute;
    top: 50%;
    right: .75rem;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 0;
    border-radius: 8px;
    color: #708579;
    background: transparent;
    transform: translateY(-50%);
}

.login-password-toggle:hover { color: var(--primary); background: #edf5ee; }

.login-field-error {
    margin-top: .35rem;
    color: #b42318;
    font-size: .78rem;
}

.login-error {
    display: flex;
    align-items: flex-start;
    gap: .55rem;
    border: 0;
    border-radius: 11px;
    font-size: .84rem;
}

.login-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    min-height: 3.2rem;
    margin-top: 1.2rem;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(120deg, var(--primary-dark), var(--primary-light));
    box-shadow: 0 9px 18px rgba(31,111,70,.2);
    font-weight: 750;
}

.login-submit:hover {
    background: linear-gradient(120deg, #124b30, #278354);
    box-shadow: 0 12px 22px rgba(31,111,70,.25);
    transform: translateY(-1px);
}

.login-register {
    margin: 1.5rem 0 0;
    color: var(--text-soft);
    font-size: .86rem;
    text-align: center;
}

.login-register a {
    color: var(--primary);
    font-weight: 750;
}

.login-register a:hover { color: var(--primary-dark); }

.login-security-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    margin-top: 2rem;
    color: #809187;
    font-size: .76rem;
}

.login-security-note i { color: var(--primary-light); }

.profile-choice-card {
    border-radius: 22px;
    border: 1px solid var(--border);
    padding: 2rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all .18s ease;
    background: linear-gradient(180deg, #ffffff, #f6faf7);
    box-shadow: var(--card-shadow);
}
.profile-choice-card:hover {
    border-color: rgba(31, 111, 70, 0.32);
    box-shadow: 0 18px 34px rgba(22, 72, 47, 0.12);
    transform: translateY(-4px);
}
.profile-choice-card i { font-size: 2.8rem; color: var(--primary); }
.profile-choice-card.selected {
    border-color: rgba(31, 111, 70, 0.5);
    box-shadow: 0 18px 34px rgba(22, 72, 47, 0.12);
    background: rgba(31, 111, 70, 0.04);
}

.filter-bar {
    background: white;
    border-radius: 14px;
    padding: 1rem 1.25rem;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border);
}
.badge-operateur {
    border-radius: 999px;
    padding: .35rem .7rem;
    font-size: .75rem;
    font-weight: 700;
}
.badge-operateur.mobile { background: rgba(245, 185, 66, .16); color: #8a6200; }
.badge-operateur.banque { background: rgba(31, 111, 70, .12); color: var(--primary); }

.data-table {
    background: white;
    border-radius: 14px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
    border: 1px solid var(--border);
}
.data-table thead { background: #f3f8f4; }
.data-table th {
    font-size: .76rem;
    text-transform: uppercase;
    color: var(--text-soft);
    letter-spacing: .04em;
    font-weight: 800;
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #8a9891;
    background: rgba(255,255,255,0.5);
    border-radius: var(--radius);
    border: 1px dashed rgba(31, 111, 70, 0.15);
}
.empty-state i {
    font-size: 2.6rem;
    display: block;
    margin-bottom: .5rem;
    color: rgba(31, 111, 70, 0.45);
}

.pagination-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.pagination-summary {
    color: var(--text-soft);
    font-size: .9rem;
}

.pagination-range {
    display: inline-block;
    padding: .55rem .85rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(255,255,255,.75);
}

.pagination {
    gap: .25rem;
}

.pagination .page-link {
    min-width: 2.5rem;
    text-align: center;
    color: var(--primary);
    border-color: var(--border);
    border-radius: 10px;
    font-weight: 700;
}

.pagination .page-item.active .page-link {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.pagination .pagination-direction {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    padding-right: .85rem;
    padding-left: .85rem;
}

.data-table table {
    min-width: 680px;
}

.sale-page-header {
    align-items: flex-end;
    margin-bottom: 1.5rem;
}

.sale-page-header h4 {
    margin: 0 0 .35rem;
    font-weight: 800;
}

.sale-page-header h4 i {
    margin-right: .35rem;
    color: var(--primary);
}

.sale-page-header .section-eyebrow {
    display: block;
    margin-bottom: .35rem;
    color: var(--primary);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.sale-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    align-items: start;
    gap: 1.25rem;
}

.sale-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .85rem;
}

.sale-section-heading h5,
.sale-summary h5 {
    margin: 0 0 .25rem;
    font-weight: 800;
}

.sale-section-heading h5 i {
    margin-right: .35rem;
    color: var(--primary);
}

.sale-section-heading p,
.sale-product-meta {
    font-size: .85rem;
}

.sale-product-count {
    flex: 0 0 auto;
    padding: .4rem .7rem;
    border-radius: 999px;
    background: rgba(31,111,70,.09);
    color: var(--primary-dark);
    font-size: .78rem;
    font-weight: 800;
}

.sale-product-list {
    display: grid;
    gap: .7rem;
}

.sale-search {
    position: relative;
    margin: 1rem 0 .35rem;
}

.sale-search > i {
    position: absolute;
    top: 50%;
    left: 1rem;
    z-index: 2;
    color: var(--primary);
    font-size: 1rem;
    transform: translateY(-50%);
    pointer-events: none;
}

.sale-search .form-control {
    min-height: 3rem;
    padding: .7rem 3rem .7rem 2.8rem;
    border-color: rgba(31,111,70,.15);
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(22,72,47,.045);
}

.sale-search .form-control:focus {
    border-color: rgba(59,161,109,.55);
    box-shadow: 0 0 0 .2rem rgba(59,161,109,.12);
}

.sale-search-clear {
    position: absolute;
    top: 50%;
    right: .65rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.9rem;
    height: 1.9rem;
    border: 0;
    border-radius: 8px;
    background: #eff5f0;
    color: #52665a;
    transform: translateY(-50%);
}

.sale-search-clear:hover {
    background: rgba(31,111,70,.12);
    color: var(--primary-dark);
}

.sale-search-status {
    min-height: 1.2rem;
    margin: 0 0 .5rem;
    color: var(--text-soft);
    font-size: .75rem;
}

.sale-search-empty {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: .3rem;
    padding: 2rem 1rem;
    border: 1px dashed rgba(27,69,49,.17);
    border-radius: 15px;
    background: rgba(255,255,255,.75);
    color: var(--text-soft);
    text-align: center;
}

.sale-search-empty[hidden],
.sale-search-clear[hidden] {
    display: none;
}

.sale-search-empty > i {
    margin-bottom: .25rem;
    color: #8da095;
    font-size: 1.5rem;
}

.sale-search-empty strong {
    color: var(--text);
    font-size: .9rem;
}

.sale-search-empty span {
    font-size: .78rem;
}

.sale-product-card {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) auto auto auto auto;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
    box-shadow: 0 6px 18px rgba(22,72,47,.045);
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.sale-product-card:focus-within,
.sale-product-card:hover {
    border-color: rgba(31,111,70,.24);
    box-shadow: 0 12px 26px rgba(22,72,47,.09);
    transform: translateY(-1px);
}

.sale-product-info {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: .75rem;
}

.sale-product-icon,
.sale-summary-icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 2.65rem;
    height: 2.65rem;
    border-radius: 13px;
    background: rgba(31,111,70,.09);
    color: var(--primary);
    font-size: 1.15rem;
}

.sale-product-copy { min-width: 0; }

.sale-product-copy h6 {
    overflow: hidden;
    margin: 0 0 .2rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sale-product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .3rem .65rem;
    color: var(--text-soft);
}

.sale-product-price,
.sale-product-stock,
.sale-product-subtotal {
    display: grid;
    gap: .2rem;
    white-space: nowrap;
}

.sale-product-price span,
.sale-product-stock span,
.sale-product-subtotal span,
.sale-product-quantity label {
    margin: 0;
    color: var(--text-soft);
    font-size: .7rem;
    font-weight: 700;
}

.sale-product-price strong,
.sale-product-stock strong,
.sale-product-subtotal strong {
    color: var(--text);
    font-size: .88rem;
}

.sale-product-quantity label {
    display: block;
    margin-bottom: .25rem;
}

.sale-quantity-control {
    display: flex;
    align-items: center;
    overflow: hidden;
    border: 1px solid rgba(27,69,49,.15);
    border-radius: 10px;
    background: var(--surface-muted);
}

.sale-quantity-button {
    width: 2rem;
    height: 2.2rem;
    border: 0;
    background: transparent;
    color: var(--primary-dark);
    font-size: 1.1rem;
    font-weight: 800;
}

.sale-quantity-button:hover { background: rgba(31,111,70,.1); }

.sale-quantity-control input {
    width: 2.8rem;
    height: 2.2rem;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    text-align: center;
    font-size: .9rem;
    font-weight: 800;
    appearance: textfield;
}

.sale-quantity-control input::-webkit-inner-spin-button,
.sale-quantity-control input::-webkit-outer-spin-button {
    margin: 0;
    appearance: none;
}

.sale-product-subtotal strong { color: var(--primary-dark); }

.sale-summary {
    position: sticky;
    top: 110px;
    padding: 1.25rem;
    border: 1px solid rgba(31,111,70,.13);
    border-radius: 18px;
    background: linear-gradient(155deg, #fff 0%, #f4faf5 100%);
    box-shadow: var(--card-shadow);
}

.sale-summary-top {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.sale-summary-top .section-eyebrow {
    display: block;
    margin-bottom: .15rem;
    color: var(--primary);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.sale-summary-stats {
    display: grid;
    gap: .7rem;
    margin: 1.2rem 0;
}

.sale-summary-stats > div {
    display: flex;
    justify-content: space-between;
    gap: .75rem;
    color: var(--text-soft);
    font-size: .86rem;
}

.sale-summary-stats strong { color: var(--text); }

.sale-summary-total {
    display: grid;
    gap: .25rem;
    padding: 1rem 0;
    border-top: 1px dashed rgba(27,69,49,.2);
    border-bottom: 1px dashed rgba(27,69,49,.2);
}

.sale-summary-total > span,
.sale-summary-total small {
    color: var(--text-soft);
    font-size: .78rem;
}

.sale-summary-total strong {
    color: var(--primary-dark);
    font-size: 1.7rem;
    letter-spacing: -.04em;
}

.sale-submit {
    width: 100%;
    margin-top: 1rem;
    padding: .75rem;
    border-radius: 11px;
    font-weight: 800;
}

.sale-submit:disabled {
    cursor: not-allowed;
    opacity: .55;
}

.sale-summary-note {
    margin: .8rem 0 0;
    color: var(--text-soft);
    font-size: .74rem;
    text-align: center;
}

.sale-summary-note i { color: var(--primary); }

@media (max-width: 1100px) {
    .sale-product-card {
        grid-template-columns: minmax(170px, 1fr) auto auto;
    }

    .sale-product-subtotal {
        grid-column: 2 / -1;
        justify-self: end;
    }
}

@media (max-width: 850px) {
    .sale-layout { grid-template-columns: minmax(0, 1fr); }
    .sale-summary { position: static; }
}

@media (max-width: 560px) {
    .sale-page-header { align-items: stretch; }
    .sale-page-header > a { align-self: flex-start; }
    .sale-product-card {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: .8rem;
        padding: .85rem;
    }
    .sale-product-info { grid-column: 1 / -1; }
    .sale-product-stock { justify-self: start; }
    .sale-product-subtotal { grid-column: 2; grid-row: 2; }
    .sale-product-quantity { grid-column: 1; grid-row: 3; }
    .sale-product-price { grid-column: 2; grid-row: 3; justify-self: end; }
    .sale-section-heading { align-items: flex-start; }
}

.product-card form {
    min-width: 0;
}

.product-card form .form-control {
    min-width: 0;
}

.btn,
.category-pill,
.page-link {
    transition: color .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

:focus-visible {
    outline: 3px solid rgba(245, 185, 66, .8);
    outline-offset: 2px;
}

@media (max-width: 1199.98px) {
    .app-navbar .navbar-collapse {
        flex-basis: 100%;
        padding-top: .85rem;
    }

    .app-nav-links {
        align-items: stretch;
        margin: .25rem 0 .75rem;
        padding: .65rem;
        background: rgba(5, 35, 23, .34);
    }

    .app-nav-links .btn-nav {
        justify-content: flex-start;
        width: 100%;
    }

    .app-nav-links > .nav-item.dropdown {
        width: 100%;
    }

    .user-bar {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
        padding: .75rem 0 .15rem;
        border-top: 1px solid rgba(255,255,255,.22);
    }
}

@media (min-width: 1200px) {
    .hardware-nav-menu {
        min-width: 13rem;
        padding: .4rem;
        border: 1px solid rgba(27,69,49,.1);
        border-radius: 13px;
        box-shadow: 0 12px 28px rgba(22,72,47,.16);
    }

    .hardware-nav-menu .dropdown-item {
        display: flex;
        align-items: center;
        gap: .55rem;
        padding: .6rem .7rem;
        border-radius: 8px;
        color: var(--text);
        font-size: .82rem;
        font-weight: 650;
    }

    .hardware-nav-menu .dropdown-item i {
        width: 1rem;
        color: var(--primary);
        text-align: center;
    }

    .hardware-nav-menu .dropdown-item:hover,
    .hardware-nav-menu .dropdown-item:focus,
    .hardware-nav-menu .dropdown-item.active {
        background: rgba(31,111,70,.1);
        color: var(--primary-dark);
    }
}

@media (max-width: 767.98px) {
    .login-layout {
        grid-template-columns: minmax(0, 1fr);
        min-height: 0;
    }

    .login-welcome { display: none; }

    .login-mobile-mark { display: inline-flex; }

    .app-body {
        padding-bottom: 104px;
    }

    .app-shell {
        padding-top: .75rem;
    }

    .page-header {
        align-items: stretch;
    }

    .page-header > .d-flex,
    .page-header > .btn {
        width: 100%;
    }

    .page-header > .d-flex .btn {
        flex: 1 1 auto;
    }

    .card-stat {
        padding: 1rem;
    }

    .filter-bar {
        padding: 1rem;
    }

    .pagination-wrap {
        justify-content: center;
    }

    .pagination-summary {
        flex-basis: 100%;
        text-align: center;
    }

    .pagination-range {
        width: 100%;
    }

    .pos-btn {
        padding: 1.35rem 1rem;
    }

    .insights-heading {
        align-items: stretch;
    }

    .insights-filter {
        justify-content: stretch;
    }

    .insights-filter input[type="date"] {
        flex: 1 1 130px;
        width: auto;
        min-width: 0;
    }

    .insights-filter select {
        flex: 1 1 100%;
        width: 100%;
    }

    .insights-filter .btn {
        flex: 1 1 100%;
    }

    .chart-canvas {
        height: 250px;
    }

    .cash-balance-period {
        width: 100%;
        text-align: left;
    }

    .app-footer-inner {
        justify-content: center;
        text-align: center;
        gap: .3rem .85rem;
        min-height: 104px;
        padding-top: .45rem;
        padding-bottom: .45rem;
    }

    .app-footer-brand {
        flex-basis: 100%;
        justify-content: center;
    }

    .app-footer-note {
        flex-basis: 100%;
        justify-content: center;
        font-size: .7rem;
    }

    .app-footer-credit {
        padding-left: 0;
        border-left: 0;
        font-size: .68rem;
    }

    .app-footer-copy {
        padding: .28rem .5rem;
    }

    .history-page-header > div:first-child {
        width: 100%;
    }

    .history-page-header > .d-flex {
        width: 100%;
    }

    .history-page-header > .d-flex .btn {
        flex: 1 1 auto;
    }

    .filter-heading {
        align-items: flex-start;
    }

    .history-period {
        align-self: flex-start;
    }
}

@media (max-width: 576px) {
    .login-layout {
        grid-template-columns: minmax(0, 1fr);
        min-height: 0;
        border-radius: 22px;
    }

    .login-welcome { display: none; }

    .login-form-panel { padding: 2rem 1.5rem; }

    .login-mobile-mark { display: inline-flex; }

    .app-navbar {
        padding: .65rem 0;
    }

    .app-navbar .container {
        gap: .5rem;
    }

    .navbar-brand {
        font-size: 1rem;
    }

    .brand-mark {
        width: 2.35rem;
        height: 2.35rem;
    }

    .app-nav-links {
        gap: .45rem;
    }

    .user-bar .btn-site,
    .user-bar .btn-logout {
        min-height: 2.5rem;
    }

    .page-header {
        padding: 1rem;
    }

    .page-header h4 {
        font-size: 1.1rem;
    }

    .card-stat .value {
        font-size: 1.45rem;
    }

    .auth-card {
        margin: 2rem auto 1rem;
    }

    .solde-caisse {
        padding: 1rem;
    }

    .insights-filter .filter-separator {
        display: none;
    }

    .chart-card {
        padding: .9rem;
    }

    .chart-canvas {
        height: 230px;
    }

    .chart-canvas-doughnut {
        height: 260px;
    }

    .history-filter {
        padding: .9rem;
    }

    .filter-heading {
        flex-direction: column;
    }

    .product-card .d-flex.gap-2 {
        flex-wrap: wrap;
    }

    .product-card form {
        flex-basis: 100%;
    }

    .pagination .page-link {
        min-width: 2.25rem;
        padding: .4rem .55rem;
    }
}

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

.admin-page {
    max-width: 1380px;
    margin: 0 auto;
    padding: .25rem 0 2rem;
}

.admin-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    overflow: hidden;
    min-height: 220px;
    margin-bottom: 1.35rem;
    padding: clamp(1.5rem, 4vw, 2.6rem);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 24px;
    background:
        radial-gradient(circle at 85% 20%, rgba(245,185,66,.22), transparent 25%),
        linear-gradient(120deg, #123e2b 0%, #1b6843 58%, #2a8156 100%);
    box-shadow: 0 20px 42px rgba(17,74,47,.2);
    color: #fff;
}

.admin-hero-content,
.admin-hero-actions {
    position: relative;
    z-index: 1;
}

.admin-hero .section-eyebrow {
    color: #f6c65e;
}

.admin-hero h1 {
    margin: 0 0 .55rem;
    color: #fff;
    font-size: clamp(1.8rem, 4vw, 2.55rem);
    font-weight: 850;
    letter-spacing: -.045em;
}

.admin-hero-content > p:last-child {
    max-width: 560px;
    margin: 0;
    color: rgba(255,255,255,.76);
    font-size: .98rem;
    line-height: 1.65;
}

.admin-hero-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: .65rem;
    flex: 0 0 auto;
}

.btn-admin-report,
.btn-admin-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    min-height: 2.9rem;
    padding: .65rem 1rem;
    border-radius: 12px;
    font-size: .85rem;
    font-weight: 750;
}

.btn-admin-report {
    border: 1px solid #f5bd43;
    background: #f5bd43;
    color: #26371d;
    box-shadow: 0 8px 18px rgba(0,0,0,.12);
}

.btn-admin-report:hover,
.btn-admin-report:focus-visible {
    border-color: #ffd36d;
    background: #ffd36d;
    color: #26371d;
}

.btn-admin-secondary {
    border: 1px solid rgba(255,255,255,.32);
    background: rgba(255,255,255,.08);
    color: #fff;
}

.btn-admin-secondary:hover,
.btn-admin-secondary:focus-visible {
    border-color: rgba(255,255,255,.7);
    background: rgba(255,255,255,.16);
    color: #fff;
}

.admin-hero-decoration {
    position: absolute;
    right: 23%;
    bottom: -3.5rem;
    color: rgba(255,255,255,.055);
    font-size: 15rem;
    line-height: 1;
    pointer-events: none;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 2.4rem;
}

.admin-stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 126px;
    padding: 1.25rem 1.4rem;
    border: 1px solid rgba(27,69,49,.08);
    border-radius: 18px;
    background: linear-gradient(145deg, #fff, #f8fbf8);
    box-shadow: 0 10px 26px rgba(22,72,47,.065);
}

.admin-stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    flex: 0 0 3.25rem;
    border-radius: 16px;
    font-size: 1.4rem;
}

.admin-stat-icon.total { background: rgba(59,128,190,.12); color: #387eb1; }
.admin-stat-icon.pending { background: rgba(232,174,55,.17); color: #a8780a; }
.admin-stat-icon.active { background: rgba(45,155,105,.13); color: #218354; }

.admin-stat-card > div {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: baseline;
    column-gap: .65rem;
}

.admin-stat-label {
    grid-column: 1 / -1;
    color: var(--text-soft);
    font-size: .8rem;
    font-weight: 700;
}

.admin-stat-card strong {
    color: var(--text);
    font-size: 1.9rem;
    font-weight: 850;
    letter-spacing: -.05em;
    line-height: 1.2;
}

.admin-stat-note {
    color: #829087;
    font-size: .73rem;
}

.admin-section {
    margin-top: 2.15rem;
}

.admin-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .9rem;
}

.admin-section-heading .section-eyebrow {
    margin-bottom: .25rem;
}

.admin-section-heading h2 {
    margin: 0 0 .3rem;
    color: var(--text);
    font-size: clamp(1.15rem, 2vw, 1.4rem);
    font-weight: 820;
    letter-spacing: -.025em;
}

.admin-section-heading p {
    margin: 0;
    color: var(--text-soft);
    font-size: .84rem;
}

.admin-count {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    flex: 0 0 auto;
    padding: .48rem .75rem;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 750;
    white-space: nowrap;
}

.pending-count {
    border-color: rgba(183,127,12,.14);
    background: rgba(245,185,66,.15);
    color: #8b650d;
}

.active-count {
    border-color: rgba(31,111,70,.12);
    background: rgba(59,161,109,.11);
    color: var(--primary-dark);
}

.admin-table-card {
    overflow: hidden;
    border: 1px solid rgba(27,69,49,.09);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(22,72,47,.06);
}

.admin-table {
    min-width: 790px;
    color: var(--text);
    font-size: .84rem;
}

.admin-table thead th {
    padding: .9rem 1rem;
    border-bottom: 1px solid rgba(27,69,49,.09);
    background: #f6f9f6;
    color: #68796f;
    font-size: .69rem;
    font-weight: 800;
    letter-spacing: .065em;
    text-transform: uppercase;
    white-space: nowrap;
}

.admin-table tbody td {
    padding: .95rem 1rem;
    border-color: rgba(27,69,49,.065);
}

.admin-table tbody tr:last-child td {
    border-bottom: 0;
}

.admin-table tbody tr {
    transition: background-color .15s ease;
}

.admin-table tbody tr:hover {
    background: #f8fbf8;
}

.admin-site-name,
.admin-responsable {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
}

.admin-site-name {
    color: #25382d;
    font-weight: 750;
}

.admin-site-name i {
    color: var(--primary);
}

.admin-responsable {
    color: #506258;
}

.admin-responsable i {
    color: #91a297;
    font-size: 1rem;
}

.admin-muted {
    color: #96a29a;
}

.admin-activity {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .37rem .6rem;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 750;
    white-space: nowrap;
}

.admin-activity.shop {
    background: rgba(68,126,196,.1);
    color: #356da8;
}

.admin-activity.hardware {
    background: rgba(31,111,70,.1);
    color: #216b46;
}

.admin-status {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    color: #24764d;
    font-size: .75rem;
    font-weight: 750;
    white-space: nowrap;
}

.admin-status > span {
    width: .48rem;
    height: .48rem;
    border-radius: 50%;
    background: #36a269;
    box-shadow: 0 0 0 3px rgba(54,162,105,.12);
}

.admin-row-actions {
    display: inline-flex;
    justify-content: flex-end;
    gap: .4rem;
}

.btn-admin-approve,
.btn-admin-manage,
.btn-admin-suspend {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    min-height: 2.15rem;
    padding: .4rem .7rem;
    border-radius: 9px;
    font-size: .75rem;
    font-weight: 750;
    white-space: nowrap;
}

.btn-admin-approve {
    border-color: #218354;
    background: #218354;
    color: #fff;
}

.btn-admin-approve:hover,
.btn-admin-approve:focus-visible {
    border-color: #17663f;
    background: #17663f;
    color: #fff;
}

.btn-admin-manage {
    border: 1px solid rgba(31,111,70,.2);
    background: rgba(31,111,70,.07);
    color: #1d6943;
}

.btn-admin-manage:hover,
.btn-admin-manage:focus-visible {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
}

.btn-admin-suspend {
    border: 1px solid rgba(198,73,65,.2);
    background: #fff;
    color: #b7463e;
}

.btn-admin-suspend:hover,
.btn-admin-suspend:focus-visible {
    border-color: #b7463e;
    background: #b7463e;
    color: #fff;
}

.admin-empty-state {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    min-height: 150px;
    padding: 1.5rem;
}

.admin-empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.2rem;
    height: 3.2rem;
    flex: 0 0 3.2rem;
    border-radius: 16px;
    background: rgba(45,155,105,.12);
    color: #218354;
    font-size: 1.5rem;
}

.admin-empty-icon.muted {
    background: #f0f4f1;
    color: #829087;
}

.admin-empty-state h3 {
    margin: 0 0 .25rem;
    color: var(--text);
    font-size: .98rem;
    font-weight: 800;
}

.admin-empty-state p {
    margin: 0;
    color: var(--text-soft);
    font-size: .82rem;
}

@media (max-width: 767.98px) {
    .admin-page {
        padding-top: 0;
    }

    .admin-hero {
        align-items: flex-start;
        flex-direction: column;
        gap: 1.3rem;
        min-height: auto;
        padding: 1.5rem;
        border-radius: 19px;
    }

    .admin-hero-actions {
        width: 100%;
    }

    .admin-hero-decoration {
        right: -1.7rem;
        bottom: 1rem;
        font-size: 9rem;
    }

    .admin-stats {
        grid-template-columns: 1fr;
        gap: .7rem;
        margin-bottom: 2rem;
    }

    .admin-stat-card {
        min-height: 92px;
        padding: .9rem 1rem;
    }

    .admin-stat-icon {
        width: 2.8rem;
        height: 2.8rem;
        flex-basis: 2.8rem;
        border-radius: 13px;
    }

    .admin-section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-count {
        align-self: flex-start;
    }

    .admin-table-card {
        border-radius: 14px;
    }

    .admin-empty-state {
        justify-content: flex-start;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    .admin-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .admin-stat-card {
        align-items: flex-start;
        flex-direction: column;
        gap: .65rem;
    }
}

.dashboard-shortcuts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.dashboard-shortcut {
    display: flex;
    align-items: center;
    gap: .9rem;
    min-width: 0;
    padding: 1.1rem 1.2rem;
    border: 1px solid rgba(27,69,49,.08);
    border-radius: 17px;
    background: linear-gradient(135deg, #fff, #f7faf7);
    box-shadow: 0 9px 24px rgba(22,72,47,.06);
    color: var(--text);
    transition: transform .18s ease, box-shadow .18s ease;
}

.dashboard-shortcut:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(22,72,47,.1);
    color: var(--primary-dark);
}

.dashboard-shortcut-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.9rem;
    height: 2.9rem;
    flex: 0 0 2.9rem;
    border-radius: 14px;
    background: rgba(31,111,70,.1);
    color: var(--primary);
    font-size: 1.25rem;
}

.dashboard-shortcut-icon.report {
    background: rgba(245,185,66,.2);
    color: #9a6b08;
}

.dashboard-shortcut > span:nth-child(2) {
    display: grid;
    gap: .2rem;
    min-width: 0;
}

.dashboard-shortcut strong {
    font-size: .9rem;
    font-weight: 800;
}

.dashboard-shortcut small {
    color: var(--text-soft);
    font-size: .77rem;
}

.dashboard-shortcut-arrow {
    margin-left: auto;
    color: #93a49a;
    font-size: 1.55rem;
}

.product-form-page,
.catalog-page,
.stock-report-page {
    max-width: 1380px;
    margin: 0 auto;
    padding: .25rem 0 2rem;
}

.product-form-hero,
.catalog-hero,
.stock-report-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    overflow: hidden;
    margin-bottom: 1.3rem;
    padding: clamp(1.45rem, 4vw, 2.25rem);
    border-radius: 22px;
    background:
        radial-gradient(circle at 86% 18%, rgba(245,185,66,.2), transparent 24%),
        linear-gradient(120deg, #103d2b 0%, #155635 60%, #2a8156 100%);
    box-shadow: 0 17px 36px rgba(16,61,43,.16);
    color: white;
}

.product-form-hero > div,
.catalog-hero > div,
.stock-report-hero > div,
.btn-product-back,
.btn-stock-report-back {
    position: relative;
    z-index: 1;
}

.product-form-hero .section-eyebrow,
.catalog-hero .section-eyebrow,
.stock-report-hero .section-eyebrow {
    color: #f6c65e;
}

.product-form-hero h1,
.catalog-hero h1,
.stock-report-hero h1 {
    margin: .25rem 0 .45rem;
    color: white;
    font-size: clamp(1.75rem, 3.5vw, 2.4rem);
    font-weight: 850;
    letter-spacing: -.045em;
}

.product-form-hero p,
.catalog-hero p,
.stock-report-hero p {
    max-width: 650px;
    margin: 0;
    color: rgba(255,255,255,.77);
    font-size: .9rem;
}

.product-form-decoration {
    position: absolute;
    right: 26%;
    bottom: -3rem;
    color: rgba(255,255,255,.06);
    font-size: 12rem;
}

.btn-product-back,
.btn-stock-report-back,
.btn-catalog-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    min-height: 2.7rem;
    padding: .55rem .9rem;
    border: 1px solid rgba(255,255,255,.4);
    border-radius: 11px;
    background: rgba(255,255,255,.08);
    color: white;
    font-size: .82rem;
    font-weight: 750;
    white-space: nowrap;
}

.btn-product-back:hover,
.btn-stock-report-back:hover,
.btn-catalog-secondary:hover {
    border-color: white;
    background: white;
    color: var(--primary-dark);
}

.product-form-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.75fr) minmax(250px, .8fr);
    align-items: start;
    gap: 1.1rem;
}

.product-form-card,
.product-aside-card,
.catalog-filters,
.stock-report-filter-card,
.stock-report-results {
    border: 1px solid rgba(27,69,49,.085);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 11px 30px rgba(22,72,47,.065);
}

.product-form-card {
    padding: clamp(1.1rem, 3vw, 1.8rem);
}

.product-form-card-heading,
.stock-report-filter-heading {
    display: flex;
    align-items: center;
    gap: .85rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(27,69,49,.08);
}

.product-form-heading-icon,
.stock-report-filter-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    flex: 0 0 3rem;
    border-radius: 15px;
    background: rgba(31,111,70,.1);
    color: var(--primary);
    font-size: 1.25rem;
}

.product-form-card-heading h2,
.stock-report-filter-heading h2 {
    margin: 0 0 .25rem;
    color: var(--text);
    font-size: 1.05rem;
    font-weight: 820;
}

.product-form-card-heading p,
.stock-report-filter-heading p {
    margin: 0;
    color: var(--text-soft);
    font-size: .8rem;
}

.product-form-section-label {
    display: flex;
    align-items: center;
    gap: .45rem;
    margin-bottom: .75rem;
    color: var(--primary-dark);
    font-size: .79rem;
    font-weight: 800;
    letter-spacing: .03em;
}

.product-form-section-label i {
    font-size: .95rem;
}

.product-field-label {
    margin-bottom: .35rem;
    color: #455a4c;
    font-size: .78rem;
    font-weight: 750;
}

.required-mark {
    color: #c3473c;
}

.product-form-card .form-control,
.product-form-card .form-select {
    min-height: 2.8rem;
    background-color: #fbfdfb;
}

.product-form-card .input-group-text {
    border-color: rgba(27,69,49,.12);
    background: #f1f6f2;
    color: #63766a;
    font-size: .77rem;
    font-weight: 700;
}

.product-stock-note {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    margin-top: 1.2rem;
    padding: .85rem 1rem;
    border: 1px solid rgba(57,126,177,.13);
    border-radius: 12px;
    background: rgba(69,136,213,.07);
    color: #42617b;
    font-size: .79rem;
    line-height: 1.5;
}

.product-stock-note i {
    margin-top: .1rem;
    color: #3976bd;
}

.product-form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .55rem;
    margin-top: 1.4rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(27,69,49,.08);
}

.product-form-submit {
    min-height: 2.8rem;
    padding: .6rem 1rem;
    font-weight: 750;
}

.product-aside-card {
    margin-bottom: 1rem;
    padding: 1.2rem;
}

.product-aside-highlight {
    background:
        radial-gradient(circle at 100% 0, rgba(245,185,66,.18), transparent 36%),
        linear-gradient(145deg, #f4faf5, white);
}

.product-aside-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.7rem;
    height: 2.7rem;
    margin-bottom: .8rem;
    border-radius: 13px;
    background: rgba(245,185,66,.2);
    color: #9a6b08;
    font-size: 1.15rem;
}

.product-aside-card h2,
.product-aside-card h3 {
    margin: 0 0 .55rem;
    color: var(--text);
    font-size: .98rem;
    font-weight: 820;
}

.product-aside-card h3 i {
    margin-right: .3rem;
    color: var(--primary);
}

.product-aside-card p,
.product-aside-card li {
    color: var(--text-soft);
    font-size: .79rem;
    line-height: 1.6;
}

.product-aside-card p {
    margin: 0;
}

.product-aside-card ul {
    display: grid;
    gap: .45rem;
    margin: .7rem 0 1rem;
    padding-left: 1.1rem;
}

.product-category-link {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    color: var(--primary);
    font-size: .8rem;
    font-weight: 750;
}

.catalog-hero {
    margin-bottom: 1rem;
}

.catalog-hero-actions {
    display: flex;
    gap: .55rem;
    flex: 0 0 auto;
}

.btn-catalog-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    min-height: 2.7rem;
    padding: .55rem .9rem;
    border: 1px solid var(--accent);
    border-radius: 11px;
    background: var(--accent);
    color: #332400;
    font-size: .82rem;
    font-weight: 800;
    white-space: nowrap;
}

.btn-catalog-primary:hover {
    border-color: #ffd36b;
    background: #ffd36b;
    color: #332400;
}

.catalog-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .8rem;
    margin-bottom: 1rem;
}

.catalog-summary > div {
    display: flex;
    align-items: center;
    gap: .75rem;
    min-height: 84px;
    padding: .9rem 1rem;
    border: 1px solid rgba(27,69,49,.08);
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(22,72,47,.05);
}

.catalog-summary-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.55rem;
    height: 2.55rem;
    flex: 0 0 2.55rem;
    border-radius: 12px;
    background: rgba(69,136,213,.11);
    color: #3976bd;
    font-size: 1.1rem;
}

.catalog-summary-icon.alert {
    background: rgba(229,173,56,.17);
    color: #a97708;
}

.catalog-summary-icon.success {
    background: rgba(45,155,105,.13);
    color: #218354;
}

.catalog-summary > div > span:last-child {
    display: grid;
    gap: .1rem;
}

.catalog-summary small {
    color: var(--text-soft);
    font-size: .72rem;
    font-weight: 650;
}

.catalog-summary strong {
    color: var(--text);
    font-size: 1.3rem;
    font-weight: 850;
    line-height: 1.15;
}

.catalog-filters {
    padding: 1.15rem;
}

.catalog-filter-heading,
.catalog-results-heading,
.stock-report-results-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .8rem;
}

.catalog-filter-heading {
    margin-bottom: 1rem;
}

.catalog-filter-heading .section-eyebrow,
.catalog-results-heading .section-eyebrow,
.stock-report-results-heading .section-eyebrow {
    margin-bottom: .2rem;
}

.catalog-filter-heading h2,
.catalog-results-heading h2,
.stock-report-results-heading h2 {
    margin: 0;
    color: var(--text);
    font-size: 1rem;
    font-weight: 820;
}

.catalog-filter-heading h2 i {
    color: var(--primary);
}

.catalog-filters .form-label {
    margin-bottom: .3rem;
    color: #53675b;
    font-size: .75rem;
    font-weight: 750;
}

.catalog-filters .input-group-text {
    border-color: rgba(27,69,49,.12);
    background: #f7faf7;
    color: var(--primary);
}

.catalog-results-heading {
    margin: 1.5rem 0 .8rem;
}

.catalog-results-heading p {
    margin: .2rem 0 0;
    color: var(--text-soft);
    font-size: .78rem;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.catalog-product-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: 1.1rem;
    border: 1px solid rgba(27,69,49,.085);
    border-radius: 18px;
    background: linear-gradient(160deg, #fff 0%, #fbfdfb 100%);
    box-shadow: 0 9px 24px rgba(22,72,47,.055);
    transition: transform .18s ease, box-shadow .18s ease;
}

.catalog-product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(22,72,47,.1);
}

.catalog-product-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    margin-bottom: .9rem;
}

.catalog-product-symbol {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 13px;
    background: rgba(31,111,70,.09);
    color: var(--primary);
    font-size: 1.15rem;
}

.catalog-stock-badge {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .35rem .55rem;
    border-radius: 999px;
    font-size: .68rem;
    font-weight: 750;
    white-space: nowrap;
}

.catalog-stock-badge.low {
    background: rgba(217,74,65,.1);
    color: #b7463e;
}

.catalog-stock-badge.ok {
    background: rgba(45,155,105,.11);
    color: #24764d;
}

.catalog-product-title {
    min-height: 78px;
}

.catalog-product-title > span {
    color: var(--primary);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.catalog-product-title h3 {
    overflow: hidden;
    margin: .2rem 0;
    color: var(--text);
    font-size: 1rem;
    font-weight: 820;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.catalog-product-title small {
    color: #849289;
    font-size: .73rem;
}

.catalog-product-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .55rem;
    margin-top: .8rem;
    padding: .75rem 0;
    border-top: 1px solid rgba(27,69,49,.07);
    border-bottom: 1px solid rgba(27,69,49,.07);
}

.catalog-product-metrics > div {
    display: grid;
    gap: .2rem;
}

.catalog-product-metrics > div + div {
    padding-left: .65rem;
    border-left: 1px solid rgba(27,69,49,.07);
}

.catalog-product-metrics span {
    color: var(--text-soft);
    font-size: .68rem;
    font-weight: 650;
}

.catalog-product-metrics strong {
    color: var(--text);
    font-size: .94rem;
    font-weight: 820;
}

.catalog-product-metrics strong small {
    color: #829087;
    font-size: .65rem;
    font-weight: 650;
}

.catalog-threshold {
    margin: .6rem 0 .8rem;
    color: #78887e;
    font-size: .7rem;
}

.catalog-threshold i {
    color: #b5861e;
}

.catalog-product-actions {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-top: auto;
}

.catalog-adjust-form {
    display: flex;
    min-width: 0;
    flex: 1 1 auto;
    gap: .3rem;
}

.catalog-adjust-form input {
    width: 58px;
    min-width: 45px;
}

.catalog-adjust-form select {
    min-width: 0;
    padding-right: 1.55rem;
}

.catalog-icon-actions {
    display: flex;
    gap: .25rem;
}

.catalog-icon-actions .btn {
    width: 2.15rem;
    min-width: 2.15rem;
    height: 2.15rem;
    padding: .35rem;
    border: 1px solid rgba(27,69,49,.1);
    color: #5b6f62;
}

.catalog-icon-actions .btn:hover {
    background: rgba(31,111,70,.09);
    color: var(--primary);
}

.catalog-empty {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    flex-direction: column;
    padding: 3rem 1rem;
    border: 1px dashed rgba(27,69,49,.18);
    border-radius: 18px;
    background: rgba(255,255,255,.72);
    text-align: center;
}

.catalog-empty > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    margin-bottom: .9rem;
    border-radius: 17px;
    background: rgba(31,111,70,.09);
    color: var(--primary);
    font-size: 1.6rem;
}

.catalog-empty h3 {
    margin: 0 0 .35rem;
    color: var(--text);
    font-size: 1rem;
    font-weight: 820;
}

.catalog-empty p {
    margin: 0 0 1rem;
    color: var(--text-soft);
    font-size: .82rem;
}

.stock-report-hero {
    margin-bottom: 1rem;
}

.stock-report-filter-card {
    padding: clamp(1rem, 2.5vw, 1.4rem);
}

.stock-report-filter-heading {
    margin-bottom: 1.1rem;
}

.stock-report-filter-card .form-label {
    margin-bottom: .35rem;
    color: #53675b;
    font-size: .76rem;
    font-weight: 750;
}

.stock-report-alert-filter {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    cursor: pointer;
    color: #4d6054;
    font-size: .79rem;
}

.stock-report-alert-filter input {
    position: absolute;
    opacity: 0;
}

.stock-report-alert-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.2rem;
    height: 1.2rem;
    border: 1px solid rgba(27,69,49,.25);
    border-radius: 5px;
    background: white;
    color: transparent;
}

.stock-report-alert-filter input:checked + .stock-report-alert-check {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
}

.stock-report-alert-filter input:focus-visible + .stock-report-alert-check {
    outline: 3px solid rgba(59,161,109,.28);
}

.stock-report-alert-filter input:disabled ~ span {
    opacity: .55;
    cursor: not-allowed;
}

.stock-report-results {
    margin-top: 1.25rem;
    padding: clamp(.85rem, 2vw, 1.25rem);
}

.stock-report-results-heading {
    align-items: center;
    margin-bottom: 1rem;
}

.stock-report-results-heading h2 {
    font-size: 1.15rem;
}

.stock-report-results-heading p {
    margin: .25rem 0 0;
    color: var(--text-soft);
    font-size: .78rem;
}

.stock-report-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
}

.btn-stock-print,
.btn-stock-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    min-height: 2.5rem;
    padding: .5rem .8rem;
    border-radius: 10px;
    font-size: .78rem;
    font-weight: 750;
    white-space: nowrap;
}

.btn-stock-print {
    border: 1px solid rgba(31,111,70,.2);
    background: rgba(31,111,70,.07);
    color: var(--primary-dark);
}

.btn-stock-print:hover {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
}

.btn-stock-download {
    border: 1px solid var(--primary);
    background: var(--primary);
    color: white;
}

.btn-stock-download:hover {
    border-color: var(--primary-dark);
    background: var(--primary-dark);
    color: white;
}

.stock-report-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: .6rem;
    margin-bottom: 1rem;
}

.stock-report-summary > div {
    display: grid;
    gap: .3rem;
    padding: .75rem .85rem;
    border: 1px solid rgba(27,69,49,.07);
    border-radius: 12px;
    background: #f8fbf8;
}

.stock-report-summary span {
    color: var(--text-soft);
    font-size: .69rem;
    font-weight: 650;
}

.stock-report-summary span i {
    margin-right: .2rem;
    color: var(--primary);
}

.stock-report-summary strong {
    color: var(--text);
    font-size: 1rem;
    font-weight: 850;
}

.stock-report-table-wrap {
    border: 1px solid rgba(27,69,49,.08);
    border-radius: 13px;
}

.stock-report-table {
    min-width: 800px;
    font-size: .79rem;
}

.stock-report-table thead th {
    padding: .8rem .75rem;
    border-bottom: 1px solid rgba(27,69,49,.08);
    background: #f4f8f4;
    color: #68796f;
    font-size: .66rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.stock-report-table tbody td {
    padding: .75rem;
    border-color: rgba(27,69,49,.06);
    white-space: nowrap;
}

.stock-report-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    min-height: 100px;
    color: var(--text-soft);
    white-space: normal;
}

.stock-report-empty i {
    color: #92a196;
    font-size: 1.3rem;
}

.stock-report-print-hint {
    margin: .65rem 0 0;
    color: #75857a;
    font-size: .72rem;
}

.stock-report-print-hint i {
    color: var(--primary);
}

@media (max-width: 991.98px) {
    .product-form-layout {
        grid-template-columns: 1fr;
    }

    .product-form-aside {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .8rem;
    }

    .product-aside-card {
        margin-bottom: 0;
    }

    .catalog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .dashboard-shortcuts {
        grid-template-columns: 1fr;
        gap: .7rem;
    }

    .product-form-page,
    .catalog-page,
    .stock-report-page {
        padding-top: 0;
    }

    .product-form-hero,
    .catalog-hero,
    .stock-report-hero {
        align-items: flex-start;
        flex-direction: column;
        padding: 1.35rem;
        border-radius: 18px;
    }

    .product-form-decoration {
        right: -1rem;
        bottom: -.6rem;
        font-size: 8rem;
    }

    .catalog-hero-actions {
        width: 100%;
        flex-wrap: wrap;
    }

    .catalog-hero-actions > .btn {
        flex: 1 1 auto;
    }

    .product-form-aside {
        grid-template-columns: 1fr;
    }

    .catalog-summary {
        gap: .45rem;
    }

    .catalog-summary > div {
        align-items: flex-start;
        flex-direction: column;
        gap: .45rem;
        min-height: 105px;
        padding: .7rem;
    }

    .catalog-summary-icon {
        width: 2rem;
        height: 2rem;
        flex-basis: 2rem;
        font-size: .9rem;
    }

    .catalog-summary small {
        font-size: .65rem;
    }

    .catalog-summary strong {
        font-size: 1.05rem;
    }

    .catalog-grid {
        grid-template-columns: 1fr;
    }

    .catalog-filter-heading,
    .catalog-results-heading,
    .stock-report-results-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .stock-report-actions {
        width: 100%;
    }

    .stock-report-actions > .btn {
        flex: 1 1 auto;
    }
}

@media print {
    .app-navbar,
    .app-footer,
    .stock-report-hero,
    .stock-report-filter-card,
    .stock-report-actions,
    .pagination-wrap {
        display: none !important;
    }
}

.category-page {
    max-width: 1240px;
    margin: 0 auto;
    padding: .25rem 0 2rem;
}

.category-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    overflow: hidden;
    margin-bottom: 1rem;
    padding: clamp(1.4rem, 4vw, 2.2rem);
    border-radius: 21px;
    background:
        radial-gradient(circle at 88% 15%, rgba(245,185,66,.2), transparent 24%),
        linear-gradient(120deg, #103d2b 0%, #155635 58%, #2a8156 100%);
    box-shadow: 0 17px 36px rgba(16,61,43,.16);
    color: white;
}

.category-hero > div,
.category-back-button {
    position: relative;
    z-index: 1;
}

.category-hero .section-eyebrow {
    color: #f6c65e;
}

.category-hero h1 {
    margin: .25rem 0 .45rem;
    color: white;
    font-size: clamp(1.7rem, 3.5vw, 2.35rem);
    font-weight: 850;
    letter-spacing: -.045em;
}

.category-hero p {
    max-width: 620px;
    margin: 0;
    color: rgba(255,255,255,.77);
    font-size: .9rem;
}

.category-hero-decoration {
    position: absolute;
    right: 25%;
    bottom: -3.1rem;
    color: rgba(255,255,255,.055);
    font-size: 12rem;
    pointer-events: none;
}

.category-back-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    min-height: 2.7rem;
    padding: .55rem .9rem;
    border: 1px solid rgba(255,255,255,.4);
    border-radius: 11px;
    background: rgba(255,255,255,.08);
    color: white;
    font-size: .82rem;
    font-weight: 750;
    white-space: nowrap;
}

.category-back-button:hover {
    border-color: white;
    background: white;
    color: var(--primary-dark);
}

.category-overview {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .8rem;
    margin-bottom: 1rem;
}

.category-overview-card {
    display: flex;
    align-items: center;
    gap: .75rem;
    min-height: 82px;
    padding: .85rem 1rem;
    border: 1px solid rgba(27,69,49,.08);
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(22,72,47,.05);
}

.category-overview-icon,
.category-heading-icon,
.category-list-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.7rem;
    height: 2.7rem;
    flex: 0 0 2.7rem;
    border-radius: 13px;
    background: rgba(31,111,70,.1);
    color: var(--primary);
    font-size: 1.15rem;
}

.category-overview-icon.products {
    background: rgba(69,136,213,.11);
    color: #3976bd;
}

.category-overview-card > span:last-child {
    display: grid;
    gap: .1rem;
}

.category-overview-card small {
    color: var(--text-soft);
    font-size: .73rem;
    font-weight: 650;
}

.category-overview-card strong {
    color: var(--text);
    font-size: 1.25rem;
    font-weight: 850;
    line-height: 1.1;
}

.category-layout {
    display: grid;
    grid-template-columns: minmax(280px, .82fr) minmax(0, 1.4fr);
    align-items: start;
    gap: 1rem;
}

.category-form-card,
.category-list-section {
    min-width: 0;
    border: 1px solid rgba(27,69,49,.085);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 11px 30px rgba(22,72,47,.065);
}

.category-form-card {
    padding: 1.25rem;
}

.category-card-heading {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: 1.2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(27,69,49,.08);
}

.category-card-heading h2,
.category-list-heading h2 {
    margin: 0 0 .2rem;
    color: var(--text);
    font-size: 1rem;
    font-weight: 820;
}

.category-card-heading p {
    margin: 0;
    color: var(--text-soft);
    font-size: .77rem;
}

.category-field-label {
    color: #455a4c;
    font-size: .78rem;
    font-weight: 750;
}

.category-form-card .form-control {
    min-height: 2.8rem;
    background: #fbfdfb;
}

.category-create-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    min-height: 2.8rem;
    font-weight: 750;
}

.category-form-tip {
    display: flex;
    align-items: flex-start;
    gap: .5rem;
    margin-top: 1rem;
    padding: .75rem .8rem;
    border: 1px solid rgba(245,185,66,.23);
    border-radius: 11px;
    background: rgba(245,185,66,.1);
    color: #775915;
    font-size: .74rem;
    line-height: 1.45;
}

.category-form-tip i {
    margin-top: .05rem;
    color: #a8780a;
}

.category-list-section {
    padding: 1.25rem;
}

.category-list-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: .9rem;
}

.category-list-heading .section-eyebrow {
    margin-bottom: .2rem;
}

.category-list-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    height: 2rem;
    padding: 0 .5rem;
    border-radius: 999px;
    background: rgba(31,111,70,.09);
    color: var(--primary-dark);
    font-size: .78rem;
    font-weight: 800;
}

.category-list {
    display: grid;
    gap: .6rem;
}

.category-list-card {
    display: flex;
    align-items: center;
    gap: .75rem;
    min-width: 0;
    padding: .8rem;
    border: 1px solid rgba(27,69,49,.075);
    border-radius: 13px;
    background: linear-gradient(135deg, #fff, #f9fbf9);
    transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}

.category-list-card:hover {
    transform: translateY(-1px);
    border-color: rgba(31,111,70,.2);
    box-shadow: 0 7px 17px rgba(22,72,47,.06);
}

.category-list-icon {
    width: 2.45rem;
    height: 2.45rem;
    flex-basis: 2.45rem;
    border-radius: 11px;
    font-size: 1rem;
}

.category-list-copy {
    min-width: 0;
}

.category-list-copy h3 {
    overflow: hidden;
    margin: 0 0 .12rem;
    color: var(--text);
    font-size: .86rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.category-list-copy p {
    margin: 0;
    color: var(--text-soft);
    font-size: .72rem;
}

.category-product-count {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    flex: 0 0 auto;
    margin-left: auto;
    padding: .38rem .55rem;
    border-radius: 999px;
    background: rgba(69,136,213,.1);
    color: #3976bd;
    font-size: .7rem;
    font-weight: 750;
}

.category-empty-state {
    display: flex;
    align-items: center;
    flex-direction: column;
    padding: 2rem 1rem;
    border: 1px dashed rgba(27,69,49,.16);
    border-radius: 14px;
    background: #fbfdfb;
    text-align: center;
}

.category-empty-state > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    margin-bottom: .7rem;
    border-radius: 14px;
    background: rgba(31,111,70,.09);
    color: var(--primary);
    font-size: 1.25rem;
}

.category-empty-state h3 {
    margin: 0 0 .3rem;
    color: var(--text);
    font-size: .9rem;
    font-weight: 800;
}

.category-empty-state p {
    max-width: 330px;
    margin: 0;
    color: var(--text-soft);
    font-size: .76rem;
}

@media (max-width: 767.98px) {
    .category-page {
        padding-top: 0;
    }

    .category-hero {
        align-items: flex-start;
        flex-direction: column;
        padding: 1.35rem;
        border-radius: 18px;
    }

    .category-hero-decoration {
        right: -1rem;
        bottom: -.5rem;
        font-size: 8rem;
    }

    .category-layout {
        grid-template-columns: 1fr;
    }
}
