/* WorkLine 1.11.17 — Графики (15.1–15.2), Табель (16.1), Зал (17.1–17.2):
 * 15.1 / 16.1 — убран внешний контейнер в «Графиках» и «Табеле»; статичная «бровь» в отдельном контейнере;
 *               свободное перемещение и масштабирование таблицы (Excel pan/zoom) с ограничением отдаления до ширины всего месяца.
 * 15.2 / 16.1 — сворачивание / разворачивание категорий (остаётся строка с названием, сотрудники скрываются).
 * 17.1        — в «Зале» кнопки «Весь день» и «На время» подняты в одну строку с масштабом, редактированием и полным экраном.
 * 17.2        — в полноэкранном режиме «Зала» (в т.ч. при повороте) кнопки управления автоматически скрываются как в режиме «глазка».
 */

/* ========== 15.1 & 16.1: Графики и Табель — без внешнего контейнера, статичная «бровь» ========== */
html body #schedule-overlay.nkl-overlay.wl-as-tab .nkl-screen,
html[data-wallpaper]:not([data-wallpaper="none"]) body #schedule-overlay.nkl-overlay.wl-as-tab .nkl-screen,
html body #timesheet-overlay.nkl-overlay.wl-as-tab .nkl-screen,
html[data-wallpaper]:not([data-wallpaper="none"]) body #timesheet-overlay.nkl-overlay.wl-as-tab .nkl-screen {
    background: transparent !important;
    background-image: none !important;
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    overflow: visible !important;
}

/* Статичный отдельный контейнер для «брови» Графиков (месяц, Сегодня, ⋯) */
#schedule-overlay .sch-bar {
    flex: 0 0 auto;
    background: var(--card) !important;
    border: 1px solid var(--wl-line, var(--border)) !important;
    border-radius: 15px !important;
    margin: 2px 0 10px !important;
    padding: 7px 10px !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .06);
    gap: 7px;
}

#schedule-overlay:not(.wl-as-tab) .sch-bar {
    margin: 8px 12px 10px !important;
}

html[data-theme="dark"] #schedule-overlay .sch-bar,
html[data-theme="dark"] #timesheet-overlay .ts-dock {
    box-shadow: 0 2px 8px rgba(0, 0, 0, .24);
}

/* Статичный отдельный контейнер для «брови» Табеля (месяц, Сейчас, фото, ⋯ + сводка часов/суммы) */
#timesheet-overlay .ts-dock {
    flex: 0 0 auto;
    background: var(--card) !important;
    border: 1px solid var(--wl-line, var(--border)) !important;
    border-radius: 15px !important;
    margin: 2px 0 10px !important;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .06);
}

#timesheet-overlay:not(.wl-as-tab) .ts-dock {
    margin: 8px 12px 10px !important;
}

#timesheet-overlay .ts-dock .sch-bar {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 7px 8px !important;
    box-shadow: none !important;
    gap: 5px;
}

#timesheet-overlay .ts-dock .sch-bar .sch-month {
    font-size: 14.5px;
    white-space: nowrap;
}

#timesheet-overlay .ts-dock .sch-bar .sch-nav {
    min-width: 34px;
    width: 34px;
    height: 36px;
    padding: 0;
}

#timesheet-overlay .ts-dock .sch-bar .sch-today {
    height: 36px;
    padding: 0 9px;
    font-size: 12.5px;
}

#timesheet-overlay .ts-dock .sch-bar .p2-acts .chat-head-btn {
    width: 34px;
    height: 36px;
}

#timesheet-overlay .ts-dock .ts-total {
    padding: 6px 12px 8px !important;
    border-top: 1px solid var(--wl-line, var(--border));
    background: rgba(var(--primary-rgb), .03);
    font-size: 12.5px;
}

#timesheet-overlay .ts-dock .ts-total:empty {
    display: none !important;
}

/* Свободное Excel-пространство таблиц (edge-to-edge под статичной бровью) */
#schedule-overlay.wl-as-tab #sch-wrap,
#timesheet-overlay.wl-as-tab #ts-wrap {
    margin: 0 -15px !important;
    padding: 0 0 calc(20px + env(safe-area-inset-bottom, 0px)) !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    overscroll-behavior: contain;
    touch-action: pan-x pan-y;
}

#schedule-overlay #sch-wrap .sch-sizer,
#timesheet-overlay #ts-wrap .sch-sizer {
    position: relative;
    min-width: 100%;
    min-height: 1px;
}

