.worktime {
    margin: 10px;
    padding: 10px;
    border: 2px solid #EE6B16;
    border-radius: 5px;
}
.worktime__days {
    width: 100%;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}
.worktime__day{
    padding: 0px 8px;
    border-left: 1px solid #EE6B16;
}
.worktime__day:first-child {
    border-left: none;
    padding-left: 0px;
}
.worktime__day:last-child {
    padding-right: 0px;
}
.worktime__weekday {
    font-weight: bold;
}
.worktime__time {
    white-space: nowrap;
}

.worktime__dates {
    margin-top: 10px;
}
.worktime__date {
    font-weight: bold;
}

.worktime__dates-holder {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    overflow: hidden;
    margin-left: -10px;
}
.worktime__dates-holder > div {
    border-left: 1px solid #EE6B16;
    margin-left: -1px;
    padding-left: 10px;
}


@media screen and (max-width: 1144px) {
    .worktime__days {
        justify-content: start;
    }
    .worktime__day {
        flex-basis: 25%;
    }
    .worktime__day:nth-child(4n + 1) {
        border-left: none;
        padding-left: 0;
    }
}

@media screen and (max-width: 767px) {
    .worktime__day {
        flex-basis: 50%;
    }
    .worktime__day:nth-child(2n + 1) {
        border-left: none;
        padding-left: 0;
    }
}

/* Раскрывашка (fold): одна строка часов, полная сетка по тапу. На ширине от 768 открыта (assets/worktime.js). */
.worktime--fold {
    padding: 0;
    border: 1px solid var(--avt-line);
    border-radius: var(--avt-radius);
}
.worktime__summary {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 2px 10px;
    min-height: var(--avt-tap);
    padding: 8px 40px 8px 12px;
    position: relative;
    cursor: pointer;
    list-style: none;
    font-size: var(--avt-fs-small);
    color: var(--avt-muted);
}
.worktime__summary::-webkit-details-marker {
    display: none;
}
.worktime__summary::after {
    content: '';
    position: absolute;
    right: 16px;
    top: 50%;
    width: 7px;
    height: 7px;
    margin-top: -6px;
    border-right: 2px solid var(--avt-muted);
    border-bottom: 2px solid var(--avt-muted);
    transform: rotate(45deg);
    transition: transform 150ms ease;
}
.worktime--fold[open] > .worktime__summary::after {
    margin-top: -2px;
    transform: rotate(-135deg);
}
.worktime__summary-title {
    font-weight: 700;
    color: var(--avt-ink);
}
.worktime--fold > .worktime__days,
.worktime--fold > .worktime__dates {
    margin: 0 12px 12px;
}
.worktime__summary-note {
    flex-basis: 100%;
    color: var(--avt-orange-ink);
}
.worktime--fold > .worktime__days {
    justify-content: flex-start;
    gap: 4px 0;
}
.worktime--fold[open] .worktime__summary-note {
    display: none;
}
