/* EagleIV Staffing Management Dashboard Styles */

/* Controls Card */
.staffing-controls-card {
    background: white;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    padding: 20px 24px;
    margin-bottom: 20px;
}

.controls-section {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.controls-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.controls-section-title {
    font-size: 10px;
    font-weight: 600;
    color: #999;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.controls-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-end;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Toggle Switch */
.toggle-switch {
    display: flex;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
}

.toggle-btn {
    padding: 6px 14px;
    font-size: 12px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    color: #666;
    background: white;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.toggle-btn:not(:last-child) {
    border-right: 1px solid #e0e0e0;
}

.toggle-btn.toggle-active {
    background: #00bfa5;
    color: white;
    font-weight: 600;
}

.toggle-btn:hover:not(.toggle-active) {
    background: #f5f5f5;
}

/* Select Dropdown */
.staffing-select {
    padding: 6px 10px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 12px;
    font-family: 'Inter', sans-serif;
    color: #333;
    background: white;
    cursor: pointer;
    min-width: 100px;
    outline: none;
    transition: border-color 0.2s;
}

.staffing-select:focus {
    border-color: #00bfa5;
}

/* Input */
.staffing-input {
    padding: 6px 10px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 12px;
    font-family: 'Inter', sans-serif;
    color: #333;
    background: white;
    outline: none;
    width: 140px;
    transition: border-color 0.2s;
}

.staffing-input:focus {
    border-color: #00bfa5;
}

/* Data Range Controls */
.data-range-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.range-type-tabs {
    display: flex;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    margin-right: 4px;
}

.range-tab {
    padding: 6px 12px;
    font-size: 11px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    color: #666;
    background: white;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.range-tab:not(:last-child) {
    border-right: 1px solid #e0e0e0;
}

.range-tab.range-tab-active {
    background: #e8f5f3;
    color: #00bfa5;
    font-weight: 600;
}

.range-tab:hover:not(.range-tab-active) {
    background: #f5f5f5;
}

.range-span-controls,
.range-date-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}

.date-input-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* Radio Group */
.radio-group {
    display: flex;
    gap: 12px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #333;
    cursor: pointer;
}

.radio-label input[type="radio"] {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border: 2px solid #ccc;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    transition: all 0.15s;
    margin: 0;
}

.radio-label input[type="radio"]:checked {
    border-color: #00bfa5;
}

.radio-label input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #00bfa5;
}

/* Chart Grid - 2 columns */
.staffing-chart-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.staffing-chart-card {
    /* inherits from .chart-card */
}

.staffing-chart-body {
    height: 380px;
}

/* Legend */
.staffing-legend {
    display: flex;
    gap: 24px;
    justify-content: center;
    padding: 16px 0 24px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.legend-swatch {
    width: 24px;
    height: 3px;
    border-radius: 2px;
}

.legend-swatch-piu {
    background: #00bfa5;
}

.legend-swatch-capacity {
    background: #9e9e9e;
    border-top: 2px dashed #9e9e9e;
    height: 0;
}

.legend-swatch-stat {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d32f2f;
}

.legend-text {
    font-size: 11px;
    color: #666;
}

/* Responsive */
@media (max-width: 1200px) {
    .staffing-chart-grid {
        grid-template-columns: 1fr;
    }

    .controls-row {
        gap: 12px;
    }
}

@media (max-width: 768px) {
    .staffing-controls-card {
        padding: 12px;
    }

    .radio-group {
        flex-direction: column;
        gap: 6px;
    }

    .data-range-controls {
        flex-wrap: wrap;
    }
}
