/* ============================================================
   Modern light-only styles (scoped)
   Usage: <div class="fm-eval"> ... sausage + timeline ... </div>
   НИЧЕГО за пределами .fm-eval не затрагивается
   ============================================================ */

.mf-timeline-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
}

.day-info-wrapper {
    display: flex;
    align-items: center;
}

.day-info-card {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    padding: 12px 16px 30px;
    border-radius: 8px;
    min-width: 180px;
    font-size: 14px;
}

.day-info-arrow {
    margin: 0 10px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.day-info-arrow i {
    font-size: 20px;
}

.day-info-card .sausage-right {
    padding-bottom: 15px;
}

.day-info-card .fm-eval {
    padding: 0;
}

.day-info-card .fm-eval .timeline-title {
    font-size: 16px;
    font-weight: 500;
}

.day-info-card .fm-eval .timeline-block {
    position: relative;
}

.fm-eval {
    font-family: "Proxima Nova", serif; /*ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Inter, "Helvetica Neue", Arial, "Noto Sans";*/
    color: #0f172a;
    --bg-panel: #ffffff;
    --bg-label: #fff7cc;
    --text-main: #0f172a;
    --text-dim: #475569;
    --grid-border: #e2e8f0; /* slate-200 */
    --grid-border-strong: #cbd5e1; /* slate-300 */
    --block-border: #cbd5e1;
    --accent: #2563eb; /* blue-600 */
    --accent-soft: rgba(37, 99, 235, 0.08);

    --busy-bg-active: #fdf49c;
    --busy-bg: #fff7ad;
    --free-bg: #c7f2d8;
    --notwork-bg: #fecaca;
    --virtual-bg: rgba(254, 202, 202, 0.8);
    --busy-ppr-bg: #e7e6f6;

    --rw-label-width: 160px;
    --tl-label-width: 140px;
    --cell-gap: 6px;
    --cell-min-width: 40px;
    --radius-xs: 5px;
    --radius-sm: 8px;
    --radius-md: 10px;
    --radius-lg: 12px;
    --shadow-sm: 0 1px 2px rgba(2, 6, 23, 0.06), 0 1px 1px rgba(2, 6, 23, 0.04);
    --shadow-md: 0 8px 20px rgba(2, 6, 23, 0.06);

    padding: 20px 0;
}

.fm-eval::after {
    content: "";
    display: table;
    clear: both; /* Целостность контейнера поддерживается. */
}

/* =========================
   Общие контейнеры/титулы
   ========================= */
.fm-eval .sausage-evaluation,
.fm-eval .user-timeline-status {
    background: var(--bg-panel);
    border: 1px solid var(--grid-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 14px;
}

.fm-eval .sausage-title {
    margin: 6px 0 12px;
}

.fm-eval .sausage-title,
.fm-eval .timeline-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-main);
    letter-spacing: 0.1px;
}

/* =========================
   SAUSAGE (колбаса)
   ========================= */
.fm-eval .fm-rw-select-container {
    max-width: 400px;
    margin-bottom: 20px;
}

.fm-eval .fm-rw-evaluation-container {
    margin-bottom: 20px;
}

.fm-eval .fm-rw-timeline-container {
    margin-bottom: 20px;
}

.fm-eval .sausage-header,
.fm-eval .sausage-row {
    display: flex;
    align-items: stretch;
    gap: var(--cell-gap);
    margin-bottom: var(--cell-gap);
}

/* Левая колонка */
.fm-eval .sausage-label {
    width: var(--rw-label-width);
    border: 1px solid var(--grid-border-strong);
    background: var(--bg-label);
    border-radius: var(--radius-xs);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    white-space: nowrap;
    font-size: 11px;
    line-height: 1.25;
}

.fm-eval .sausage-label__timeliness {
    position: absolute;
    right: 2px;
    top: 2px;
    height: 8px;
    width: 8px;
    background-color: #000000;
    border-radius: 50%;
}

.fm-eval .sausage-label__timeliness[data-timeliness="green"] {
    display: none;
}

.fm-eval .sausage-label__timeliness[data-timeliness="red"] {
    background-color: red;
}

.fm-eval .sausage-label__timeliness[data-timeliness="orange"] {
    background-color: orange;
}

.fm-eval .sausage-label__type {
    font-size: 10px;
    font-weight: 300;
}

.fm-eval .sausage-label--row {
    position: relative;
    transition: all .3s;
}

.fm-eval .sausage-label--row .sausage-label__content {
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    height: 100%;
    padding: 4px 6px;
}

.fm-eval .sausage-label--row:not(.is-picked) .sausage-label__content:hover {
    border: 1px dashed var(--text-dim);
}

.fm-eval .sausage-header .sausage-label {
    opacity: .7;
}

.fm-eval .sausage-row .sausage-label {
    margin-bottom: var(--cell-gap);
}

/* Сетка времени */
.fm-eval .sausage-header-times,
.fm-eval .sausage-line {
    display: flex;
    flex: 1;
    position: relative;
    gap: var(--cell-gap);
}

