/* ========================================
   ClaimVault - Mobile-First Light Theme
   Clean, minimal, professional
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --bg-primary: #f5f7fa;
    --bg-white: #ffffff;
    --bg-card: #ffffff;
    --bg-input: #f0f2f5;
    --bg-input-focus: #e8eaed;
    --bg-hover: #f0f2f5;

    --border: #e2e5e9;
    --border-hover: #c8cdd3;
    --border-active: #0ea57d;

    --text-primary: #1a1d23;
    --text-secondary: #5f6775;
    --text-muted: #8c95a4;
    --text-white: #ffffff;

    --accent: #0ea57d;
    --accent-hover: #0c8d6b;
    --accent-light: rgba(14, 165, 125, 0.08);
    --accent-border: rgba(14, 165, 125, 0.25);

    --warning: #e8930c;
    --warning-light: rgba(232, 147, 12, 0.1);
    --danger: #dc3545;
    --danger-light: rgba(220, 53, 69, 0.08);
    --info: #2563eb;
    --info-light: rgba(37, 99, 235, 0.08);
    --success: #16a34a;
    --success-light: rgba(22, 163, 74, 0.08);

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-lg: 0 4px 16px rgba(0,0,0,0.1);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;

    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --ease: all 0.2s ease;

    --sidebar-w: 260px;
    --header-h: 56px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body {
    font-family: var(--font);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
    min-height: 100dvh;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
img { max-width: 100%; height: auto; }

/* ── Animations ── */
@keyframes fadeIn { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:translateY(0); } }
@keyframes slideUp { from { opacity:0; transform:translateY(16px); } to { opacity:1; transform:translateY(0); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* =========================================
   MOBILE-FIRST LAYOUT
   ========================================= */

.app-layout { display: flex; flex-direction: column; min-height: 100dvh; position:relative; }

/* ── Sidebar (off-canvas on mobile) ── */
.sidebar {
    width: var(--sidebar-w);
    background: var(--bg-white);
    border-right: 1px solid var(--border);
    display: flex; flex-direction: column;
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 200;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    box-shadow: var(--shadow-lg);
}
.sidebar.open { transform: translateX(0); }

.sidebar-overlay { display:none; position:fixed; inset:0; background:rgba(0,0,0,0.3); z-index:199; }
.sidebar-overlay.active { display:block; }

.sidebar-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; gap: 10px;
}
.sidebar-logo-img {
    width: 32px; height: 32px; object-fit: contain;
}
.sidebar-brand { font-size: 17px; font-weight: 700; color: var(--text-primary); }
.sidebar-brand span { color: var(--accent); }

.sidebar-nav { flex: 1; padding: 12px 10px; overflow-y: auto; }
.nav-section { margin-bottom: 20px; }
.nav-section-title {
    font-size: 10px; font-weight: 600; text-transform: uppercase;
    letter-spacing: 1.2px; color: var(--text-muted);
    padding: 0 12px; margin-bottom: 6px;
}
.nav-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px; border-radius: var(--radius-sm);
    color: var(--text-secondary); font-size: 14px; font-weight: 500;
    cursor: pointer; transition: var(--ease); user-select: none;
}
.nav-item:hover { background: var(--bg-hover); color: var(--text-primary); }
.nav-item.active { background: var(--accent-light); color: var(--accent); font-weight: 600; }
.nav-item i { width: 20px; height: 20px; flex-shrink: 0; }
.nav-item .badge-count {
    margin-left: auto; background: var(--accent-light); color: var(--accent);
    font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 10px;
}

