/* =================== ACCORDION =================== */
.accordion {
    margin-bottom: 0.75rem;
    border-radius: 8px;
    overflow: hidden;
    background: var(--white);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: var(--white);
    border: none;
    width: 100%;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    transition: background 0.2s;
}

.accordion-header:hover {
    background: #f9f9f9;
}

.accordion-header .arrow {
    transition: transform 0.2s;
    font-size: 0.8rem;
    color: #999;
}

.accordion.open > .accordion-header .arrow {
    transform: rotate(180deg);
}

.accordion-body {
    display: none;
    padding: 0 1rem 1rem;
}

.accordion.open > .accordion-body {
    display: block;
}

/* =================== SCHEDULE SLOTS =================== */
.slot-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
}

.slot-item:last-child {
    border-bottom: none;
}

.slot-info {
    flex: 1;
}

.slot-time {
    font-weight: 600;
    font-size: 0.9rem;
    color: #333;
}

.slot-details {
    font-size: 0.8rem;
    color: #666;
    margin-top: 0.2rem;
}

.slot-capacity {
    font-size: 0.75rem;
    color: var(--primary-color);
    margin-top: 0.15rem;
}

.btn-book {
    padding: 0.5rem 1rem;
    background: linear-gradient(45deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: var(--white);
    border: none;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.btn-book:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.btn-book:disabled {
    background: #ccc;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* =================== SLOT ACTIONS & SELECT =================== */
.slot-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
}

.slot-service-select {
    width: 100%;
    min-width: 140px;
    padding: 0.45rem 2rem 0.45rem 0.65rem;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.78rem;
    color: #374151;
    background-color: #f9fafb;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3e%3cpath fill='%232563eb' d='M6 8L1 3h10z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.6rem center;
    background-size: 10px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    outline: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.slot-service-select:focus {
    border-color: var(--primary-color);
    background-color: var(--white);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.slot-service-select:hover {
    border-color: #93c5fd;
}

/* =================== WEEK NAVIGATION =================== */
.week-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
    margin-bottom: 1rem;
}

.week-nav-btn {
    padding: 0.5rem 1rem;
    background: linear-gradient(45deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: var(--white);
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
}

.week-nav-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.week-nav-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
}

/* =================== BACK BUTTON =================== */
.btn-back {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: #f3f4f6;
    color: #4b5563;
    border: 1.5px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease;
    margin-bottom: 1rem;
}

.btn-back:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

/* =================== STAFF GROUP (inside day accordion) =================== */
.staff-group {
    margin-bottom: 0.75rem;
    border-left: 3px solid var(--primary-color);
    padding-left: 0.75rem;
}

.staff-group-header {
    font-weight: 600;
    font-size: 0.9rem;
    color: #333;
    padding: 0.4rem 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 0.5rem;
}

.staff-group-slots {
    padding-left: 0.25rem;
}

/* =================== COMPANY SELECTOR (Schedules) =================== */
.company-selector-wrap {
    margin-bottom: 0.75rem;
}

.company-selector {
    width: 100%;
    padding: 0.65rem 2rem 0.65rem 0.9rem;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #1f2937;
    background-color: var(--white);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3e%3cpath fill='%232563eb' d='M6 8L1 3h10z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 10px;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.company-selector:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* =================== ACCORDION DATE (nested) =================== */
.accordion-date {
    box-shadow: none;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    margin-bottom: 0.5rem;
}

.accordion-header-date {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--primary-color);
    background: #f0f4ff;
    padding: 0.75rem 1rem;
}

.accordion-header-date:hover {
    background: #e8efff;
}


/* =================== SCHEDULE VIEW (New Design) =================== */
.schedule-view {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0.5rem 0;
}

/* =================== SCHEDULE HEADER =================== */
.schedule-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    background: var(--white);
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.schedule-header-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
}

.schedule-header-avatar {
    width: 60px;
    height: 60px;
    min-width: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.4rem;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
    overflow: hidden;
}

.schedule-header-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.schedule-header-text {
    flex: 1;
    min-width: 0;
}

.schedule-company-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.schedule-subtitle {
    font-size: 0.8rem;
    color: var(--gray);
    margin: 0.15rem 0 0;
}

/* Company Switcher Button */
.schedule-header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    margin-left: 0.75rem;
}

.schedule-header .btn-company-switch {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid #e2e8f0;
    background: var(--light);
    color: var(--gray);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.schedule-header .btn-company-switch:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: #eff6ff;
}

/* Schedule Type Badge */
.schedule-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.8rem;
    background: #f0f9ff;
    border: 1.5px solid #bfdbfe;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #1e40af;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    flex-shrink: 0;
}

.schedule-type-badge i {
    font-size: 0.7rem;
}

