/* Режим работы магазина — кабинет и админка */

.weekly-hours-fieldset {
    gap: 0.25rem !important;
}

.weekly-hours-quick-bar {
    margin-bottom: 0.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
}

.dark .weekly-hours-quick-bar {
    border-bottom-color: #374151;
}

.weekly-hours-quick-actions .fi-fo-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.weekly-hours-quick-actions .fi-btn {
    min-height: 2.25rem;
}

.weekly-hours-table {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
}

.weekly-hours-header > .fi-fo-component-ctn,
.weekly-hours-row > .fi-fo-component-ctn {
    --wh-time-col: 4.75rem;
    --cols-default: 3rem 2.25rem var(--wh-time-col) var(--wh-time-col) !important;
    gap: 0.25rem 0.75rem !important;
    align-items: center !important;
}

.weekly-hours-header {
    margin-bottom: 0.25rem;
    padding-bottom: 0.375rem;
    border-bottom: 1px solid #e5e7eb;
}

.dark .weekly-hours-header {
    border-bottom-color: #374151;
}

.weekly-hours-row {
    padding-block: 0.0625rem;
}

.weekly-hours-header > .fi-fo-component-ctn > [class*='col-[--col-span'] {
    min-width: 0;
}

.weekly-hours-row > .fi-fo-component-ctn > [class*='col-[--col-span'] {
    min-width: 0;
}

.weekly-hours-header > .fi-fo-component-ctn > *:first-child,
.weekly-hours-row > .fi-fo-component-ctn > *:first-child {
    padding-inline-end: 0.625rem;
}

.weekly-hours-th {
    display: flex;
    align-items: center;
    min-height: auto;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #6b7280;
}

.weekly-hours-th--center {
    justify-content: center;
}

.weekly-hours-th--time {
    justify-content: center;
}

.dark .weekly-hours-th {
    color: #9ca3af;
}

.weekly-hours-day {
    display: flex;
    align-items: center;
    min-height: 2.25rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #374151;
}

.dark .weekly-hours-day {
    color: #e5e7eb;
}

.weekly-hours-cell {
    min-width: 0;
}

.weekly-hours-cell > .fi-fo-component-ctn {
    width: 100%;
    min-width: 0;
    gap: 0 !important;
}

.weekly-hours-closed {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 2.25rem;
    font-size: 0.875rem;
    color: #9ca3af;
}

.weekly-hours-row .fi-fo-field-wrp:has(button.fi-fo-toggle) {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 2.25rem;
}

.weekly-hours-row button.fi-fo-toggle {
    height: 1.5rem !important;
    width: 2.75rem !important;
    min-height: 0 !important;
    flex-shrink: 0;
}

.weekly-hours-table .fi-fo-field-wrp {
    gap: 0 !important;
}

.weekly-hours-table .fi-input-wrp {
    min-height: 2.25rem;
}

.weekly-hours-cell--time .fi-input-wrp,
.weekly-hours-cell--time .fi-fo-date-time-picker,
.weekly-hours-cell--time .fi-fo-date-time-picker > button {
    width: 100%;
    min-width: 0;
    max-width: var(--wh-time-col);
}

.weekly-hours-cell--time .fi-fo-date-time-picker-display-text-input {
    width: 100%;
    min-width: 0;
    padding-inline: 0.5rem;
    font-variant-numeric: tabular-nums;
    text-align: center;
}

@media (max-width: 639px) {
    .weekly-hours-quick-bar .weekly-hours-bulk-time {
        width: 100%;
    }

    .weekly-hours-header > .fi-fo-component-ctn,
    .weekly-hours-row > .fi-fo-component-ctn {
        --wh-time-col: 3.75rem;
        --cols-default: 2.75rem 1.25rem var(--wh-time-col) var(--wh-time-col) !important;
        gap: 0.125rem 0.625rem !important;
    }

    .weekly-hours-th {
        font-size: 0.625rem;
    }

    .weekly-hours-header > .fi-fo-component-ctn > *:first-child,
    .weekly-hours-row > .fi-fo-component-ctn > *:first-child {
        padding-inline-end: 0.75rem;
    }

    .weekly-hours-th--open,
    .weekly-hours-th--open * {
        font-size: 0;
        line-height: 0;
    }

    .weekly-hours-day {
        min-height: 2rem;
        font-size: 0.75rem;
    }

    .weekly-hours-closed {
        min-height: 2rem;
        font-size: 0.75rem;
    }

    .weekly-hours-row .fi-fo-field-wrp:has(button.fi-fo-toggle) {
        min-height: 2rem;
    }

    .weekly-hours-row button.fi-fo-toggle {
        height: 1.25rem !important;
        width: 2.125rem !important;
    }

    .weekly-hours-table .fi-input-wrp {
        min-height: 2rem;
    }

    .weekly-hours-cell--time .fi-fo-date-time-picker-display-text-input {
        padding-inline: 0.125rem !important;
        padding-block: 0.25rem !important;
        font-size: 0.75rem !important;
        line-height: 1rem !important;
        letter-spacing: -0.02em;
    }
}
