:root {
    --ink: #17242f;
    --muted: #65717c;
    --brand: #174a63;
    --surface: #f6f8fb;
    --line: #d9e1e8;
}

body {
    background: var(--surface);
    color: var(--ink);
}

.app-navbar {
    background: var(--brand);
}

.page-shell {
    max-width: 1440px;
    margin: 0 auto;
    padding: 1.25rem;
}

.toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(23, 36, 47, .06);
}

.panel-header {
    border-bottom: 1px solid var(--line);
    padding: 1rem;
}

.panel-body {
    padding: 1rem;
}

.estado-badge {
    display: inline-flex;
    align-items: center;
    min-width: 104px;
    justify-content: center;
    border-radius: 999px;
    padding: .35rem .75rem;
    font-weight: 700;
    font-size: .8rem;
    border: 1px solid rgba(0, 0, 0, .08);
}

.estado-rojo {
    background: #dc3545;
    color: #fff;
}

.estado-naranja {
    background: #ffc107;
    color: #2c2400;
}

.estado-amarillo {
    background: #ffeb3b;
    color: #282500;
}

.estado-verde {
    background: #28a745;
    color: #fff;
}

.estado-gris {
    background: #6c757d;
    color: #fff;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: .5rem;
}

.calendar-cell {
    min-height: 96px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    padding: .75rem;
    text-align: center;
    transition: border-color .15s ease, transform .15s ease;
}

.calendar-cell:hover {
    border-color: var(--brand);
    transform: translateY(-1px);
}

.calendar-cell.is-muted {
    opacity: .55;
}

.calendar-count {
    display: inline-flex;
    margin-top: .5rem;
    padding: .25rem .5rem;
    border-radius: 999px;
    background: #e7f1f6;
    color: var(--brand);
    font-weight: 700;
    font-size: .8rem;
}

.login-wrap {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: linear-gradient(135deg, #f6f8fb 0%, #e6eef3 100%);
}

.login-panel {
    width: min(100%, 420px);
}

.table-responsive {
    scrollbar-color: var(--line) transparent;
}

@media (max-width: 720px) {
    .page-shell {
        padding: .75rem;
    }

    .calendar-grid {
        grid-template-columns: 1fr;
    }

    .calendar-cell {
        min-height: 72px;
    }

    .toolbar {
        align-items: stretch;
    }

    .toolbar > * {
        width: 100%;
    }
}
