/* ============================================================
   Gestione Turni — Stylesheet v1.0
   ============================================================ */

:root {
    --primary:    #3b82f6;
    --primary-dark: #2563eb;
    --secondary:  #64748b;
    --success:    #22c55e;
    --warning:    #f59e0b;
    --danger:     #ef4444;
    --info:       #06b6d4;
    --dark:       #1e293b;
    --light:      #f8fafc;
    --border:     #e2e8f0;
    --text:       #334155;
    --text-muted: #94a3b8;
    --radius:     8px;
    --shadow:     0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
    --shadow-md:  0 4px 6px rgba(0,0,0,.1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    font-size: 14px;
    color: var(--text);
    background: var(--light);
    line-height: 1.5;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- NAVBAR ---- */
.navbar {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--dark);
    color: #fff;
    padding: .75rem 1.5rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-md);
}

.nav-brand a {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

/* ---- Burger button (mobile) ---- */
.nav-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    padding: 4px;
    background: none;
    border: 1px solid rgba(255,255,255,.3);
    border-radius: var(--radius);
    cursor: pointer;
    margin-left: auto;
}
.nav-burger span {
    display: block;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform .25s, opacity .25s;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- Nav collapse wrapper ---- */
.nav-collapse {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex: 1;
}

/* ---- Nav links ---- */
.nav-links {
    display: flex;
    list-style: none;
    gap: .25rem;
    flex: 1;
    flex-wrap: wrap;
}

.nav-links a {
    color: #cbd5e1;
    padding: .4rem .75rem;
    border-radius: var(--radius);
    font-size: .85rem;
    text-decoration: none;
    transition: background .15s;
    white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active { background: rgba(255,255,255,.15); color: #fff; }

/* ---- Dropdown (desktop: hover) ---- */
.nav-dropdown { position: relative; }
.nav-dropdown .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--dark);
    border: 1px solid #334155;
    border-radius: var(--radius);
    min-width: 160px;
    z-index: 200;
    padding: .25rem 0;
}
.nav-dropdown:hover .dropdown-menu { display: block; }
.nav-dropdown.open .dropdown-menu  { display: block; } /* mobile tap */
.nav-dropdown .dropdown-menu li { list-style: none; }
.nav-dropdown .dropdown-menu a {
    display: block;
    padding: .5rem 1rem;
    font-size: .85rem;
    color: #cbd5e1;
    text-decoration: none;
}
.nav-dropdown .dropdown-menu a:hover { background: rgba(255,255,255,.1); color: #fff; }

/* ---- Nav user (nome + esci) ---- */
.nav-user {
    display: flex;
    align-items: center;
    gap: .75rem;
    font-size: .85rem;
    color: #94a3b8;
    white-space: nowrap;
    flex-shrink: 0;
}
/* "Esci" visibile su sfondo scuro */
.nav-user .btn-outline {
    border-color: rgba(255,255,255,.4);
    color: #fff;
}
.nav-user .btn-outline:hover {
    background: rgba(255,255,255,.15);
}

/* ---- MOBILE ---- */
@media (max-width: 768px) {
    .navbar {
        flex-wrap: wrap;
        padding: .6rem 1rem;
        gap: .5rem;
    }

    .nav-burger { display: flex; }

    /* Il collapse è nascosto di default su mobile */
    .nav-collapse {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        border-top: 1px solid #334155;
        padding-top: .5rem;
        margin-top: .25rem;
    }
    .nav-collapse.open { display: flex; }

    .nav-links {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }
    .nav-links > li { width: 100%; }
    .nav-links a {
        display: block;
        padding: .65rem .75rem;
        border-radius: 0;
        border-bottom: 1px solid rgba(255,255,255,.05);
    }

    /* Dropdown mobile: si apre verso il basso nel flusso */
    .nav-dropdown:hover .dropdown-menu { display: none; } /* disabilita hover su touch */
    .nav-dropdown.open .dropdown-menu {
        display: block;
        position: static;
        border: none;
        padding: 0 0 0 1rem;
        background: rgba(255,255,255,.05);
        border-radius: 0;
    }
    .nav-dropdown .dropdown-menu a {
        padding: .5rem .75rem;
    }

    .nav-user {
        padding: .65rem .75rem;
        border-top: 1px solid #334155;
        margin-top: .25rem;
        width: 100%;
        justify-content: space-between;
    }
}

/* ---- CONTAINER ---- */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem;
}

/* ---- PAGE HEADER ---- */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}
.page-header h2 { font-size: 1.4rem; }

/* ---- CARDS ---- */
.card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .875rem 1.25rem;
    border-bottom: 1px solid var(--border);
    font-weight: 600;
}
.card-header h3 { font-size: 1rem; }
.card-body { padding: 1.25rem; }

