/* Живое расписание на странице врача */

.doc-sched__bar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin-bottom: 22px;
    font-size: 14px;
    color: #7c828d;
}

.doc-sched__live {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.doc-sched__dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #3f9a5e;
    box-shadow: 0 0 0 0 rgba(63, 154, 94, .5);
    animation: ds-pulse 2s ease-out infinite;
}

.doc-sched__live.is-off .doc-sched__dot {
    background: #c3c7cd;
    animation: none;
}

/* снимок из клиники давно не приходил */
.doc-sched__live.is-stale .doc-sched__dot {
    background: #d69e2e;
    box-shadow: none;
    animation: none;
}

.doc-sched__upd.is-stale, .doc-sched__upd.is-stale b { color: #b98a2b; }
.doc-sched__upd em { font-style: normal; }

@keyframes ds-pulse {
    0% { box-shadow: 0 0 0 0 rgba(63, 154, 94, .45); }
    70% { box-shadow: 0 0 0 8px rgba(63, 154, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(63, 154, 94, 0); }
}

.doc-sched__upd b { color: #4c5057; font-weight: 600; }

.doc-sched__vacation {
    max-width: 640px;
    margin: 0 auto 24px;
    padding: 13px 18px;
    border-radius: 12px;
    background: rgba(214, 158, 46, .12);
    color: #8a6414;
    text-align: center;
}
.doc-sched__vacation i { margin-right: 8px; }

/* сетка: две недели по семь дней */
.doc-sched__grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
}

.doc-sched__grid.is-flash .doc-sched__slot {
    animation: ds-flash .9s ease-out;
}

@keyframes ds-flash {
    0% { background: rgba(63, 154, 94, .25); }
    100% { background: rgba(106, 110, 118, .07); }
}

.doc-sched__day {
    background: #fff;
    border: 1px solid #e6e8ec;
    border-radius: 12px;
    padding: 10px 8px;
    min-height: 96px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: box-shadow .18s, transform .18s;
}

.doc-sched__day:hover {
    box-shadow: 0 8px 22px rgba(24, 28, 36, .08);
    transform: translateY(-2px);
}

.doc-sched__day.is-empty { background: #fafbfc; }
.doc-sched__day.is-weekend .doc-sched__dow { color: #b06060; }

.doc-sched__day.is-today {
    border-color: #6a6e76;
    box-shadow: 0 4px 14px rgba(24, 28, 36, .08);
}
.doc-sched__day.is-today .doc-sched__dow { color: #22252b; font-weight: 700; }

.doc-sched__dhead {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 6px;
    border-bottom: 1px dashed #eceef1;
    padding-bottom: 6px;
}

.doc-sched__dow {
    font-size: 13px;
    font-weight: 600;
    color: #7c828d;
    white-space: nowrap;
}

.doc-sched__date { font-size: 12px; color: #a0a5ad; }

.doc-sched__slots {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.doc-sched__slot {
    border: 0;
    border-radius: 8px;
    padding: 7px 6px;
    font-size: 13.5px;
    font-weight: 500;
    color: #2e5d43;
    background: rgba(63, 154, 94, .12);
    cursor: pointer;
    transition: background .16s, color .16s, transform .16s;
    white-space: nowrap;
}

.doc-sched__slot:hover {
    background: #3f9a5e;
    color: #fff;
    transform: translateY(-1px);
}

.doc-sched__none, .doc-sched__vac {
    font-size: 12.5px;
    color: #b3b8c0;
    text-align: center;
    padding: 6px 0;
}

.doc-sched__vac { color: #b98a2b; }

.doc-sched__hint {
    text-align: center;
    margin: 22px 0 0;
    color: #7c828d;
    font-size: 14.5px;
}
.doc-sched__hint i { margin-right: 6px; }
.doc-sched__hint a { color: #4c5057; font-weight: 600; }

/* планшет: неделя в строке остается, чуть плотнее */
@media (max-width: 1100px) {
    .doc-sched__slot { font-size: 12.5px; padding: 6px 4px; }
}

/* телефон: горизонтальная лента дней */
@media (max-width: 767px) {
    .doc-sched__grid {
        display: flex;
        overflow-x: auto;
        gap: 9px;
        padding-bottom: 10px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }
    .doc-sched__day {
        min-width: 118px;
        flex: 0 0 118px;
        scroll-snap-align: start;
    }
}
