﻿
#plannedWorkedChart {
    height: 300px !important;
}

.card {
    max-width: 100%;
    max-height: 600px;
    width: 100%;
}

.requests-and-notices-card {
    max-width: 100%;
    height: fit-content;
    max-height: 1300px;
    width: 100%;
}

.tor-card {
    max-height: 1000px;
}

.sln-card {
    max-height: 1000px;
}

.uppermost-row {
    max-width: 100%;
    position: relative;
}

.uppermost-column {
    gap: 20px;
    display: flex;
    flex-direction: column;
}

#activeEmployeesContainer {
    overflow: hidden;
    overflow-y: auto;
    max-height: 250px;
}

#pendingTORContainer {
    overflow: hidden;
    overflow-y: auto;
    max-height: 250px;
}

#newSLNContainer {
    overflow: hidden;
    overflow-y: auto;
}

#locationCapacityContainer {
    position: relative;
}

#capacityCard {
    max-height: 870px;
}

    #capacityCard canvas {
        max-height: 260px;
    }

.stat-box {
    max-width: 100%;
    padding-left: 5px;
    padding-right: 5px;
}

/* badges */
.badge {
    display: inline-block;
    padding: 0.35em 0.65em;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 0.375rem;
}

/* Sick */
.badge-sick {
    background-color: rgba(165, 42, 42, 0.2);
    color: #a52a2a;
}

/* On vacation */
.badge-vacation, .badge-time {
    background-color: rgba(255, 193, 7, 0.2);
    color: #856404;
}

/* Free */
.badge-free {
    background-color: rgba(108, 117, 125, 0.15);
    color: #6c757d;
}

/* Working */
.badge-working, .badge-date, .badge-remuneration, .badge-has-d-note {
    background-color: rgba(40, 167, 69, 0.2);
    color: #155724;
}

/* On break */
.badge-break {
    background-color: rgba(0, 123, 255, 0.2);
    color: #004085;
}

/* Planned */
.badge-planned, .badge-duration {
    background-color: rgba(111, 66, 193, 0.2);
    color: #3d0a91;
}

/* Worked */
.badge-worked, .badge-no-d-note {
    background-color: rgba(220, 53, 69, 0.2);
    color: #721c24;
}

/* Late */
.badge-late {
    background-color: rgba(255, 140, 0, 0.2);
    color: #7f3f00;
}

/* Didn’t show up */
.badge-noshow {
    background-color: rgba(52, 58, 64, 0.2);
    color: #1b1e21;
}

.location-capacity-loader {
    /* display: none; */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 99999;
    max-width: 70px;
    max-height: 70px;
}

.tooltip-container {
    position: relative;
    display: inline-block;
}

.tooltip-text {
    visibility: hidden;
    background: #333;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    position: fixed;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 99999;
}

.tooltip-container:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
    transition-delay: 0.2s; /* show after 500ms */
    z-index: 99999;
}

/* Top overview row can be neutral */
.uppermost-row {
    margin-top: 0.5rem;
}

/* Main overview panel */
.overview-card {
    background: radial-gradient( circle at top left, #ecfdf5 0%, /* very light mint */
    #d1fae5 35%, /* soft pastel green */
    #f9fafb 100% /* almost white for readability */
    );
    border-radius: 1.2rem;
    border: 1px solid rgba(16, 185, 129, 0.35);
    padding: 1.5rem 1.75rem;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.9);
    margin-top:1.5rem;
}

    /* subtle glowing border line on top */
    .overview-card::before {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: inherit;
        border: 1px solid rgba(45, 212, 191, 0.28);
        pointer-events: none;
        mix-blend-mode: screen;
        opacity: 0.8;
    }

/* Optional: overview-specific vars */
:root {
    --ov-title: #065f46;
    --ov-text-muted: #6b7280;
    --ov-chip-bg: #ecfdf5;
    --ov-chip-border: rgba(16, 185, 129, 0.35);
}

/* ======================
   Overview card
   ====================== */

.overview-card {
    background: radial-gradient( circle at top left, #ecfdf5 0%, #d1fae5 35%, #f9fafb 100% );
    border-radius: 0.7rem;
    border: 1px solid rgba(16, 185, 129, 0.35);
    padding: 1.25rem 1.4rem;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(255, 255, 255, 0.8);
    position: relative;
}

    /* Title + subtitle */
    .overview-card h4 {
        color: var(--ov-title);
        font-weight: 600;
        margin-bottom: 0.15rem;
    }

    .overview-card p.text-muted {
        color: var(--ov-text-muted) !important;
        font-size: 0.85rem;
    }

/* ======================
   Filter bar
   ====================== */

.capacity-filters {
    background: linear-gradient( 135deg, rgba(236, 253, 245, 0.95), rgba(219, 234, 254, 0.9) );
    border-radius: 0.6rem;
    padding: 0.4rem 0.55rem;
    border: 1px solid rgba(148, 163, 184, 0.45);
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.16);
}

    .capacity-filters .form-select,
    .capacity-filters .form-control {
        border-radius: 0.4rem;
        border-color: rgba(148, 163, 184, 0.6);
        font-size: 0.85rem;
    }

        .capacity-filters .form-select:focus,
        .capacity-filters .form-control:focus {
            box-shadow: 0 0 0 2px rgba(45, 212, 191, 0.5);
            border-color: rgba(5, 150, 105, 0.9);
        }

/* ======================
   KPI chips
   ====================== */

.capacity-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 0.75rem;
}

.stat-box {
    background: linear-gradient(135deg, var(--ov-chip-bg), #eff6ff);
    border-radius: 0.55rem;
    padding: 0.55rem 0.7rem;
    border: 1px solid var(--ov-chip-border);
    box-shadow: 0 3px 8px rgba(15, 23, 42, 0.12);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ov-text-muted);
    margin-bottom: 0.1rem;
}

.stat-value {
    font-size: 1.15rem;
    font-weight: 700;
    color: #022c22;
}

/* ======================
   Chart & active employees
   ====================== */

.location-capacity-loader {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 40px;
    transform: translate(-50%, -50%);
    display: none; /* show via JS when loading */
}

/* capacity progress bar */
.capacity-progress {
    height: 0.65rem;
    border-radius: 0.4rem;
    background-color: #e5e7eb;
    overflow: hidden;
}

#capProgressBar {
    background: linear-gradient(90deg, #22c55e, #16a34a, #15803d);
}

/* Active employees box */
.active-employees-box {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 0.6rem;
    border: 1px solid rgba(148, 163, 184, 0.35);
    min-height: 160px;
    padding: 0.75rem 0.9rem;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}