.fm-eval .sausage-time,
.fm-eval .sausage-cell {
    flex: 1;
    min-width: var(--cell-min-width);
    border: 1px solid var(--grid-border);
    background: transparent;
    color: var(--text-dim);
    padding: 6px 4px;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.fm-eval .sausage-time {
    color: var(--text-main);
    font-size: 11px;
    padding: 3px;
}

/* Контейнер подстрок */
.fm-eval .sausage-blocks-container {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Линия */
.fm-eval .sausage-line {
    height: 42px;
    min-height: 42px;
}

/* Блоки */
.fm-eval .sausage-block {
    position: absolute;
    top: 0;
    height: 60px;
    cursor: pointer;
    border: 1px solid var(--block-border);
    border-radius: var(--radius-md);
    padding: 6px;
    font-size: 12px;
    line-height: 1.2;
    color: var(--text-main);
    background: #e6f6ee;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    transition: .3s all;
}

.fm-eval .sausage-block.timeline-block--info {
    opacity: .6;
}

.fm-eval .sausage-block .ellipsis {
    width: 100%;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.fm-eval .sausage-block.active {
    border: 2px dashed rgba(58, 179, 173, 0.8);
    background: #ddf3e6;
}

.fm-eval .sausage-block.active[data-is-ppr="true"] {
    border: 2px dashed rgba(155, 154, 200, 0.8);
    background-color: #c1c1f6;
}

.fm-eval .sausage-block:active {
    cursor: grabbing;
}

.fm-eval .sausage-block.dragging {
    opacity: .85;
    outline: 1px dashed var(--grid-border-strong);
    background: #def1ea;
}

/* каркас для колбасы с фиксированными слотами */
.fm-eval .saus-grid {
    display: grid;
    grid-template-columns: var(--rw-label-width, 160px) 1fr; /* левая фикс, правая гибкая */
    gap: var(--cell-gap);
}

.fm-eval .saus-col-left {
    display: flex;
    flex-direction: column;
    gap: var(--cell-gap);
}

.fm-eval .saus-labels-rows {
    display: flex;
    flex-direction: column;
    gap: var(--cell-gap);
}

.fm-eval .saus-col-right {
    display: flex;
    flex-direction: column;
    gap: var(--cell-gap);
}

/* хедер и тело с отдельными вьюпортами по X */
.fm-eval .saus-header-viewport {
    overflow-x: auto;
    overflow-y: hidden;
}

.fm-eval .saus-body-viewport {
    overflow: auto; /* и горизонтальный, и вертикальный скролл тут */
    max-width: 100%;
}

/* чтобы визуально ничего не поменялось — используем уже существующие классы */
.fm-eval .sausage-header-times,
.fm-eval .sausage-line {
    /* ширины задаём инлайн через JS (width: totalWidthPx) */
}

/* двухколоночная компоновка */
.fm-eval .sausage-table {
    display: flex;
    align-items: stretch;
    gap: var(--cell-gap);
}

/* левая колонка: фикс 120px */
.fm-eval .sausage-left {
    flex: 0 0 120px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* правая колонка: занимает остаток + горизонтальный скролл */
.fm-eval .sausage-right {
    flex: 1 1 auto;
    overflow-x: auto;
    overflow-y: hidden;
}

/* строки справа — как и раньше */
.fm-eval .sausage-row {
    display: block;
    margin-bottom: var(--cell-gap);
}

/* ширина тайм-слотов/клеток теперь приходит инлайном из JS (slotW),
   но визуальные свойства остаются прежними */
.fm-eval .sausage-time,
.fm-eval .sausage-cell {
    /* width выставляем инлайном */
}

.fm-req-remove {
    z-index: 99999;
    cursor: pointer;
    position: absolute;
    width: 20px;
    height: 20px;
    left: -25px;
    top: 0;
    border-radius: 4px;
    border: 1px solid var(--grid-border-strong);
    text-align: center;
    color: #474747;
    background-color: rgba(255, 255, 255, .7);
    padding-top: 1px;
}
.fm-req-user {
    z-index: 99999;
    cursor: pointer;
    position: absolute;
    width: 20px;
    height: 20px;
    left: -25px;
    top: 0;
    border-radius: 4px;
    border: 1px solid var(--grid-border-strong);
    text-align: center;
    color: #474747;
    background-color: rgba(255, 255, 255, .7);
    padding-top: 1px;
}

/* =========================
   TIMELINE (календарь)
   ========================= */
.fm-eval .timeline-header,
.fm-eval .timeline-row {
    position: relative;
    margin-bottom: var(--cell-gap);
}

/* Левая колонка */
.fm-eval .timeline-label {
    position: relative;
    width: var(--tl-label-width);
    border: 1px solid var(--grid-border-strong);
    padding: 2px 4px;
    background: var(--bg-label);
    border-radius: var(--radius-xs);
    flex-shrink: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    font-size: 11px;
    cursor: pointer;
    transition: border .3s;
}

.fm-eval .timeline-label:hover {
    border: 1px dashed var(--text-dim);
}

.fm-eval .timeline-label .timeline-req-list {
    font-size: 10px;
    color: #475569;
    width: 110px;
    white-space: nowrap; /* запрет переноса строки */
    overflow: hidden; /* скрытие лишнего текста */
    text-overflow: ellipsis; /* добавление многоточия */
}

.fm-eval .ugroup-left-wrap .timeline-label {
    font-size: 9px;
    width: 100%;
}

.fm-eval .timeline-label .timeline-req-role {
    font-size: 10px;
    color: #475569;
    white-space: nowrap; /* запрет переноса строки */
    overflow: hidden; /* скрытие лишнего текста */
    text-overflow: ellipsis; /* добавление многоточия */
    width: 100%;
}

.fm-eval .timeline-header .timeline-label {
    opacity: .7;
}

/* Слои */
.fm-eval .timeline-row--times,
.fm-eval .timeline-line-cells,
.fm-eval .timeline-line-bg,
.fm-eval .timeline-line-blocks {
    display: flex;
    flex: 1;
    gap: var(--cell-gap);
}

.fm-eval .timeline-row--week {
    position: sticky;
    left: 0;
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: 16px;
}

.fm-eval .timeline-row--week i {
    cursor: pointer;
    font-size: 20px;
    color: #a9aeb5;
    margin: 0;
}

.fm-eval .timeline-row--week span {
    margin: 0 10px;
}

.fm-eval .timeline-time,
.fm-eval .timeline-cell,
.fm-eval .timeline-cell-bg {
    flex: 1;
    min-width: var(--cell-min-width);
    padding: 6px 4px;
    overflow: hidden;
    border-radius: var(--radius-sm);
}

.fm-eval .timeline-time {
    border: 1px solid var(--grid-border);
    color: var(--text-main);
    padding: 1px 3px;
}

.fm-eval .timeline-cell-bg {
    border: 1px solid var(--grid-border);
    background: transparent;
    pointer-events: none;
}

.fm-eval .timeline-blocks-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

.fm-eval .timeline-line-bg {
    z-index: 1;
}

.fm-eval .timeline-line-blocks {
    z-index: 2;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.fm-eval .timeline-line-cells {
    z-index: 3;
    position: relative;
}

/* Блоки таймлайна */
.fm-eval .timeline-block {
    position: absolute;
    height: 30px;
    border: 1px solid var(--block-border);
    border-radius: var(--radius-md);
    padding: 4px 8px;
    font-size: 12px;
    line-height: 1.2;
    text-align: center;
    text-wrap: nowrap;
    color: var(--text-main);
    background-clip: padding-box;
    box-shadow: var(--shadow-sm);
    pointer-events: none;
    transition: opacity .15s, background .15s, z-index .15s, transform .15s;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .3s;
}

.fm-eval .timeline-block .locked_block {
    position: absolute;
    bottom: 3px;
    right: 6px;
    opacity: 0.1;
    color: #444;
}

.fm-eval .timeline-block .locked_block.interval_locked {
    opacity: 1;

}

.fm-eval .timeline-block.busy.active {
    border: 1px dashed #cbbe45;
    background: var(--busy-bg-active);
    /* --busy-bg-active: fdf49c */
    box-shadow: 0 0 6px 2px #ffdb4d, /* мягкое внутреннее свечение */ 0 0 14px 6px rgba(255, 219, 77, 0.7); /* внешнее солнечное сияние */
}
.fm-eval .timeline-block.busy-ppr.active {
    border: 1px dashed #9a95ef;
    background: #c2c0f1;
    /* --busy-bg-active: fdf49c */
    box-shadow: 0 0 6px 2px #b9b6ef, /* мягкое внутреннее свечение */ 0 0 14px 6px rgb(185, 182, 239); /* внешнее солнечное сияние */
}

.fm-eval .timeline-block.busy {
    background: var(--busy-bg);
    cursor: pointer;
}

.fm-eval .timeline-block.busy-ppr {
    background: var(--busy-ppr-bg);
    cursor: pointer;
}


.fm-eval .timeline-block.free {
    background: var(--free-bg);
}

.fm-eval .timeline-block.not-at-work {
    background: var(--notwork-bg);
    color: #1f2937;
}
.fm-eval .timeline-block.virtual {
    background: var(--virtual-bg);
    color: #1f2937;
}

.fm-eval .timeline-block.locked {
    border: 1.5px solid #606060;
}

.fm-eval .timeline-pager {
    display: flex;
    align-items: center;
}

.fm-eval .timeline-page-datepicker {
    position: relative;
}

.fm-eval .timeline-page-datepicker input {
    border: 1px solid var(--grid-border);
    border-radius: var(--radius-sm);
    padding: 6px 8px;
    cursor: pointer;
    text-align: center;
}

.fm-eval .timeline-pager-container {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-right: auto;
}

.fm-eval .pag-title {
    font-size: 18px;
    font-weight: 500;
}

.fm-eval .pag-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    padding: 6px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    cursor: pointer;
    background: #f8fafc;
    color: #0f172a;
}

/* Перекрытия */
.fm-eval .timeline-block.overlap {
    height: 32px;
    box-shadow: var(--shadow-md);
}

.fm-eval .timeline-block.overlap:not(:hover) {
    opacity: 1;
}

.fm-eval .timeline-block.overlap.hovered {
    z-index: 10;
    opacity: 1;
    transform: translateY(-1px);
}

.fm-eval .timeline-block.overlap.faded {
    opacity: 0.65;
}

/* Приёмник DnD — hover ячейки */
.fm-eval .timeline-cell {
    position: relative;
    background: transparent;
    z-index: 0;
    pointer-events: auto;
    transition: outline .15s, background .15s, box-shadow .15s, transform .08s;
}

.fm-eval .timeline-cell.timeline-cell-hover,
.pick-mode .fm-eval .timeline-cell:hover {
    outline: 2px dashed var(--accent);
    background: var(--accent-soft);
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, .25), 0 2px 6px rgba(2, 6, 23, 0.06);
    transform: translateY(-1px);
}

/* Липкий заголовок таймлайна (если контейнер скроллится) */
.fm-eval .timeline-header {
    position: sticky;
    top: 0;
    z-index: 5;
    background: var(--bg-panel);
    backdrop-filter: saturate(140%) blur(2px);
}

.fm-eval .candidate-disabled,
.fm-eval .candidate-disabled .timeline-cell,
.fm-eval .candidate-disabled .timeline-cell-bg {
    opacity: .45;
    filter: grayscale(25%);
    pointer-events: none; /* важно для запрета drop */
}

.pick-mode .timeline-cell {
    cursor: copy;
}

.pick-mode .sausage-block {
    cursor: copy;
}

.fm-rw-btn-container {
    display: flex;
}

.dashboard-filter-btn--show {
    width: 170px !important;
    margin-right: 8px;
}

/* дефолтные слои */
.fm-eval .timeline-line-cells {
    z-index: 1;
}

.fm-eval .timeline-line-blocks {
    z-index: 5;
}

/* во время любого DnD поднимаем клетки выше блоков */
.dnd-raise .fm-eval .timeline-line-cells {
    z-index: 50;
}

.dnd-raise .fm-eval .timeline-line-blocks {
    z-index: 3;
}

.fm-eval .timeline-block.busy {
    pointer-events: auto;
}

/* Оверлей лоадера на блоке оценок */
.rw-eval-loader {
    position: absolute;
    inset: 0;
    background: rgb(243 243 243 / 76%);
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    backdrop-filter: saturate(120%) blur(0px);
    border-radius: 10px;
}

/* Спиннер */
.rw-eval-loader__spinner {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 3px solid rgb(154 166 200 / 35%);
    border-top-color: #b9c2c6;
    animation: rwspin 0.75s linear infinite;
}

@keyframes rwspin {
    to {
        transform: rotate(360deg);
    }
}

/* Плашка pick */
.fm-rw-banner {
    position: fixed;
    top: 82px;
    right: 18px;
    z-index: 9999;
    width: 370px;
    background-color: #ffffff;
    box-shadow: 0 6px 24px rgba(0, 0, 0, .12);
    border-radius: 8px;
    padding-top: 7px;
}
.fm-rw-banner--clean {
    padding-top: 0;
    overflow: hidden;
}
.fm-rw-banner--clean .rw-pick-banner {
    margin-top: 0;
}

.rw-pick-banner {
    width: 100%;
    margin-top: 5px;
}

.rw-info-banner {
    cursor: pointer;
    min-width: 175px;
    max-width: 275px;
    padding: 16px 8px;
    border-radius: 8px;
    background: #0ea5e9;
}

.rw-info-banner.short {
    min-width: 0;
    max-width: 32px;
    margin-left: auto;
    padding: 8px;
}

.rw-info-banner.short .rw-info-banner__content {
    display: none;
}

.rw-info-banner .rw-info-banner__content {
    display: block;
    font-size: 12px;
    color: #fff;
}

.rw-info-banner i {
    color: #ffffff;
    position: absolute;
    right: 5px;
    top: 5px;
}

.rw-info-banner.short i {
    position: unset;
    font-size: 16px;
}

.rw-pick-banner__inner {
    position: relative;
    padding: 15px;
    /*background: #0ea5e9;*/
    background: #c2dde9;
    /*color: #121212;*/
    color: #000;
    /*font-size: 13px;*/
    font-size: 14px;
    line-height: 1.36;
}

.rw-pick-banner__title {
    font-weight: 600;
    padding-right: 15px;
}

.rw-pick-banner__close {
    position: absolute;
    right: 0;
    top: 0;
    background: transparent;
    border: 0;
    color: #fff;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    padding: 2px 6px;
    opacity: .9;
    margin: 0;
    border-radius: 4px 8px 4px 8px;
}

.rw-pick-banner__close:hover {
    opacity: 1;
}

.rw-pick-banner__user {
    margin-top: 15px;
}

.rw-pick-banner__btns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 10px;
    font-size: 13px;
}

.rw-pick-banner__btn {
    padding: 6px;
    border: 1px dashed #121212;
    border-radius: 6px;
    cursor: pointer;
    flex: 1;
    white-space: nowrap;
    text-align: center;
    font-size: 12px;
}

.rw-pick-banner__open span {
    cursor: pointer;
    border-bottom: 1px dashed #121212;
}

.fm-eval .timeline-time {
    font-size: 11px;
}

.fm-eval .timeline-time .tt-date {
    font-style: italic;
    font-size: 10px;
}

.fm-eval .sgroup-left-wrap {
    position: relative;
    margin-top: 6px;
    padding: 8px 5px;
    border: 1px dashed #94a3b8;
    border-radius: 8px;
}

.fm-eval .sgroup-left-title {
    position: absolute;
    top: -13px;
    left: 10px;
    background: #fff;
    padding: 0 6px;
    font-size: 12px;
    color: #334155;
    cursor: pointer;
}
.fm-eval .sausage-label.is-picked {
    border: 2px dashed #5c5cff;
}
.fm-eval .sgroup-left-title:hover {
    background: rgba(209, 209, 209, 0.3);
}

.fm-eval .sgroup-left-wrap .sausage-label--row {
    margin-bottom: 6px;
}

.fm-eval .sgroup-left-wrap .fm-req-remove {
    left: -8px;
    top: -8px;
    background-color: #ffffff;
    z-index: 3;
}

.fm-eval .ugroup-left-wrap {
    position: relative;
    margin-top: 2px;
    padding: 8px;
    border: 1px dashed #94a3b8;
    border-radius: 8px;
}

.fm-eval .ugroup-left-title {
    position: absolute;
    top: -10px;
    left: 0;
    background: #fff;
    padding: 0 6px;
    font-size: 12px;
    color: #334155;

    width: 100px;
    white-space: nowrap; /* запрет переноса строки */
    overflow: hidden; /* скрытие лишнего текста */
    text-overflow: ellipsis; /* добавление многоточия */

    cursor: pointer;
}

.fm-eval .ugroup-left-wrap .sausage-label--row {
    margin: 6px 0;
}

.fm-eval .timeline-block--info,
.fm-eval .timeline-block--error {
    position: absolute;
}

.fm-eval .timeline-block--error {
    border: 1px dashed #ff4141;
}

.fm-eval .timeline-block__info,
.fm-eval .timeline-block--error {
    position: absolute;
    right: 3px;
    top: 3px;
    color: var(--text-main);
}

.fm-eval .timeline-block--error {
    color: #ff4141;
}

.fm-eval .timeline-cell-disabled {
    opacity: 0.4;
    pointer-events: none;
    background: repeating-linear-gradient(
            45deg,
            rgba(200, 0, 0, 0.1),
            rgba(200, 0, 0, 0.1) 6px,
            rgba(200, 0, 0, 0.05) 6px,
            rgba(200, 0, 0, 0.05) 12px
    );
}

.fm-eval .timeline-block__group {
    position: absolute;
    right: -1px;
    bottom: -1px;
    color: var(--text-main);
    border-radius: 8px 0 8px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 15px;
    width: 30px;
    box-shadow: 0 0 24px rgba(255, 255, 255, 0.35);
    background-color: #ffffff;
    font-size: 10px;
}


/* Адаптивность (чуть-чуть) */
@media (max-width: 1200px) {
    .fm-eval .sausage-title, .fm-eval .timeline-title {
        font-size: 18px;
    }

    .fm-eval {
        --cell-min-width: 40px;
    }
}

@media (max-width: 900px) {
    .fm-eval {
        --cell-min-width: 36px;
    }

    .fm-eval .sausage-label, .fm-eval .timeline-label {
        padding: 6px 8px;
    }
}

/* =========================
   Interim timeline modal
   ========================= */
.fm-interim-container {
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    --tl-bar-h: 28px; /* общая высота блока */
    --tl-gap: 6px; /* вертикальные отступы между дорожками */
    --tl-radius: 12px; /* радиус скругления */
    --tl-border: #e2e8f0; /* светлая рамка */
    --tl-bg: #f8fafc; /* фон дорожки */
    --tl-tick: #cbd5e1; /* цвет засечек */
    --tl-tick-label: #64748b; /* подписи к засечкам */
    --tl-edge: #94a3b8; /* подписи краёв шкалы */
    --title: #111827; /* заголовки */
    --subtitle: #444; /* подзаголовки */
}

/* Карточка пользователя */
.fm-interim-container .tl-user {
    background: #fff;
    border: 1px solid var(--tl-border);
    border-radius: 14px;
    padding: 12px;
    box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04);
}

.fm-interim-container .tl-user__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.fm-interim-container .tl-user__title {
    color: var(--title);
    max-width: 360px;
}

.fm-interim-container .tl-user__title-name {
    font-size: 14px;
}

.fm-interim-container .tl-user__title-role {
    opacity: .7;
    font-size: 12px;
    font-style: italic;
    white-space: nowrap; /* запрет переноса строки */
    overflow: hidden; /* скрытие лишнего текста */
    text-overflow: ellipsis; /* добавление многоточия */
}

.fm-interim-container .tl-user__range {
    color: #6b7280;
    font-size: 12px;
}

.fm-interim-container .tl-section {
    margin-bottom: 12px;
}

.fm-interim-container .tl-section__title {
    font-weight: 600;
    color: var(--subtitle);
    font-size: 13px;
    margin-bottom: 6px;
}

/* Трек + дорожки */
.fm-interim-container .tl-track {
    display: flex;
    flex-direction: column;
    gap: var(--tl-gap);
}

.fm-interim-container .tl-lane,
.fm-interim-container .tl-lane-group {
    display: flex;
    flex-direction: column;
    gap: var(--tl-gap);
}

/* Шкала времени */
.fm-interim-container .tl-scale {
    position: relative;
    height: 30px; /* место под подписи */
    border-bottom: 1px solid var(--tl-border);
    background: transparent;
}

.fm-interim-container .tl-tick {
    position: absolute;
    bottom: -1px;
    width: 1px;
    height: 8px;
    background: var(--tl-tick);
}

.fm-interim-container .tl-tick__label {
    position: absolute;
    top: -16px;
    transform: translateX(-50%);
    font-size: 11px;
    color: var(--tl-tick-label);
    white-space: nowrap;
    user-select: none;
}

.fm-interim-container .tl-edge {
    position: absolute;
    top: 8px;
    font-size: 11px;
    color: var(--tl-edge);
    user-select: none;
}

.fm-interim-container .tl-edge--left {
    left: 0;
}

.fm-interim-container .tl-edge--right {
    right: 0;
}

/* Подписи дорожек в секции move */
.fm-interim-container .tl-lane__label {
    position: absolute;
    left: 8px;
    top: -22px;
    font-size: 11px;
    color: #475569;
    background: #fff;
    border: 1px solid var(--tl-border);
    border-radius: 10px;
    padding: 0 6px;
    line-height: 18px;
}

/* Контейнер для нескольких строк в одной дорожке */
.fm-interim-container .tl-rows {
    display: flex;
    flex-direction: column;
    gap: var(--tl-gap);
}

/* Полоса для блоков */
.fm-interim-container .tl-row {
    position: relative;
    height: var(--tl-bar-h);
    background: var(--tl-bg);
    border: 1px dashed var(--tl-border);
    border-radius: var(--tl-radius);
    overflow: hidden;
}

/* Блок интервала */
.fm-interim-container .tl-bar {
    position: absolute;
    top: 2px;
    bottom: 2px;
    border-radius: calc(var(--tl-radius) - 2px);
    display: flex;
    align-items: center;
    padding: 0 8px;
    min-width: 2px; /* не даём схлопнуться совсем */
    overflow: hidden;
    gap: 6px;
}

.fm-interim-container .tl-bar__label {
    font-size: 12px;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tl-user__body {
    margin-top: 30px;
}

/* Статусы timeline */
.fm-interim-container .tl-bar--free {
    background: #dcfce7;
    border: 1px solid #86efac;
    color: #065f46;
}

.fm-interim-container .tl-bar--busy {
    background: #fef3c7; /* amber-100 */
    border: 1px solid #facc15; /* amber-400 */
    color: #92400e; /* amber-800 */
}

.fm-interim-container .tl-bar--not_at_work {
    background: #fee2e2; /* red-100 */
    border: 1px solid #ef4444; /* red-500 */
    color: #7f1d1d; /* red-900 */
}

/* OLD / NEW (move) */
.fm-interim-container .tl-bar--old {
    background: transparent;
    border: 2px dashed #3b82f6;
    color: #1e3a8a;
}

.fm-interim-container .tl-bar--new {
    background: #dbeafe;
    border: 1px solid #60a5fa;
    color: #1e3a8a;
    box-shadow: inset 0 0 0 1px rgba(96, 165, 250, .15);
}
.fm-interim-container .tl-bar--problem {
    border: 1px solid #ff3030;
}

/* Блок пояснений */
.fm-interim-container .tl-user__explain {
    margin-top: 10px;
}

.fm-interim-container .tl-explain {
    color: #374151;
    font-size: 13px;
}

.fm-interim-container .tl-explain span {
    color: #ff3030;
    font-weight: 600;
    font-size: 14px;
}

.fm-interim-container .tl-section-info {
    background: #fff;
    border: 1px solid var(--tl-border);
    border-radius: 14px;
    padding: 12px;
    box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04);
    font-size: 14px;
}

.fm-interim-bootbox .modal-dialog {
    width: 100%;
    max-width: 1250px;
    padding: 30px;
    margin: auto;
}

.fm-interim-bootbox .bootbox-body {
    height: 100%;
}

/* Адаптивность */
@media (max-width: 640px) {
    .fm-interim-container {
        --tl-bar-h: 26px;
    }

    .fm-interim-container .tl-user__title {
        font-size: 13px;
    }

    .fm-interim-container .tl-section__title {
        font-size: 12px;
    }

    .fm-interim-container .tl-bar__label {
        font-size: 11px;
    }

    .fm-interim-container .tl-scale {
        height: 28px;
    }
}

/* Для эффекта свечения по границе стрелки */
.hint--custom::before {
    filter: drop-shadow(0 0 3px rgba(147, 197, 253, 0.4));
}

.tippy-box__card {
    font-size: 12px;
    max-width: 270px;
}

.tippy-box__card .pl-2 {
    padding-left: .5em;
}

.tippy-box[data-theme~='my-light'] {
    background-color: #fff;
    color: #333;
    border: 1px solid #ddd;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    font-size: 14px;
    padding: 6px 10px;
}

.tippy-box[data-theme~='my-light'][data-placement^='top'] > .tippy-arrow::before {
    border-top-color: #fff;
}

.tippy-box[data-theme~='my-light'][data-placement^='bottom'] > .tippy-arrow::before {
    border-bottom-color: #fff;
}

.tippy-box[data-theme~='my-light'][data-placement^='right'] > .tippy-arrow::before {
    border-right-color: #fff;
}

.tippy-box[data-theme~='my-light'][data-placement^='left'] > .tippy-arrow::before {
    border-left-color: #fff;
}

/*Добавление исполнителя в форме заявки*/
.user-filter-hint {
    margin-top: 40px;
}

.fm-nav-headers {
    border-bottom: 3px solid #ebebeb;
}

.fm-headers {
    background: transparent;
    box-shadow: none;
    border: none;
}

.fm-headers .nav_tab {
    background: transparent;
    box-shadow: none;
    min-height: 420px;
}

.timeline-block--applied {
    outline: 3px solid #b06aff !important;
    outline-offset: -3px;
    opacity: 0.85;
    cursor: help !important;
}

/* Примененные оценки (sausage-блоки) */
.sausage-block--applied {
    outline: 3px solid #b06aff !important;
    outline-offset: -3px;
    opacity: 0.85;
}

/* Заблокированные оценки (sausage-блоки) */
.sausage-block--locked {
    outline: 3px solid #475569 !important;
    outline-offset: -3px;
    opacity: 0.9;
    cursor: help !important;
}

/* Примененные И заблокированные оценки (sausage-блоки) - приоритет серой рамке */
.sausage-block--applied.sausage-block--locked {
    outline: 3px solid #475569 !important;
    outline-offset: -3px;
    opacity: 0.85;
    cursor: help !important;
}

/* Кнопка применения планирования */
.timeline-header-with-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.timeline-header-info {
    margin-bottom: 20px;
}

.timeline-header-info b {
    font-weight: 600;
}

.timeline-apply-btn {
    white-space: nowrap;
    flex-shrink: 0;
}

.timeline-apply-btn .btn {
    margin-top: 0;
    border-radius: 8px;
    background-color: #ffffff;
    border: 1px solid var(--grid-border);
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-apply-btn .btn i {
    margin-right: 5px;
    margin-top: 0;
}

.timeline-title {
    flex-grow: 1;
}

/* Динамическая рамка для перемещения */
.timeline-cell.dynamic-drop-zone {
    position: relative;
    outline: 2px dashed var(--accent) !important;
    background: var(--accent-soft) !important;
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, .25) !important;
    z-index: 10 !important;
}

/* Частичный слот - заполняется только на определенный процент */
.timeline-cell.partial-slot {
    position: relative;
}

/* Скрываем стандартную рамку при динамической */
.pick-mode .timeline-cell.dynamic-drop-zone:hover {
    outline: 2px dashed var(--accent) !important;
    background: var(--accent-soft) !important;
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, .25) !important;
}

