.sidebar {
    width: 240px;
    min-height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 100;
}

.sidebar .nav-link {
    border-radius: 6px;
    padding: 10px 12px;
    margin-bottom: 2px;
    font-size: 0.95rem;
}

.sidebar .nav-link.active {
    background-color: rgba(255, 255, 255, 0.15);
}

.sidebar .nav-link:hover:not(.disabled) {
    background-color: rgba(255, 255, 255, 0.1);
}

.main-content {
    margin-left: 240px;
    min-height: 100vh;
    background-color: #f8f9fa;
}

.top-bar {
    position: sticky;
    top: 0;
    z-index: 50;
}

/* KPI Cards */
.kpi-card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.kpi-card .card-body {
    padding: 1.25rem;
}

.kpi-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #212529;
}

.kpi-label {
    font-size: 0.85rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.kpi-delta {
    font-size: 0.85rem;
    font-weight: 600;
}

.kpi-delta.positive { color: #198754; }
.kpi-delta.negative { color: #dc3545; }

/* Status badges */
.status-ok { background-color: #198754; }
.status-near-limit { background-color: #fd7e14; }
.status-at-cap { background-color: #dc3545; }
.status-low { background-color: #0d6efd; }

/* Labor % color coding */
.labor-green { color: #198754; font-weight: 700; }
.labor-amber { color: #fd7e14; font-weight: 700; }
.labor-red { color: #dc3545; font-weight: 700; }

/* Tables */
.table-cobblestone thead th {
    background-color: #343a40;
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
}

.table-cobblestone tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.03);
}

.table-cobblestone .total-row {
    font-weight: 700;
    background-color: #e9ecef;
    border-top: 2px solid #343a40;
}

/* Week selector */
.week-selector {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.week-selector .btn {
    padding: 0.25rem 0.5rem;
}

.week-selector .current-week {
    font-weight: 600;
    min-width: 200px;
    text-align: center;
}

/* Category badges */
.cat-upper-management { background-color: #6f42c1; }
.cat-management { background-color: #0d6efd; }
.cat-staff { background-color: #198754; }

/* Charts */
.chart-container {
    position: relative;
    height: 300px;
}