/* ---- BUTTONS ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .5rem 1rem;
    border: none;
    border-radius: var(--radius);
    font-size: .875rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: opacity .15s, transform .1s;
    white-space: nowrap;
}
.btn:hover { opacity: .9; text-decoration: none; }
.btn:active { transform: scale(.98); }

.btn-primary  { background: var(--primary);   color: #fff; }
.btn-secondary{ background: var(--secondary); color: #fff; }
.btn-success  { background: var(--success);   color: #fff; }
.btn-warning  { background: var(--warning);   color: #fff; }
.btn-danger   { background: var(--danger);    color: #fff; }
.btn-info     { background: var(--info);      color: #fff; }
.btn-outline  {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
}
.btn-outline:hover { background: var(--light); }
.btn-sm  { padding: .35rem .75rem; font-size: .8rem; }
.btn-xs  { padding: .2rem .5rem;  font-size: .75rem; }
.btn-full { width: 100%; justify-content: center; }

/* ---- BADGES ---- */
.badge {
    display: inline-block;
    padding: .2em .6em;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 600;
    line-height: 1;
}
.badge-primary   { background: var(--primary);   color: #fff; }
.badge-secondary { background: var(--secondary); color: #fff; }
.badge-success   { background: var(--success);   color: #fff; }
.badge-warning   { background: #fef9c3; color: #854d0e; border: 1px solid var(--warning); }
.badge-danger    { background: var(--danger);    color: #fff; }
.badge-info      { background: var(--info);      color: #fff; }
.badge-dark      { background: var(--dark);      color: #fff; }
.badge-outline-danger { background: transparent; border: 1px solid var(--danger); color: var(--danger); }

/* ---- ALERTS ---- */
.alert {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: .875rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    font-size: .9rem;
}
.alert-close { background: none; border: none; cursor: pointer; font-size: 1rem; flex-shrink: 0; }
.alert-success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }
.alert-error   { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.alert-warning { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }
.alert-info    { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; }

/* ---- FORMS ---- */
.form-group {
    display: flex;
    flex-direction: column;
    gap: .3rem;
    margin-bottom: 1rem;
}
.form-group label { font-weight: 500; font-size: .875rem; }
.form-group input,
.form-group select,
.form-group textarea {
    padding: .5rem .75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: .9rem;
    width: 100%;
    transition: border-color .15s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59,130,246,.15);
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.form-actions {
    display: flex;
    gap: .75rem;
    margin-top: 1.25rem;
}
.checkbox-label {
    display: flex;
    align-items: center;
    gap: .5rem;
    cursor: pointer;
    font-weight: 400;
}
.checkbox-label input { width: auto; }
.inline-form {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    flex-wrap: wrap;
}
.inline-form .form-group { margin-bottom: 0; }

/* ---- TABLES ---- */
.table {
    width: 100%;
    border-collapse: collapse;
    font-size: .875rem;
}
.table th, .table td {
    padding: .65rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}
.table th {
    background: var(--light);
    font-weight: 600;
    color: var(--secondary);
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .03em;
}
.table-hover tr:hover td { background: #f8fafc; }
.table-bordered td, .table-bordered th { border: 1px solid var(--border); }
.actions { white-space: nowrap; }
.actions .btn { margin-right: .25rem; }
.row-inactive td { opacity: .6; }
.row-warning td  { background: #fffbeb; }
.row-danger td   { background: #fef2f2; }
.text-center { text-align: center; }
.table-scroll { overflow-x: auto; }

/* ---- LAYOUT ---- */
.row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}
.col {}
.col-narrow { max-width: 340px; }
.mb-2 { margin-bottom: 1rem; }
.mt-2 { margin-top: 1rem; }

/* ---- STATS GRID ---- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.stat-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    text-align: center;
    box-shadow: var(--shadow);
}
.stat-icon  { font-size: 2rem; margin-bottom: .5rem; }
.stat-value { font-size: 2rem; font-weight: 700; color: var(--dark); }
.stat-label { color: var(--text-muted); font-size: .85rem; margin-top: .25rem; }
.stat-success .stat-value { color: var(--success); }
.stat-warning .stat-value { color: var(--warning); }
.stat-danger  .stat-value { color: var(--danger); }

/* ---- QUICK ACTIONS ---- */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: .75rem;
}
.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    padding: 1rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text);
    text-align: center;
    font-size: .875rem;
    transition: box-shadow .15s, transform .1s;
}
.quick-action-btn span { font-size: 1.75rem; }
.quick-action-btn:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); text-decoration: none; }

/* ---- TOOLBAR ---- */
.toolbar {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-wrap: wrap;
}

/* ---- LEGENDA ---- */
.legenda {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
    font-size: .8rem;
}

/* ---- CALENDARIO GRID ---- */
.calendario-grid .fascia-cell {
    background: var(--light);
    vertical-align: middle;
    font-size: .8rem;
}
.calendario-cell {
    vertical-align: top;
    padding: .35rem;
    min-width: 110px;
    position: relative;
}
.cell-scoperto { background: #fef2f2; }
.cell-ok       { background: #f0fdf4; }
.cell-na       { background: var(--light); }
.day-col       { min-width: 110px; }

.copertura-bar {
    font-size: .7rem;
    font-weight: 600;
    margin-bottom: .25rem;
    color: var(--text-muted);
}
.icon-warn { color: var(--danger); }

.turno-badge {
    position: relative;
    padding: .3rem .5rem;
    border-radius: 4px;
    margin-bottom: .2rem;
    font-size: .78rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .25rem;
}
.turno-badge.stato-proposto   { background: #fef9c3; border-left: 3px solid var(--warning); }
.turno-badge.stato-approvato  { background: #f0fdf4; border-left: 3px solid var(--success); }
.turno-badge.stato-rifiutato  { background: #fef2f2; border-left: 3px solid var(--danger); opacity: .7; }
.turno-badge.stato-bozza      { background: var(--light); border-left: 3px solid var(--secondary); }
.turno-badge.stato-completato { background: #f0f9ff; border-left: 3px solid var(--info); }
.turno-nome { font-weight: 600; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.turno-actions {
    display: flex;
    gap: .1rem;
    flex-shrink: 0;
}
.btn-turno {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0 .2rem;
    font-size: .85rem;
    border-radius: 3px;
    line-height: 1;
}
.btn-turno:hover { background: rgba(0,0,0,.1); }
.btn-turno.approve { color: var(--success); }
.btn-turno.reject  { color: var(--danger); }
.btn-turno.del     { color: var(--secondary); }

/* ---- FABBISOGNO GRID ---- */
.fabbisogno-grid .input-fabbisogno {
    width: 55px;
    text-align: center;
    padding: .3rem;
}

/* ---- MODAL ---- */
.modal {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 400;
}
.modal-dialog {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: 0 20px 60px rgba(0,0,0,.2);
    width: 100%;
    max-width: 480px;
    z-index: 501;
    position: relative;
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
}
.modal-header button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-muted);
}
.modal-body { padding: 1.25rem; }

/* ---- TURNI LISTA (dipendente) ---- */
.turni-lista { display: flex; flex-direction: column; gap: .5rem; }
.turno-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: .75rem 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}
.turno-item.stato-approvato { border-left: 4px solid var(--success); }
.turno-item.stato-proposto  { border-left: 4px solid var(--warning); }
.turno-item.stato-rifiutato { border-left: 4px solid var(--danger); opacity: .7; }
.turno-data { min-width: 100px; }
.turno-data strong { display: block; }
.turno-info { flex: 1; display: flex; gap: 1rem; flex-wrap: wrap; }
.turno-orario, .turno-negozio { color: var(--secondary); font-size: .875rem; }

/* ---- CALENDAR WEEK (dipendente) ---- */
.calendar-week {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: .5rem;
}
.day-column { min-width: 0; }
.day-header {
    background: var(--dark);
    color: #fff;
    padding: .5rem;
    border-radius: var(--radius) var(--radius) 0 0;
    text-align: center;
    font-size: .8rem;
}
.day-header strong { display: block; }
.day-empty { text-align: center; color: var(--text-muted); padding: 1rem 0; }
.turno-card {
    padding: .5rem;
    border-radius: 0 0 var(--radius) var(--radius);
    border: 1px solid var(--border);
    border-top: none;
    margin-bottom: .25rem;
    font-size: .8rem;
}
.turno-card.stato-approvato  { border-left: 3px solid var(--success); }
.turno-card.stato-proposto   { border-left: 3px solid var(--warning); }
.turno-card.stato-completato { border-left: 3px solid var(--info); }
.tc-time  { font-weight: 700; }
.tc-store { color: var(--secondary); }
.tc-badge { margin-top: .25rem; }

/* ---- DISPONIBILITA GRID ---- */
.disponibilita-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
}
.disp-day { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.disp-day-header {
    background: var(--dark);
    color: #fff;
    padding: .5rem .75rem;
    font-size: .85rem;
}
.disp-day-header strong { display: block; }
.disp-slot {
    display: flex;
    flex-direction: column;
    padding: .5rem .75rem;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background .1s;
}
.disp-slot:last-child { border-bottom: none; }
.disp-slot input { display: none; }
.disp-slot-active { background: #f0fdf4; }
.disp-time { font-weight: 600; font-size: .85rem; }
.disp-name { font-size: .8rem; color: var(--secondary); }
.disp-store { font-size: .75rem; color: var(--text-muted); }

/* ---- PROGRESS BAR ---- */
.progress-bar {
    height: 8px;
    background: var(--border);
    border-radius: 999px;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 999px;
    transition: width .3s;
}

/* ---- TEXT UTILS ---- */
.text-muted   { color: var(--text-muted); }
.text-warning { color: var(--warning); }
.text-success { color: var(--success); }
.text-danger  { color: var(--danger); }

/* ---- FOOTER ---- */
.footer {
    text-align: center;
    padding: 1.5rem;
    color: var(--text-muted);
    font-size: .8rem;
    border-top: 1px solid var(--border);
    margin-top: 2rem;
}

/* ---- LOGIN PAGE ---- */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}
.login-card {
    background: #fff;
    border-radius: 12px;
    padding: 2.5rem;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0,0,0,.3);
    text-align: center;
}
.login-logo { font-size: 3rem; margin-bottom: .5rem; }
.login-card h1 { font-size: 1.5rem; margin-bottom: .25rem; }
.login-subtitle { color: var(--text-muted); margin-bottom: 1.5rem; }
.login-card .form-group { text-align: left; }
.login-hint {
    margin-top: 1.5rem;
    font-size: .8rem;
    color: var(--text-muted);
    padding: .75rem;
    background: var(--light);
    border-radius: var(--radius);
}

/* ---- DISPONIBILITÀ ADMIN ---- */
.hidden { display: none !important; }

/* Vista per slot */
.disp-admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}
.disp-admin-day {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.disp-admin-day-header {
    background: var(--dark);
    color: #fff;
    padding: .5rem .85rem;
    display: flex;
    justify-content: space-between;
    font-size: .85rem;
}
.disp-slot-admin {
    padding: .6rem .85rem;
    border-bottom: 1px solid var(--border);
    font-size: .8rem;
}
.disp-slot-admin:last-child { border-bottom: none; }
.disp-slot-admin.slot-ok       { background: #f0fdf4; }
.disp-slot-admin.slot-basso    { background: #fffbeb; }
.disp-slot-admin.slot-scoperto { background: #fef2f2; }

.slot-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: .35rem;
}
.slot-time { font-weight: 600; }
.slot-count {
    font-size: .75rem;
    font-weight: 700;
    color: var(--secondary);
    white-space: nowrap;
}
.slot-group { display: flex; flex-wrap: wrap; gap: .2rem; margin-bottom: .2rem; }
.slot-nessuna { opacity: .55; }

.dip-pill {
    display: inline-block;
    padding: .15em .45em;
    border-radius: 999px;
    font-size: .72rem;
    white-space: nowrap;
}
.pill-assegnato   { background: #dbeafe; color: #1e40af; border: 1px solid #93c5fd; }
.pill-disponibile { background: #dcfce7; color: #166534; border: 1px solid #86efac; }
.pill-assente     { background: #fef9c3; color: #854d0e; border: 1px solid #fde68a; }
.pill-nessuna     { background: var(--light); color: var(--text-muted); border: 1px solid var(--border); }

/* Vista matrice */
.disp-matrix { font-size: .78rem; }
.matrix-th-dip  { min-width: 130px; background: var(--light); font-weight: 600; }
.matrix-day     { background: var(--dark); color: #fff; font-size: .75rem; white-space: nowrap; }
.matrix-fascia  { background: #f1f5f9; font-size: .72rem; white-space: nowrap; min-width: 52px; }
.matrix-dip-nome { font-weight: 600; white-space: nowrap; }
.matrix-cell    { width: 48px; padding: .3rem; font-size: .9rem; }
.matrix-cell-sample {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px; height: 26px;
    border-radius: 4px;
    font-size: .85rem;
    vertical-align: middle;
}

.cell-disponibile     { background: #dcfce7; color: #166534; }
.cell-assegnato       { background: #dbeafe; color: #1e40af; }
.cell-assente         { background: #fef9c3; color: #854d0e; }
.cell-non-disponibile { background: #fef2f2; color: #991b1b; }
.cell-nessuna         { background: var(--light); color: var(--text-muted); }

/* ---- DISPONIBILITÀ UTENTE (admin form) ---- */
.dip-info-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .75rem 1.5rem;
    padding: .75rem 1.25rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: .875rem;
}
.dip-info-nome {
    font-weight: 700;
    font-size: 1rem;
}
.dip-info-detail { color: var(--secondary); }

/* ---- RESPONSIVE (non-navbar) ---- */
@media (max-width: 768px) {
    .row { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .calendar-week { grid-template-columns: repeat(3, 1fr); }
    .col-narrow { max-width: 100%; }
}

@media (max-width: 480px) {
    .calendar-week { grid-template-columns: 1fr 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
}