/* Исправление скролла для кнопок фильтров */
.ct-environment-buttons ul {
    flex-wrap: wrap !important;
    gap: 8px;
}

.dashboard-filter-btn {
    width: auto !important;
    min-width: 110px;
    white-space: nowrap;
}

.fm-eval .timeline-header-days {
    position: relative;
    display: flex;
    gap: 2px;
    margin-bottom: 2px;
}

.timeline-header-day {
    display: flex;
    align-items: center;
    padding-left: 5px;
    font-weight: 600;
    font-size: 18px;
    position: sticky;
    left: 0;
    height: 30px;
    min-height: 30px;
}

.sausage-label__content[data-is-ppr="true"] {
    background-color: #e0ffcc;
}

.sausage-block[data-is-ppr="true"] {
    background-color: #e7e6f6;
}

.timeline-pager .select2-container {
    margin-top: 0;
    height: 30px !important;
    width: 160px !important;
    margin-right: 10px;
    border: none;
}

.timeline-pager .select2-container .select2-selection--single {
    height: 100%;
    border: none;
}

.timeline-pager .select2-container--default .select2-selection--single .select2-selection__rendered {
    border: 1px solid var(--grid-border);
    border-radius: var(--radius-sm);
    padding: 6px 8px;
    height: 100%;
    line-height: 1;
    display: flex;
    align-items: center;
}

