/* =========================================================
   CAPACITY MODAL
   ========================================================= */

.capacity-modal .modal-header {
    border-bottom: 1px solid #e9ecef;
    background: #f8f9fa;
}

.capacity-modal .modal-body {
    background: #fbfcfd;
}

.capacity-modal-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: linear-gradient(135deg, #007bff, #17a2b8);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.capacity-label {
    font-weight: 600;
    margin-bottom: 6px;
    display: block;
    color: #495057;
}

.capacity-loading {
    min-height: 180px;
}

.capacity-empty-state {
    border: 1px dashed #d6dbe1;
    border-radius: 12px;
    background: #fff;
}

.capacity-empty-icon {
    font-size: 42px;
    color: #b0b8c2;
}

.capacity-channel-header h4 {
    font-weight: 700;
    color: #243447;
}

.capacity-channel-description {
    font-size: 0.95rem;
}

.capacity-health-badge {
    font-size: 0.9rem;
    padding: 8px 12px;
    border-radius: 20px;
}

.capacity-card {
    border: 0;
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.capacity-card .card-body {
    padding: 18px 20px;
}

.capacity-card-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #6c757d;
    margin-bottom: 8px;
}

.capacity-card-value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    color: #243447;
}

.capacity-card-primary {
    border-left: 4px solid #007bff;
}

.capacity-card-warning {
    border-left: 4px solid #ffc107;
}

.capacity-card-info {
    border-left: 4px solid #17a2b8;
}

.capacity-card-secondary {
    border-left: 4px solid #6c757d;
}

.capacity-stage-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 12px;
}

.capacity-stage-box {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    background: #fff;
    padding: 18px 14px;
    text-align: center;
}

.capacity-stage-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: #6c757d;
    margin-bottom: 8px;
}

.capacity-stage-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: #243447;
}

.capacity-insights-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.capacity-insights-list li {
    padding: 8px 0;
    border-bottom: 1px solid #f1f3f5;
    color: #495057;
    font-size: 0.95rem;
}

.capacity-insights-list li:last-child {
    border-bottom: 0;
}

.capacity-users-table thead th {
    background: #f8f9fa;
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #6c757d;
    border-top: 0;
}

.capacity-users-table td,
.capacity-users-table th {
    vertical-align: middle;
}

@media (max-width: 767.98px) {
    .capacity-stage-grid {
        grid-template-columns: 1fr;
    }

    .capacity-card-value {
        font-size: 1.6rem;
    }
}