/* ==========================================================================
   PagouBarato — Painel Administrativo (Limpo, Prático e Responsivo)
   ========================================================================== */

:root {
    --emerald-50:  #ecfdf5;
    --emerald-500: #10b981;
    --emerald-600: #059669;
    --emerald-700: #047857;
    --amber-50:    #fffbeb;
    --amber-500:   #f59e0b;
    --amber-600:   #d97706;
    --blue-50:     #eff6ff;
    --blue-600:    #2563eb;
    --red-50:      #fef2f2;
    --red-600:     #dc2626;
    --slate-50:    #f8fafc;
    --slate-100:   #f1f5f9;
    --slate-200:   #e2e8f0;
    --slate-300:   #cbd5e1;
    --slate-400:   #94a3b8;
    --slate-500:   #64748b;
    --slate-600:   #475569;
    --slate-700:   #334155;
    --slate-800:   #1e293b;
    --slate-900:   #0f172a;
    --whatsapp:    #16a34a;
    --radius-sm:   8px;
    --radius-md:   12px;
    --radius-lg:   16px;
}

*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--slate-100);
    color: var(--slate-900);
    line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
.muted { color: var(--slate-500); }
.text-right { text-align: right; }
.text-center { text-align: center; }
.text-emerald { color: var(--emerald-600); font-weight: 700; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 14px; }
.mt-4 { margin-top: 22px; }
.mb-3 { margin-bottom: 14px; }

/* Login Screen */
.login-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: radial-gradient(circle at top right, #065f46 0%, #0f172a 60%);
}
.login-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 20px;
    padding: 36px 32px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.25);
}
.login-header { text-align: center; margin-bottom: 24px; }
.login-logo { height: 42px; margin: 0 auto 14px; }
.login-header h1 { margin: 0 0 6px; font-size: 1.35rem; font-weight: 800; }
.login-header p { margin: 0; color: var(--slate-500); font-size: 0.9rem; }
.login-footer { text-align: center; margin-top: 20px; font-size: 0.86rem; color: var(--slate-500); }
.login-footer a:hover { color: var(--emerald-600); }

/* Shell */
.admin-shell { display: flex; min-height: 100vh; }

