/* ================================================
   Lab'Eau-Air-Sol — Portail client — Styles
   ================================================ */

:root {
    --green-dark: #1B6B3A;
    --green-main: #2E7D50;
    --green-light: #4CAF78;
    --green-pale: #E8F5EE;
    --green-border: #B2DFCC;
    --teal: #2A8B7F;
    --white: #FFFFFF;
    --grey-50: #F8FAFB;
    --grey-100: #F2F4F5;
    --grey-200: #E5E9EC;
    --grey-300: #CDD3D8;
    --grey-400: #9BA5AF;
    --grey-600: #5C6B77;
    --grey-800: #2D3A44;
    --grey-900: #1A232C;
    --red: #D32F2F;
    --red-light: #FFEBEE;
    --orange: #E65100;
    --orange-light: #FFF3E0;
    --blue: #1565C0;
    --blue-light: #E3F2FD;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.10);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --radius: 8px;
    --radius-sm: 4px;
    --radius-lg: 12px;
    --font: 'Inter', system-ui, -apple-system, sans-serif;
    --transition: 0.2s ease;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--grey-800); background: var(--grey-50); line-height: 1.6; }
a { color: var(--green-main); text-decoration: none; }
a:hover { color: var(--green-dark); text-decoration: underline; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }

/* ── Header ── */
.header {
    background: var(--green-dark);
    color: var(--white);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.header--public { background: var(--green-dark); }
.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--white);
}
.logo-mark {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.15);
    border: 2px solid rgba(255,255,255,0.4);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    flex-shrink: 0;
}
.logo-mark--sm { width: 28px; height: 28px; font-size: 0.9rem; border-radius: 6px; }
.logo-mark--lg { width: 56px; height: 56px; font-size: 1.8rem; border-radius: 14px; margin: 0 auto 12px; background: var(--green-pale); border: 2px solid var(--green-border); color: var(--green-dark); }
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-name { font-size: 1rem; font-weight: 700; letter-spacing: -0.02em; }
.logo-sub { font-size: 0.7rem; opacity: 0.75; text-transform: uppercase; letter-spacing: 0.08em; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
    color: rgba(255,255,255,0.85);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition);
    white-space: nowrap;
}
.nav-link:hover { color: var(--white); background: rgba(255,255,255,0.12); text-decoration: none; }
.nav-link--cta { background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.3); color: var(--white); }
.nav-link--cta:hover { background: rgba(255,255,255,0.25); }
.nav-link--logout { color: rgba(255,255,255,0.6); }
.nav-link--logout:hover { color: #ffcccc; background: rgba(220,38,38,0.15); }

.nav-toggle { display: none; background: none; border: none; flex-direction: column; gap: 5px; padding: 4px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--white); border-radius: 2px; transition: var(--transition); }

/* ── Layout ── */
.layout { min-height: calc(100vh - 64px - 80px); }
.main-content { padding: 0; }
.main-content--public { min-height: 70vh; }
.container { max-width: 1100px; margin: 0 auto; padding: 32px 24px; }
.container--wide { max-width: 1400px; margin: 0 auto; padding: 32px 24px; }

/* ── Footer ── */
.footer {
    background: var(--grey-800);
    color: rgba(255,255,255,0.7);
    padding: 24px;
    text-align: center;
    margin-top: auto;
}
.footer-inner { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.footer-logo { display: flex; align-items: center; gap: 8px; color: var(--white); font-weight: 600; }
.footer-tagline { font-size: 0.875rem; color: var(--green-light); }
.footer-copy { font-size: 0.8rem; opacity: 0.6; }

/* ── Hero ── */
.hero {
    background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-main) 60%, #1a7a5e 100%);
    color: var(--white);
    padding: 80px 24px 60px;
    display: flex;
    gap: 48px;
    max-width: 100%;
    min-height: 480px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}