.timeline-pager .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 28px;
}

/* Даты между min/max */
.air-datepicker-cell.custom-in-range {
    background: #e7f1ff;
    color: #4374c3;
}

/* При наведении, чтобы не ломалось */
.air-datepicker-cell.custom-in-range:hover {
    filter: brightness(0.93);
}

/* лёгкая svg-иконка ножниц в курсоре, fallback на crosshair */
.rw-cutting-mode .sausage-block,
.rw-cutting-mode body {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24"><text y="18" font-size="18">✂</text></svg>') 8 8, crosshair !important;
}

/* доп. гарантия максимального слоя */
.tippy-box[data-theme~='rw-cut'],
.tippy-box[data-theme~='rw-cut'] * {
    z-index: 9;
}

/* затемнение и блокировка остальных */
.sausage-block.cut-dim {
    opacity: 0.35;
    pointer-events: none; /* чтобы даже делегаты не ловили, но у нас есть JS-guard */
}

/* вертикальная пунктирная линия внутри колбаски при резке */
.rw-cut-guideline {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 0;
    border-left: 1px dashed rgba(0, 0, 0, 0.65);
    pointer-events: none;
    z-index: 2147483646; /* ниже тултипа, но поверх содержимого блока */
}

.sausage-block.uncut-selectable {
    outline: 1px dashed #6aa0ff;
    cursor: pointer;
}