#schedule-overlay #sch-wrap .sch-stage,
#timesheet-overlay #ts-wrap .sch-stage {
    position: absolute;
    top: 0;
    left: 0;
    transform-origin: 0 0;
    will-change: transform;
}

#schedule-overlay #sch-wrap.is-dragging,
#timesheet-overlay #ts-wrap.is-dragging {
    cursor: grabbing;
    user-select: none;
    -webkit-user-select: none;
}

/* Закреплённые имена при масштабировании: компенсируем scale(...) через --sch-pin-x, чтобы колонка не уезжала за экран */
#schedule-overlay #sch-wrap.pin.is-zoomed .sch-table .sch-name,
#timesheet-overlay #ts-wrap.pin.is-zoomed .sch-table .sch-name {
    position: relative !important;
    left: auto !important;
    z-index: 3 !important;
    transform: translate3d(var(--sch-pin-x, 0px), 0, 0);
    will-change: transform;
    box-shadow: 2px 0 6px rgba(0, 0, 0, .08);
}
#schedule-overlay #sch-wrap.pin.is-zoomed .sch-inh,
#timesheet-overlay #ts-wrap.pin.is-zoomed .sch-inh {
    position: relative !important;
    left: auto !important;
    z-index: 3 !important;
    transform: translate3d(var(--sch-pin-x, 0px), 0, 0);
}

/* Плоские чёткие края Excel-таблиц без скруглённого «лотка» */
#schedule-overlay #sch-wrap .sch-table th,
#schedule-overlay #sch-wrap .sch-table td,
#timesheet-overlay #ts-wrap .sch-table th,
#timesheet-overlay #ts-wrap .sch-table td {
    border-radius: 0 !important;
}

#schedule-overlay #sch-wrap .sch-table,
#timesheet-overlay #ts-wrap .sch-table {
    border-top: 1px solid var(--sch-line, var(--border)) !important;
    width: 100%;
}

#timesheet-overlay #ts-wrap .ts-table .ts-rate-h,
#timesheet-overlay #ts-wrap .ts-table .ts-rate {
    min-width: 54px;
}

#timesheet-overlay #ts-wrap .ts-table .ts-sum-h,
#timesheet-overlay #ts-wrap .ts-table .ts-sum {
    min-width: 56px;
}

#timesheet-overlay #ts-wrap .ts-table .ts-pay-h,
#timesheet-overlay #ts-wrap .ts-table .ts-money {
    min-width: 68px;
}

#timesheet-overlay #ts-wrap .ts-table .ts-all-h,
#timesheet-overlay #ts-wrap .ts-table .ts-all {
    min-width: 72px;
}

#schedule-overlay #sch-wrap .sch-empty,
#timesheet-overlay #ts-wrap .sch-empty {
    margin: 4px 15px;
    background: var(--card);
    border: 1px solid var(--wl-line, var(--border));
    border-radius: 16px;
}

#schedule-overlay #sch-wrap .sch-inh,
#timesheet-overlay #ts-wrap .sch-inh {
    margin: 0 0 8px;
    border-radius: 0;
}

/* ========== 15.2 & 16.1: Сворачивание категорий в Графиках и Табеле ========== */
#schedule-overlay .sch-table .sch-name,
#schedule-overlay .sch-table .sch-row .sch-name,
#timesheet-overlay .sch-table .sch-name,
#timesheet-overlay .sch-table .sch-row .sch-name {
    min-width: 158px !important;
    max-width: 168px !important;
    width: 162px !important;
}

#schedule-overlay .sch-table .sch-grp,
#timesheet-overlay .sch-table .sch-grp {
    padding: 4px 5px !important;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
}

.sch-grp-in {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    width: 100%;
}

.sch-grp-tog {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: rgba(var(--primary-rgb), .14);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .15s ease;
}

.sch-grp-tog svg {
    width: 14px;
    height: 14px;
    transition: transform .18s ease;
}

.sch-table.is-collapsed .sch-grp-tog svg {
    transform: rotate(-90deg);
}

.sch-grp-t {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-right: 0 !important;
}

.sch-grp-cnt {
    flex: 0 0 auto;
    font-style: normal;
    font-size: 10.5px;
    font-weight: 800;
    line-height: 1;
    padding: 3px 5px;
    border-radius: 6px;
    background: rgba(var(--primary-rgb), .16);
    color: var(--primary);
    display: none;
    pointer-events: none;
}

.sch-table.is-collapsed .sch-grp-cnt {
    display: inline-block;
}