.hero-content { max-width: 520px; }
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 20px;
}
.hero-title { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700; line-height: 1.2; margin-bottom: 16px; }
.hero-subtitle { font-size: 1.1rem; opacity: 0.88; margin-bottom: 32px; line-height: 1.6; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-visual { display: flex; flex-direction: column; gap: 16px; max-width: 380px; }
.hero-card {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    backdrop-filter: blur(4px);
}
.hero-card-icon { font-size: 1.8rem; margin-bottom: 8px; }
.hero-card h3 { font-size: 0.95rem; font-weight: 600; margin-bottom: 4px; }
.hero-card p { font-size: 0.85rem; opacity: 0.8; }

.home-services { padding: 60px 24px; background: var(--white); }
.section-title { text-align: center; font-size: 1.5rem; font-weight: 700; color: var(--green-dark); margin-bottom: 36px; }
.services-grid { max-width: 900px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.service-card { background: var(--grey-50); border: 1px solid var(--grey-200); border-radius: var(--radius-lg); padding: 28px; text-align: center; }
.service-icon { font-size: 2rem; margin-bottom: 12px; }
.service-card h3 { font-size: 1rem; font-weight: 600; color: var(--green-dark); margin-bottom: 8px; }
.service-card p { font-size: 0.875rem; color: var(--grey-600); }

/* ── Auth Pages ── */
.auth-page {
    min-height: calc(100vh - 144px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
    background: var(--grey-100);
}
.auth-page--wide { align-items: flex-start; padding-top: 60px; }
.auth-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 40px;
    width: 100%;
    max-width: 440px;
}
.auth-card--wide { max-width: 680px; }
.auth-header { text-align: center; margin-bottom: 28px; }
.auth-header h1 { font-size: 1.4rem; font-weight: 700; color: var(--grey-900); margin-bottom: 4px; }
.auth-header p { font-size: 0.875rem; color: var(--grey-600); }
.auth-links { text-align: center; margin-top: 20px; display: flex; flex-direction: column; gap: 8px; }
.auth-links a { font-size: 0.875rem; color: var(--green-main); }

/* ── Page Header ── */
.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}
.page-header h1 { font-size: 1.6rem; font-weight: 700; color: var(--grey-900); }
.page-subtitle { font-size: 0.9rem; color: var(--grey-600); margin-top: 4px; }
.header-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* ── Stats Grid ── */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; margin-bottom: 28px; }
.stat-card {
    background: var(--white);
    border: 1px solid var(--grey-200);
    border-radius: var(--radius-lg);
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border-top: 3px solid var(--green-main);
}
.stat-card--warning { border-top-color: var(--orange); }
.stat-card--info { border-top-color: var(--blue); }
.stat-card--success { border-top-color: var(--green-light); }
.stat-card--report { border-top-color: var(--teal); }
.stat-card--secondary { border-top-color: var(--grey-400); }
.stat-value { font-size: 2rem; font-weight: 700; color: var(--green-dark); line-height: 1; }
.stat-label { font-size: 0.8rem; color: var(--grey-600); margin-top: 4px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; }

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
    font-family: inherit;
    line-height: 1.4;
}
.btn:hover { text-decoration: none; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn--primary { background: var(--green-dark); color: var(--white); border-color: var(--green-dark); }
.btn--primary:hover { background: var(--green-main); border-color: var(--green-main); color: var(--white); }
.btn--secondary { background: var(--white); color: var(--green-dark); border-color: var(--green-border); }
.btn--secondary:hover { background: var(--green-pale); }
.btn--ghost { background: transparent; color: var(--grey-600); border-color: var(--grey-200); }
.btn--ghost:hover { background: var(--grey-100); color: var(--grey-800); }
.btn--danger { background: var(--red); color: var(--white); border-color: var(--red); }
.btn--danger:hover { background: #b71c1c; }
.btn--warning { background: var(--orange); color: var(--white); border-color: var(--orange); }
.btn--outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.6); }
.btn--outline:hover { background: rgba(255,255,255,0.15); color: var(--white); }
.btn--full { width: 100%; }
.btn--lg { padding: 12px 24px; font-size: 1rem; border-radius: var(--radius); }
.btn--sm { padding: 6px 12px; font-size: 0.8rem; }
.btn--xs { padding: 3px 8px; font-size: 0.75rem; }