.sausage-block.uncut-selected {
    outline: 2px solid #6aa0ff;
    background: rgba(106, 160, 255, .12);
}

.sausage-block.uncut-dim {
    opacity: .35;
    pointer-events: none;
}

.rw-uncut-actions-wrapper {
    margin-top: 4px;
    gap: 4px;
    padding: 10px 15px;
    background: #0ea5e9;
    color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(2, 6, 23, .2);
    text-align: center;
}

.rw-uncut-actions {
    display: inline-flex;
    gap: 4px;
}

.fm-eval-cut-text {
    cursor: pointer;
    max-width: 240px;
}

.user-tippy-content {
    font-size: 11px;
}

.rw-pick-banner__cut {
    display: flex;
}

.rw-pick-banner__cut .rw-pick-banner__label {
    margin-right: 5px;
}

/* базовая раскладка контейнера действий */
.fm-eval .sausage-row {
    display: flex;
    align-items: stretch;
}

.fm-eval .sausage-actions {
    flex: 0 0 28px; /* ширина панели кнопок; подгони при желании */
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.fm-eval .sausage-row--times .sausage-actions {
    margin-right: 4px;
}

.fm-eval .sausage-line {
    flex: 1 1 auto;
}

.fm-eval .sausage-action-btn {
    border: 0;
    background: #49abff;
    cursor: pointer;
    padding: 5px;
    font-size: 10px;
    border-radius: 4px;
    margin: 0;
}

.fm-eval .sausage-action-btn i {
    pointer-events: none;
}

.fm-eval .sausage-action-btn.disabled {
    cursor: not-allowed;
    background: #b1b1b1;
}

.fm-eval .sausage-cell-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.fm-eval .sausage-cell-btn svg {
    fill: #2196f3;
    width: 40px;
    height: 40px;
}

.fm-eval .btn-disabled {
    background-color: #bfbfbf;
    cursor: not-allowed;
}

/* auto-assign */
.aa-panel {
    width: 100%;
    max-height: 60vh;
    overflow: auto;
    font: 14px/1.4 system-ui, -apple-system, Segoe UI, Roboto;
    padding: 0 7px;
}

.aa-btn-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-bottom: 1px solid #eee;
}