.sch-grp-more {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.sch-grp-tog:active,
.sch-grp-more:active {
    background: rgba(var(--primary-rgb), .24);
}

.sch-table.is-collapsed tr.sch-row,
.sch-table.is-collapsed tr.sch-cnt {
    display: none !important;
}

/* ========== 17.1: Зал — «Весь день» и «На время» на одной строке с масштабом и кнопками вида ========== */
#hall-overlay:not(.is-full) #hall-body > .hall-cvbar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    gap: 5px !important;
    margin: 0 0 8px !important;
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

#hall-overlay:not(.is-full) #hall-body > .hall-cvbar::-webkit-scrollbar {
    display: none;
}

#hall-overlay:not(.is-full) #hall-body > .hall-cvbar .hall-time {
    display: inline-flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 4px !important;
    margin: 0 !important;
    padding: 0 !important;
    flex: 0 0 auto !important;
}

#hall-overlay:not(.is-full) #hall-body > .hall-cvbar .hall-time .hall-chip {
    height: 32px !important;
    min-height: 32px !important;
    padding: 0 8px !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    border-radius: 10px !important;
    white-space: nowrap !important;
    flex: 0 0 auto !important;
}

#hall-overlay:not(.is-full) #hall-body > .hall-cvbar .hall-time .hall-tstep {
    height: 32px !important;
    min-height: 32px !important;
    border-radius: 10px !important;
    flex: 0 0 auto !important;
    display: inline-flex !important;
    align-items: center !important;
}

#hall-overlay:not(.is-full) #hall-body > .hall-cvbar .hall-time .hall-tstep button {
    height: 30px !important;
    min-width: 22px !important;
    padding: 0 2px !important;
}

#hall-overlay:not(.is-full) #hall-body > .hall-cvbar .hall-time .hall-tstep .hall-tval {
    min-width: 0 !important;
    padding: 0 5px !important;
    font-size: 11.5px !important;
    white-space: nowrap !important;
}

#hall-overlay:not(.is-full) #hall-body > .hall-cvbar .hall-cvbar-r {
    display: inline-flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 4px !important;
    flex: 0 0 auto !important;
    margin-left: auto !important;
}

#hall-overlay:not(.is-full) #hall-body > .hall-cvbar .hall-view-zoom {
    display: inline-flex !important;
    align-items: center !important;
    height: 32px !important;
    border-radius: 10px !important;
    flex: 0 0 auto !important;
}

#hall-overlay:not(.is-full) #hall-body > .hall-cvbar .hall-view-zoom button {
    height: 30px !important;
    min-width: 22px !important;
    padding: 0 3px !important;
    font-size: 12px !important;
}

#hall-overlay:not(.is-full) #hall-body > .hall-cvbar .hall-view-zoom .hall-ed-zv {
    min-width: 34px !important;
    padding: 0 3px !important;
    font-size: 10.5px !important;
}

#hall-overlay:not(.is-full) #hall-body > .hall-cvbar .hall-cv-tools {
    display: inline-flex !important;
    align-items: center !important;
    gap: 3px !important;
    flex: 0 0 auto !important;
}

#hall-overlay:not(.is-full) #hall-body > .hall-cvbar .hall-cv-tools button {
    width: 30px !important;
    height: 32px !important;
    border-radius: 10px !important;
}

#hall-overlay:not(.is-full) #hall-body > .hall-cvbar .hall-cv-tools button svg {
    width: 16px !important;
    height: 16px !important;
}

/* Компактная подгонка под экраны телефонов (360–420px), чтобы вся строка помещалась ровно без прокрутки */
@media (max-width: 420px) {
    #hall-overlay:not(.is-full) #hall-body {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
    #hall-overlay:not(.is-full) #hall-body > .hall-cvbar {
        gap: 3px !important;
    }
    #hall-overlay:not(.is-full) #hall-body > .hall-cvbar .hall-time {
        gap: 3px !important;
    }
    #hall-overlay:not(.is-full) #hall-body > .hall-cvbar .hall-time .hall-chip {
        padding: 0 6px !important;
        font-size: 11px !important;
    }
    #hall-overlay:not(.is-full) #hall-body > .hall-cvbar .hall-time .hall-tstep button {
        min-width: 19px !important;
        padding: 0 1px !important;
    }
    #hall-overlay:not(.is-full) #hall-body > .hall-cvbar .hall-time .hall-tstep button svg {
        width: 14px !important;
        height: 14px !important;
    }
    #hall-overlay:not(.is-full) #hall-body > .hall-cvbar .hall-time .hall-tstep .hall-tval {
        padding: 0 3px !important;
        font-size: 11px !important;
    }
    #hall-overlay:not(.is-full) #hall-body > .hall-cvbar .hall-cvbar-r {
        gap: 3px !important;
    }
    #hall-overlay:not(.is-full) #hall-body > .hall-cvbar .hall-view-zoom button {
        min-width: 20px !important;
        padding: 0 2px !important;
    }
    #hall-overlay:not(.is-full) #hall-body > .hall-cvbar .hall-view-zoom .hall-ed-zv {
        min-width: 30px !important;
        font-size: 10.5px !important;
        padding: 0 2px !important;
    }
    #hall-overlay:not(.is-full) #hall-body > .hall-cvbar .hall-cv-tools {
        gap: 2px !important;
    }
    #hall-overlay:not(.is-full) #hall-body > .hall-cvbar .hall-cv-tools button {
        width: 27px !important;
        height: 32px !important;
    }
    #hall-overlay:not(.is-full) #hall-body > .hall-cvbar .hall-cv-tools button svg {
        width: 15px !important;
        height: 15px !important;
    }
}

