/* Лимиты времени на приложения: шкала расхода (таблицы и карточка машины), строки блока в карточке машины,
   колонка «Сколько можно» в таблице «Политики → Приложения». Цвета — токены v2, тёмная тема приходит с ними. */

.tl-meter { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tl-meter .v2-progress__track { display: block; height: 6px; }
.tl-meter__bar { display: block; height: 6px; }
.tl-meter__lbl { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; line-height: 15px; color: var(--v2-ink-2); white-space: nowrap; }
.tl-meter__lbl b { color: var(--v2-ink); font-weight: 600; }
.tl-meter__lbl > span:last-child { overflow: hidden; text-overflow: ellipsis; }

.tl-crow { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; background: var(--v2-fill); border-radius: 14px; }
.tl-crow + .tl-crow { margin-top: 6px; }
.tl-crow__top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.tl-crow__name { flex-grow: 1; min-width: 0; font-size: 14px; line-height: 17px; font-weight: 500; color: var(--v2-ink);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-keep { flex-shrink: 0; }
.tl-crow__add { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; }

.tl-qty { display: flex; flex-direction: column; gap: 2px; white-space: normal; }
.tl-row { height: auto; padding-top: 12px; padding-bottom: 12px; }
.tl-empty { padding: 18px 16px; }

.tl-apps { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-width: 0; }
.tl-x { border: none; background: none; padding: 0 0 0 4px; cursor: pointer; color: inherit; font-size: 14px; line-height: 1; }
.tl-app-input { width: 220px; }
.tl-sum--bad { background: var(--v2-danger-soft) !important; color: var(--v2-danger-ink) !important; }

/* Название лимита — кнопка, открывающая его форму; выглядит текстом. */
.tl-open { all: unset; cursor: pointer; color: inherit; }
.tl-open:hover { color: var(--v2-accent); text-decoration: underline; }
.tl-open:focus-visible { outline: 2px solid var(--v2-accent); outline-offset: 2px; }
button.tl-crow__name { text-align: left; }
/* Продление и его отмена. */
.tl-bonus { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; }
.tl-bonus__x { all: unset; cursor: pointer; padding: 0 2px; font-size: 11px; line-height: 1; opacity: .7; }
.tl-bonus__x:hover, .tl-bonus__x:focus-visible { opacity: 1; }
.tl-crow__cancel { margin-top: 2px; }
/* Вся строка лимита открывает его форму. */
.tl-rowlink { cursor: pointer; }
.tl-rowlink:hover { background: var(--v2-accent-soft, rgba(15, 125, 116, .06)); }
.tl-rowlink button, .tl-rowlink summary { cursor: pointer; }
