/* Shared components used by both the Customer Request Portal (NewRequest.html)
   and the Partner Management Hub (PartnerPortal.html). Each page defines its own
   --brand-accent and --text-muted values to theme these controls. */

.cal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.cal-nav-btn {
    background: #f1f5f9;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 0.375rem;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
}

.cal-nav-btn:hover { background: #e2e8f0; }

.cal-month-label {
    font-weight: 700;
    font-size: 0.95rem;
}

.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.35rem;
}

.cal-grid-labels { margin-bottom: 0.35rem; }

.cal-day-label {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
}

.cal-cell {
    aspect-ratio: 1;
    border: none;
    border-radius: 0.375rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    background: #f1f5f9;
    color: var(--text-muted);
}

.cal-cell-empty { background: transparent; cursor: default; }

.cal-available { background: #d1fae5; color: #065f46; }
.cal-unavailable { background: #f1f5f9; color: #94a3b8; }

.cal-disabled { opacity: 0.4; cursor: not-allowed; }

.cal-today { box-shadow: inset 0 0 0 2px var(--brand-accent, #0f172a); }

.cal-selected {
    background: var(--brand-accent, #10b981) !important;
    color: white !important;
}

.cal-legend {
    display: flex;
    gap: 1rem;
    margin-top: 0.75rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.cal-legend-swatch {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 0.2rem;
    margin-right: 0.35rem;
    vertical-align: middle;
}