/* Телефон лёжа (неполноэкранный режим): единая строка в правой колонке может компактно переноситься при нехватке ширины */
@media (orientation: landscape) and (max-height: 620px) {
    .hall-overlay.open[data-htab="plan"]:not(.is-edit):not(.is-full) #hall-body > .hall-cvbar {
        grid-column: 2;
        grid-row: 2;
        flex-wrap: wrap !important;
        gap: 4px !important;
    }
}

/* ========== 17.2: Зал — автоскрывающиеся кнопки в полноэкранном режиме (в т.ч. при повороте), как в «глазке» ========== */
.hall-overlay.is-full:not(.is-clean) .hall-cvbox .hall-cvbar.hall-full-hud {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    left: auto !important;
    bottom: auto !important;
    z-index: 6 !important;
    display: inline-flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 6px !important;
    width: auto !important;
    margin: 0 !important;
    padding: 6px !important;
    border-radius: 999px !important;
    background: rgba(20, 22, 28, .74) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateY(-6px);
    transition: opacity .22s ease, transform .22s ease !important;
}

.hall-overlay.is-full:not(.is-clean) .hall-cvbox .hall-cvbar.hall-full-hud.hud-on {
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: none !important;
}

.hall-overlay.is-full:not(.is-clean) .hall-cvbar.hall-full-hud .hall-view-zoom {
    position: static !important;
    background: rgba(255, 255, 255, .14) !important;
    border: 1px solid rgba(255, 255, 255, .16) !important;
    border-radius: 999px !important;
    height: 36px !important;
    overflow: hidden;
}

.hall-overlay.is-full:not(.is-clean) .hall-cvbar.hall-full-hud .hall-view-zoom button {
    background: transparent !important;
    border: 0 !important;
    color: #fff !important;
    height: 36px !important;
    min-width: 30px !important;
    font-weight: 800;
}

.hall-overlay.is-full:not(.is-clean) .hall-cvbar.hall-full-hud .hall-view-zoom .hall-ed-zv {
    min-width: 42px !important;
    font-size: 12px !important;
}

.hall-overlay.is-full:not(.is-clean) .hall-cvbar.hall-full-hud .hall-cv-tools {
    position: static !important;
    display: inline-flex !important;
    gap: 5px !important;
}

.hall-overlay.is-full:not(.is-clean) .hall-cvbar.hall-full-hud .hall-cv-tools button {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    border: 0 !important;
    background: rgba(255, 255, 255, .16) !important;
    color: #fff !important;
    box-shadow: none !important;
}

.hall-overlay.is-full:not(.is-clean) .hall-cvbar.hall-full-hud .hall-cv-tools button:active,
.hall-overlay.is-full:not(.is-clean) .hall-cvbar.hall-full-hud .hall-view-zoom button:active {
    background: rgba(255, 255, 255, .28) !important;
}

/* ========== 1.11.37: Кнопки масштаба в Графиках/Табеле и история/правка в Контактах ========== */
#schedule-overlay .sch-bar .sch-zoom,
#timesheet-overlay .ts-dock .sch-bar .sch-zoom {
    display: inline-flex;
    align-items: center;
    height: 36px;
    border: 1.5px solid var(--border);
    border-radius: 11px;
    background: var(--card);
    overflow: hidden;
    flex: 0 0 auto;
    margin-left: auto;
}

#schedule-overlay .sch-bar .sch-zoom.is-disabled,
#timesheet-overlay .ts-dock .sch-bar .sch-zoom.is-disabled {
    opacity: .45;
}