.aa-close {
    position: absolute;
    right: 0;
    top: 5px;
    background: transparent;
    border: 0;
    color: #7ec0f1;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    padding: 2px 6px;
    opacity: .9;
    margin: 0;
    border-radius: 4px 8px 4px 8px;
    font-family: inherit;
}

.aa-close:hover {
    background: transparent;
}

.aa-content {
    padding: 10px 12px;
}

.aa-content-title {
    margin-bottom: 8px;
    color: #666;
}

.aa-list-space {
    margin: 8px 0;
}

.aa-submit-container {
    margin-top: 10px;
    display: flex;
    gap: 8px;
}

.aa-copy,
.aa-clear {
    border: 0;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
}

.aa-sausages {
    margin-top: 6px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.aa-users {
    margin-top: 6px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.aa-about {
    font-weight: 600;
}

.aa-chip {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 999px 0 999px 999px;
    background: #fafafa;
    border: 1px solid #ddd;
    margin: 2px 4px 2px 0;
    font-size: 12px;
}

.aa-chip-text {
    margin-right: 4px;
}

.aa-chip-remove {
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    position: absolute;
    right: -2px;
    top: -4px;
    color: #900;
    line-height: 1;
}
.aa-chip-remove:hover {
    color: #c00;
}

.fm-eval .sausage-block.is-picked {
    border: 2px dotted #49abff;
}
.minute-tag-reset {
    margin-top: 0;
    margin-left: 4px;
}

.minute-tags-wrap {
    margin-top: 6px;
    display: flex;
    align-items: self-start;
}

.minute-tags-row {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.minute-tag {
    flex: 0 0 45px;
    text-align: center;
    margin: 0;
}

.fm-rw-btn-container {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    gap: 6px;
    padding: 0 7px 7px;
}

.fm-rw-btn-container .dashboard-filter-btn {
    background-color: #ffffff;
    box-shadow: 0 6px 24px rgba(0, 0, 0, .06);
    min-width: unset;
}

.rw-pick-banner__title .fa-lock {
    font-size: 18px;
    margin-right: 5px;
    margin-bottom: 10px;
    color: #085273;
}
.rw-pick-banner__title .fa-check {
    font-size: 18px;
    margin-right: 5px;
    margin-bottom: 10px;
    color: #81ff83;
}

.move-options-wrapper {
    padding: 12px 16px;
    border-radius: 10px;
}

.move-options-wrapper h5 {
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.move-options-container {
    display: flex;
    gap: 10px;
    align-items: stretch;
    flex-wrap: wrap;
}

/* карточки-опции */
.move-options-container .form-check {
    margin: 0;
}

.move-options-container .form-check-input {
    display: none; /* прячем стандартный radio */
}

.move-options-container .form-check-label {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid #d0d4dc;
    background: #ffffff;
    font-size: 13px;
    line-height: 1.3;
    color: #414957;
    cursor: pointer;
    transition:
            background 0.15s ease,
            border-color 0.15s ease,
            box-shadow 0.15s ease,
            color 0.15s ease,
            transform 0.1s ease;
    max-width: 280px;
}

/* состояние наведения */
.move-options-container .form-check-label:hover {
    border-color: #b5bfd3;
    box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.08);
}

/* выбранный вариант */
.move-options-container .form-check-input:checked + .form-check-label {
    background: rgba(13, 110, 253, 0.08);
    border-color: #0d6efd;
    color: #0d408f;
    box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.18);
    transform: translateY(-1px);
}

/* стрелочка для ignore (влево) */
#moveIgnore + .form-check-label::before {
    content: "←";
    display: inline-block;
    margin-right: 6px;
    font-size: 14px;
    opacity: 0.9;
}

/* стрелочка для cascade (вправо) */
#moveCascade + .form-check-label::after {
    content: "→";
    display: inline-block;
    margin-left: 6px;
    font-size: 14px;
    opacity: 0.9;
}

/* фокус с клавиатуры */
.move-options-container .form-check-input:focus-visible + .form-check-label {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
}

.fm-eval .sausage-label__name {
    font-size: 10px;
}

