/* ============================================================
   Dashboard – Case Updates component styles
   ============================================================ */

/* ── Header ── */
.cu-header {
    background: linear-gradient(135deg, #c5a059 0%, #a8854a 100%);
}

.cu-btn-back {
    font-size: 0.85rem;
    padding: 0;
}

.cu-header-divider {
    border-inline-start: 1px solid rgba(255, 255, 255, 0.5);
    padding-inline-start: 1rem;
}

.cu-header-title {
    font-size: 1rem;
}

.cu-header-case-num {
    font-size: 0.85rem;
}

.cu-header-case-title {
    font-size: 0.8125rem;
}

.cu-badge-status {
    background: rgba(255, 255, 255, 0.25);
    font-size: 0.75rem;
}

.cu-badge-court {
    font-size: 0.75rem;
}

/* ── Toolbar ── */
.cu-filter-date {
    color: #c5a059;
}

.cu-date-input-group {
    width: 175px;
}

.cu-date-input {
    min-width: 0;
}

.cu-btn-clear {
    font-size: 0.8rem;
}

.cu-btn-print {
    color: #a8854a;
    border: 1px solid rgba(197, 160, 89, 0.4);
    background: rgba(197, 160, 89, 0.05);
    font-size: 0.8125rem;
    white-space: nowrap;
}

/* ── Timeline ── */
.cu-timeline {
    margin-inline-start: 0.25rem;
}

.cu-timeline-connector {
    width: 2px;
    background: #dee2e6;
    inset-inline-start: 22px;
    top: 54px;
    bottom: 0;
    z-index: 0;
}

.cu-cal {
    width: 48px;
    height: 69px;
    background: #fdf8f0;
    border: 1px solid #c5a059;
    flex-shrink: 0;
    z-index: 1;
    text-align: center;
    border-radius: 0.375rem;
    display: flex;
    flex-direction: column;
}

.cu-cal-month {
    background: #c5a059;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #fff;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 0.3rem 0.3rem 0 0;
    font-family: 'Segoe UI', Arial, sans-serif;
}

.cu-cal-day {
    font-size: 1.1rem;
    font-weight: 700;
    color: #a8854a;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Segoe UI', Arial, sans-serif;
}

.cu-cal-year {
    font-size: 0.6rem;
    color: #a8854a;
    opacity: 0.75;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
}

/* ── Update row ── */
.cu-update-content {
    min-width: 0;
    padding-inline-start: 0.75rem;
}

.cu-update-title {
    font-size: 0.9375rem;
}

.cu-btn-update-print {
    color: #a8854a;
    opacity: 0.75;
}

.cu-badge-update {
    font-size: 0.7rem;
}

.cu-update-desc {
    font-size: 0.875rem;
    line-height: 1.55;
    white-space: pre-line;
}

.cu-attachment-link {
    font-size: 0.8125rem;
}

/* ============================================================
   Booking component
   ============================================================ */

/* ── Flash ── */
.bk-flash {
    background: #fdf8f0;
    border-left: 3px solid #c5a059 !important;
    color: #a8854a;
}

/* ── Appointment list calendar badge ── */
.bk-cal {
    width: 48px;
    height: 69px;
    background: #fdf8f0;
    border: 1px solid #c5a059;
    flex-shrink: 0;
    border-radius: 0.375rem;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.bk-cal-month {
    background: #c5a059;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #fff;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
}

.bk-cal-day {
    font-size: 1.1rem;
    font-weight: 700;
    color: #a8854a;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Segoe UI', Arial, sans-serif;
}

.bk-cal-year {
    font-size: 0.6rem;
    color: #a8854a;
    opacity: 0.75;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
}

/* ── Appointment list items ── */
.bk-item-title {
    font-size: 0.875rem;
}

.bk-item-desc {
    font-size: 0.875rem;
}

.bk-badge {
    font-size: 0.7rem;
}

.bk-badge-upcoming {
    background: rgba(197, 160, 89, 0.18);
    color: #a8854a;
}

.bk-badge-past {
    background: #e9ecef;
    color: #6c757d;
}

/* ── Availability info box ── */
.bk-info-box {
    background: #fdf8f0;
    border: 1px solid rgba(197, 160, 89, 0.35);
    font-size: 0.8125rem;
    color: #a8854a;
}

/* ── Modal header ── */
.bk-modal-header {
    background: linear-gradient(135deg, #c5a059 0%, #a8854a 100%);
}

/* ── Time slots grid ── */
.bk-slots {
    /* Use row-gap + column-gap separately; 'gap' shorthand can be
       zeroed by Bootstrap RTL overrides in some browsers */
    row-gap: 0.5rem;
    column-gap: 0.5rem;
}

/* ── Time slot button ── */
.bk-slot {
    font-size: 0.8125rem;
    background: #fdf8f0;
    border: 1px solid rgba(197, 160, 89, 0.45);
    color: #a8854a;
}

.bk-slot.selected,
.bk-slot:focus {
    background: #c5a059;
    border-color: #c5a059;
    color: #fff;
}

.bk-slot.booked {
    background: #f5f5f5;
    border-color: #e0e0e0;
    color: #bbb;
    cursor: not-allowed;
    opacity: 0.7;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.2;
}

.bk-slot-booked-label {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #e57373;
    font-weight: 600;
}

/* ── Summary box ── */
.bk-summary {
    background: #fdf8f0;
    border: 1px solid rgba(197, 160, 89, 0.35);
    font-size: 0.8125rem;
}

.bk-summary-title {
    font-size: 0.8125rem;
    color: #a8854a;
}

.bk-summary-label {
    min-width: 90px;
    color: #a8854a;
    font-weight: 500;
}

.bk-summary-value {
    color: #6c757d;
}

/* ── Section headings ── */
.bk-section-heading {
    font-size: 0.875rem;
    color: #a8854a;
}

/* ── Form labels ── */
.bk-form-label {
    font-size: 0.875rem;
}

/* ── Validation error ── */
.bk-error {
    font-size: 0.8125rem;
}

.bk-btn-close {
    opacity: 0.9;
}

.bk-btn-close:hover {
    opacity: 1;
}