/* ── Forms ── */
.form-group { display: flex; flex-direction: column; gap: 4px; }
.form-group--full { grid-column: 1 / -1; }
.form-label { font-size: 0.875rem; font-weight: 500; color: var(--grey-800); }
.form-input {
    padding: 9px 12px;
    border: 1px solid var(--grey-300);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-family: inherit;
    color: var(--grey-800);
    background: var(--white);
    transition: border-color var(--transition), box-shadow var(--transition);
    width: 100%;
}
.form-input:focus { outline: none; border-color: var(--green-main); box-shadow: 0 0 0 3px rgba(46,125,80,0.12); }
.form-input.is-invalid { border-color: var(--red); }
.form-input.is-invalid:focus { box-shadow: 0 0 0 3px rgba(211,47,47,0.12); }
.form-input--sm { padding: 6px 10px; font-size: 0.8rem; }
.form-textarea { resize: vertical; min-height: 80px; }
.form-error { font-size: 0.8rem; color: var(--red); margin-top: 2px; }
.form-hint { font-size: 0.8rem; color: var(--grey-600); }
.form-grid { display: grid; gap: 16px; }
.form-grid--2 { grid-template-columns: repeat(2, 1fr); }
.form-grid--3 { grid-template-columns: repeat(3, 1fr); }
.required { color: var(--red); }

.form-section {
    background: var(--white);
    border: 1px solid var(--grey-200);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}
.form-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--green-dark);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--green-pale);
    display: flex;
    align-items: center;
    gap: 8px;
}
.form-actions { display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; margin-top: 8px; }
.form-card { background: var(--white); border: 1px solid var(--grey-200); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-sm); max-width: 680px; }
.form--inline { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.input-password { position: relative; }
.input-password .form-input { padding-right: 42px; }
.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    color: var(--grey-400);
    padding: 2px;
    line-height: 1;
}
.toggle-password:hover { color: var(--grey-600); }

/* ── Samples ── */
.sample-row {
    border: 1px solid var(--grey-200);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 16px;
    background: var(--grey-50);
}
.sample-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.sample-header h4 { font-size: 0.9rem; font-weight: 600; color: var(--green-dark); }

/* ── Tables ── */
.table-wrapper { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--grey-200); }
.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
    background: var(--white);
}
.table th {
    background: var(--green-pale);
    padding: 10px 14px;
    text-align: left;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--green-dark);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid var(--green-border);
    white-space: nowrap;
}
.table td { padding: 10px 14px; border-bottom: 1px solid var(--grey-100); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: none; }
.table--hover tbody tr:hover { background: var(--green-pale); cursor: pointer; }
.table--sm th, .table--sm td { padding: 7px 12px; font-size: 0.82rem; }
.table-meta { font-size: 0.8rem; color: var(--grey-600); margin-top: 8px; }
.row--inactive td { opacity: 0.55; }
.row--inactive td:first-child { opacity: 1; }

