/* TruckMate для фірм: стартова сторінка (/company/) і кабінет (/company/app/).
   Кольори й шрифти - ті самі, що в застосунку водія (frontend/css/style.css).
   Макет погоджено в дизайн-артефакті "Кабінет фірми" (step124). */

@font-face {
  font-family: "Onest";
  src: url("/assets/fonts/onest-cyrillic.woff2") format("woff2");
  font-weight: 100 900; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Onest";
  src: url("/assets/fonts/onest-latin.woff2") format("woff2");
  font-weight: 100 900; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/jetbrains-mono-cyrillic.woff2") format("woff2");
  font-weight: 100 800; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/jetbrains-mono-latin.woff2") format("woff2");
  font-weight: 100 800; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #eef0ec; --surface: #fff; --text: #1c2321; --text-2: #3b4340; --muted: #5c645f;
  --line: #e6e8e2; --line-soft: #eef0ec; --border: #d4d8cf;
  --accent: #e07a1f; --accent-ink: #1c1200; --accent-soft: #fbe7d3; --accent-text: #8a4510;
  --panel: #1c2321; --panel-2: #2a322f; --panel-line: #333b38; --panel-text: #f4f3ef; --panel-label: #a9b0ab; --panel-accent: #f0923a;
  --ok: #235c3a; --ok-bg: #e3efe6; --info: #234a7a; --info-bg: #e4ebf5; --bad: #8f2d1d; --bad-bg: #f7e6e2; --idle-bg: #e1e4dd;
  --font-ui: "Onest", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Consolas, monospace;
  --shadow: 0 1px 2px rgba(28, 35, 33, .06), 0 6px 16px rgba(28, 35, 33, .05);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; padding: 0; }
body { background: var(--bg); color: var(--text); font-family: var(--font-ui); -webkit-font-smoothing: antialiased; line-height: 1.4; }
a { color: var(--accent-text); }
a:hover { color: #5e2f0a; }
:focus-visible { outline: 3px solid var(--panel-accent); outline-offset: 2px; }
.mono { font-family: var(--font-mono); }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- кнопки, чіпи, картки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: none; border-radius: 10px;
  padding: 10px 16px; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; text-decoration: none;
  min-height: 44px; line-height: 1.2; }
