/* Scheduler widget catalog and layout editor. */
.scheduler-widget-edit-window .widget-title-icon,
.scheduler-widget-edit-window .widget-assignee-icon,
.scheduler-widget-edit-window .widget-selected-value .widget-choice-icon,
.widget-type-picker .widget-choice-icon,
.scheduler-widget-picker-popup .widget-choice-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: color-mix(in srgb, var(--bs-primary) 12%, var(--bs-body-bg));
    color: color-mix(in srgb, var(--bs-primary) 65%, var(--bs-body-color));
}
.scheduler-widget-edit-window .widget-title-icon { width: 44px; height: 44px; }
.scheduler-widget-edit-window .widget-title-icon .icp-icon { width: 24px; height: 24px; }
.scheduler-widget-edit-window .widget-assignment-form { display: grid; gap: 1.25rem; }
.scheduler-widget-edit-window .widget-assignee { display: flex; align-items: center; gap: .75rem; }
.scheduler-widget-edit-window .widget-assignee-icon { background: var(--bs-tertiary-bg); color: var(--bs-secondary-color); }
.scheduler-widget-edit-window .widget-assignee strong { display: block; font-size: .9375rem; font-weight: 600; overflow-wrap: anywhere; }
.scheduler-widget-edit-window .widget-field-caption { display: block; color: var(--bs-secondary-color); font-size: .75rem; margin-bottom: .1rem; }
.scheduler-widget-edit-window .widget-field-label { display: block; font-size: .875rem; font-weight: 600; margin-bottom: .3rem; }
.scheduler-widget-edit-window .widget-field-hint,
.scheduler-widget-edit-window .widget-selection-description { margin: 0 0 .75rem; color: var(--bs-secondary-color); font-size: .8125rem; line-height: 1.5; }
.scheduler-widget-edit-window .widget-selection-description { margin: .625rem 0 0; }
.scheduler-widget-edit-window .widget-type-picker {
    min-height: 54px;
    border: 1px solid var(--bs-border-color);
    border-radius: 10px;
    background: var(--bs-body-bg);
    color: var(--bs-body-color);
    box-shadow: 0 2px 5px rgb(0 0 0 / 3%);
}
.scheduler-widget-edit-window .widget-type-picker:hover { border-color: var(--bs-primary); }
.scheduler-widget-edit-window .widget-type-picker:is(:focus, :focus-within, .k-focus) { outline: 2px solid var(--bs-primary); outline-offset: 2px; }
.scheduler-widget-edit-window .widget-type-picker .k-input-inner { padding: .5rem .75rem; }
.scheduler-widget-edit-window .widget-type-picker .k-input-button { width: 42px; background: transparent; border: 0; color: var(--bs-secondary-color); }
.widget-type-picker .widget-selected-value { display: flex; align-items: center; gap: .625rem; min-width: 0; white-space: normal; font-weight: 600; }
.widget-type-picker .widget-choice-icon { width: 30px; height: 30px; border-radius: 8px; }
.widget-type-picker .widget-picker-placeholder { color: var(--bs-secondary-color); }
.scheduler-widget-edit-window .widget-layout-settings { display: grid; grid-template-columns: minmax(130px, .75fr) minmax(0, 1.25fr); gap: .75rem; }
.scheduler-widget-edit-window .widget-layout-option { min-width: 0; padding: 1rem; border: 1px solid var(--bs-border-color); border-radius: 12px; background: var(--bs-body-bg); }
.scheduler-widget-edit-window .widget-layout-option .icp-input { max-width: 130px; min-height: 40px; }
.scheduler-widget-edit-window .widget-expanded-option { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: .25rem; }
.scheduler-widget-edit-window .widget-expanded-switch {
    appearance: none;
    flex: 0 0 auto;
    width: 44px;
    height: 26px;
    margin: 0;
    border: 1px solid var(--bs-border-color);
    border-radius: 999px;
    background: radial-gradient(circle at 12px 50%, var(--bs-secondary-color) 0 8px, transparent 8.5px) var(--bs-tertiary-bg);
    cursor: pointer;
}
.scheduler-widget-edit-window .widget-expanded-switch:checked {
    border-color: var(--bs-primary);
    background: radial-gradient(circle at calc(100% - 12px) 50%, #fff 0 8px, transparent 8.5px) var(--bs-primary);
}
.scheduler-widget-edit-window .widget-expanded-switch:focus-visible { outline: 2px solid var(--bs-primary); outline-offset: 3px; }
.scheduler-widget-edit-window .widget-assignment-footer .icp-button { min-height: 40px; border-radius: 8px; }
.scheduler-widget-edit-window .widget-assignment-footer .themeprimary { background: var(--bs-primary) !important; border-color: var(--bs-primary) !important; color: #fff !important; }
.scheduler-widget-edit-window .widget-assignment-footer .themeprimary :is(.icp-button-text, .icp-icon) { color: inherit !important; }
.scheduler-widget-edit-window .widget-assignment-footer .themeprimary:hover { filter: brightness(.92); }

@media (max-width: 576px) {
    .scheduler-widget-edit-window .widget-layout-settings { grid-template-columns: 1fr; }
    .scheduler-widget-edit-window .widget-expanded-option { flex-direction: row; align-items: center; gap: 1rem; }
    .scheduler-widget-edit-window .widget-expanded-option .widget-field-hint { margin-bottom: 0; }
    .scheduler-widget-edit-window .widget-assignment-footer { flex-direction: column; align-items: stretch; }
    .scheduler-widget-edit-window .widget-assignment-footer .ui-editor-actions { width: 100%; }
    .scheduler-widget-edit-window .widget-assignment-footer .icp-button { flex: 1 1 0; min-height: 44px; }
}
.scheduler-widget-catalog .widget-catalog-name { display: flex; align-items: center; gap: .65rem; min-width: 0; }
.scheduler-widget-catalog .widget-catalog-icon { display: inline-flex; flex: 0 0 auto; padding: .45rem; border-radius: 8px; background: var(--bs-tertiary-bg); color: var(--bs-primary); }
.scheduler-widget-catalog .widget-catalog-name strong { display: block; font-size: .875rem; overflow-wrap: anywhere; }
.scheduler-widget-catalog .widget-catalog-name div > span { display: block; margin-top: .15rem; color: var(--bs-secondary-color); font-size: .75rem; white-space: normal; }
.scheduler-widget-catalog .widget-catalog-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.scheduler-widget-catalog .widget-catalog-actions .icp-button { min-width: 86px; }
.scheduler-widget-catalog .icp-grid-table { min-width: 720px; }
