/* ========== 步驟指示器 ========== */
    .step-wizard { display: flex; align-items: center; justify-content: center; margin-bottom: 2rem; overflow-x: auto; }
    .step-item { display: flex; flex-direction: column; align-items: center; min-width: 56px; }
    .step-circle { width: 38px; height: 38px; border-radius: 50%; background: #dee2e6; color: #6c757d; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .95rem; transition: all .3s; }
    .step-item.active .step-circle { background: var(--clinic-primary, var(--ds-primary)); color: #fff; }
    .step-item.done   .step-circle { background: #198754; color: #fff; }
    .step-label { font-size: .7rem; margin-top: 4px; color: #6c757d; white-space: nowrap; }
    .step-item.active .step-label { color: var(--clinic-primary, var(--ds-primary)); font-weight: 600; }
    .step-item.done   .step-label { color: #198754; }
    .step-line { flex: 1; height: 3px; background: #dee2e6; min-width: 16px; max-width: 64px; margin-bottom: 20px; transition: background .3s; }
    .step-line.done { background: #198754; }

    /* ========== 週曆樣式 ========== */
    .cal-table { min-width: 700px; table-layout: fixed; border-collapse: collapse; }
    .cal-table th, .cal-table td { vertical-align: top; padding: 0; }
    .cal-session-col { width: 72px; min-width: 72px; }
    .cal-session-label { font-weight: 700; font-size: .78rem; text-align: center; padding: 10px 4px !important; vertical-align: middle !important; background: #f8f9fa; line-height: 1.4; border: 1px solid #dee2e6; }
    .cal-date-hd { font-weight: 700; font-size: .78rem; text-align: center; padding: 8px 4px !important; border: 1px solid #dee2e6; background: #f8f9fa; line-height: 1.5; }
    .cal-date-hd.today   { background: #e8f4fd; color: var(--clinic-primary, var(--ds-primary)); border-bottom: 3px solid var(--clinic-primary, var(--ds-primary)); }
    .cal-date-hd.weekend { background: #fff9ec; }
    .cal-date-hd.past-hd { opacity: .5; }
    .cal-cell { padding: 5px !important; min-height: 80px; border: 1px solid #dee2e6; }
    .cal-cell.past-cell  { background: #fafafa; }
    .cal-cell.today-cell { background: #f0f8ff; }
    .cal-slot { display: block; width: 100%; border: 1.5px solid transparent; border-radius: 8px; padding: 6px 7px; margin: 2px 0; font-size: .76rem; cursor: pointer; text-align: left; transition: transform .15s, box-shadow .15s; background: #fff; line-height: 1.4; }
    .cal-slot:hover       { transform: scale(1.05); box-shadow: 0 4px 12px rgba(0,0,0,.18); z-index: 10; position: relative; }
    .cal-slot { border: 1.5px solid transparent; }
    .cal-slot.slot-full   { opacity: .55; cursor: not-allowed; border-style: dashed !important; }
    .cal-slot.slot-full:hover { transform: none; box-shadow: none; }
    .cal-slot-doctor { font-weight: 700; font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .cal-slot-spec   { color: #888; font-size: .68rem; }
    .cal-slot-avail  { font-size: .69rem; font-weight: 600; margin-top: 1px; }
    .cal-empty { color: #6c757d; font-size: .8rem; text-align: center; display: block; padding: 16px 0; }
    .week-nav    { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
    .week-title  { font-size: .95rem; font-weight: 600; }
    .legend-item { display: flex; align-items: center; gap: 5px; font-size: .74rem; color: #555; }
    .legend-dot  { width: 14px; height: 14px; border-radius: 4px; }

    /* ========== 已選時段摘要（單色、無色塊標籤） ========== */
    .booking-sel-summary {
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        border-radius: 10px;
    }
    .booking-sel-summary .card-body {
        gap: .75rem 1.25rem;
    }
    .booking-sel-field {
        display: flex;
        flex-direction: column;
        gap: 2px;
        min-width: 0;
    }
    .booking-sel-label {
        font-size: .68rem;
        font-weight: 600;
        color: #64748b;
        letter-spacing: .04em;
    }
    .booking-sel-value {
        font-size: .9rem;
        font-weight: 600;
        color: #1e293b;
        white-space: nowrap;
    }
    .booking-sel-sep {
        width: 1px;
        align-self: stretch;
        min-height: 2rem;
        background: #e2e8f0;
        flex-shrink: 0;
    }
    @media (max-width: 576px) {
        .booking-sel-sep { display: none; }
        .booking-sel-summary .card-body { flex-direction: column; align-items: stretch !important; }
    }

    @media (max-width: 576px) {
        .cal-table { min-width: 560px; }
        .cal-slot  { padding: 4px 5px; font-size: .7rem; }
    }