.admin-sidebar {
    width: 260px;
    background: var(--slate-900);
    color: #cbd5e1;
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 80;
    transition: transform 0.22s ease;
}
.sidebar-header {
    padding: 20px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.sidebar-brand img { height: 36px; }
.sidebar-close {
    display: none;
    background: transparent;
    border: 0;
    color: #94a3b8;
    cursor: pointer;
}

.sidebar-nav {
    padding: 16px 12px;
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.nav-section-label {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
    padding: 12px 12px 6px;
}
.sidebar-link {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    color: #cbd5e1;
    transition: all 0.15s ease;
}
.sidebar-link svg { width: 18px; height: 18px; flex-shrink: 0; }
.sidebar-link:hover { background: rgba(255, 255, 255, 0.07); color: #fff; }
.sidebar-link.active { background: var(--emerald-600); color: #fff; }
.sidebar-link--logout { color: #fca5a5; }
.sidebar-link--logout:hover { background: rgba(220, 38, 38, 0.15); color: #fecaca; }

.sidebar-user {
    padding: 14px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 10px;
}
.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--emerald-600);
    color: #fff;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}
.user-info strong { display: block; font-size: 0.84rem; color: #fff; }
.user-info span { font-size: 0.75rem; color: #94a3b8; }

.admin-main {
    flex: 1;
    margin-left: 260px;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.admin-topbar {
    height: 64px;
    background: #fff;
    border-bottom: 1px solid var(--slate-200);
    padding: 0 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 40;
}
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 10px; }
.sidebar-toggle {
    display: none;
    background: var(--slate-100);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-sm);
    padding: 7px;
    cursor: pointer;
}
.topbar-breadcrumb { font-weight: 700; color: var(--slate-700); font-size: 0.92rem; }

.admin-content { padding: 26px; max-width: 1360px; width: 100%; }

/* Page Header & Cards */
.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}
.page-header h1 { margin: 0 0 4px; font-size: 1.55rem; font-weight: 800; }
.page-header p { margin: 0; color: var(--slate-500); font-size: 0.9rem; }
.header-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.admin-card {
    background: #fff;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-lg);
    padding: 22px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
    margin-bottom: 20px;
}
.card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.card-head h2 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
}
.card-head h2 svg { width: 18px; height: 18px; color: var(--emerald-600); }
.card-link { font-size: 0.85rem; font-weight: 700; color: var(--emerald-600); }

/* Alerts */
.admin-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 16px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}
.admin-alert svg { width: 18px; height: 18px; flex-shrink: 0; }
.admin-alert--success { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; }
.admin-alert--error   { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.admin-alert--warning { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.88rem;
    padding: 9px 16px;
    border-radius: var(--radius-sm);
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn-sm { padding: 7px 13px; font-size: 0.83rem; }
.btn-lg { padding: 12px 20px; font-size: 0.95rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--emerald-600); color: #fff; }
.btn-primary:hover { background: var(--emerald-700); }
.btn-dark { background: var(--slate-900); color: #fff; }
.btn-dark:hover { background: var(--slate-800); }
.btn-whatsapp { background: var(--whatsapp); color: #fff; }
.btn-whatsapp:hover { background: #15803d; }
.btn-outline { background: #fff; color: var(--slate-700); border-color: var(--slate-300); }
.btn-outline:hover { background: var(--slate-50); border-color: var(--slate-400); }

/* KPIs & Dashboard */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}
.kpi-card {
    background: #fff;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-lg);
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 14px;
}
.kpi-icon {
    width: 48px;
    height: 48px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.kpi-icon svg { width: 22px; height: 22px; }
.kpi-icon--emerald { background: var(--emerald-50); color: var(--emerald-600); }
.kpi-icon--amber   { background: var(--amber-50); color: var(--amber-600); }
.kpi-icon--slate   { background: var(--slate-100); color: var(--slate-700); }
.kpi-icon--blue    { background: var(--blue-50); color: var(--blue-600); }

.kpi-label { display: block; font-size: 0.78rem; font-weight: 700; color: var(--slate-500); }
.kpi-value { display: block; font-size: 1.55rem; font-weight: 800; line-height: 1.2; }
.kpi-card small { font-size: 0.76rem; color: var(--slate-500); }

.dashboard-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 20px;
}
.chart-box { position: relative; height: 250px; }

.top-deals-list { display: flex; flex-direction: column; gap: 12px; }
.top-deal-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--slate-100);
}
.top-deal-item:last-child { border-bottom: 0; padding-bottom: 0; }
.top-deal-info { flex: 1; min-width: 0; }
.top-deal-info a {
    display: block;
    font-weight: 700;
    font-size: 0.87rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.top-deal-info a:hover { color: var(--emerald-600); }
.top-deal-info small { color: var(--slate-500); font-size: 0.78rem; }
.clicks-pill {
    font-size: 0.76rem;
    font-weight: 800;
    background: var(--emerald-50);
    color: var(--emerald-700);
    padding: 4px 9px;
    border-radius: 999px;
    white-space: nowrap;
}

/* Tables */
.admin-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}
.admin-filters input, .admin-filters select {
    padding: 8px 12px;
    border: 1.5px solid var(--slate-200);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.86rem;
    background: var(--slate-50);
}
.admin-filters input[type="search"] { flex: 1; min-width: 220px; }

.table-responsive { overflow-x: auto; }
.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.87rem;
}
.admin-table th {
    text-align: left;
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--slate-500);
    padding: 10px 12px;
    border-bottom: 1.5px solid var(--slate-200);
    white-space: nowrap;
}
.admin-table td {
    padding: 13px 12px;
    border-bottom: 1px solid var(--slate-100);
    vertical-align: middle;
}
.admin-table tr:hover td { background: #f8fafc; }

.cell-product { display: flex; align-items: center; gap: 11px; max-width: 340px; }
.thumb-sm {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    object-fit: cover;
    background: var(--slate-100);
    flex-shrink: 0;
}
.cell-product strong { display: block; line-height: 1.3; font-size: 0.88rem; }
.cell-product small { color: var(--slate-500); font-size: 0.76rem; }

.cell-price .old { display: block; text-decoration: line-through; color: var(--slate-400); font-size: 0.76rem; }
.cell-price strong { color: var(--emerald-700); font-size: 0.94rem; }
.mini-discount {
    display: inline-block;
    margin-left: 4px;
    background: #ffedd5;
    color: #c2410c;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 4px;
}
.cell-dates small { display: block; color: var(--slate-600); font-size: 0.78rem; }
.code-pill {
    font-family: 'Consolas', monospace;
    background: var(--slate-100);
    border: 1px dashed var(--slate-300);
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.8rem;
}

.status-badge, .role-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 800;
    border: 0;
}
.status-btn { cursor: pointer; transition: opacity 0.15s; }
.status-btn:hover { opacity: 0.82; }
.status-badge--disponivel { background: #d1fae5; color: #065f46; }
.status-badge--esgotado   { background: #fee2e2; color: #991b1b; }
.status-badge--expirado   { background: #e2e8f0; color: #334155; }
.role-badge--admin        { background: #dbeafe; color: #1e40af; }
.role-badge--editor       { background: #f1f5f9; color: #475569; }

.row-actions { display: inline-flex; align-items: center; gap: 6px; }
.row-actions form { display: inline; }
.icon-btn {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid var(--slate-200);
    background: #fff;
    color: var(--slate-600);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
}
.icon-btn svg { width: 16px; height: 16px; }
.icon-btn:hover { border-color: var(--slate-400); color: var(--slate-900); background: var(--slate-50); }
.icon-btn--whatsapp { color: var(--whatsapp); border-color: #bbf7d0; background: #f0fdf4; }
.icon-btn--whatsapp:hover { background: var(--whatsapp); color: #fff; border-color: var(--whatsapp); }
.icon-btn--danger:hover { background: var(--red-600); color: #fff; border-color: var(--red-600); }

/* Forms */
.deal-form-grid {
    display: grid;
    grid-template-columns: 1.55fr 0.85fr;
    gap: 20px;
    align-items: start;
}
.form-section-title {
    margin: 0 0 16px;
    font-size: 1.02rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
}
.form-group { margin-bottom: 14px; }
.form-group label {
    display: block;
    font-size: 0.83rem;
    font-weight: 700;
    color: var(--slate-700);
    margin-bottom: 5px;
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="url"],
.form-group input[type="datetime-local"],
.form-group input[type="file"],
.form-group select,
.form-group textarea {
    width: 100%;
    font-family: inherit;
    font-size: 0.9rem;
    color: var(--slate-900);
    background: #fff;
    border: 1.5px solid var(--slate-200);
    border-radius: var(--radius-sm);
    padding: 9px 12px;
    outline: none;
    transition: border-color 0.15s ease;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--emerald-500);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
}
.color-input { width: 100%; height: 42px; padding: 3px; border: 1.5px solid var(--slate-200); border-radius: var(--radius-sm); cursor: pointer; }
.help-text { display: block; margin-top: 4px; font-size: 0.76rem; color: var(--slate-500); }

.form-row-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-row-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }

.discount-preview {
    background: var(--emerald-50);
    border: 1.5px solid #a7f3d0;
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    text-align: center;
}
.discount-preview strong { display: block; color: var(--emerald-700); font-size: 1.05rem; }
.discount-preview span { font-size: 0.75rem; color: var(--emerald-700); }

.checkbox-row { margin-top: 10px; }
.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 0.86rem;
    color: var(--slate-700);
    cursor: pointer;
}
.checkbox-label input { margin-top: 3px; accent-color: var(--emerald-600); width: 16px; height: 16px; }
.update-history-box {
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-sm);
    padding: 12px;
}

.accordion-card summary {
    cursor: pointer;
    font-weight: 700;
    color: var(--slate-700);
    font-size: 0.9rem;
}

.image-preview-box {
    aspect-ratio: 4 / 3;
    background: var(--slate-100);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--slate-200);
}
.image-preview-box img { width: 100%; height: 100%; object-fit: cover; }

/* Price History Manager */
.price-manager-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 24px;
    align-items: start;
}
.add-price-form {
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-md);
    padding: 16px;
}
.add-price-form h3, .admin-chart-panel h3 { margin: 0 0 12px; font-size: 0.94rem; font-weight: 800; }

/* Catalog Grid */
.catalog-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.store-chip, .cat-chip { display: inline-flex; align-items: center; gap: 7px; margin-right: 8px; }
.store-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.cat-chip svg { width: 16px; height: 16px; color: var(--emerald-600); }

/* Etapa 2 — Watchlist, Portfólio 50/35/15 e Fila de Triagem */
.sidebar-badge {
    margin-left: auto;
    background: var(--amber-500);
    color: var(--slate-900);
    font-size: 0.72rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 999px;
}

.form-row-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }

.tier-pill {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 0.73rem;
    font-weight: 800;
    white-space: nowrap;
}
.tier-pill--volume { background: #dbeafe; color: #1d4ed8; }
.tier-pill--medio  { background: #fef3c7; color: #b45309; }
.tier-pill--alto   { background: #ede9fe; color: #6d28d9; }

.telemetry-list { display: grid; gap: 10px; font-size: 0.88rem; }
.telemetry-list > div {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--slate-100);
}
.telemetry-list > div:last-child { border-bottom: 0; padding-bottom: 0; }
.telemetry-list span { color: var(--slate-500); }

.triage-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}
.triage-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: var(--radius-sm);
    background: #fff;
    border: 1.5px solid var(--slate-200);
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--slate-600);
}
.triage-tab.active {
    background: var(--slate-900);
    border-color: var(--slate-900);
    color: #fff;
}
.tab-count {
    font-size: 0.75rem;
    padding: 1px 8px;
    border-radius: 999px;
    background: var(--slate-100);
    color: var(--slate-700);
}
.triage-tab.active .tab-count { background: rgba(255, 255, 255, 0.2); color: #fff; }

.triage-list { display: flex; flex-direction: column; gap: 18px; }
.triage-card { padding: 20px; margin-bottom: 0; }
.triage-card__top { display: flex; gap: 18px; align-items: flex-start; }
.triage-thumb {
    width: 112px;
    height: 112px;
    border-radius: var(--radius-md);
    object-fit: cover;
    background: var(--slate-100);
    border: 1px solid var(--slate-200);
    flex-shrink: 0;
}
.triage-main { flex: 1; min-width: 0; }
.triage-badges { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.triage-title { margin: 0 0 8px; font-size: 1.08rem; font-weight: 800; line-height: 1.3; }

.score-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 800;
}
.score-pill--high { background: linear-gradient(135deg, #059669, #10b981); color: #fff; }
.score-pill--mid  { background: #fef3c7; color: #92400e; }
.score-pill--low  { background: var(--slate-200); color: var(--slate-700); }

.triage-reason {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    background: var(--emerald-50);
    border: 1px solid #a7f3d0;
    color: #065f46;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 10px;
}
.triage-reason svg { width: 16px; height: 16px; flex-shrink: 0; }

.triage-pricing {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}
.triage-pricing .old { text-decoration: line-through; color: var(--slate-400); font-size: 0.88rem; }
.triage-pricing .now { font-size: 1.45rem; font-weight: 800; color: var(--emerald-700); }

.triage-approve-form {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--slate-200);
}
.input-highlight { border-color: var(--amber-500) !important; background: var(--amber-50) !important; }

.triage-actions-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 12px;
}
.triage-checks { display: flex; gap: 18px; flex-wrap: wrap; }
.triage-buttons { display: flex; gap: 10px; flex-wrap: wrap; }

.triage-footer-info {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--slate-100);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: var(--slate-600);
}

@media (max-width: 960px) {
    .form-row-4 { grid-template-columns: repeat(2, 1fr); }
    .triage-card__top { flex-direction: column; }
}
@media (max-width: 560px) {
    .form-row-4 { grid-template-columns: 1fr; }
}

/* Toast */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.toast {
    background: var(--slate-900);
    color: #fff;
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 0.86rem;
    font-weight: 600;
    border-left: 4px solid var(--emerald-500);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

/* Responsive */
@media (max-width: 1080px) {
    .kpi-grid { grid-template-columns: repeat(2, 1fr); }
    .dashboard-grid, .deal-form-grid, .price-manager-grid, .catalog-grid { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
    .admin-sidebar { transform: translateX(-100%); }
    .admin-sidebar.open { transform: translateX(0); }
    .sidebar-close, .sidebar-toggle { display: inline-flex; }
    .admin-main { margin-left: 0; }
    .admin-content { padding: 18px; }
    .form-row-2, .form-row-3 { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
    .kpi-grid { grid-template-columns: 1fr; }
}