.fm-req-actions {
    border-top: 1px dashed #dddddd;
    padding-top: 5px;
    margin-top: 5px;
    display: flex;
    align-items: center;
}
.fm-req-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    width: 25px;
    height: 25px;
    border-radius: 4px;
    border: 1px solid #cbd5e1;
    text-align: center;
    color: #474747;
    background-color: rgba(255, 255, 255, .7);
    margin-right: 3px;
}
.fm-req-create svg,
.fm-req-icon svg {
    width: 15px;
    height: 15px;
    fill: #000;
}
.fm-req-open {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    width: 25px;
    height: 25px;
    border-radius: 4px;
    border: 1px solid #cbd5e1;
    text-align: center;
    color: #474747;
    background-color: rgba(255, 255, 255, .7);
    margin-right: 3px;
}
.fm-group-select-mode .sgroup-left-title {
    border: 2px solid rgba(0, 0, 0, 0.25);
}

.gm-panel {
    padding: 10px 12px;
    font: 14px / 1.4 system-ui, -apple-system, Segoe UI, Roboto;
}
.gm-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-bottom: 1px solid #eee;
}
.gm-close {
    position: absolute;
    right: 0;
    top: 5px;
    background: transparent;
    border: 0;
    color: #7ec0f1;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    padding: 2px 6px;
    opacity: .9;
    margin: 0;
    border-radius: 4px 8px 4px 8px;
    font-family: inherit;
}
.gm-body {
    padding: 10px 12px;
}
.gm-actions {
    margin-top: 10px;
    display: flex;
    gap: 8px;
}

/* Панель резки (в .fm-rw-banner) */
.rw-cut-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    background: #ffffff;
    border-radius: 6px;

    padding: 8px 12px;

    font-size: 14px;
    line-height: 1;

    box-shadow: 0 2px 4px rgba(0,0,0,0.06);
}

/* Подпись + input */
.rw-cut-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #333;
}

/* Поле ввода чисел */
.rw-cut-input {
    width: 70px;
    padding: 4px 6px;

    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;

    font-size: 14px;
    text-align: center;

    outline: none;
    transition: border-color .15s;
}
.rw-cut-input:focus {
    border-color: #4b8bf4;
}

/* Кнопка "Применить" */
.rw-cut-apply {
    padding: 6px 14px;

    background: #4b8bf4;
    color: #fff;

    font-size: 14px;
    border: none;
    border-radius: 4px;

    cursor: pointer;
    transition: background .15s;
}

.rw-cut-apply:hover {
    background: #3a76d4;
}

.rw-cut-apply:active {
    background: #2e63b2;
}

/* Пока режем — панель не должна перескакивать */
body.rw-cutting-mode .rw-cut-panel {
    position: relative;
    z-index: 10;
}

/* Корневой блок apply-mode */
.rw-apply-panel {
    background: #fff;
    border-radius: 6px;
    width: 100%;
    font: 14px / 1.4 system-ui, -apple-system, Segoe UI, Roboto;
}

/* Заголовок как gm-header */
.rw-apply-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;

    padding: 8px 12px;
    border-bottom: 1px solid #eee;
}

/* Текст заголовка */
.rw-apply-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

/* Кнопка закрытия — полный аналог gm-close */
.rw-apply-close {
    position: absolute;
    right: 0;
    top: 5px;
    background: transparent;
    border: 0;
    color: #7ec0f1;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;

    padding: 2px 6px;
    margin: 0;

    opacity: .9;
    border-radius: 4px 8px 4px 8px;
    font-family: inherit;
}

/* Тело панели, по центру */
.rw-apply-body {
    padding: 24px 62px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

/* Input с датами */
.rw-apply-input {
    width: 100%;
    padding: 6px 10px;

    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;

    text-align: center;
    font-size: 14px;
    line-height: 1.2;

    outline: none;
    transition: border-color .15s, box-shadow .15s;
}
.rw-apply-select3 {
    width: 100%;
}
.rw-apply-select3 .select3-wrapper {
    border-radius: 4px;
}

.rw-apply-input:focus {
    border-color: #4b8bf4;
    box-shadow: 0 0 0 2px rgba(75,139,244,0.25);
}

/* Кнопки внизу — в одну строку, как gm-actions */
.rw-apply-actions {
    margin-top: 4px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

/* Кнопка "Применить" */
.rw-apply-submit {
    padding: 8px 18px;

    background: #4b8bf4;
    color: #fff;

    font-size: 14px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin: 0;
    transition: background .15s;
}

.rw-apply-submit:hover {
    background: #3a76d4;
}

.rw-apply-submit:active {
    background: #2e63b2;
}

/* Активный режим */
body.rw-apply-mode .rw-apply-panel {
    position: relative;
    z-index: 10;
}

.exec-summary {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font: 13px / 1.4 system-ui, -apple-system, Segoe UI, Roboto;
    margin-top: 25px;
}

/* Карточка пользователя */
.exec-card {
    border: 1px solid #eee;
    border-radius: 6px;
    background: #fff;
    padding: 8px 10px;
}

/* Заголовок карточки */
.exec-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}

.exec-card-fio {
    font-weight: 600;
    color: #222;
    min-width: 120px;
}

.exec-card-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.exec-card-id {
    font-size: 11px;
    color: #999;
}

.exec-card-role {
    font-size: 11px;
    color: #555;
}

/* Список назначений */
.exec-card-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.exec-card-item {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px;
    font-size: 12px;
    padding-bottom: 10px;
}

/* Метка "Заявка"/"ППР" */
.exec-tag {
    padding: 2px 6px;
    border-radius: 999px;
    font-size: 11px;
    line-height: 1.2;
    border: 1px solid transparent;
    white-space: nowrap;
}

.exec-tag--rw {
    background: #eef5ff;
    border-color: #c3d7ff;
    color: #2458b3;
}

.exec-tag--bypass {
    background: #eef5ff;
    border-color: #b9b8fa;
    color: #24aeb3;
}

.exec-tag--ppr {
    background: #f5f5ff;
    border-color: #d0cfff;
    color: #4a3fb6;
}

/* Дата / время */
.exec-time-main {
    font-size: 12px;
    color: #333;
}

.exec-time-sub {
    font-size: 11px;
    color: #777;
}

.exec-meta-line {
    width: 100%;
    margin-top: -4px;
    padding-left: 5px;
    font-size: 10px;
    color: #555;
    line-height: 1.26;
}
.exec-desc {
    width: 100%;
    margin-top: -4px;
    padding-left: 5px;
    font-size: 12px;
    color: #040404;
    line-height: 1.26;
}
.exec-date {
    width: 100%;
    margin-top: -4px;
    padding-left: 5px;
    font-size: 10px;
    color: #555;
    line-height: 1.26;
}
.exec-company {
    width: 100%;
    margin-top: -4px;
    padding-left: 5px;
    font-size: 11px;
    color: #555;
    line-height: 1.26;
}

table.classicTable tr.not-has-evaluation td {
    background-color: rgba(255, 239, 163, 0.5);
}
table.classicTable tr.all-set td {
    background-color:  rgb(209 165 255 / 25%);
}
table.classicTable tr.part-assignment td {
    background-color: rgb(230 247 239);
}
table.classicTable tr.all-assignment td {
    background-color: rgb(240 250 245);
}

.exec-empty {
    padding: 12px;
    text-align: center;
    font-size: 13px;
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 6px;
    color: #666;
    margin-top: 8px;
}

/* Общий контейнер результата */
.aa-result-wrapper {
    font-size: 12px;
    color: #333;
}

.aa-result-summary {
    margin-bottom: 15px;
    font-weight: 600;
    font-size: 15px;
}

/* Две колонки */
.aa-result-grid {
    display: flex;
    gap: 20px;
}

.aa-result-col {
    flex: 1;
    min-width: 0;
    background: #fafafa;
    border: 1px solid #e7e7e7;
    border-radius: 6px;
    padding: 15px;
}

.aa-result-col-title {
    font-weight: 600;
    margin-bottom: 12px;
    font-size: 14px;
    border-bottom: 1px solid #e7e7e7;
    padding-bottom: 6px;
}

/* Списки */
.aa-result-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.aa-result-item {
    padding: 10px 8px;
    margin-bottom: 10px;
    border-radius: 5px;
    background: #ffffff;
    border: 1px solid #e5e5e5;
}

.aa-result-item:last-child {
    margin-bottom: 0;
}

/* Успешные — мягкий зеленоватый оттенок */
.aa-result-list-success .aa-result-item {
    border-left: 4px solid #9ac89a; /* пастельный зелёно-серый */
}

/* Неуспешные — мягкий красный/коралловый */
.aa-result-list-rejects .aa-result-item {
    border-left: 4px solid #e39d9d; /* пастельный красно-розовый */
}

/* Блок оценки */
.aa-result-eval {
    margin-bottom: 20px;
}

.aa-result-eval-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
}