.btn:disabled { opacity: .55; cursor: default; }
.btn-acc { background: var(--accent); color: var(--accent-ink); }
.btn-acc:hover { background: #cc6c14; color: var(--accent-ink); }
.btn-sec { background: var(--idle-bg); color: var(--text); }
.btn-sec:hover { background: #d4d8cf; color: var(--text); }
.btn-out { background: #fff; color: var(--text); border: 1px solid var(--border); }
.btn-out:hover { border-color: #a9b0ab; color: var(--text); }
.btn-bad { background: #fff; color: #b23a26; border: 1px solid #e3b6ad; }
.btn-bad:hover { background: var(--bad-bg); color: #b23a26; }
.btn-sm { min-height: 36px; padding: 6px 12px; }
.btn-lg { font-size: 16px; min-height: 52px; padding: 12px 22px; }

.chip { display: inline-block; font-size: 12.5px; font-weight: 600; border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.c-ok { background: var(--ok-bg); color: var(--ok); }
.c-acc { background: var(--accent-soft); color: var(--accent-text); }
.c-info { background: var(--info-bg); color: var(--info); }
.c-idle { background: var(--idle-bg); color: var(--text-2); }
.c-bad { background: var(--bad-bg); color: var(--bad); }

.card { background: var(--surface); border-radius: 14px; box-shadow: var(--shadow); }
.card-pad { padding: 16px 18px; }
.h2 { font-size: 16px; font-weight: 700; margin: 0; }
.card-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 16px 18px 6px; }
.card-head .right { margin-left: auto; }

.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-weight: 600; color: var(--muted); font-size: 12.5px; padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 12px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: none; }
.tbl tr.total td { font-weight: 700; border-top: 1px solid var(--line); }
.tbl .num, .tbl th.num { font-family: var(--font-mono); text-align: right; white-space: nowrap; }
.tbl th.num { font-family: var(--font-ui); }
.tbl a.rowlink { font-weight: 600; color: var(--text); text-decoration: none; }
.tbl a.rowlink:hover { text-decoration: underline; }
.scroll { overflow-x: auto; }
.empty { padding: 18px; color: var(--muted); font-size: 14px; }

.panel { background: var(--panel); color: var(--panel-text); border-radius: 14px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.panel > div { padding: 16px 18px; border-right: 1px solid var(--panel-line); min-width: 0; }
.panel > div:last-child { border-right: none; }
.pl { font-size: 12.5px; color: var(--panel-label); }
.pv { font-family: var(--font-mono); font-size: 28px; font-weight: 700; margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pu { font-size: 13px; color: var(--panel-accent); margin-left: 4px; font-weight: 700; }

.kv { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.kv > div { display: flex; justify-content: space-between; gap: 12px; }
.kv > div > span:last-child { font-family: var(--font-mono); text-align: right; }
.kv > div.sum { border-top: 1px solid var(--line); padding-top: 8px; font-weight: 700; }

/* ---------- поля ---------- */
.f { display: flex; flex-direction: column; gap: 6px; }
.f label { font-size: 14px; font-weight: 600; }
.f input, .f select { font: inherit; font-size: 15px; padding: 12px 14px; border-radius: 10px; border: 1.5px solid var(--border); background: #fff; color: var(--text); min-width: 0; }
.f input:focus, .f select:focus { border-color: var(--accent); outline: none; }
.f .hint { font-size: 12.5px; color: var(--muted); }
.opt { color: var(--muted); font-weight: 500; }
.note { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; background: var(--info-bg); color: var(--info); font-size: 13.5px; line-height: 1.45; }
.error-box { padding: 12px 14px; border-radius: 10px; background: var(--bad-bg); color: var(--bad); font-size: 14px; }

/* ---------- верхня смуга (стартова, вхід) ---------- */
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 28px; }
.topbar { background: var(--panel); color: var(--panel-text); }
.topbar-in { display: flex; align-items: center; gap: 16px; padding-top: 16px; padding-bottom: 16px; flex-wrap: wrap; }
.logo { font-size: 22px; font-weight: 800; letter-spacing: -.3px; color: var(--panel-text); text-decoration: none; }
.logo:hover { color: var(--panel-text); }
.logo b { color: var(--panel-accent); font-weight: 800; }
.logo small { font-size: 13px; font-weight: 600; color: var(--panel-label); margin-left: 10px; }
.topnav { display: flex; gap: 22px; margin-left: 24px; font-size: 14.5px; }
.topnav a { color: #cfd4cf; text-decoration: none; }
.topnav a:hover { color: #fff; }
.top-actions { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; }
.btn-ghost { background: transparent; color: var(--panel-text); border: 1px solid #4a534f; }
.btn-ghost:hover { border-color: #a9b0ab; color: #fff; }

/* ---------- стартова сторінка ---------- */
.hero { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-top: 56px; padding-bottom: 72px; }
.hero h1 { font-size: 46px; line-height: 1.1; font-weight: 800; letter-spacing: -1px; margin: 18px 0 0; }
.hero p.lead-dark { font-size: 18px; line-height: 1.55; color: #cfd4cf; margin: 18px 0 0; max-width: 560px; }
.sec { padding: 72px 0; }
.sec-white { background: #fff; }
.sec-dark { background: var(--panel); color: var(--panel-text); }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--accent-text); }
.h { font-size: 34px; font-weight: 800; letter-spacing: -.5px; margin: 8px 0 0; line-height: 1.15; }
.lead { font-size: 17px; line-height: 1.55; color: var(--text-2); margin: 12px 0 0; max-width: 720px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 28px; }
.feat { padding: 20px; display: flex; flex-direction: column; gap: 8px; background: var(--bg); box-shadow: none; }
.feat h3, .step h3 { margin: 0; font-size: 17px; font-weight: 700; }
.feat p, .step p, .qa p { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--text-2); }
.icn { width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-text); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.step { display: flex; flex-direction: column; gap: 10px; padding: 22px; }
.stepn { font-family: var(--font-mono); font-size: 30px; font-weight: 700; color: var(--accent); }
.qa { padding: 18px 20px; }
.qa h3 { margin: 0 0 6px; font-size: 16px; }
.footer { padding: 24px 0 32px; }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 18px; font-size: 13.5px; color: var(--muted); }
.footer a { color: var(--muted); }

/* ---------- вхід / реєстрація ---------- */
.auth { display: flex; flex-wrap: wrap; gap: 24px; justify-content: center; align-items: flex-start; padding-top: 48px; padding-bottom: 56px; }
.auth-card { flex: 0 1 520px; min-width: 0; padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.auth-card h1 { margin: 0; font-size: 26px; font-weight: 800; }
.auth-card > p { margin: 0; font-size: 14.5px; line-height: 1.5; }
.provider-slot { min-height: 44px; display: flex; justify-content: center; }
.divider { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-card ul { margin: 0; padding-left: 18px; font-size: 14px; line-height: 1.55; color: var(--text-2); }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

/* ---------- кабінет ---------- */
.shell { min-height: 100vh; display: flex; flex-wrap: wrap; align-items: stretch; }
.side { flex: 1 1 230px; max-width: 250px; background: var(--panel); color: var(--panel-text); padding: 22px 14px; display: flex; flex-direction: column; gap: 4px; }
.side-brand { padding: 4px 12px 18px; }
.side-brand .logo { font-size: 22px; }
.side-brand div { font-size: 12.5px; color: var(--panel-label); margin-top: 2px; }
.side-company { margin: 0 4px 14px; padding: 10px 12px; border-radius: 10px; background: var(--panel-2); }
.side-company b { display: block; font-size: 14px; word-break: break-word; }
.side-company span { display: block; font-size: 12.5px; color: var(--panel-label); margin-top: 2px; }
.nav { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: #cfd4cf; text-decoration: none; font-size: 14.5px; font-weight: 500; }
.nav:hover { background: var(--panel-2); color: #fff; }
.nav.on { background: var(--panel-accent); color: var(--accent-ink); font-weight: 700; }
.nav svg { flex: none; }
.badge { margin-left: auto; background: var(--panel-accent); color: var(--accent-ink); font-size: 12px; font-weight: 700; border-radius: 999px; padding: 1px 8px; }
.nav.on .badge { background: var(--accent-ink); color: var(--panel-accent); }
.side-foot { margin-top: auto; padding: 14px 12px 0; border-top: 1px solid var(--panel-line); font-size: 13px; color: var(--panel-label); display: flex; flex-direction: column; gap: 8px; }
.side-foot b { color: var(--panel-text); font-weight: 600; }
.linkbtn { background: none; border: none; padding: 0; font: inherit; color: #cfd4cf; text-decoration: underline; cursor: pointer; align-self: flex-start; }
.linkbtn:hover { color: #fff; }
.main { flex: 999 1 560px; min-width: 0; padding: 28px 32px 48px; display: flex; flex-direction: column; gap: 20px; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.page-head > div:first-child { flex: 1 1 320px; min-width: 0; }
.page-head h1 { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -.3px; word-break: break-word; }
.page-head p { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.page-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.back { font-size: 14px; font-weight: 600; text-decoration: none; align-self: flex-start; }
.cards3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.cards2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.todo { padding: 16px 18px; text-decoration: none; color: var(--text); display: flex; flex-direction: column; gap: 6px; }
.todo:hover { color: var(--text); box-shadow: 0 0 0 2px var(--panel-accent), var(--shadow); }
.loading { padding: 40px; color: var(--muted); }
.code-big { font-family: var(--font-mono); font-size: 30px; font-weight: 700; letter-spacing: 2px; padding: 14px 16px; border-radius: 12px; background: var(--bg); text-align: center; user-select: all; }
.req { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line-soft); }
.req:first-of-type { border-top: none; }
.req-who { flex: 1 1 220px; min-width: 0; }
.req-who .muted { font-size: 13px; margin-top: 2px; }
.month-nav { display: flex; align-items: center; gap: 6px; }
.month-nav span { min-width: 140px; text-align: center; font-weight: 700; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--panel); color: var(--panel-text); padding: 12px 18px; border-radius: 12px; font-size: 14px; box-shadow: 0 6px 24px rgba(0, 0, 0, .25); z-index: 50; max-width: calc(100% - 32px); }
.toast.bad { background: #b23a26; color: #fff; }
.modal-bg { position: fixed; inset: 0; background: rgba(28, 35, 33, .45); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 40; }
.modal { max-width: 440px; width: 100%; padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.modal h2 { margin: 0; font-size: 19px; }
.modal p { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--text-2); }
.modal .acts { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; margin-top: 4px; }

/* ---------- прийняття рейсу (step132) ---------- */
.review-box { display: flex; flex-direction: column; gap: 12px; border-left: 4px solid #4a78b5; }
.review-box--ok { border-left-color: var(--ok); }
.review-box--bad { border-left-color: #b23a26; }
.review-box--fix { border-left-color: var(--accent); }
.review-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; align-items: start; }
.review-result { align-self: center; font-size: 15px; font-weight: 700; line-height: 1.6; }
.fuel-good { color: var(--ok); font-weight: 700; }
.fuel-bad { color: #b23a26; font-weight: 700; }

/* ---------- чат техпідтримки (step128) ---------- */
.chat-card { display: flex; flex-direction: column; overflow: hidden; }
.chat-box { height: min(58vh, 560px); overflow-y: auto; padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; background: #f7f8f5; }
.chat-empty { margin: auto; max-width: 420px; text-align: center; display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.chat-empty b { color: var(--text); font-size: 15px; }
.chat-day { align-self: center; font-size: 12.5px; color: var(--muted); background: var(--idle-bg); padding: 2px 10px; border-radius: 999px; margin: 6px 0; }
.msg { display: flex; }
.msg--mine { justify-content: flex-end; }
.bubble { max-width: min(560px, 85%); background: #fff; border: 1px solid var(--line); border-radius: 14px 14px 14px 4px; padding: 8px 12px; display: flex; flex-direction: column; gap: 6px; }
.msg--mine .bubble { background: var(--accent-soft); border-color: #f2cfaa; border-radius: 14px 14px 4px 14px; }
.bubble-text { white-space: pre-wrap; word-break: break-word; font-size: 14.5px; line-height: 1.45; }
.bubble-meta { font-size: 12px; color: var(--muted); align-self: flex-end; }
.bubble-photo img { display: block; max-width: 100%; max-height: 320px; border-radius: 8px; }
.chat-form { border-top: 1px solid var(--line); padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.chat-form-row { display: flex; gap: 8px; align-items: flex-end; }
.chat-form-row textarea { flex: 1; min-width: 0; font: inherit; font-size: 15px; padding: 10px 12px; border-radius: 10px; border: 1.5px solid var(--border); resize: vertical; min-height: 44px; }
.chat-form-row textarea:focus { border-color: var(--accent); outline: none; }
.chat-attach { padding: 10px 12px; cursor: pointer; }
.chat-hint { margin: 0; font-size: 12.5px; }
.chat-pending { position: relative; align-self: flex-start; }
.chat-pending img { display: block; max-height: 120px; border-radius: 8px; border: 1px solid var(--line); }
.pending-remove { position: absolute; top: -8px; right: -8px; width: 28px; height: 28px; border-radius: 50%; border: none; background: var(--panel); color: #fff; font-size: 18px; line-height: 1; cursor: pointer; }

@media (max-width: 900px) {
  .cards3 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .grid3, .grid2, .cards2, .row2 { grid-template-columns: minmax(0, 1fr); }
  .h { font-size: 26px; }
  .hero h1 { font-size: 32px; }
  .sec { padding: 44px 0; }
  .wrap { padding: 0 16px; }
  .topnav { display: none; }
  .shell { align-content: flex-start; }
  .side { max-width: none; flex-basis: 100%; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 12px; }
  .side-brand { padding: 4px 8px; flex: 1 1 auto; }
  .side-company { display: none; }
  .side-foot { flex-basis: 100%; flex-direction: row; flex-wrap: wrap; align-items: center; margin-top: 4px; padding: 10px 8px 0; }
  .nav { padding: 8px 10px; font-size: 14px; }
  .panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .panel > div:nth-child(2) { border-right: none; }
  .panel > div:nth-child(-n+2) { border-bottom: 1px solid var(--panel-line); }
  .pv { font-size: 22px; }
  .tbl td { white-space: nowrap; }   /* у вузькому екрані таблиця гортається вбік, а не ламає назви по словах */
  .main { padding: 20px 14px 40px; }
  .auth { padding-top: 24px; }
  .auth-card { padding: 20px; }
  .chat-box { height: 60vh; padding: 12px; }
  #chat-send span { display: none; }
}

/* ---------- Автопарк (step134) ---------- */
.modal-wide { max-width: 600px; max-height: calc(100vh - 32px); overflow-y: auto; }
.h3 { margin: 4px 0 0; font-size: 15px; font-weight: 700; }
.fgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; align-items: start; }
.fgrid[hidden] { display: none; }
.chk { display: inline-flex; gap: 10px; align-items: center; font-size: 14.5px; font-weight: 600; cursor: pointer; min-height: 32px; }
.chk input { width: 18px; height: 18px; accent-color: var(--accent); flex: none; margin: 0; }
.seg { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.assign-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding-top: 6px; border-top: 1px solid var(--line-soft); }
.assign-row select { font: inherit; font-size: 15px; padding: 8px 12px; border-radius: 10px; border: 1.5px solid var(--border); background: #fff; color: var(--text); flex: 1 1 180px; min-width: 0; }
.note-add { display: flex; gap: 8px; align-items: center; }
.note-add input { flex: 1; min-width: 0; font: inherit; font-size: 15px; padding: 10px 12px; border-radius: 10px; border: 1.5px solid var(--border); }
.note-add input:focus, .assign-row select:focus { border-color: var(--accent); outline: none; }
.notes { list-style: none; margin: 0; padding: 0 18px 14px; display: flex; flex-direction: column; }
.notes li { display: flex; gap: 12px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line-soft); }
.notes li:first-child { border-top: none; }
.notes li .chk { flex: 1; min-width: 0; font-weight: 500; }
.notes li.done .chk span { text-decoration: line-through; color: var(--muted); }
.lnk { background: none; border: none; padding: 6px 4px; font: inherit; font-size: 13.5px; color: var(--text-2); text-decoration: underline; cursor: pointer; min-height: 32px; }
.lnk:hover { color: var(--bad); }
.rem-list { padding: 0 18px 8px; }

/* ---------- Права водіїв і тариф (step139) ---------- */
.mode-list { display: flex; flex-direction: column; gap: 8px; }
.mode-opt { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 12px; cursor: pointer; }
.mode-opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft, #fff4e8); }
.mode-opt input { margin: 3px 0 0; width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.mode-opt > span { display: flex; flex-direction: column; gap: 2px; font-size: 14.5px; }
.mode-opt .muted { font-size: 13px; }
.mode-custom { display: flex; flex-direction: column; gap: 4px; padding: 4px 0 0 4px; }
.mode-custom[hidden] { display: none; }
.rights-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.rights-list .no { color: var(--muted); }
.tariff-rows { display: flex; flex-direction: column; gap: 6px; }
.tariff-row { display: flex; align-items: center; gap: 12px; justify-content: space-between; flex-wrap: wrap; padding: 4px 0; border-bottom: 1px solid var(--line-soft); }
.tariff-row .chk { flex: 1 1 180px; }
.tariff-val { display: inline-flex; align-items: center; gap: 8px; }
.tariff-val input { width: 110px; font: inherit; font-size: 15px; padding: 8px 10px; border-radius: 10px; border: 1.5px solid var(--border); text-align: right; }
.tariff-val input:disabled { background: var(--line-soft); color: var(--muted); }