#schedule-overlay .sch-bar .sch-zoom button,
#timesheet-overlay .ts-dock .sch-bar .sch-zoom button {
    height: 34px;
    min-width: 30px;
    padding: 0 7px;
    border: 0;
    background: transparent;
    color: var(--text);
    font: inherit;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
}

#schedule-overlay .sch-bar .sch-zoom button + button,
#timesheet-overlay .ts-dock .sch-bar .sch-zoom button + button {
    border-left: 1px solid var(--border);
}

#schedule-overlay .sch-bar .sch-zoom .sch-zv,
#timesheet-overlay .ts-dock .sch-bar .sch-zoom .sch-zv {
    min-width: 46px;
    padding: 0 6px;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}

#schedule-overlay .sch-bar .sch-zoom button:disabled,
#timesheet-overlay .ts-dock .sch-bar .sch-zoom button:disabled {
    opacity: .35;
    cursor: default;
}

#schedule-overlay .sch-bar .sch-zoom button:not(:disabled):active,
#timesheet-overlay .ts-dock .sch-bar .sch-zoom button:not(:disabled):active {
    background: rgba(var(--primary-rgb), .12);
}

#schedule-overlay .sch-bar .sch-zoom + .p2-acts,
#timesheet-overlay .ts-dock .sch-bar .sch-zoom + .p2-acts {
    margin-left: 0;
}

#schedule-overlay .sch-bar .sch-month,
#timesheet-overlay .ts-dock .sch-bar .sch-month {
    min-width: 0;
}

@media (max-width: 559px) {
    #schedule-overlay .sch-bar,
    #timesheet-overlay .ts-dock .sch-bar {
        flex-wrap: wrap;
        row-gap: 6px;
    }
    #schedule-overlay .sch-bar .sch-nav[data-sch="prev"],
    #timesheet-overlay .ts-dock .sch-bar .sch-nav[data-ts="prev"] {
        order: 1;
    }
    #schedule-overlay .sch-bar .sch-month,
    #timesheet-overlay .ts-dock .sch-bar .sch-month {
        order: 2;
        flex: 1 1 calc(100% - 135px);
    }
    #schedule-overlay .sch-bar .sch-nav[data-sch="next"],
    #timesheet-overlay .ts-dock .sch-bar .sch-nav[data-ts="next"] {
        order: 3;
    }
    #schedule-overlay .sch-bar .p2-acts,
    #timesheet-overlay .ts-dock .sch-bar .p2-acts {
        order: 4;
        margin-left: 0;
    }
    #schedule-overlay .sch-bar .sch-today,
    #timesheet-overlay .ts-dock .sch-bar .sch-today {
        order: 5;
    }
    #timesheet-overlay .ts-dock .sch-bar [data-ts="photo"] {
        order: 6;
    }
    #schedule-overlay .sch-bar .sch-zoom,
    #timesheet-overlay .ts-dock .sch-bar .sch-zoom {
        order: 7;
        margin-left: auto;
        height: 34px;
    }
    #schedule-overlay .sch-bar .sch-zoom button,
    #timesheet-overlay .ts-dock .sch-bar .sch-zoom button {
        height: 32px;
        min-width: 28px;
    }
}

#contacts-overlay .overlay-header.contacts-head {
    padding-left: 96px !important;
    padding-right: 96px !important;
}

#contacts-overlay .contacts-head-tools {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

#contacts-overlay .contacts-hist-btn {
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: transparent;
    color: var(--text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    touch-action: manipulation;
}

#contacts-overlay .contacts-hist-btn:disabled {
    opacity: .32;
    cursor: default;
}

#contacts-overlay .contacts-hist-btn:not(:disabled):active {
    background: rgba(var(--primary-rgb), .12);
}

#contacts-overlay .overlay-actions [hidden] {
    display: none !important;
}

#contacts-overlay .contacts-item.is-editing {
    border-color: var(--primary) !important;
    background: rgba(var(--primary-rgb), .08) !important;
    box-shadow: 0 0 0 1px rgba(var(--primary-rgb), .24);
}

#contacts-overlay .contacts-item-name {
    overflow-wrap: anywhere;
}

#contacts-overlay .contacts-item-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

#contacts-overlay .contacts-item-edit {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 30px;
    padding: 0 9px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: transparent;
    color: var(--text);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    touch-action: manipulation;
    white-space: nowrap;
}

#contacts-overlay .contacts-item-edit.is-active {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(var(--primary-rgb), .1);
}

#contacts-overlay .contacts-item-edit:active {
    background: rgba(var(--primary-rgb), .14);
}