/* =================== DAY SELECTOR WRAPPER =================== */
.day-selector-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    background: var(--white);
    border-radius: 16px;
    padding: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* =================== DAY SELECTOR (Scrollable) =================== */
.day-selector {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    flex: 1;
    padding: 0.25rem 0;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.day-selector::-webkit-scrollbar {
    display: none;
}

/* =================== DAY SELECTOR ARROWS =================== */
.day-selector-arrow {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    background: var(--white);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    opacity: 1 !important;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.15);
}

.day-selector-arrow:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: #eff6ff;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.15);
}

.day-selector-arrow:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    border-color: #e2e8f0;
    color: var(--gray-light);
    background: var(--light);
    box-shadow: none;
}

/* =================== DAY CHIPS =================== */
.day-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 64px;
    padding: 0.6rem 0.5rem;
    border-radius: 12px;
    border: 1.5px solid #e2e8f0;
    background: var(--light);
    cursor: pointer;
    scroll-snap-align: start;
    transition: all 0.2s ease;
    user-select: none;
    -webkit-user-select: none;
}

.day-chip-name {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: var(--gray);
    line-height: 1;
}

.day-chip-number {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.3;
}

.day-chip-month {
    font-size: 0.65rem;
    color: var(--gray-light);
    text-transform: capitalize;
    line-height: 1;
}

/* Day Chip States */
.day-chip.available {
    border-color: #e2e8f0;
    background: var(--white);
}

.day-chip.available:hover {
    border-color: #93c5fd;
    background: #eff6ff;
}

.day-chip.unavailable {
    opacity: 0.45;
    cursor: not-allowed;
    background: #f1f5f9;
    border-color: #e2e8f0;
}

.day-chip.unavailable .day-chip-name,
.day-chip.unavailable .day-chip-number,
.day-chip.unavailable .day-chip-month {
    color: var(--gray-light);
}

.day-chip.selected,
.day-chip.available.selected,
.day-chip.available.selected:hover {
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4) !important;
    opacity: 1 !important;
}

.day-chip.selected .day-chip-name,
.day-chip.selected .day-chip-number,
.day-chip.selected .day-chip-month {
    color: var(--white) !important;
    opacity: 1 !important;
}

/* =================== DAY INFO =================== */
.day-info {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.day-info-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.day-info-icon {
    color: var(--primary-color);
    font-size: 0.9rem;
}

.day-info-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark);
}

.day-info-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    border: 1.5px solid var(--primary-color);
    color: var(--primary-color);
    font-size: 0.75rem;
    font-weight: 600;
    background: #eff6ff;
    white-space: nowrap;
}

/* =================== TIME GRID =================== */
.time-grid-container {
    background: var(--white);
    border-radius: 16px;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.time-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
}

/* =================== TIME CELLS =================== */
.time-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 0.5rem;
    border-radius: 12px;
    border: 1.5px solid #e2e8f0;
    background: var(--light);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    user-select: none;
    -webkit-user-select: none;
    min-height: 60px;
}

.time-cell:hover {
    border-color: #93c5fd;
    background: #eff6ff;
}

.time-cell-hour {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.2;
}

.time-cell-period {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--gray);
    text-transform: uppercase;
    line-height: 1;
    margin-top: 0.1rem;
}

.time-cell-check {
    display: none;
    position: absolute;
    top: 4px;
    right: 4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    color: var(--white);
}

/* Time Cell Selected State */
.time-cell.selected {
    background: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.time-cell.selected .time-cell-hour,
.time-cell.selected .time-cell-period {
    color: var(--white);
}

.time-cell.selected .time-cell-check {
    display: flex;
}

/* =================== BOOKING MODAL BODY =================== */
.booking-modal-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.booking-modal-selection {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: var(--light);
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.booking-modal-datetime {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--dark);
}

.booking-modal-datetime i {
    color: var(--primary-color);
    font-size: 0.85rem;
}

/* =================== BOOKING MODAL FIELDS =================== */
.booking-modal-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.booking-modal-field label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #374151;
}