/* ── Badges ── */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
}
.badge--lg { padding: 5px 14px; font-size: 0.85rem; }
.badge--neutral { background: var(--grey-200); color: var(--grey-600); }
.badge--status-received { background: #E3F2FD; color: #1565C0; }
.badge--status-validation { background: var(--orange-light); color: var(--orange); }
.badge--status-analysis { background: #FFF9C4; color: #F57F17; }
.badge--status-report { background: var(--green-pale); color: var(--green-dark); }
.badge--status-completed { background: #E8F5E9; color: #2E7D32; }
.badge--status-cancelled { background: var(--red-light); color: var(--red); }
.badge--report-count { background: var(--green-pale); color: var(--green-dark); }

/* ── Alerts ── */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid;
    position: relative;
}
.alert-icon { flex-shrink: 0; font-size: 1rem; }
.alert-close { margin-left: auto; background: none; border: none; font-size: 1.2rem; cursor: pointer; opacity: 0.6; line-height: 1; padding: 0; }
.alert-close:hover { opacity: 1; }
.alert--success { background: #E8F5E9; border-color: #A5D6A7; color: #1B5E20; }
.alert--danger { background: var(--red-light); border-color: #FFCDD2; color: #B71C1C; }
.alert--warning { background: var(--orange-light); border-color: #FFCC80; color: #BF360C; }
.alert--info { background: var(--blue-light); border-color: #90CAF9; color: #0D47A1; }

/* ── Cards ── */
.detail-card {
    background: var(--white);
    border: 1px solid var(--grey-200);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}
.card-title { font-size: 1rem; font-weight: 700; color: var(--green-dark); margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--grey-200); }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.admin-detail-grid { display: grid; grid-template-columns: 1fr 380px; gap: 20px; }
.admin-actions-panel { display: flex; flex-direction: column; gap: 16px; }
.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* ── Detail List ── */
.detail-list { display: grid; grid-template-columns: 180px 1fr; gap: 4px 12px; font-size: 0.875rem; }
.detail-list dt { font-weight: 600; color: var(--grey-600); padding: 5px 0; }
.detail-list dd { padding: 5px 0; color: var(--grey-800); word-break: break-word; }
.detail-list--horizontal { grid-template-columns: 120px 1fr; }

/* ── Reports ── */
.report-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.report-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; background: var(--grey-50); border: 1px solid var(--grey-200); border-radius: var(--radius); }
.report-info { display: flex; align-items: center; gap: 10px; min-width: 0; }
.report-icon { font-size: 1.4rem; flex-shrink: 0; }
.report-icon--sm { font-size: 1rem; }
.report-name { font-size: 0.875rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.report-date { font-size: 0.78rem; color: var(--grey-600); }
.report-count { background: var(--green-pale); color: var(--green-dark); padding: 2px 8px; border-radius: 10px; font-size: 0.78rem; font-weight: 600; }
.report-actions { display: flex; gap: 6px; flex-shrink: 0; }
.report-filename { display: flex; align-items: center; gap: 6px; }

/* ── Filter Bar ── */
.filter-bar { background: var(--white); border: 1px solid var(--grey-200); border-radius: var(--radius); padding: 16px; margin-bottom: 20px; box-shadow: var(--shadow-sm); }
.filter-form { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.filter-form--wrap { flex-wrap: wrap; }
.filter-bar--wide { }
.filter-group { display: flex; flex-direction: column; gap: 4px; min-width: 120px; }
.filter-group label { font-size: 0.75rem; font-weight: 600; color: var(--grey-600); text-transform: uppercase; letter-spacing: 0.04em; }

/* ── Dashboard layout ── */
.dashboard-actions { display: flex; gap: 12px; margin-bottom: 32px; flex-wrap: wrap; }
.dashboard-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.section { }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.section-header h2 { font-size: 1rem; font-weight: 700; color: var(--grey-900); }

/* ── Status Breakdown ── */
.status-breakdown { display: flex; flex-direction: column; gap: 8px; }
.status-item { display: flex; align-items: center; gap: 12px; padding: 8px 12px; background: var(--grey-50); border-radius: var(--radius-sm); }
.status-count { font-size: 1.1rem; font-weight: 700; color: var(--grey-800); margin-left: auto; }

/* ── Comments ── */
.comment-block { padding: 12px; background: var(--grey-50); border-radius: var(--radius-sm); margin-bottom: 8px; }
.comment-block h4 { font-size: 0.8rem; font-weight: 600; color: var(--grey-600); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 4px; }
.comment-block p { font-size: 0.875rem; color: var(--grey-800); }

/* ── Empty State ── */
.empty-state { text-align: center; padding: 60px 20px; color: var(--grey-600); }
.empty-icon { font-size: 3rem; margin-bottom: 16px; opacity: 0.5; }
.empty-state h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 8px; }
.empty-state p { margin-bottom: 20px; font-size: 0.875rem; }

/* ── Error Page ── */
.error-page { text-align: center; padding: 80px 20px; }
.error-icon { font-size: 3rem; color: var(--red); font-weight: 700; margin-bottom: 16px; }
.error-page h1 { font-size: 1.5rem; margin-bottom: 12px; }
.error-message { color: var(--grey-600); margin-bottom: 24px; }

/* ── Checkbox ── */
.checkbox-label { display: flex; align-items: center; gap: 8px; font-size: 0.875rem; cursor: pointer; }
.checkbox-label input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--green-dark); }

/* ── Actions ── */
.action-group { display: flex; gap: 4px; flex-wrap: wrap; }

/* ── Utilities ── */
.text-muted { color: var(--grey-400); }
.text-sm { font-size: 0.8rem; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-4 { margin-top: 24px; }

/* ── Address blocks ── */
.address-fieldset {
    border: 1px solid var(--grey-200);
    border-radius: var(--radius);
    padding: 16px 16px 12px;
    background: var(--grey-50);
}
.address-fieldset legend { padding: 0 6px; font-size: 0.875rem; font-weight: 600; color: var(--grey-800); }
.address-block { padding: 10px 14px; background: var(--grey-50); border-radius: var(--radius-sm); border-left: 3px solid var(--green-border); }
.address-label { display: block; font-size: 0.78rem; font-weight: 600; color: var(--grey-600); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 4px; }
.address-display { font-style: normal; font-size: 0.875rem; color: var(--grey-800); line-height: 1.5; }
.form-label--sm { font-size: 0.8rem; color: var(--grey-600); }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }

/* ── Print ── */
@media print {
    .header, .nav, .btn, .form-section, .admin-actions-panel, .footer { display: none !important; }
    .container { padding: 0; max-width: 100%; }
    .detail-card { box-shadow: none; border: 1px solid #ccc; }
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .admin-detail-grid { grid-template-columns: 1fr; }
    .detail-grid { grid-template-columns: 1fr; }
    .profile-grid { grid-template-columns: 1fr; }
    .dashboard-2col { grid-template-columns: 1fr; }
    .form-grid--2 { grid-template-columns: 1fr; }
    .form-grid--3 { grid-template-columns: 1fr 1fr; }
    .detail-list { grid-template-columns: 140px 1fr; }
}

@media (max-width: 680px) {
    .header-inner { height: 56px; }
    .nav-toggle { display: flex; }
    .nav {
        display: none;
        position: absolute;
        top: 56px;
        left: 0;
        right: 0;
        background: var(--green-dark);
        flex-direction: column;
        padding: 12px;
        box-shadow: var(--shadow-md);
        align-items: flex-start;
        gap: 2px;
    }
    .nav.is-open { display: flex; }
    .nav-link { width: 100%; padding: 10px 12px; }
    .hero { padding: 48px 20px 40px; flex-direction: column; }
    .hero-visual { display: none; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .form-grid--3 { grid-template-columns: 1fr; }
    .dashboard-actions { flex-direction: column; }
    .container, .container--wide { padding: 20px 16px; }
    .auth-card { padding: 28px 20px; }
    .detail-list { grid-template-columns: 1fr; }
    .detail-list dt { padding-bottom: 0; color: var(--grey-600); font-size: 0.78rem; }
    .admin-detail-grid { grid-template-columns: 1fr; }
    .filter-form { flex-direction: column; align-items: stretch; }
    .filter-group { min-width: 100%; }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .page-header { flex-direction: column; align-items: flex-start; }
}
