:root {
    --maxi-red: #e2050c;
    --maxi-red-dark: #b9040a;
    --maxi-green: #176436;
    --maxi-green-2: #2d8a50;
    --maxi-green-soft: #eaf4ed;
    --maxi-gold: #e7b416;
    --maxi-orange: #d05d11;
    --maxi-ink: #20251f;
    --maxi-text: #2b332d;
    --maxi-muted: #6e7b72;
    --maxi-bg: #f4f6f4;
    --maxi-card: #ffffff;
    --maxi-border: #e4e9e5;
    --maxi-shadow: 0 12px 34px rgba(23, 46, 30, .08);
    --maxi-shadow-lg: 0 24px 70px rgba(23, 46, 30, .14);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--maxi-bg); }
body { margin: 0; min-height: 100vh; background: var(--maxi-bg); color: var(--maxi-text); font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; }
button, input, select, textarea { font: inherit; }

.btn { font-weight: 750; border-radius: 12px; }
.btn-brand { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; padding: 10px 18px; border: 1px solid var(--maxi-green); background: var(--maxi-green); color: #fff; box-shadow: 0 8px 22px rgba(23, 100, 54, .18); }
.btn-brand:hover, .btn-brand:focus { background: #10562d; border-color: #10562d; color: #fff; }
.btn-primary { --bs-btn-bg: var(--maxi-green); --bs-btn-border-color: var(--maxi-green); --bs-btn-hover-bg: #10562d; --bs-btn-hover-border-color: #10562d; --bs-btn-active-bg: #0f4d29; --bs-btn-active-border-color: #0f4d29; }
.btn-dark { --bs-btn-bg: var(--maxi-ink); --bs-btn-border-color: var(--maxi-ink); --bs-btn-hover-bg: #111511; --bs-btn-hover-border-color: #111511; }

.eyebrow { display: inline-flex; align-items: center; gap: 6px; color: var(--maxi-green); font-size: .72rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.page-heading-block { margin-bottom: 18px; }
.page-title { margin: 3px 0 0; color: var(--maxi-ink); font-size: clamp(1.45rem, 4vw, 2rem); font-weight: 900; letter-spacing: -.035em; }
.page-subtitle { margin-top: 5px; color: var(--maxi-muted); font-size: .94rem; }
.section-title { margin: 0; color: var(--maxi-ink); font-size: 1rem; font-weight: 900; }
.section-heading-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 24px 2px 12px; }
.section-heading-row > a { color: var(--maxi-green); font-size: .82rem; font-weight: 800; }

.app-header { position: sticky; top: 0; z-index: 1020; background: rgba(255,255,255,.97); border-bottom: 1px solid rgba(223, 230, 224, .92); box-shadow: 0 5px 22px rgba(25, 45, 31, .07); backdrop-filter: blur(14px); }
.brand-rule { display: grid; grid-template-columns: 52% 29% 19%; height: 4px; }
.brand-rule span:nth-child(1) { background: var(--maxi-green); }
.brand-rule span:nth-child(2) { background: var(--maxi-gold); }
.brand-rule span:nth-child(3) { background: var(--maxi-red); }
.app-header-inner { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 9px 20px; }
.brand { display: flex; align-items: center; min-width: 0; gap: 11px; color: inherit; }
.brand:hover { color: inherit; }
.brand-logo { width: 118px; height: 49px; display: flex; align-items: center; flex: 0 0 auto; }
.brand-logo img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 4px 7px rgba(0,0,0,.08)); }
.brand-copy { min-width: 0; line-height: 1.05; }
.brand-copy strong { display: block; color: var(--maxi-ink); font-size: .98rem; font-weight: 900; letter-spacing: -.015em; }
.brand-copy small { display: block; margin-top: 5px; color: var(--maxi-muted); font-size: .7rem; font-weight: 700; }
.header-context { display: flex; align-items: center; gap: 10px; }
.store-chip { min-width: 230px; max-width: 360px; display: flex; align-items: center; gap: 10px; padding: 8px 11px; border: 1px solid var(--maxi-border); border-radius: 13px; background: #fff; color: var(--maxi-text); transition: .2s ease; }
.store-chip:hover { border-color: #c5d7ca; background: #fbfdfb; color: var(--maxi-text); }
.store-chip > i:first-child { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; background: var(--maxi-green-soft); color: var(--maxi-green); }
.store-chip span { min-width: 0; flex: 1; line-height: 1.05; }
.store-chip small, .store-chip strong { display: block; }
.store-chip small { color: var(--maxi-muted); font-size: .63rem; font-weight: 750; text-transform: uppercase; letter-spacing: .07em; }
.store-chip strong { overflow: hidden; margin-top: 4px; color: var(--maxi-ink); font-size: .77rem; font-weight: 850; white-space: nowrap; text-overflow: ellipsis; }
.store-chip-arrow { color: #8b978e; font-size: .74rem; }
.header-actions { display: flex; gap: 7px; }
.icon-btn { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--maxi-border); border-radius: 12px; background: #fff; color: var(--maxi-green); font-size: 1.08rem; transition: .2s ease; }
.icon-btn:hover { border-color: #bfd2c4; background: var(--maxi-green-soft); color: var(--maxi-green); }
.icon-btn-danger { color: var(--maxi-red); }
.icon-btn-danger:hover { border-color: #f0c3c5; background: #fff1f1; color: var(--maxi-red-dark); }
.flash-wrap { padding-top: 14px; }
.app-main { min-height: calc(100vh - 74px); padding-bottom: 92px; }
.page-wrap { max-width: 1240px; margin: 0 auto; padding: 24px 18px; }
.mobile-wrap { max-width: 740px; margin: 0 auto; padding: 20px 14px 28px; }

.hero-card { position: relative; overflow: hidden; padding: 24px; border: 1px solid rgba(23,100,54,.12); border-radius: 24px; background: linear-gradient(135deg, #164f2e 0%, #176436 62%, #267a45 100%); color: #fff; box-shadow: 0 20px 48px rgba(23, 100, 54, .20); }
.hero-card::before { content: ''; position: absolute; right: -65px; top: -85px; width: 230px; height: 230px; border: 34px solid rgba(231,180,22,.12); border-radius: 50%; }
.hero-card::after { content: ''; position: absolute; right: 18px; bottom: -48px; width: 130px; height: 130px; border-radius: 50%; background: rgba(226,5,12,.11); }
.hero-card > * { position: relative; z-index: 1; }
.hero-topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.hero-kicker { display: inline-flex; align-items: center; gap: 7px; padding: 6px 9px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; background: rgba(255,255,255,.10); font-size: .72rem; font-weight: 850; }
.hero-store { max-width: 52%; overflow: hidden; color: rgba(255,255,255,.82); font-size: .72rem; font-weight: 760; white-space: nowrap; text-overflow: ellipsis; }
.hero-card h1 { margin: 0; font-size: 1.75rem; font-weight: 900; letter-spacing: -.04em; }
.hero-card p { max-width: 500px; margin: 7px 0 21px; color: rgba(255,255,255,.78); font-size: .92rem; }
.btn-report { width: 100%; min-height: 60px; display: flex; align-items: center; justify-content: flex-start; gap: 11px; padding: 8px 12px; border: 0; border-radius: 16px; background: #fff; color: var(--maxi-ink); font-weight: 900; box-shadow: 0 12px 28px rgba(8, 52, 27, .18); }
.btn-report:hover { color: var(--maxi-ink); transform: translateY(-1px); }
.btn-report-icon { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 12px; background: var(--maxi-red); color: #fff; }
.btn-report > span:nth-child(2) { flex: 1; text-align: left; }
.btn-report > i:last-child { color: var(--maxi-green); }

.stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; margin-top: 13px; }
.stat-card { min-height: 92px; display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--maxi-border); border-radius: 18px; background: #fff; box-shadow: 0 8px 22px rgba(23, 46, 30, .05); }
.stat-icon { width: 40px; height: 40px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 12px; font-size: 1.05rem; }
.stat-card .value { color: var(--maxi-ink); font-size: 1.55rem; font-weight: 900; line-height: 1; }
.stat-card .label { margin-top: 5px; color: var(--maxi-muted); font-size: .76rem; font-weight: 750; }
.stat-open .stat-icon { background: var(--maxi-green-soft); color: var(--maxi-green); }
.stat-critical .stat-icon { background: #fff0f0; color: var(--maxi-red); }
.stat-solved .stat-icon { background: #fff8df; color: #9c7600; }
.stat-total .stat-icon { background: #f0f2f0; color: #4b574e; }

.case-card { position: relative; display: flex; overflow: hidden; margin-bottom: 10px; border: 1px solid var(--maxi-border); border-radius: 18px; background: #fff; color: inherit; box-shadow: 0 7px 20px rgba(23, 46, 30, .045); transition: transform .2s ease, box-shadow .2s ease; }
.case-card:hover { color: inherit; transform: translateY(-2px); box-shadow: var(--maxi-shadow); }
.case-accent { width: 5px; flex: 0 0 auto; border-radius: 0; background: var(--maxi-green); }
.case-accent.priority-critical { background: var(--maxi-red); }
.case-accent.priority-high { background: var(--maxi-orange); }
.case-accent.priority-medium { background: var(--maxi-gold); }
.case-accent.priority-low { background: var(--maxi-green-2); }
.case-content { min-width: 0; flex: 1; padding: 15px 15px 14px; }
.case-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.case-number { color: var(--maxi-green); font-size: .73rem; font-weight: 900; letter-spacing: .04em; }
.case-title { margin-top: 3px; color: var(--maxi-ink); font-size: .95rem; font-weight: 850; }
.case-meta { display: flex; flex-wrap: wrap; gap: 7px 13px; margin-top: 10px; color: var(--maxi-muted); font-size: .77rem; }
.case-meta i { color: #819087; }
.badge-soft { display: inline-flex; align-items: center; padding: 6px 9px; border-radius: 999px; font-size: .68rem; font-weight: 850; white-space: nowrap; }
.status-new { background: #edf5ff; color: #255f9f; }
.status-reviewed { background: #f2efff; color: #6651a4; }
.status-assigned { background: #f5effc; color: #76508f; }
.status-progress { background: #fff7dc; color: #906d00; }
.status-pending { background: #fff0e7; color: #9d4f1c; }
.status-solved { background: var(--maxi-green-soft); color: var(--maxi-green); }
.status-closed { background: #eef1ef; color: #4f5d54; }
.status-rejected { background: #fff0f0; color: #b51e24; }
.status-reopened { background: #fff0f6; color: #a42960; }
.priority-critical { background: #fff0f0; color: #b51e24; }
.priority-high { background: #fff0e7; color: #9d4f1c; }
.priority-medium { background: #fff7dc; color: #876600; }
.priority-low { background: var(--maxi-green-soft); color: var(--maxi-green); }

.form-card, .panel-card, .table-card, .chart-card { border: 1px solid var(--maxi-border); background: #fff; box-shadow: 0 9px 26px rgba(23,46,30,.05); }
.form-card, .panel-card { border-radius: 20px; padding: 19px; }
.form-label { margin-bottom: 7px; color: #48564c; font-size: .8rem; font-weight: 850; }
.form-control, .form-select { min-height: 50px; border: 1px solid #ccd5cf; border-radius: 13px; background-color: #fff; color: var(--maxi-text); }
.form-control::placeholder { color: #a0aaa3; }
textarea.form-control { min-height: 122px; resize: vertical; }
.form-control:focus, .form-select:focus { border-color: var(--maxi-green-2); box-shadow: 0 0 0 .2rem rgba(23,100,54,.11); }
.form-check-input:checked { background-color: var(--maxi-green); border-color: var(--maxi-green); }
.nav-pills .nav-link { border-radius: 10px; color: #58665d; font-weight: 800; }
.nav-pills .nav-link.active { background: var(--maxi-green); }

.selected-store-card { display: flex; align-items: center; gap: 11px; margin-bottom: 13px; padding: 12px 13px; border: 1px solid #d9e7dc; border-radius: 16px; background: #f9fcfa; }
.selected-store-icon { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 11px; background: var(--maxi-green-soft); color: var(--maxi-green); }
.selected-store-card > span:nth-child(2) { min-width: 0; flex: 1; line-height: 1.1; }
.selected-store-card small, .selected-store-card strong { display: block; }
.selected-store-card small { color: var(--maxi-muted); font-size: .65rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.selected-store-card strong { overflow: hidden; margin-top: 4px; color: var(--maxi-ink); font-size: .83rem; font-weight: 900; white-space: nowrap; text-overflow: ellipsis; }
.selected-store-card a { color: var(--maxi-green); font-size: .77rem; font-weight: 850; }
.report-form { padding: 0; overflow: hidden; }
.form-section { padding: 20px; border-bottom: 1px solid #edf0ed; }
.form-section:last-of-type { border-bottom: 0; }
.form-section-title { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; color: var(--maxi-ink); font-size: .91rem; font-weight: 900; }
.form-section-title > span { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; background: var(--maxi-green); color: #fff; font-size: .72rem; }
.location-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.location-radio { position: absolute; opacity: 0; pointer-events: none; }
.location-option { min-height: 70px; display: flex; align-items: center; gap: 9px; padding: 10px; border: 1px solid var(--maxi-border); border-radius: 14px; background: #fff; color: #465149; font-size: .79rem; font-weight: 800; cursor: pointer; transition: .16s ease; }
.location-option:hover { border-color: #bdcec1; background: #fbfdfb; }
.location-icon { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 10px; background: #f1f5f2; color: var(--maxi-green); font-size: 1rem; }
.location-radio:checked + .location-option { border-color: var(--maxi-green); background: var(--maxi-green-soft); box-shadow: inset 0 0 0 1px var(--maxi-green); color: #174728; }
.location-radio:checked + .location-option .location-icon { background: var(--maxi-green); color: #fff; }
.photo-picker { border: 1.5px dashed #b9c8bd; border-radius: 16px; background: #fafcfb; text-align: center; }
.photo-picker > label { min-height: 130px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 20px; cursor: pointer; }
.photo-picker > label strong { color: var(--maxi-ink); font-size: .88rem; }
.photo-picker > label small { color: var(--maxi-muted); font-size: .72rem; }
.photo-picker-icon { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 3px; border-radius: 14px; background: var(--maxi-red); color: #fff; font-size: 1.25rem; box-shadow: 0 9px 22px rgba(226,5,12,.18); }
.photo-preview { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 0 12px 12px; }
.photo-preview:empty { display: none; }
.photo-thumb { overflow: hidden; aspect-ratio: 1/1; border-radius: 11px; background: #e5eae6; }
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.report-submit { min-height: 58px; margin: 0 20px 20px; width: calc(100% - 40px) !important; border-radius: 15px; font-size: .94rem; }
.store-switch-card { max-width: 520px; }

.photo-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.photo-gallery a { display: block; overflow: hidden; aspect-ratio: 4/3; border-radius: 14px; background: #e5eae6; }
.photo-gallery img { width: 100%; height: 100%; object-fit: cover; }
.timeline { position: relative; padding-left: 24px; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: #e0e7e2; }
.timeline-item { position: relative; padding-bottom: 18px; }
.timeline-item::before { content: ''; position: absolute; left: -21px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--maxi-green); box-shadow: 0 0 0 4px var(--maxi-green-soft); }
.timeline-item strong { display: block; color: var(--maxi-ink); }
.timeline-item small { color: var(--maxi-muted); }
.empty-state { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 34px 24px; color: var(--maxi-muted); text-align: center; }
.empty-state strong { color: var(--maxi-ink); }
.empty-icon { margin-bottom: 5px; color: #9eaaa1; font-size: 2rem; }

.mobile-nav { position: fixed; left: 50%; bottom: max(10px, env(safe-area-inset-bottom)); z-index: 1030; width: min(calc(100% - 24px), 700px); height: 66px; display: grid; grid-template-columns: 1fr 78px 1fr; align-items: center; padding: 0 22px; border: 1px solid rgba(218,226,220,.94); border-radius: 22px; background: rgba(255,255,255,.97); box-shadow: 0 17px 46px rgba(23,46,30,.18); transform: translateX(-50%); backdrop-filter: blur(14px); }
.mobile-nav > a { display: flex; flex-direction: column; align-items: center; gap: 2px; color: #6d7b71; font-size: .7rem; font-weight: 750; text-align: center; }
.mobile-nav > a:hover { color: var(--maxi-green); }
.mobile-nav > a i { font-size: 1.14rem; }
.mobile-nav .mobile-nav-main { width: 58px; height: 58px; display: grid; place-items: center; margin: -23px auto 0; border: 4px solid #fff; border-radius: 19px; background: var(--maxi-green); color: #fff; box-shadow: 0 10px 25px rgba(23,100,54,.30); }
.mobile-nav .mobile-nav-main:hover { color: #fff; background: #10562d; }
.mobile-nav .mobile-nav-main i { font-size: 1.5rem; }

.admin-shell { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: calc(100vh - 74px); }
.admin-sidebar { position: sticky; top: 74px; height: calc(100vh - 74px); display: flex; flex-direction: column; padding: 22px 14px 14px; border-right: 1px solid var(--maxi-border); background: #fff; }
.admin-sidebar-title { padding: 4px 10px 18px; }
.admin-sidebar-title span, .admin-sidebar-title strong { display: block; }
.admin-sidebar-title span { color: var(--maxi-muted); font-size: .67rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.admin-sidebar-title strong { margin-top: 3px; color: var(--maxi-ink); font-size: 1rem; font-weight: 900; }
.admin-sidebar nav { display: flex; flex-direction: column; gap: 4px; }
.admin-sidebar a { display: flex; align-items: center; gap: 11px; padding: 11px 12px; border-radius: 11px; color: #66736a; font-size: .86rem; font-weight: 800; }
.admin-sidebar a i { width: 21px; color: #7e8b82; font-size: 1rem; text-align: center; }
.admin-sidebar a:hover { background: #f5f8f5; color: var(--maxi-ink); }
.admin-sidebar a.active { background: var(--maxi-green-soft); color: var(--maxi-green); }
.admin-sidebar a.active i { color: var(--maxi-green); }
.admin-sidebar-footer { margin-top: auto; padding-top: 14px; border-top: 1px solid #eef1ef; }
.admin-content { min-width: 0; padding: 28px; }
.admin-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
.kpi { position: relative; overflow: hidden; min-height: 112px; display: flex; align-items: center; gap: 13px; padding: 18px; border: 1px solid var(--maxi-border); border-radius: 18px; background: #fff; box-shadow: 0 8px 24px rgba(23,46,30,.05); }
.kpi::after { content: ''; position: absolute; right: -18px; top: -18px; width: 72px; height: 72px; border-radius: 50%; background: rgba(23,100,54,.045); }
.kpi-icon { width: 44px; height: 44px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 13px; font-size: 1.08rem; }
.kpi-label { color: var(--maxi-muted); font-size: .72rem; font-weight: 800; }
.kpi-value { margin-top: 3px; color: var(--maxi-ink); font-size: 1.75rem; font-weight: 900; line-height: 1; }
.kpi-green .kpi-icon { background: var(--maxi-green-soft); color: var(--maxi-green); }
.kpi-red .kpi-icon { background: #fff0f0; color: var(--maxi-red); }
.kpi-gold .kpi-icon { background: #fff8df; color: #947000; }
.kpi-dark .kpi-icon { background: #f0f2f0; color: var(--maxi-ink); }
.chart-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; margin-top: 13px; }
.chart-card { min-height: 350px; padding: 19px; border-radius: 18px; }
.chart-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; color: var(--maxi-ink); font-size: .88rem; font-weight: 900; }
.chart-title i { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; background: #f2f5f2; color: var(--maxi-green); }
.chart-canvas-wrap { position: relative; height: 280px; }
.table-card { overflow: hidden; border-radius: 18px; }
.table > :not(caption) > * > * { padding: .88rem .92rem; border-color: #edf0ed; }
.table thead th { background: #f8faf8; color: #738078; font-size: .7rem; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.table tbody td { color: #445047; font-size: .84rem; }
.filters { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }

.login-body { background: #eef2ef; }
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 30px; background: radial-gradient(circle at 12% 6%, rgba(231,180,22,.12), transparent 24%), radial-gradient(circle at 88% 92%, rgba(23,100,54,.11), transparent 30%), linear-gradient(180deg, #f7f9f7 0%, #edf2ee 100%); }
.login-shell { width: min(100%, 1080px); min-height: 650px; display: grid; grid-template-columns: 1.06fr .94fr; overflow: hidden; border: 1px solid rgba(208,220,211,.92); border-radius: 30px; background: #fff; box-shadow: 0 34px 90px rgba(24,53,34,.16); }
.login-brand-panel { position: relative; overflow: hidden; display: flex; align-items: center; padding: 58px 54px; background: linear-gradient(145deg, #0e3c25 0%, #155b34 48%, #176436 100%); color: #fff; }
.login-brand-panel::before { content: ''; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(255,255,255,.035), transparent 46%); pointer-events: none; }
.login-brand-glow { position: absolute; border-radius: 50%; pointer-events: none; }
.login-brand-glow-a { width: 330px; height: 330px; right: -145px; top: -120px; border: 58px solid rgba(231,180,22,.11); }
.login-brand-glow-b { width: 260px; height: 260px; left: -120px; bottom: -115px; background: rgba(226,5,12,.10); }
.login-brand-content { position: relative; z-index: 1; width: 100%; max-width: 470px; }
.login-logo-lockup { width: min(100%, 315px); margin-bottom: 35px; }
.login-logo-lockup img { display: block; width: 100%; height: auto; filter: drop-shadow(0 16px 22px rgba(0,0,0,.20)); }
.login-module-badge { width: max-content; display: inline-flex; align-items: center; gap: 9px; padding: 7px 11px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; background: rgba(255,255,255,.075); color: rgba(255,255,255,.92); font-size: .69rem; font-weight: 850; letter-spacing: .025em; }
.login-module-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--maxi-gold); box-shadow: 0 0 0 4px rgba(231,180,22,.12); }
.login-brand-panel h1 { max-width: 410px; margin: 18px 0 10px; font-size: clamp(2rem, 3.1vw, 2.7rem); font-weight: 900; line-height: 1.03; letter-spacing: -.055em; }
.login-brand-panel > .login-brand-content > p { max-width: 420px; margin: 0; color: rgba(255,255,255,.73); font-size: .93rem; line-height: 1.65; }
.login-brand-features { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 31px; }
.login-brand-features > div { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border: 1px solid rgba(255,255,255,.095); border-radius: 14px; background: rgba(255,255,255,.05); }
.login-brand-features i { width: 35px; height: 35px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 10px; background: rgba(255,255,255,.09); color: #f3d553; font-size: 1rem; }
.login-brand-features span { min-width: 0; }
.login-brand-features strong, .login-brand-features small { display: block; }
.login-brand-features strong { color: #fff; font-size: .76rem; font-weight: 850; }
.login-brand-features small { margin-top: 2px; color: rgba(255,255,255,.58); font-size: .68rem; }
.login-brand-footer { margin-top: 30px; color: rgba(255,255,255,.42); font-size: .67rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.login-form-panel { position: relative; display: flex; align-items: center; padding: 58px 62px; background: #fff; }
.login-form-panel::before { content: ''; position: absolute; left: 0; top: 0; width: 4px; height: 100%; background: linear-gradient(180deg, var(--maxi-green) 0 58%, var(--maxi-gold) 58% 78%, var(--maxi-red) 78% 100%); opacity: .9; }
.login-form-wrap { width: 100%; max-width: 405px; margin: 0 auto; }
.login-mobile-logo { display: none; }
.login-heading { margin-bottom: 29px; }
.login-heading h2 { margin: 6px 0 7px; color: var(--maxi-ink); font-size: 2rem; font-weight: 900; letter-spacing: -.045em; }
.login-heading p { margin: 0; color: var(--maxi-muted); font-size: .88rem; }
.login-alert { margin-bottom: 20px; border: 1px solid #f1c9cb; border-radius: 13px; background: #fff5f5; color: #9e2429; font-size: .8rem; }
.login-form .form-label { margin-bottom: 8px; }
.input-icon-wrap { position: relative; }
.input-icon-wrap > i { position: absolute; left: 16px; top: 50%; z-index: 2; color: #7b8c80; transform: translateY(-50%); pointer-events: none; }
.input-icon-wrap .form-control, .input-icon-wrap .form-select { min-height: 55px; padding-left: 45px; border-color: #ced8d0; border-radius: 14px; background-color: #fbfcfb; box-shadow: none; }
.input-icon-wrap .form-control:focus, .input-icon-wrap .form-select:focus { border-color: #5e9d75; background: #fff; box-shadow: 0 0 0 .22rem rgba(23,100,54,.10); }
.input-icon-wrap .form-select { padding-right: 40px; }
.login-submit { min-height: 56px; justify-content: space-between; margin-top: 2px; padding: 10px 17px; border-radius: 14px; font-size: .9rem; }
.login-submit span { flex: 1; text-align: center; }
.login-security { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 22px; color: #8a978e; font-size: .68rem; font-weight: 700; text-align: center; }
.login-security i { color: var(--maxi-green); }

@media (max-width: 1050px) {
    .admin-content { padding: 22px; }
    .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 991px) {
    .store-chip { min-width: 190px; max-width: 270px; }
    .admin-shell { display: block; }
    .admin-sidebar { position: sticky; top: 74px; z-index: 1010; height: auto; display: flex; flex-direction: row; align-items: center; overflow-x: auto; gap: 5px; padding: 9px 11px; border-right: 0; border-bottom: 1px solid var(--maxi-border); white-space: nowrap; }
    .admin-sidebar-title { display: none; }
    .admin-sidebar nav { flex-direction: row; gap: 4px; }
    .admin-sidebar-footer { margin: 0 0 0 auto; padding: 0 0 0 5px; border: 0; }
    .admin-sidebar a { margin: 0; padding: 9px 10px; }
    .admin-content { padding: 18px 15px 26px; }
    .chart-grid { grid-template-columns: 1fr; }
    .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .login-page { padding: 16px; }
    .login-shell { width: min(100%, 520px); min-height: 0; grid-template-columns: 1fr; }
    .login-brand-panel { display: none; }
    .login-form-panel { padding: 38px 34px; }
    .login-form-panel::before { width: 100%; height: 4px; background: linear-gradient(90deg, var(--maxi-green) 0 58%, var(--maxi-gold) 58% 78%, var(--maxi-red) 78% 100%); }
    .login-mobile-logo { display: block; width: min(100%, 245px); margin: 0 auto 29px; }
    .login-mobile-logo img { display: block; width: 100%; height: auto; filter: drop-shadow(0 10px 16px rgba(17,59,34,.12)); }
    .login-heading { text-align: center; }
}

@media (max-width: 720px) {
    .app-header-inner { min-height: 66px; padding: 8px 12px; }
    .brand-logo { width: 98px; height: 42px; }
    .brand-copy small { display: none; }
    .brand-copy strong { font-size: .88rem; }
    .store-chip { min-width: 0; max-width: 46vw; padding: 7px 8px; }
    .store-chip > i:first-child { width: 29px; height: 29px; }
    .store-chip small { display: none; }
    .store-chip strong { margin-top: 0; font-size: .7rem; }
    .store-chip-arrow { display: none; }
    .header-actions { gap: 5px; }
    .icon-btn { width: 38px; height: 38px; }
    .admin-page-head { align-items: flex-start; flex-direction: column; }
    .admin-page-head .btn { width: 100%; }
}

@media (max-width: 575px) {
    .mobile-wrap { padding: 16px 12px 25px; }
    .hero-card { padding: 20px; border-radius: 21px; }
    .hero-card h1 { font-size: 1.55rem; }
    .hero-topline { margin-bottom: 18px; }
    .hero-store { max-width: 48%; }
    .stat-grid { gap: 8px; }
    .stat-card { min-height: 82px; gap: 9px; padding: 11px; border-radius: 15px; }
    .stat-icon { width: 34px; height: 34px; border-radius: 10px; }
    .stat-card .value { font-size: 1.35rem; }
    .location-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .location-option { min-height: 66px; padding: 8px; font-size: .74rem; }
    .location-icon { width: 31px; height: 31px; }
    .form-section { padding: 17px; }
    .report-submit { margin: 0 17px 17px; width: calc(100% - 34px) !important; }
    .photo-gallery { grid-template-columns: 1fr 1fr; }
    .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .kpi { min-height: 98px; align-items: flex-start; flex-direction: column; gap: 8px; padding: 13px; }
    .kpi-icon { width: 35px; height: 35px; border-radius: 10px; }
    .kpi-value { font-size: 1.45rem; }
    .chart-card { min-height: 325px; padding: 15px; }
    .chart-canvas-wrap { height: 260px; }
    .filters { grid-template-columns: 1fr; }
    .login-form-panel { padding: 27px 21px; }
    .login-mobile-logo { width: 205px; margin-bottom: 25px; }
    .login-heading h2 { font-size: 1.6rem; }
}

@media (max-width: 430px) {
    .brand-copy { display: none; }
    .store-chip { max-width: 50vw; }
    .app-header-inner { gap: 7px; }
    .location-grid { grid-template-columns: 1fr 1fr; }
}

.admin-nav-section { margin: 17px 11px 6px; color: #9aa49d; font-size: .62rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.admin-mini-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.admin-mini-kpi { min-height: 88px; display: flex; flex-direction: column; justify-content: center; padding: 15px 17px; border: 1px solid var(--maxi-border); border-radius: 16px; background: #fff; box-shadow: 0 7px 20px rgba(23,46,30,.045); }
.admin-mini-kpi span { color: var(--maxi-muted); font-size: .7rem; font-weight: 800; }
.admin-mini-kpi strong { margin-top: 4px; color: var(--maxi-ink); font-size: 1.5rem; font-weight: 900; line-height: 1; }
.panel-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid #edf1ee; }
.panel-card-heading > div { min-width: 0; }
.panel-card-heading strong, .panel-card-heading span { display: block; }
.panel-card-heading strong { color: var(--maxi-ink); font-size: 1rem; font-weight: 900; }
.panel-card-heading span { margin-top: 4px; color: var(--maxi-muted); font-size: .78rem; }
.panel-card-heading > i { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 12px; background: var(--maxi-green-soft); color: var(--maxi-green); font-size: 1.05rem; }
.admin-create-card { border-top: 4px solid var(--maxi-green); }
.admin-filter-bar { display: grid; grid-template-columns: minmax(260px, 1fr) 220px auto auto; gap: 9px; padding: 10px; border: 1px solid var(--maxi-border); border-radius: 15px; background: #fff; }
.admin-search { position: relative; }
.admin-search > i { position: absolute; left: 13px; top: 50%; z-index: 2; color: #8c978f; transform: translateY(-50%); }
.admin-search .form-control { padding-left: 38px; }
.admin-table td { vertical-align: middle; }
.user-cell { min-width: 240px; display: flex; align-items: center; gap: 11px; }
.user-cell > div:last-child { min-width: 0; }
.user-cell strong, .user-cell span, .user-cell small { display: block; }
.user-cell strong { overflow: hidden; color: var(--maxi-ink); font-size: .84rem; font-weight: 850; white-space: nowrap; text-overflow: ellipsis; }
.user-cell span { margin-top: 2px; color: var(--maxi-muted); font-size: .7rem; }
.user-cell small { margin-top: 2px; color: #929d95; font-size: .67rem; }
.user-avatar { width: 37px; height: 37px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 11px; background: linear-gradient(135deg, var(--maxi-green), #2d8a50); color: #fff; font-size: .85rem; font-weight: 900; box-shadow: 0 6px 16px rgba(23,100,54,.18); }
.user-avatar-lg { width: 54px; height: 54px; border-radius: 15px; font-size: 1.15rem; }
.role-pill { display: inline-flex; align-items: center; padding: 6px 9px; border: 1px solid #dfe8e1; border-radius: 999px; background: #f7faf7; color: #526158; font-size: .68rem; font-weight: 850; white-space: nowrap; }
.status-toggle { min-width: 78px; padding: 6px 9px; border: 1px solid transparent; border-radius: 999px; font-size: .67rem; font-weight: 900; line-height: 1; }
.status-toggle.is-on { border-color: #cde4d4; background: #edf8f0; color: #1e7040; }
.status-toggle.is-off { border-color: #e5e8e6; background: #f5f6f5; color: #7c8780; }
.status-toggle:disabled { opacity: .65; cursor: not-allowed; }
.status-toggle.static { display: inline-flex; justify-content: center; }
.admin-action-btn { min-width: 82px; border-radius: 9px; font-weight: 800; }
.admin-empty { padding: 28px; color: var(--maxi-muted); text-align: center; }
.back-link { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 7px; color: var(--maxi-green); font-size: .76rem; font-weight: 850; }
.back-link:hover { color: #10562d; }
.user-edit-card { max-width: 980px; }
.user-edit-hero { display: flex; align-items: center; gap: 13px; margin: -2px -2px 20px; padding: 3px 2px 18px; border-bottom: 1px solid #edf1ee; }
.user-edit-hero strong, .user-edit-hero span { display: block; }
.user-edit-hero strong { color: var(--maxi-ink); font-size: 1rem; font-weight: 900; }
.user-edit-hero span { margin-top: 3px; color: var(--maxi-muted); font-size: .75rem; }
.admin-form-section { padding: 20px 0; border-bottom: 1px solid #edf1ee; }
.admin-form-section:first-of-type { padding-top: 2px; }
.admin-form-title { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 16px; }
.admin-form-title > i { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 10px; background: var(--maxi-green-soft); color: var(--maxi-green); }
.admin-form-title strong, .admin-form-title span { display: block; }
.admin-form-title strong { color: var(--maxi-ink); font-size: .88rem; font-weight: 900; }
.admin-form-title span { margin-top: 2px; color: var(--maxi-muted); font-size: .72rem; }
.switch-row { min-height: 61px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 12px 14px; border: 1px solid var(--maxi-border); border-radius: 13px; background: #fbfcfb; cursor: pointer; }
.switch-row span { min-width: 0; }
.switch-row strong, .switch-row small { display: block; }
.switch-row strong { color: var(--maxi-ink); font-size: .8rem; font-weight: 850; }
.switch-row small { margin-top: 3px; color: var(--maxi-muted); font-size: .7rem; }
.switch-row input { position: absolute; opacity: 0; pointer-events: none; }
.switch-row > i { position: relative; width: 42px; height: 24px; flex: 0 0 auto; border-radius: 999px; background: #cfd6d1; transition: .2s ease; }
.switch-row > i::after { content: ''; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(0,0,0,.16); transition: .2s ease; }
.switch-row input:checked + i { background: var(--maxi-green); }
.switch-row input:checked + i::after { transform: translateX(18px); }
.switch-row.is-disabled { opacity: .72; cursor: default; }
.admin-form-actions { display: flex; justify-content: flex-end; gap: 9px; padding-top: 19px; }
.settings-card { max-width: 900px; }
.photo-retired { min-height: 150px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 15px; border: 1px dashed #d8ded9; border-radius: 14px; background: #f7f8f7; color: #8a958d; text-align: center; }
.photo-retired i { font-size: 1.4rem; }
.photo-retired strong { color: #667169; font-size: .75rem; }
.photo-retired span { font-size: .65rem; }
.admin-quick-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 13px; }
.admin-quick-card { min-height: 118px; display: flex; flex-direction: column; justify-content: space-between; padding: 16px; border: 1px solid var(--maxi-border); border-radius: 17px; background: #fff; color: inherit; box-shadow: 0 7px 20px rgba(23,46,30,.045); transition: .2s ease; }
.admin-quick-card:hover { border-color: #cbdacf; color: inherit; transform: translateY(-2px); box-shadow: var(--maxi-shadow); }
.admin-quick-card i { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: var(--maxi-green-soft); color: var(--maxi-green); }
.admin-quick-card strong { display: block; color: var(--maxi-ink); font-size: .82rem; font-weight: 900; }
.admin-quick-card span { display: block; margin-top: 2px; color: var(--maxi-muted); font-size: .69rem; }

@media (max-width: 1050px) {
    .admin-mini-kpis, .admin-quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 991px) {
    .admin-nav-section { display: none; }
    .admin-filter-bar { grid-template-columns: 1fr 190px auto; }
    .admin-filter-bar .btn-outline-secondary { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
    .admin-filter-bar { grid-template-columns: 1fr; }
    .admin-form-actions { flex-direction: column-reverse; }
    .admin-form-actions .btn { width: 100%; }
}

@media (max-width: 575px) {
    .admin-mini-kpis, .admin-quick-grid { grid-template-columns: 1fr 1fr; }
    .admin-mini-kpi { min-height: 78px; padding: 12px; }
    .admin-mini-kpi strong { font-size: 1.28rem; }
    .user-edit-card { padding: 15px; }
    .switch-row { align-items: flex-start; }
}
.login-body {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
}

.login-page {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
    padding: clamp(10px, 2vh, 20px);
}

.login-shell {
    width: min(100%, 1060px);
    height: calc(100vh - 32px);
    height: calc(100dvh - 32px);
    max-height: 690px;
    min-height: 0;
}

.login-brand-panel {
    min-height: 0;
    padding: clamp(24px, 5vh, 46px) clamp(34px, 4vw, 50px);
}

.login-brand-content {
    max-width: 445px;
}

.login-logo-lockup {
    width: min(100%, 238px);
    margin-bottom: clamp(16px, 2.8vh, 24px);
}

.login-logo-lockup img {
    width: 100%;
    max-width: 238px;
    image-rendering: auto;
    filter: drop-shadow(0 10px 14px rgba(0,0,0,.16));
}

.login-brand-panel h1 {
    margin: 15px 0 8px;
    font-size: clamp(1.85rem, 2.7vw, 2.45rem);
}

.login-brand-features {
    gap: 8px;
    margin-top: clamp(16px, 2.8vh, 25px);
}

.login-brand-features > div {
    padding: 9px 11px;
}

.login-brand-footer {
    margin-top: clamp(14px, 2.5vh, 22px);
}

.login-form-panel {
    min-height: 0;
    padding: clamp(24px, 5vh, 46px) clamp(34px, 4.8vw, 58px);
}

.login-heading {
    margin-bottom: clamp(17px, 3vh, 25px);
}

.login-heading h2 {
    margin-top: 4px;
    font-size: clamp(1.7rem, 2.4vw, 1.95rem);
}

.login-form .mb-3 {
    margin-bottom: clamp(11px, 1.7vh, 16px) !important;
}

.login-form .mb-4 {
    margin-bottom: clamp(15px, 2.2vh, 20px) !important;
}

.input-icon-wrap .form-control,
.input-icon-wrap .form-select {
    min-height: clamp(48px, 7vh, 54px);
}

.login-submit {
    min-height: clamp(49px, 7vh, 54px);
}

.login-security {
    margin-top: clamp(13px, 2vh, 19px);
}

@media (max-width: 991px) {
    .login-page {
        padding: 10px;
    }

    .login-shell {
        width: min(100%, 500px);
        height: calc(100vh - 20px);
        height: calc(100dvh - 20px);
        max-height: 700px;
    }

    .login-form-panel {
        height: 100%;
        padding: clamp(18px, 3.5vh, 28px) clamp(20px, 5vw, 34px);
    }

    .login-form-wrap {
        max-width: 390px;
    }

    .login-mobile-logo {
        width: min(100%, 185px);
        margin: 0 auto clamp(10px, 2vh, 18px);
    }

    .login-mobile-logo img {
        max-width: 185px;
        margin: 0 auto;
        image-rendering: auto;
        filter: drop-shadow(0 7px 10px rgba(17,59,34,.10));
    }

    .login-heading {
        margin-bottom: clamp(12px, 2.3vh, 19px);
    }

    .login-heading h2 {
        margin: 3px 0 4px;
        font-size: clamp(1.45rem, 6vw, 1.7rem);
    }

    .login-heading p {
        font-size: .8rem;
    }

    .login-form .form-label {
        margin-bottom: 5px;
        font-size: .73rem;
    }

    .input-icon-wrap .form-control,
    .input-icon-wrap .form-select {
        min-height: 48px;
        border-radius: 12px;
    }

    .login-submit {
        min-height: 49px;
        border-radius: 12px;
    }

    .login-security {
        margin-top: 12px;
    }
}

@media (max-height: 650px) and (min-width: 992px) {
    .login-shell {
        height: calc(100dvh - 20px);
    }

    .login-brand-panel,
    .login-form-panel {
        padding-top: 22px;
        padding-bottom: 22px;
    }

    .login-logo-lockup {
        width: 195px;
        margin-bottom: 13px;
    }

    .login-logo-lockup img {
        max-width: 195px;
    }

    .login-brand-panel h1 {
        margin-top: 11px;
        font-size: 1.85rem;
    }

    .login-brand-panel > .login-brand-content > p {
        line-height: 1.45;
    }

    .login-brand-features {
        margin-top: 13px;
        gap: 6px;
    }

    .login-brand-features > div {
        padding: 7px 9px;
    }

    .login-brand-features i {
        width: 31px;
        height: 31px;
    }

    .login-brand-footer {
        display: none;
    }

    .login-heading {
        margin-bottom: 14px;
    }

    .login-form .mb-3 {
        margin-bottom: 10px !important;
    }

    .login-form .mb-4 {
        margin-bottom: 13px !important;
    }

    .input-icon-wrap .form-control,
    .input-icon-wrap .form-select {
        min-height: 46px;
    }

    .login-submit {
        min-height: 47px;
    }

    .login-security {
        margin-top: 10px;
    }
}

@media (max-height: 620px) and (max-width: 991px) {
    .login-page {
        padding: 6px;
    }

    .login-shell {
        height: calc(100dvh - 12px);
        border-radius: 22px;
    }

    .login-form-panel {
        padding-top: 13px;
        padding-bottom: 13px;
    }

    .login-mobile-logo {
        width: 145px;
        margin-bottom: 7px;
    }

    .login-mobile-logo img {
        max-width: 145px;
    }

    .login-heading {
        margin-bottom: 9px;
    }

    .login-heading .eyebrow {
        font-size: .6rem;
    }

    .login-heading h2 {
        font-size: 1.35rem;
    }

    .login-heading p {
        font-size: .72rem;
    }

    .login-form .mb-3 {
        margin-bottom: 8px !important;
    }

    .login-form .mb-4 {
        margin-bottom: 10px !important;
    }

    .login-form .form-label {
        margin-bottom: 3px;
    }

    .input-icon-wrap .form-control,
    .input-icon-wrap .form-select {
        min-height: 43px;
    }

    .login-submit {
        min-height: 44px;
    }

    .login-security {
        margin-top: 7px;
        font-size: .62rem;
    }
}