/* Пользователь */
.aa-result-user {
    margin-bottom: 6px;
}

.aa-result-user-fio {
    font-weight: 600;
    margin-bottom: 3px;
}

.aa-result-user-roles {
    color: #666;
    font-size: 12px;
    line-height: 1.3;
}

/* Причина */
.aa-result-reason {
    margin-top: 6px;
    font-size: 13px;
    color: #444;
}

/* Слот */
.aa-result-slot {
    margin-top: 4px;
    font-size: 12px;
    color: #666;
}

/* Пустые секции */
.aa-result-empty {
    padding: 10px;
    color: #777;
    font-size: 13px;
}

.aa-bootbox-wide .modal-dialog {
    max-width: 900px;
    width: 100%;
}

/* Контейнер успешных назначений */
.aa-result-list-success {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Карточка успешного назначения */
.aa-result-item-success {
    padding: 10px 10px 9px;
    margin-bottom: 10px;
    border-radius: 5px;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-left: 4px solid #9ac89a; /* мягкий зелёный */
}

.aa-result-item-success:last-child {
    margin-bottom: 0;
}

/* Верхняя строка: оценка и ID назначения */
.aa-result-assignment-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 6px;
    font-size: 12px;
    color: #666;
}

.aa-result-assignment-eval {
    font-weight: 600;
}

.aa-result-assignment-id {
    font-style: italic;
}

/* Основной блок */
.aa-result-assignment-body {
    font-size: 13px;
    color: #333;
}

/* Исполнитель */
.aa-result-assignment-user {
    margin-bottom: 4px;
}

.aa-result-assignment-user-fio {
    font-weight: 600;
}

.aa-result-assignment-user-id {
    margin-left: 5px;
    color: #777;
    font-size: 12px;
}

/* Время выполнения */
.aa-result-assignment-time {
    font-size: 12px;
    color: #555;
    margin-bottom: 3px;
}

/* Заявка */
.aa-result-assignment-rw {
    font-size: 12px;
    color: #444;
}

.status-glossary {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 18px; /* расстояние между элементами */
    margin: 10px 0;
    font-size: 13px;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap; /* чтобы не переносилось */
}

/* Цвета */
.status-box {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    display: inline-block;
    border: 1px solid rgba(0,0,0,0.15);
}
.status-box.all-set {
    background-color: rgb(209 165 255 / 25%);
}
.status-box.all-assignment {
    background-color: rgb(240 250 245);
}
.status-box.part-assignment {
    background-color: rgb(230 247 239);
}
.status-box.not-has-evaluation {
    background-color: rgba(255, 239, 163, 0.5);
}
.status-box.off-time {
    border-color: rgba(255, 47, 47, 0.6);
}
.status-box.not-set {
    border: 1px solid var(--block-border);
    background-color: #e6f6ee;
}
.status-box.set {
    opacity: .6;
    border: 1px solid var(--block-border);
    background-color: #e6f6ee;
}
.status-box.applied {
    opacity: .6;
    border: 2px solid #b06aff;
    background-color: #e6f6ee;
}
.status-box.locked {
    opacity: .6;
    border: 2px solid #475569;
    background-color: #e6f6ee;
}

.fm-eval .timeline-block__content {
    width: 100%;
}
.fm-eval .timeline-block-info {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    text-align: left;
}
.fm-eval .sausage-block.off-time {
    border: 1px solid rgba(255, 47, 47, 0.6);
}

.overflow-block {
    overflow: hidden;
}

.fm-interim-bootbox .tl-explain-actions {
    margin-left: 24px;      /* чуть отступить от .tl-explain */
    max-width: 260px;       /* чтобы текст не растягивался сильно, по желанию */
}
.fm-interim-bootbox .tl-explain-actions__text {
    font-size: 12px;
    margin-bottom: 6px;
    line-height: 1.4;
}
.fm-interim-bootbox .tl-explain-actions__btn {
    padding: 4px 10px;
    font-size: 12px;
    border-radius: 4px;
    border: 1px solid #dc3545;
    background: #fff;
    color: #dc3545;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    margin: 0;
}
.fm-interim-bootbox .tl-explain-actions__btn:hover {
    background: #dc3545;
    color: #fff;
}
.fm-interim-bootbox .tl-explain-actions__btn:disabled {
    opacity: 0.6;
    cursor: default;
}
.fm-interim-bootbox .tl-user__explain {
    min-height: 44px;
    background: #fafafa;
    border: 1px solid var(--tl-border);
    border-radius: 10px;
    padding: 8px 10px;
}
.fm-interim-bootbox .tl-explain-wrapper {
    display: flex;
    align-items: flex-start;
}

.fm-eval .sausage-label--header {
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.eval-reload-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    width: 25px;
    height: 25px;
    border-radius: 4px;
    border: 1px solid #cbd5e1;
    text-align: center;
    color: #474747;
    background-color: rgba(255, 255, 255, .7);
}
.eval-reload-btn svg {
    width: 15px;
    height: 15px;
    fill: #000;
}

.fm-eval .timeline-pager-input {
    border: 1px solid var(--grid-border);
    border-radius: var(--radius-sm);
    padding: 6px 8px;
    height: 100%;
    margin-left: 5px;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}
.fm-eval .timeline-pager-input:focus {
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 .25rem rgba(13, 110, 253, .25); /* мягкое синее облачко */
}
.scale-75 {
    transform: scale(0.75);
    transform-origin: top left;
    width: calc(100% / 0.75);
}
.dashboard-filter-btn--submit {
    flex: 2;
}
.dashboard-filter-btn--auto-assign {
    flex: 2;
}
.dashboard-filter-btn.scaled {
    background: #c7c7c7;
    color: #fff;
}