.sidebar-footer { padding: 12px; border-top: 1px solid var(--border); }
.user-card {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 10px; border-radius: var(--radius-sm);
    cursor: pointer; transition: var(--ease);
}
.user-card:hover { background: var(--bg-hover); }
.user-avatar {
    width: 30px; height: 30px; border-radius: 50%;
    background: var(--accent); display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 12px; color: var(--text-white);
}
.user-info { flex: 1; min-width: 0; }
.user-name { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-email { font-size: 11px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Main Content ── */
.main-content { flex: 1; min-height: 100dvh; }

/* ── Top Header ── */
.top-header {
    height: var(--header-h); padding: 0 16px;
    display: flex; align-items: center; justify-content: space-between;
    border-bottom: 1px solid var(--border);
    background: var(--bg-white);
    position: sticky; top: 0; z-index: 50; gap: 8px;
}
.page-title {
    font-size: 16px; font-weight: 700;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px;
}
.header-actions { display: flex; align-items: center; gap: 8px; }

.menu-toggle {
    display: flex; background: none; border: none;
    color: var(--text-primary); cursor: pointer;
    padding: 6px; border-radius: var(--radius-sm);
}
.menu-toggle:hover { background: var(--bg-hover); }

/* ── Page Container ── */
.page-container { padding: 16px; max-width: 960px; animation: fadeIn 0.25s ease; }

/* ── Stat Cards ── */
.stats-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.stat-card {
    background: var(--bg-white); padding: 14px;
    border-radius: var(--radius-md); border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}
.stat-icon {
    width: 32px; height: 32px; border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 8px; font-size: 15px;
}
.stat-card:nth-child(1) .stat-icon { background: var(--accent-light); color: var(--accent); }
.stat-card:nth-child(2) .stat-icon { background: var(--warning-light); color: var(--warning); }
.stat-card:nth-child(3) .stat-icon { background: var(--success-light); color: var(--success); }
.stat-value { font-size: 22px; font-weight: 800; line-height: 1; margin-bottom: 2px; }
.stat-card:nth-child(1) .stat-value { color: var(--accent); }
.stat-card:nth-child(2) .stat-value { color: var(--warning); }
.stat-card:nth-child(3) .stat-value { color: var(--success); }
.stat-label { font-size: 11px; color: var(--text-muted); font-weight: 500; }

/* ── Cards ── */
.card {
    background: var(--bg-white); border: 1px solid var(--border);
    border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
.card-header {
    padding: 14px 16px; border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.card-title { font-size: 15px; font-weight: 600; }
.card-body { padding: 16px; }

/* ── Buttons ── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 10px 18px; border-radius: var(--radius-sm);
    font-family: var(--font); font-size: 13px; font-weight: 600;
    cursor: pointer; border: 1px solid transparent;
    transition: var(--ease); white-space: nowrap; user-select: none;
    -webkit-appearance: none; appearance: none; touch-action: manipulation;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary { background: var(--accent); color: var(--text-white); }
.btn-primary:hover:not(:disabled) { background: var(--accent-hover); }
.btn-secondary { background: var(--bg-input); color: var(--text-primary); border-color: var(--border); }
.btn-secondary:hover:not(:disabled) { background: var(--bg-input-focus); border-color: var(--border-hover); }
.btn-danger { background: var(--danger-light); color: var(--danger); border-color: rgba(220,53,69,0.2); }
.btn-danger:hover:not(:disabled) { background: rgba(220,53,69,0.15); }
.btn-ghost { background: transparent; color: var(--text-secondary); border: none; padding: 8px 10px; }
.btn-ghost:hover { background: var(--bg-hover); color: var(--text-primary); }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-lg { padding: 14px 24px; font-size: 15px; border-radius: var(--radius-md); }
.btn-icon { width: 36px; height: 36px; padding: 0; border-radius: var(--radius-sm); }
.btn-icon.sm { width: 28px; height: 28px; }
.btn-block { width: 100%; }

/* ── Forms ── */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; }
.form-control {
    width: 100%; padding: 12px 14px;
    background: var(--bg-input); border: 1px solid var(--border);
    border-radius: var(--radius-sm); color: var(--text-primary);
    font-family: var(--font); font-size: 16px; outline: none;
    transition: var(--ease); -webkit-appearance: none; appearance: none;
}
.form-control:focus { background: var(--bg-white); border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-light); }
.form-control::placeholder { color: var(--text-muted); }
textarea.form-control { resize: vertical; min-height: 80px; }
select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238c95a4' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px;
}
.form-row { display: grid; grid-template-columns: 1fr; gap: 12px; }
.form-hint { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.inline-form { display: flex; flex-direction: column; gap: 8px; }
.inline-form .form-group { margin-bottom: 0; }

/* ── Badges ── */
.badge {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 3px 10px; border-radius: 20px;
    font-size: 11px; font-weight: 600; line-height: 1;
}
.badge-pending { background: var(--warning-light); color: var(--warning); }
.badge-completed { background: var(--success-light); color: var(--success); }
.badge-dot::before { content:''; width:6px; height:6px; border-radius:50%; background:currentColor; }

/* ── Table ── */
.table-container { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
    padding: 10px 12px; text-align: left; font-size: 10px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted);
    border-bottom: 1px solid var(--border); white-space: nowrap;
}
.data-table td { padding: 12px; font-size: 13px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.data-table tbody tr { transition: var(--ease); cursor: pointer; }
.data-table tbody tr:hover { background: var(--bg-hover); }
.data-table tbody tr:last-child td { border-bottom: none; }

/* ── Claims Grid ── */
.claims-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.claim-card {
    background: var(--bg-white); border: 1px solid var(--border);
    border-radius: var(--radius-md); padding: 14px; cursor: pointer;
    transition: var(--ease); box-shadow: var(--shadow-sm);
}
.claim-card:active { transform: scale(0.99); }
.claim-card-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 6px; }
.claim-card-id { font-size: 14px; font-weight: 700; }
.claim-card-notes { font-size: 13px; color: var(--text-secondary); margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.claim-card-meta { display: flex; align-items: center; gap: 12px; font-size: 11px; color: var(--text-muted); flex-wrap: wrap; }
.claim-card-meta span { display: flex; align-items: center; gap: 3px; }

/* ── Order Cards ── */
.order-card {
    background: var(--bg-white); border: 1px solid var(--border);
    border-radius: var(--radius-md); margin-bottom: 10px;
    box-shadow: var(--shadow-sm); overflow: hidden;
}
.order-card-header {
    padding: 12px 14px; display: flex; align-items: center;
    cursor: pointer; gap: 8px;
}
.order-card-header:active { background: var(--bg-hover); }
.order-card-info { flex: 1; min-width: 0; }
.order-card-id { font-size: 13px; font-weight: 600; word-break: break-all; }
.order-card-tracking { font-size: 11px; color: var(--text-muted); margin-top: 1px; }
.order-card-badge { font-size: 11px; color: var(--text-muted); background: var(--bg-input); padding: 2px 8px; border-radius: 10px; flex-shrink: 0; }
.order-card-toggle { width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; color: var(--text-muted); transition: transform 0.2s; flex-shrink: 0; }
.order-card.expanded .order-card-toggle { transform: rotate(180deg); }
.order-card-body { display: none; padding: 0 14px 14px; border-top: 1px solid var(--border); }
.order-card.expanded .order-card-body { display: block; animation: fadeIn 0.2s ease; }
.order-card.order-completed { opacity: 0.6; }
.order-card.order-completed:hover { opacity: 0.8; }

/* Camera/Gallery action bar */
.order-actions-bar { display: flex; gap: 8px; margin-top: 12px; margin-bottom: 8px; }
.order-actions-bar .btn { padding: 12px 14px; font-size: 13px; border-radius: var(--radius-md); flex: 1; }

/* Bottom actions per order */
.order-bottom-actions {
    display: flex; gap: 8px; margin-top: 14px; padding-top: 10px;
    border-top: 1px solid var(--border); justify-content: space-between;
}

/* ── Image Grid ── */
.image-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }
.image-thumb {
    aspect-ratio: 1; border-radius: var(--radius-sm);
    overflow: hidden; position: relative; cursor: pointer;
    border: 1px solid var(--border);
}
.image-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Image action overlay */
.image-actions {
    position: absolute; bottom: 0; left: 0; right: 0;
    display: flex; gap: 2px;
    background: rgba(0,0,0,0.55); backdrop-filter: blur(4px);
}
.image-actions button {
    flex: 1; border: none; padding: 6px; cursor: pointer;
    color: white; font-size: 11px; background: transparent;
    display: flex; align-items: center; justify-content: center; gap: 3px;
    transition: var(--ease); font-family: var(--font); font-weight: 500;
}
.image-actions button:hover { background: rgba(255,255,255,0.15); }
.image-actions .img-delete:hover { background: rgba(220,53,69,0.6); }

/* ── Modal ── */
.modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.4);
    display: flex; align-items: flex-end; justify-content: center;
    z-index: 1000; opacity: 0; visibility: hidden; transition: var(--ease);
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal {
    background: var(--bg-white); border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    width: 100%; max-height: 90dvh; overflow-y: auto;
    transform: translateY(100%); transition: transform 0.3s ease;
}
.modal-overlay.active .modal { transform: translateY(0); }
.modal-header {
    padding: 16px; border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between;
    position: sticky; top: 0; background: var(--bg-white); z-index: 1;
}
.modal-title { font-size: 16px; font-weight: 700; }
.modal-close {
    width: 32px; height: 32px; border: none;
    background: var(--bg-input); border-radius: var(--radius-sm);
    color: var(--text-secondary); cursor: pointer;
    display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.modal-close:hover { background: var(--bg-input-focus); }
.modal-body { padding: 16px; }

/* ── Lightbox ── */
.lightbox-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.95);
    display: flex; align-items: center; justify-content: center;
    z-index: 2000; opacity: 0; visibility: hidden; transition: var(--ease);
    cursor: zoom-out; padding: 16px;
}
.lightbox-overlay.active { opacity: 1; visibility: visible; }
.lightbox-overlay img { max-width: 100%; max-height: 90vh; object-fit: contain; border-radius: var(--radius-sm); }
.lightbox-close {
    position: absolute; top: 12px; right: 12px;
    width: 36px; height: 36px; border: none;
    background: rgba(255,255,255,0.2); border-radius: 50%;
    color: white; font-size: 18px; cursor: pointer;
}