.booking-modal-select {
    width: 100%;
    padding: 0.7rem 2.25rem 0.7rem 0.85rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.88rem;
    color: var(--dark);
    background-color: var(--light);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3e%3cpath fill='%232563eb' d='M6 8L1 3h10z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 10px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    outline: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.booking-modal-select:focus {
    border-color: var(--primary-color);
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.booking-modal-select:disabled {
    background-color: #f3f4f6 !important;
    border-color: #d1d5db !important;
    color: #9ca3af !important;
    cursor: not-allowed !important;
    opacity: 0.7 !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3e%3cpath fill='%239ca3af' d='M6 8L1 3h10z'/%3e%3c/svg%3e") !important;
}

.booking-modal-input {
    width: 100%;
    padding: 0.7rem 0.85rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.88rem;
    color: var(--dark);
    background: var(--light);
    outline: none;
    transition: all 0.2s ease;
}

.booking-modal-input:focus {
    border-color: var(--primary-color);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.booking-modal-input::placeholder {
    color: var(--gray-light);
}

/* =================== BOOKING MODAL VALIDATION =================== */
.booking-modal-validation {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 0.75rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    font-size: 0.8rem;
    color: var(--danger);
    font-weight: 500;
}

.booking-modal-validation i {
    font-size: 0.85rem;
    flex-shrink: 0;
}

/* =================== BOOKING MODAL ACTIONS =================== */
.booking-modal-actions {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.booking-modal-actions .btn-primary {
    flex: 1;
    padding: 0.8rem 1rem;
    background: linear-gradient(45deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.booking-modal-actions .btn-primary:hover {
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
    transform: translateY(-1px);
}

.booking-modal-actions .btn-primary:disabled {
    background: linear-gradient(45deg, #93c5fd 0%, #bfdbfe 100%);
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.booking-modal-actions .btn-cancel {
    flex: 1;
    padding: 0.8rem 1rem;
    background: var(--white);
    color: var(--gray);
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.booking-modal-actions .btn-cancel:hover {
    background: #f1f5f9;
    border-color: var(--gray-light);
    color: var(--dark);
}

/* =================== BOOKING GUEST FIELDS =================== */
.booking-guest-fields {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--light);
    border-radius: 10px;
    border: 1px dashed #e2e8f0;
}

/* =================== RETRY BUTTON =================== */
.btn-retry {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1.25rem;
    background: linear-gradient(45deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.btn-retry:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

/* =================== SCHEDULE LOADING STATE =================== */
.schedule-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    gap: 1rem;
}

.schedule-loading p {
    font-size: 0.85rem;
    color: var(--gray);
    font-weight: 500;
}

.schedule-spinner {
    width: 40px;
    height: 40px;
    border: 3.5px solid #e2e8f0;
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: scheduleSpinnerRotate 0.8s linear infinite;
}

@keyframes scheduleSpinnerRotate {
    to {
        transform: rotate(360deg);
    }
}

/* =================== SCHEDULE ERROR STATE =================== */
.schedule-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    gap: 0.75rem;
    text-align: center;
}

.schedule-error-icon {
    font-size: 2.5rem;
    color: var(--danger);
}

.schedule-error-message {
    font-size: 0.9rem;
    color: var(--gray);
    font-weight: 500;
}

/* =================== SCHEDULE VIEW RESPONSIVE =================== */
@media (max-width: 374px) {
    .schedule-header {
        padding: 1rem;
    }

    .schedule-header-avatar {
        width: 48px;
        height: 48px;
        min-width: 48px;
        font-size: 1.1rem;
    }

    .schedule-company-name {
        font-size: 0.95rem;
    }

    .day-chip {
        min-width: 56px;
        padding: 0.5rem 0.4rem;
    }

    .day-chip-number {
        font-size: 1.1rem;
    }

    .time-grid {
        gap: 0.4rem;
    }

    .time-cell {
        padding: 0.6rem 0.35rem;
        min-height: 54px;
    }

    .time-cell-hour {
        font-size: 0.88rem;
    }
}

@media (max-width: 575px) {
    .time-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }

    .booking-modal-selection {
        flex-direction: column;
        gap: 0.5rem;
    }

    .booking-modal-actions {
        flex-direction: column-reverse;
    }

    .booking-modal-actions .btn-primary,
    .booking-modal-actions .btn-cancel {
        width: 100%;
    }
}

@media (min-width: 576px) {
    .day-chip {
        min-width: 72px;
        padding: 0.7rem 0.6rem;
    }

    .time-cell {
        padding: 1rem 0.75rem;
        min-height: 68px;
    }

    .time-cell-hour {
        font-size: 1.1rem;
    }
}

/* =================== COMPANY SELECT VIEW =================== */
.company-select-view {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: 0.5rem 0;
}

.company-select-header {
    text-align: center;
    padding: 1.5rem 1rem 0.5rem;
}

.company-select-header-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: var(--white);
    font-size: 1.5rem;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
}

.company-select-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 0.25rem;
}

.company-select-subtitle {
    font-size: 0.85rem;
    color: var(--gray);
    margin: 0;
}

/* Company list */
.company-select-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Individual company card */
.company-select-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem 1.1rem;
    background: var(--white);
    border-radius: 14px;
    border: 1.5px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.company-select-card:hover {
    border-color: #93c5fd;
    background: #f8faff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
    transform: translateY(-1px);
}

.company-select-card:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.08);
}

/* Logo */
.company-select-logo {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 50%;
    overflow: hidden;
    border: 1.5px solid #e2e8f0;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.company-select-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* Info */
.company-select-info {
    flex: 1;
    min-width: 0;
}

.company-select-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark);
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Arrow */
.company-select-arrow {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 50%;
    background: #eff6ff;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    transition: all 0.2s ease;
}

.company-select-card:hover .company-select-arrow {
    background: var(--primary-color);
    color: var(--white);
}


/* =================== EMPLOYEE SCHEDULE - BOOKED SLOTS =================== */
.employee-schedule .time-cell.booked {
    background: var(--gray-light) !important;
    border-color: var(--gray) !important;
    cursor: pointer;
}

.employee-schedule .time-cell.booked:hover {
    background: #7c8fa0 !important;
    border-color: #475569 !important;
}

.employee-schedule .time-cell.booked .time-cell-hour,
.employee-schedule .time-cell.booked .time-cell-period,
.employee-schedule .time-cell.booked .time-cell-capacity {
    color: var(--white) !important;
}

/* Available slot (employee) */
.employee-schedule .time-cell.available {
    background: var(--accent-color) !important;
    border-color: #3b82f6 !important;
    cursor: default;
}

.employee-schedule .time-cell.available:hover {
    background: var(--accent-color) !important;
    border-color: #3b82f6 !important;
}

.employee-schedule .time-cell.available .time-cell-hour,
.employee-schedule .time-cell.available .time-cell-period,
.employee-schedule .time-cell.available .time-cell-capacity {
    color: var(--white) !important;
}

/* Capacity indicator - prominent */
.employee-schedule .time-cell-capacity {
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.2;
    order: -1;
    color: var(--dark);
}

/* Reduced hour font when capacity is present */
.employee-schedule .time-cell.booked .time-cell-hour,
.employee-schedule .time-cell.available .time-cell-hour {
    font-size: 0.75rem;
    font-weight: 500;
}

.employee-schedule .time-cell-service {
    font-size: 0.6rem;
    font-weight: 500;
    color: var(--gray-light);
    text-align: center;
    line-height: 1.1;
    margin-top: 0.15rem;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 0 0.2rem;
}

.employee-schedule .time-cell.booked .time-cell-service {
    color: rgba(255, 255, 255, 0.85);
}

/* =================== SCHEDULE SELECTOR (Task 7.1) =================== */
.schedule-selector {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 0.5rem 0;
}

.schedule-selector-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    background: var(--white);
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.schedule-header-avatar {
    width: 60px;
    height: 60px;
    min-width: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.4rem;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
    overflow: hidden;
    margin-right: 0.75rem;
}

.schedule-header-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.schedule-header-text {
    flex: 1;
    min-width: 0;
}

.schedule-selector-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.selector-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem;
    background: var(--white);
    border-radius: 14px;
    border: 1.5px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    text-align: center;
    gap: 0.75rem;
}

.selector-card:hover {
    border-color: #93c5fd;
    background: #f8faff;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.15);
    transform: translateY(-2px);
}

.selector-card:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.08);
}

