/* Таймлайн клиента (office-timeline.js): вид Таймлайна «З» админки, только смотреть, без Лайфтайма.
   Токены — office-shared-ds.css. Компьютер — блок под меню; телефон — на весь экран по пункту меню. */
.otl { padding: 4px 16px 6px; margin: 0; border: 0; border-bottom: 1.5px solid var(--ds-line-2); border-radius: 0; box-shadow: none; background: var(--ds-bg); }
.otl[hidden] { display: none; }
.otl-empty { color: var(--ds-muted); font-size: 13px; padding: 10px 0; margin: 0; }
.otl-hd { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; padding: 8px 0 0; }
.otl-hd h2 { margin: 0; font-size: 15px; font-weight: 800; }
.otl-sub { font-size: 13px; color: var(--ds-muted); }
.otl-sub b { color: var(--ds-ink); }
.otl-fold { border: 1px solid var(--ds-line-2); background: #fff; border-radius: var(--ds-r); width: 30px; height: 30px; font-size: 16px; font-weight: 800; line-height: 1; cursor: pointer; color: var(--ds-ink); }
.otl-ctl { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 0 0; }
.otl-per { font-weight: 700; font-variant-numeric: tabular-nums; min-width: 120px; text-align: center; font-size: 13px; }
.otl-arw { width: 34px; padding: 6px 0; text-align: center; font-size: 15px; }
.otl-note { display: flex; align-items: center; gap: 6px 14px; flex-wrap: wrap; font-size: 13px; color: var(--ds-muted); padding: 10px 0 0; }
.otl-lnk { border: 0; background: none; padding: 0; color: #1d4ed8; font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.otl-lnk:hover { text-decoration: underline; }

.otl-g { display: grid; grid-template-columns: 112px 1fr; position: relative; margin: 12px 0 6px; border-top: 1px solid var(--ds-line-2); border-bottom: 1px solid var(--ds-line-2); }
.otl-lab { border-right: 1px solid var(--ds-line); padding: 0 12px; display: flex; align-items: center; font-size: 12px; color: var(--ds-muted); }
.otl-ar { position: relative; overflow: hidden; }
.otl-ax { height: 36px; }
.otl-ax.top { border-bottom: 1px solid var(--ds-line-2); }
.otl-ax.bot { border-top: 1px solid var(--ds-line-2); }
.otl-lab.otl-ax { font-weight: 700; color: var(--ds-ink); }
.otl-dc { position: absolute; top: 0; bottom: 0; text-align: center; font-size: 12.5px; font-weight: 600; padding-top: 4px; font-variant-numeric: tabular-nums; }
.otl-dc small { display: block; font-size: 10px; font-weight: 500; color: var(--ds-faint); line-height: 1.1; }
.otl-dc.is-we { color: var(--ds-faint); }
.otl-mo { position: absolute; top: 2px; left: 3px; font-size: 9.5px; font-weight: 800; text-transform: uppercase; }
.otl-dc.is-today b { background: var(--ds-bad); color: #fff; border-radius: 5px; padding: 0 5px; }
.otl-dc.is-today small { color: var(--ds-bad); font-weight: 700; }
.otl-g.is-tight .otl-dc small { display: none; }
.otl-g.is-tight .otl-dc { padding-top: 10px; font-size: 11.5px; }
.otl-sh { height: 26px; border-top: 1px solid var(--ds-line-2); position: relative; z-index: 7; }
.otl-lab.otl-sh { color: #fff; font-weight: 800; font-size: 13px; border-right: 0; }
.otl-ar.otl-sh { display: flex; align-items: center; padding: 0 10px; font-size: 12.5px; white-space: nowrap; }
.otl-ar.otl-sh > span { overflow: hidden; text-overflow: ellipsis; }
.otl-sep { border-top: 1px solid var(--ds-line); }
.otl-past { position: absolute; top: 0; bottom: 0; background: rgba(248, 250, 252, .7); z-index: 5; pointer-events: none; }
.otl-now { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--ds-bad); z-index: 6; pointer-events: none; }

.otl-b { position: absolute; height: 22px; border: 1.5px solid; border-radius: 5px; overflow: hidden; display: flex; align-items: center; padding: 0 7px; margin: 0;
  font: inherit; font-size: 11.5px; font-weight: 700; white-space: nowrap; z-index: 2; background: #fff; cursor: pointer; text-align: left; }
.otl-b:focus-visible { outline: 2px solid var(--ds-focus); outline-offset: 1px; }
.otl-f { position: absolute; left: 0; top: 0; bottom: 0; z-index: -1; }
.otl-b.is-busy { background: #f1f5f9; border-color: var(--ds-line-2); color: var(--ds-faint); font-weight: 600; }
.otl-b.is-free { background: #fff; border: 1.5px dashed var(--ds-ok-line); color: var(--ds-ok-ink); font-weight: 600; }
.otl-b.is-mine { box-shadow: 0 0 0 3px rgba(250, 204, 21, .45); }
.otl-b.is-mine.is-sel { box-shadow: 0 0 0 3px var(--ds-sel); }
/* Basic (Django, 20.10): свой слот Basic — пунктир с подписью «Basic version» поверх настоящей доски */
.otl-b.is-basic { border-style: dashed; border-width: 2px; background: transparent; }
.otl-b .otl-basic { font-weight: 800; letter-spacing: .02em; margin-right: 4px; }
.otl-cq { display: inline-flex; gap: 2px; margin-left: 8px; vertical-align: middle; align-items: center; }
.otl-cq i { width: 7px; height: 7px; border-radius: 2px; border: 1px solid var(--ds-faint); background: #fff; flex: none; }
.otl-cq small { font-size: 10px; color: var(--ds-faint); margin-left: 2px; }
.otl-key { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 12.5px; color: var(--ds-muted); padding: 2px 0 8px; align-items: center; }
.otl-sw { display: inline-block; width: 26px; height: 12px; border-radius: 3px; border: 1.5px solid; vertical-align: -2px; margin-right: 6px; }
.otl-sw.is-mine { border-color: var(--ds-nj); background: var(--ds-nj-soft); box-shadow: 0 0 0 2px rgba(250, 204, 21, .45); }
.otl-sw.is-busy { border-color: var(--ds-line-2); background: #f1f5f9; }
.otl-sw.is-free { border-style: dashed; border-color: var(--ds-ok-line); background: #fff; }
.otl-sw.is-now { width: 3px; border: 0; background: var(--ds-bad); }

/* панель «Ваш слот» — ds-panel из общего файла */
.otl-panel .otl-car { display: flex; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--ds-line); }
.otl-panel .otl-car img, .otl-panel .otl-car .car-ph { width: 58px; height: 40px; border-radius: 5px; object-fit: cover; flex: none; background: var(--ds-line); }
.otl-panel .otl-car > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.otl-car-ln { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.otl-idx { font-weight: 800; font-variant-numeric: tabular-nums; font-size: 12.5px; background: #f1f5f9; border-radius: 4px; padding: 1px 5px; }
.otl-hint { font-size: 12.5px; color: var(--ds-muted); margin: 10px 0 0; }

/* телефон: на весь экран, без столбца подписей */
html.office-phone .otl { padding: 0 12px 84px; border-bottom: 0; }
html.office-phone .otl-g { grid-template-columns: 1fr; margin: 10px 0 6px; }
html.office-phone .otl-ar.otl-sh { font-weight: 800; }
html.office-phone .otl-dc { font-size: 11px; }
html.office-phone .otl-ax { height: 30px; }
html.office-phone .otl-b { height: 26px; font-size: 11px; padding: 0 5px; }
/* переключатели не сжимаются (находка t105, 21.10: «Обе|NJ|TX» и «Pro|Basic» обрезались) — не влезли, стрелки идут строкой ниже */
html.office-phone .otl-ctl .ds-seg { flex: 1 1 auto; min-width: max-content; }
html.office-phone .otl-ctl .ds-seg > button { flex: 1; justify-content: center; }
html.office-phone .otl-panel { width: 100vw; }
.otl-my-h { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--ds-muted); margin: 12px 0 4px; }
.otl-my { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--ds-line); background: none; padding: 10px 0; min-height: 56px; font: inherit; color: var(--ds-ink); cursor: pointer; }
.otl-my > span:first-child { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.otl-my small { font-size: 12px; color: var(--ds-muted); }
