.ls-schedule-btn.ls-active,
.ls-schedule-btn.is-active,
[data-action="schedule"].ls-active,
[data-action="schedule"].is-active {
    color: var(--ls-primary, #2f74ff) !important;
    background: var(--ls-primary-light, rgba(47, 116, 255, 0.1)) !important;
}

.ls-schedule-dialog {
    display: flex;
    flex-direction: column;
    gap: 14px;
    color: var(--ls-text, #111827);
}

.ls-schedule-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
}

.ls-schedule-field > span,
.ls-schedule-time-label {
    color: var(--ls-text-secondary, #667085);
    font-size: 13px;
}

.ls-schedule-display {
    width: 100%;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    box-sizing: border-box;
    border: 1px solid var(--ls-border, #e5e7eb);
    border-radius: 10px;
    background: var(--ls-card-bg, #fff);
    color: var(--ls-text, #111827);
    font-size: 14px;
    padding: 0 12px;
    cursor: default;
}

.ls-schedule-display i {
    color: var(--ls-primary, #2f74ff);
    font-size: 18px;
}

.ls-schedule-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 168px;
    gap: 14px;
    align-items: stretch;
}

.ls-schedule-calendar,
.ls-schedule-time {
    border: 1px solid var(--ls-border-light, #edf0f5);
    border-radius: 12px;
    background: var(--ls-card-bg, #fff);
}

.ls-schedule-calendar {
    padding: 12px;
}

.ls-schedule-calendar-head {
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.ls-schedule-calendar-head strong {
    color: var(--ls-text, #111827);
    font-size: 14px;
    font-weight: 600;
}

.ls-schedule-icon-btn {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--ls-text-secondary, #667085);
    cursor: pointer;
}

.ls-schedule-icon-btn:hover {
    color: var(--ls-primary, #2f74ff);
    background: var(--ls-primary-light, rgba(47, 116, 255, 0.1));
}

.ls-schedule-weekdays,
.ls-schedule-days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.ls-schedule-weekdays {
    margin-bottom: 6px;
}

.ls-schedule-weekdays span {
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ls-text-tertiary, #98a2b3);
    font-size: 12px;
}

.ls-schedule-days {
    gap: 4px;
}

.ls-schedule-day {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    min-height: 30px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--ls-text, #111827);
    font-size: 13px;
    cursor: pointer;
}

.ls-schedule-day span {
    position: relative;
    z-index: 1;
}

.ls-schedule-day:hover:not(:disabled) {
    background: var(--ls-primary-light, rgba(47, 116, 255, 0.08));
    color: var(--ls-primary, #2f74ff);
}

.ls-schedule-day.is-muted {
    color: var(--ls-text-tertiary, #98a2b3);
}

.ls-schedule-day.is-today::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 4px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--ls-primary, #2f74ff);
    transform: translateX(-50%);
}

.ls-schedule-day.is-selected {
    background: var(--ls-primary, #2f74ff);
    color: #fff;
    font-weight: 600;
}

.ls-schedule-day.is-selected:hover:not(:disabled) {
    background: var(--ls-primary-hover, #2563eb);
    color: #fff;
}

.ls-schedule-day.is-selected::after {
    background: #fff;
}

.ls-schedule-day:disabled {
    color: var(--ls-text-placeholder, #c5cad3);
    cursor: not-allowed;
}

.ls-schedule-time {
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
}

.ls-schedule-time-col {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.ls-schedule-time-col + .ls-schedule-time-col {
    border-left: 1px solid var(--ls-border-light, #edf0f5);
}

.ls-schedule-time-label {
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--ls-border-light, #edf0f5);
}

.ls-schedule-time-list {
    height: 232px;
    overflow-y: auto;
    padding: 6px;
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: var(--ls-border, #d7dde7) transparent;
}

.ls-schedule-time-list::-webkit-scrollbar {
    width: 4px;
}

.ls-schedule-time-list::-webkit-scrollbar-thumb {
    border-radius: 4px;
    background: var(--ls-border, #d7dde7);
}

.ls-schedule-time-option {
    width: 100%;
    height: 32px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--ls-text, #111827);
    font-size: 13px;
    cursor: pointer;
}

.ls-schedule-time-option:hover:not(:disabled) {
    background: var(--ls-primary-light, rgba(47, 116, 255, 0.08));
    color: var(--ls-primary, #2f74ff);
}

.ls-schedule-time-option.is-selected {
    color: #fff;
    background: var(--ls-primary, #2f74ff);
    font-weight: 600;
}

.ls-schedule-time-option.is-selected:hover:not(:disabled) {
    color: #fff;
    background: var(--ls-primary-hover, #2563eb);
}

.ls-schedule-time-option:disabled {
    color: var(--ls-text-placeholder, #c5cad3);
    cursor: not-allowed;
}

.ls-schedule-quick {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ls-schedule-quick button {
    height: 32px;
    border: 1px solid var(--ls-border-light, #edf0f5);
    border-radius: 999px;
    background: var(--ls-bg-soft, #f7f9fc);
    color: var(--ls-text-secondary, #667085);
    font-size: 13px;
    padding: 0 12px;
    cursor: pointer;
}

.ls-schedule-quick button:hover {
    color: var(--ls-primary, #2f74ff);
    border-color: var(--ls-primary, #2f74ff);
    background: var(--ls-primary-light, rgba(47, 116, 255, 0.1));
}

.ls-schedule-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.ls-schedule-actions button {
    min-width: 88px;
    height: 38px;
    border-radius: 9px;
    font-size: 14px;
    cursor: pointer;
}

.ls-schedule-secondary {
    border: 1px solid var(--ls-border, #e5e7eb);
    background: var(--ls-card-bg, #fff);
    color: var(--ls-text-secondary, #667085);
}

.ls-schedule-primary {
    border: 1px solid var(--ls-primary, #2f74ff);
    background: var(--ls-primary, #2f74ff);
    color: #fff;
}

.ls-schedule-popup .ls-popup-body {
    padding: 16px;
}

@media (max-width: 768px) {
    .ls-schedule-panel {
        grid-template-columns: 1fr;
    }

    .ls-schedule-time {
        min-height: 178px;
    }

    .ls-schedule-time-list {
        height: 142px;
    }

    .ls-schedule-actions {
        flex-direction: column-reverse;
    }

    .ls-schedule-actions button {
        width: 100%;
    }
}