.selector-card-header {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.selector-card-icon {
    font-size: 1.5rem;
}

.selector-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark);
    display: block;
}

.selector-card-desc {
    font-size: 0.75rem;
    color: var(--gray);
    display: block;
}

/* =================== EMPLOYEE LIST (Task 7.2) =================== */
.schedule-employee-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0.5rem 0;
}

.employee-list-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--white);
    border-radius: 14px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.btn-back-selector {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    border: 1.5px solid #e2e8f0;
    background: var(--light);
    color: var(--gray);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.btn-back-selector:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: #eff6ff;
}

.employee-list-header h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark);
    margin: 0;
    flex: 1;
}

.employee-list-items {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.employee-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    background: var(--white);
    border-radius: 12px;
    border: 1.5px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.employee-item:hover {
    border-color: #93c5fd;
    background: #f8faff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
    transform: translateX(2px);
}

.employee-item-avatar {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.employee-item-info {
    flex: 1;
    min-width: 0;
}

.employee-item-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark);
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.employee-item-arrow {
    color: var(--gray-light);
    font-size: 0.75rem;
    transition: all 0.2s ease;
}

.employee-item:hover .employee-item-arrow {
    color: var(--primary-color);
    transform: translateX(2px);
}

/* =================== SCHEDULE BACK BUTTON (in header) =================== */
.btn-back-schedule-selector {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    border: 1.5px solid #e2e8f0;
    background: var(--light);
    color: var(--gray);
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.btn-back-schedule-selector:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: #eff6ff;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.1);
}

.btn-back-schedule-selector i {
    font-size: 0.85rem;
}