/* ── Toast ── */
.toast-container {
    position: fixed; bottom: 16px; left: 16px; right: 16px;
    z-index: 3000; display: flex; flex-direction: column; gap: 8px; pointer-events: none;
}
.toast {
    padding: 12px 16px; border-radius: var(--radius-md);
    font-size: 13px; font-weight: 500;
    display: flex; align-items: center; gap: 8px;
    animation: slideUp 0.3s ease;
    border: 1px solid; pointer-events: auto;
    box-shadow: var(--shadow-md);
}
.toast-success { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.toast-error { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.toast-info { background: #eff6ff; border-color: #bfdbfe; color: #1e40af; }

/* ── Search ── */
.search-bar {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px; background: var(--bg-input);
    border: 1px solid var(--border); border-radius: var(--radius-md);
}
.search-bar:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-light); background: var(--bg-white); }
.search-bar input { flex: 1; background: none; border: none; color: var(--text-primary); font-family: var(--font); font-size: 16px; outline: none; }
.search-bar input::placeholder { color: var(--text-muted); }

/* ── Filter Chips ── */
.filter-bar { display: flex; align-items: center; gap: 6px; margin-bottom: 14px; overflow-x: auto; padding-bottom: 4px; }
.filter-chip {
    padding: 6px 14px; border-radius: 20px; font-size: 12px; font-weight: 500;
    cursor: pointer; border: 1px solid var(--border); background: var(--bg-white);
    color: var(--text-secondary); transition: var(--ease); white-space: nowrap; flex-shrink: 0;
}
.filter-chip:hover { border-color: var(--border-hover); }
.filter-chip.active { background: var(--accent-light); border-color: var(--accent-border); color: var(--accent); }

/* ── Tabs ── */
.tabs { display: flex; border-bottom: 1px solid var(--border); margin-bottom: 14px; overflow-x: auto; }
.tab {
    padding: 10px 16px; font-size: 13px; font-weight: 500;
    color: var(--text-secondary); cursor: pointer;
    border-bottom: 2px solid transparent; transition: var(--ease);
    white-space: nowrap; background: none; border-top: none; border-left: none; border-right: none; font-family: var(--font);
}
.tab:hover { color: var(--text-primary); }
.tab.active { color: var(--accent); border-bottom-color: var(--accent); }

/* ── Empty State ── */
.empty-state { text-align: center; padding: 40px 16px; }
.empty-state-icon { font-size: 36px; margin-bottom: 10px; opacity: 0.4; }
.empty-state-title { font-size: 15px; font-weight: 600; margin-bottom: 4px; color: var(--text-secondary); }
.empty-state-text { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; max-width: 260px; margin-left: auto; margin-right: auto; }

/* ── Scanner ── */
.scanner-container { border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border); background: #000; }
.scanner-result {
    padding: 10px 14px; background: var(--accent-light);
    border: 1px solid var(--accent-border); border-radius: var(--radius-sm);
    color: var(--accent); font-family: monospace; font-size: 13px;
    margin-top: 10px; display: flex; align-items: center; gap: 8px; word-break: break-all;
}

/* ── Loading ── */
.loading-spinner {
    width: 28px; height: 28px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%; animation: spin 0.7s linear infinite;
    margin: 40px auto;
}

/* ── Auth Pages ── */
.auth-page { min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 16px; background: var(--bg-primary); }
.auth-container { width: 100%; max-width: 400px; }
.auth-card {
    background: var(--bg-white); border: 1px solid var(--border);
    border-radius: var(--radius-xl); padding: 28px 20px; box-shadow: var(--shadow-md);
}
.auth-logo { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 24px; }
.auth-logo-icon { width: 44px; height: 44px; object-fit: contain; }
.auth-logo-text { font-size: 22px; font-weight: 800; color: var(--text-primary); }
.auth-logo-text span { color: var(--accent); }
.auth-title { font-size: 18px; font-weight: 700; text-align: center; margin-bottom: 4px; }
.auth-subtitle { font-size: 13px; color: var(--text-secondary); text-align: center; margin-bottom: 24px; }
.auth-footer { text-align: center; margin-top: 20px; font-size: 13px; color: var(--text-secondary); }
.auth-footer a { color: var(--accent); font-weight: 600; }

/* ── Confirm Dialog ── */
.confirm-actions { display: flex; gap: 10px; margin-top: 16px; }
.confirm-actions .btn { flex: 1; }

/* ── Detail Header ── */
.detail-header { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.detail-header-info h1 { font-size: 18px; font-weight: 800; margin-bottom: 4px; word-break: break-all; }
.detail-header-info .meta { font-size: 12px; color: var(--text-secondary); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.detail-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; gap: 8px; }
.section-title { font-size: 14px; font-weight: 600; }

/* Progress */
.progress-bar { width: 100%; height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; margin-top: 6px; }
.progress-fill { height: 100%; background: var(--accent); border-radius: 2px; transition: width 0.3s; width: 0; }

/* ── Item Rows ── */
.item-list { display: flex; flex-direction: column; gap: 6px; }
.item-row {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px; background: var(--bg-white);
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    transition: var(--ease);
}
.item-row:hover { border-color: var(--border-hover); }
.item-row-content { flex: 1; min-width: 0; }
.item-row-title { font-size: 13px; font-weight: 600; word-break: break-all; }
.item-row-sub { font-size: 11px; color: var(--text-muted); }

/* ── Utility ── */
.hidden { display: none !important; }
.text-muted { color: var(--text-secondary); }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }

/* =========================================
   DESKTOP (≥768px)
   ========================================= */
@media (min-width: 768px) {
    .sidebar { transform: translateX(0); box-shadow: none; }
    .main-content { margin-left: var(--sidebar-w); }
    .menu-toggle { display: none; }
    .sidebar-overlay { display: none !important; }
    .top-header { padding: 0 24px; }
    .page-title { font-size: 18px; max-width: none; }
    .page-container { padding: 24px; }
    .stats-grid { gap: 14px; }
    .stat-card { padding: 18px; }
    .stat-value { font-size: 26px; }
    .stat-icon { width: 36px; height: 36px; }
    .claims-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
    .form-row { grid-template-columns: repeat(2, 1fr); }
    .inline-form { flex-direction: row; align-items: flex-end; }
    .image-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; }
    .modal-overlay { align-items: center; padding: 20px; }
    .modal { max-width: 480px; border-radius: var(--radius-xl); }
    .toast-container { top: 20px; bottom: auto; left: auto; right: 20px; max-width: 360px; }
    .detail-header { flex-direction: row; align-items: flex-start; justify-content: space-between; }
    .auth-card { padding: 36px; }
}
