/* Arinen TMS — оформление (как в макете: тёмное меню, синий акцент). Без inline-стилей: их запрещает CSP. */
:root {
  --ink: #1B2430; --ink2: #3C4655; --muted: #5A6472; --line: #DDE1E7; --line2: #EDF0F3;
  --bg: #F4F5F7; --card: #FFFFFF; --accent: #1F5FAF; --accent-dark: #163F75; --nav: #1B2430; --nav-on: #2E3A4B;
  --ok-bg: #E9F4EC; --ok: #2B5E3A; --err-bg: #FDEBD8; --err: #8A3C06;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent); } a:hover { color: var(--accent-dark); }
h1 { font-size: 28px; margin: 0 0 16px; } h2 { font-size: 18px; margin: 0 0 12px; }
.muted { color: var(--muted); } .small { font-size: 13px; } .nowrap { white-space: nowrap; }

nav.top { background: var(--nav); color: #fff; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 6px 20px; min-height: 56px; }
nav.top a, nav.top .nav-soon { color: #C9D3E0; text-decoration: none; padding: 10px 12px; border-radius: 6px; }
nav.top a.on, nav.top a:hover { background: var(--nav-on); color: #fff; }
nav.top .brand { color: #fff; font-weight: 700; margin-right: 16px; }
nav.top .nav-soon { opacity: .55; cursor: default; }
nav.top .me { margin-left: auto; display: flex; align-items: center; gap: 10px; }
nav.top .who { display: flex; flex-direction: column; line-height: 1.2; text-align: right; font-size: 14px; }
nav.top .who small { color: #9AA6B6; }
nav.top form { margin: 0; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 28px 20px 40px; }
.foot { text-align: center; color: var(--muted); font-size: 12px; padding: 0 0 24px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 20px; margin-bottom: 16px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.grid .card { margin: 0; }
.card.soon { border-style: dashed; background: #FAFBFC; }
a.card.link { text-decoration: none; color: inherit; } a.card.link:hover { border-color: var(--accent); }

.btn { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px; border-radius: 8px; border: 1px solid #C9D3E0;
  background: #fff; color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
.btn:hover { border-color: var(--accent); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-big { min-height: 48px; padding: 12px 22px; font-size: 16px; }
.btn-ghost { background: transparent; border: 1px solid #4A5668; color: #fff; border-radius: 6px; padding: 7px 12px; font: inherit; cursor: pointer; }
.btn-ghost:hover { background: var(--nav-on); }

input[type=text], input[type=email], input[type=search], input[type=number], select, textarea { font: inherit; padding: 8px 10px; border: 1px solid #C9D3E0; border-radius: 6px; background: #fff; min-height: 40px; max-width: 100%; }
label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; color: var(--muted); }
label.check { flex-direction: row; align-items: center; gap: 6px; font-weight: 400; color: var(--ink); }
.row-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin-bottom: 8px; }
.row-form input[type=email] { min-width: 240px; }

.flash { padding: 10px 14px; border-radius: 8px; margin: 0 0 16px; }
.flash-ok { background: var(--ok-bg); color: var(--ok); }
.flash-err { background: var(--err-bg); color: var(--err); }

.tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.tabs a { padding: 10px 14px; text-decoration: none; color: var(--ink2); border-bottom: 3px solid transparent; }
.tabs a.on { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }

.table-box { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; padding: 8px 10px; border-bottom: 1px solid var(--line); }
td { padding: 8px 10px; border-bottom: 1px solid var(--line2); vertical-align: middle; }
td input[type=text] { width: 100%; min-width: 140px; }
tr.off td { color: var(--muted); }
tr.warn td { background: #FFF8EC; }
table.matrix .c { text-align: center; }
table.matrix tr.group th { background: #F7F8FA; color: var(--ink2); text-transform: none; font-size: 13px; letter-spacing: 0; }
table.matrix input[type=checkbox] { width: 20px; height: 20px; }
.yes { color: #2B7A45; font-weight: 700; }
.pager { display: flex; gap: 16px; }

.login { max-width: 460px; margin: 60px auto; text-align: center; display: flex; flex-direction: column; gap: 12px; align-items: center; }

/* справочники */
.head-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 12px; }
.head-row h1, .head-row h2 { margin: 0; }
.head-row .btn { margin-left: auto; }
.filters { margin-bottom: 16px; }
.grow { flex: 1 1 280px; } .grow input { width: 100%; }
.chip { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; background: #EEF1F5; color: var(--ink2); margin: 0 4px 2px 0; }
.chip-client { background: #E3ECF8; color: var(--accent-dark); }
.chip-carrier { background: #E9F4EC; color: var(--ok); }
.chip-err { background: var(--err-bg); color: var(--err); }
.bad { color: #B42318; font-weight: 700; }
.svc-row { align-items: end; } .svc-del { margin: 0 0 4px; } .svc-foot { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
input.invalid { border-color: #B42318; background: #FEF3F2; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 16px; margin-bottom: 16px; }
.cols .card { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.cols .card h2 { margin-bottom: 2px; }
.g2, .g3 { display: grid; gap: 10px; } .g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols label input, .cols label select, .cols label textarea { width: 100%; }
.cols label.check input, .roles input { width: auto; flex: none; }
.cols label.check { font-size: 14px; }
textarea { resize: vertical; }
fieldset.plain { border: 0; margin: 0; padding: 0; min-width: 0; }
.roles { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; }
.roles .lbl { font-size: 13px; font-weight: 600; color: var(--muted); }
.save-bar { position: sticky; bottom: 0; z-index: 20; display: flex; gap: 12px; flex-wrap: wrap; margin: 16px 0 0; padding: 10px 190px 10px 12px; border-radius: 8px 8px 0 0;
  background: var(--bg); border-top: 1px solid var(--line); box-shadow: 0 -4px 12px rgba(0, 0, 0, .06); }
@media print { .save-bar { display: none; } }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 16px 0; }
.btn-small { min-height: 32px; padding: 4px 10px; font-size: 13px; }
.btn-danger { color: #B42318; } .btn-danger:hover { border-color: #B42318; }
.lookup-out { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.lookup-item { width: 100%; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; font: inherit; cursor: pointer; }
.lookup-item:hover { border-color: var(--accent); background: #F5F9FE; }
.lookup-item.closed { opacity: .6; }
.lookup label input { width: 100%; }
.cond-row { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; }
.cond-row { flex-wrap: wrap; }
.cond-row input[type=text] { flex: 1 1 120px; min-width: 0; }
.cond-row.off input[type=text] { color: var(--muted); text-decoration: line-through; }
tr.new-row td { background: #FAFBFC; }
.light { display: inline-block; width: 12px; height: 12px; border-radius: 50%; vertical-align: middle; margin-right: 4px; background: #D5DAE1; }
.light-red { background: #D92D20; } .light-yellow { background: #F2B01E; } .light-green { background: #2E9E57; }
.light-grey { background: #8A94A6; box-shadow: inset 0 0 0 2px #fff, 0 0 0 1px #8A94A6; }
.why { font-size: 13px; margin: 2px 0 0; } .why-red { color: #B42318; } .why-yellow { color: #8A5A00; } .why-grey { color: #4A5465; font-weight: 600; }
.check-red { border-color: #F3B4AE; background: #FFF8F7; } .check-yellow { border-color: #F5D58A; background: #FFFCF2; }
.check-grey { border-color: #B8C0CC; background: #F3F4F6; }
.light-alert .small { margin-top: 2px; font-weight: normal; }
.check-box h2 { display: flex; align-items: center; gap: 6px; }
.info-links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 8px 0; }
.info-link { margin-left: 4px; text-decoration: none; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
table.quarters { max-width: 560px; }
/* заказы */
.hidden { display: none !important; }
.head-actions { margin-left: auto; display: flex; gap: 8px; }
.flash-warn { background: #FFF4C2; color: #6B5200; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 16px; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; }
.tile span { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.tile b { font-size: 24px; } .tile.on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.st-new { background: #EEF1F5; color: var(--ink2); } .st-search { background: #FDEBD8; color: #8A3C06; } .st-work { background: #E3ECF8; color: #163F75; }
.st-docs { background: #FFF4C2; color: #6B5200; } .st-inv { background: #EDE7F6; color: #4A2C82; } .st-done { background: #E9F4EC; color: #2B5E3A; }
.st-cancel { background: #F4F5F7; color: #8A94A3; text-decoration: line-through; }
.steps { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 6px; }
.steps li { padding: 6px 12px; border-radius: 6px; font-size: 13px; background: #fff; border: 1px solid var(--line); color: var(--muted); }
.steps li.done { background: #E9F4EC; border-color: #CFE6D6; color: #2B5E3A; }
.steps li.cur { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 700; }
.stop { border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 8px; padding: 12px; margin-bottom: 12px; display: flex; flex-direction: column; gap: 10px; }
.stop-unload { border-left-color: #2E9E57; }
.stop-via { border-left-color: #C98A1B; }
.stop-files { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; } .file-btn { position: relative; overflow: hidden; cursor: pointer; }
.file-btn input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; } .stop-file .link { margin-left: 4px; }
.leg-pick label { display: inline-flex; flex-direction: column; margin-right: 8px; } .next-leg { background: #FFF8E6; border-radius: 8px; padding: 10px 12px; }
.stop-head { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.stop-head .pick input { width: 100%; }
.g4 { display: grid; gap: 10px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g4 .span2 { grid-column: span 2; }
.g4 input, .g4 select { width: 100%; }
.g4 label.check { grid-column: span 2; align-self: end; }
.g4 label.check input { width: auto; flex: none; }
.dist input { max-width: 160px; }
.cond-groups { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.cond-group { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.cond-group .lbl { font-size: 12px; font-weight: 700; color: var(--muted); min-width: 100px; text-transform: uppercase; }
.chipbox { display: inline-flex; flex-direction: row; font-weight: 400; color: var(--ink); font-size: 14px; }
.chipbox input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chipbox span { padding: 6px 11px; border-radius: 999px; border: 1px solid #C9D3E0; background: #fff; cursor: pointer; }
.chipbox input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.chipbox input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.card > label textarea { width: 100%; }
/* перевозчик и рейсы */
h3 { font-size: 15px; margin: 16px 0 8px; color: var(--ink2); }
.money-line { margin-left: auto; display: flex; flex-wrap: wrap; gap: 18px; font-size: 15px; }
.money-line .margin b { color: #2B7A45; } .money-line small { color: var(--muted); margin-left: 4px; }
.w-num { width: 100px; text-align: right; }
form.inline { display: inline; }
.trip-draft { background: #FFF4C2; color: #6B5200; } .trip-sent { background: #E9F4EC; color: #2B5E3A; } .trip-cancelled { background: #F4F5F7; color: #8A94A3; }
.mail p { margin: 0 0 4px; }
.mail-body { white-space: pre-wrap; font: 14px/1.5 system-ui, sans-serif; background: #FAFBFC; border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; margin: 8px 0 0; }
nav.top a.who { padding: 4px 8px; }
textarea.terms { width: 100%; font: 13px/1.45 ui-monospace, Menlo, monospace; }

@media (max-width: 640px) {
  .cols { grid-template-columns: 1fr; }
  .g3 { grid-template-columns: 1fr 1fr; }
  .g4 { grid-template-columns: 1fr 1fr; }
  nav.top .me { margin-left: 0; width: 100%; justify-content: space-between; }
  nav.top .who { text-align: left; }
  .wrap { padding: 20px 12px 32px; }
}

.cond-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(520px, 1fr)); gap: 16px; }
.cond-cols .card { margin: 0; }
@media (max-width: 640px) { .cond-cols { grid-template-columns: 1fr; } }

/* подсказка адресов */
label:has(> input.addr) { position: relative; }
.ac-list { position: absolute; z-index: 20; left: 0; right: 0; top: 100%; margin-top: 2px; background: #fff; border: 1px solid #C9D3E0; border-radius: 8px;
  box-shadow: 0 8px 24px rgba(27, 36, 48, .14); max-height: 360px; overflow-y: auto; }
.ac-item { display: flex; gap: 10px; align-items: flex-start; width: 100%; text-align: left; background: #fff; border: 0; border-bottom: 1px solid var(--line2);
  padding: 9px 12px; font: inherit; font-size: 14px; color: var(--ink); cursor: pointer; }
.ac-item:hover, .ac-item.on { background: #F2F6FC; }
.ac-line { display: block; color: var(--ink2); font-weight: 400; }
.ac-warn { display: block; color: #8A5A00; font-size: 12px; font-weight: 400; }
.ac-tag { flex: none; min-width: 42px; text-align: center; font-size: 11px; font-weight: 700; border-radius: 999px; padding: 2px 6px; background: #EEF1F5; color: var(--ink2); }
.ac-place { background: #E3ECF8; color: var(--accent-dark); }
.ac-empty { padding: 10px 12px; color: var(--muted); font-size: 14px; }

/* деньги и документы */
.files { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.files li { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.upload input[type=file] { font: inherit; }
tr.sub-row td { background: #FAFBFC; padding-top: 4px; }
.tile small { color: var(--muted); }
.tile.warn { border-color: #F3B4AE; background: #FFF8F7; }
.inv-head { margin-bottom: 12px; line-height: 1.6; }
#money td.nowrap { white-space: normal; }
#money td.nowrap form.inline { display: inline-block; margin: 2px 0; }

/* отчёты */
.quick { font-size: 14px; color: var(--muted); }
tr.total td { border-top: 2px solid var(--line); background: #FAFBFC; }
tr.sel td { background: #F2F6FC; }
tr.oh td { color: var(--ink2); background: #FFFCF2; }
.bar-col { width: 180px; }
progress.bar { width: 160px; height: 10px; accent-color: #2E9E57; }
progress.bar.neg { accent-color: #D92D20; }
table.arv td { padding: 6px 10px; }
.dist-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }

/* замечания */
.fb-open { position: fixed; right: 18px; bottom: 18px; z-index: 30; background: var(--accent); color: #fff; border: 0; border-radius: 999px;
  padding: 12px 18px; font: inherit; font-weight: 600; box-shadow: 0 6px 18px rgba(27, 36, 48, .25); cursor: pointer; }
.fb-open:hover { background: var(--accent-dark); }
.fb-badge { display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 4px; border-radius: 999px; background: #F2B01E; color: #1B2430; font-size: 12px; }
/* окно замечания — панель справа без затемнения: страницу видно и можно листать (замечание №3 Юли) */
.fb-dialog { position: fixed; inset: 0 0 0 auto; z-index: 40; margin: 0; width: min(420px, 100vw); height: 100vh; max-height: none;
  overflow-y: auto; border: 0; border-left: 1px solid var(--line); border-radius: 0; padding: 20px; color: var(--ink);
  background: #fff; box-shadow: -8px 0 24px rgba(27, 36, 48, .18); }
@media (min-width: 1000px) { html.fb-side body { padding-right: 420px; } }
.fb-dialog form { display: flex; flex-direction: column; gap: 10px; }
.fb-dialog textarea { width: 100%; }
.fb-sev { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.fb-sev legend { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.fb-drop { border: 2px dashed #C9D3E0; border-radius: 10px; padding: 14px; color: var(--muted); font-size: 14px; }
.fb-drop.over, .fb-drop:focus { border-color: var(--accent); outline: none; background: #F5F9FE; }
.fb-pick { display: inline; font-weight: 600; color: var(--accent); cursor: pointer; }
.fb-pick input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.fb-thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.fb-thumb { position: relative; border: 1px solid var(--line); border-radius: 6px; padding: 4px; font-size: 12px; max-width: 140px; }
.fb-thumb img { display: block; max-width: 130px; max-height: 90px; }
.fb-thumb button { position: absolute; top: -8px; right: -8px; border: 0; border-radius: 50%; width: 22px; height: 22px; background: #B42318; color: #fff; cursor: pointer; }
.fb-msg { margin: 0; min-height: 1.2em; font-size: 14px; color: var(--ok); }
.fb-text { white-space: pre-wrap; margin: 8px 0; }
.fb-shots { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.fb-shots img { max-width: 260px; max-height: 180px; border: 1px solid var(--line); border-radius: 6px; }
.fb-answer { background: #F2F6FC; border-radius: 8px; padding: 10px 12px; margin: 8px 0; white-space: pre-wrap; }
.fb-reply { border-left: 3px solid var(--line); padding: 6px 12px; margin: 8px 0; white-space: pre-wrap; }
.fb-reply.fb-mine { border-left-color: #8DB0DD; }
.fb-reply-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin: 8px 0; }
.fb-reply-form label { flex: 1 1 320px; display: flex; flex-direction: column; }
.fb-item.fb-block { border-left: 4px solid #D92D20; }
.sev-block { background: var(--err-bg); color: var(--err); } .sev-idea { background: #EDE7F6; color: #4A2C82; }
.st-fb-new { background: #FFF4C2; color: #6B5200; } .st-fb-work { background: #E3ECF8; color: #163F75; } .st-fb-done { background: #E9F4EC; color: #2B5E3A; }
@media print { .fb-open { display: none; } }
.mail-form { display: flex; flex-direction: column; gap: 10px; }
.mail-form input[type=text], .mail-form textarea { width: 100%; }
.mail-form textarea { font: 14px/1.5 system-ui, sans-serif; }

/* рекламации */
.cl-open { background: #FDEBD8; color: #8A3C06; } .cl-accepted { background: #FFF4C2; color: #6B5200; }
.cl-settled { background: #E9F4EC; color: #2B5E3A; } .cl-rejected { background: #F4F5F7; color: #8A94A3; }
.cmr-list { margin: 0; padding-left: 18px; line-height: 1.7; }
.cmr-box { background: #FAFBFC; }
details.new-claim summary { list-style: none; display: inline-flex; cursor: pointer; margin-bottom: 10px; }
details.wo summary { cursor: pointer; font-size: 13px; color: #B42318; margin-top: 4px; }
.head-row .head-actions .btn, .head-row > .btn { margin-left: 0; }

/* праздники у дат точки (tms.days) */
.day-hints { grid-column: 1 / -1; }
.day-hints:empty { display: none; }
.day-hints .why { margin: 2px 0; }
.why-info { color: #1F4E8C; } .why-grey { color: #6B7480; }
/* окно «+ новый клиент / перевозчик» в заказе (замечание №13) и светофор новой фирмы (№12) */
.with-new { display: flex; align-items: flex-end; gap: 8px; }
.with-new .grow { flex: 1 1 auto; }
.pnew-cell { display: flex; align-items: flex-end; }
.pn-dialog .check-box { margin: 0; }
.pn-dialog .g2 label { min-width: 0; }
.pn-dialog [hidden], .check-box[hidden] { display: none !important; }
/* точка заказа: адрес одной строкой, город / индекс / страна мелко под ним, одна дата (замечание №4) */
.g4 .span3 { grid-column: span 3; } .g4 .span4 { grid-column: 1 / -1; }
.stop-where { margin: -6px 0 0; display: flex; gap: 8px; align-items: baseline; }
.stop-more { padding: 8px; background: #F7F9FB; border-radius: 8px; }
.stop-more[hidden], .date-to[hidden] { display: none !important; }
.date-to-add { margin: 0; align-self: end; }
button.link { background: none; border: 0; padding: 0; font: inherit; font-size: 13px; color: var(--accent); cursor: pointer; text-decoration: underline; }
.cond-more { margin-top: 10px; }
.cond-more summary { cursor: pointer; color: var(--accent); font-weight: 600; margin-bottom: 8px; }
/* #20: контакт фирмы в заказе и рейсе */
.cp-links { margin: 2px 0 6px; } .cp-links:empty { display: none; }
.cp-add { margin: 6px 0; padding: 10px 12px; }
.contact-pick [hidden] { display: none !important; }

/* the card against the register (tms.partners.changes) */
.changes-box { border-left: 4px solid #F2B01E; }
.change-row { border-top: 1px solid #E4E8EE; padding: 8px 0; }
.change-row:first-of-type { border-top: 0; }
.change-row p { margin: 0 0 6px; }
.change-row .actions { margin: 0; }
th.sortable a { color: inherit; text-decoration: none; } th.sortable a:hover { text-decoration: underline; } th.sorted { color: var(--accent); }
.date-wrap { position: relative; display: block; } .date-wrap input.f-date { width: 100%; padding-right: 38px; }
.cal-btn { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); border: 0; background: none; cursor: pointer; font-size: 16px; padding: 4px; }
.cal-pick { position: absolute; right: 0; bottom: 0; width: 1px; height: 1px; opacity: 0; border: 0; padding: 0; pointer-events: none; }
.ecmr-more summary, .other-doc summary { cursor: pointer; color: var(--muted, #5b6573); font-size: 14px; }
.other-doc { margin: 4px 0 8px; }
.draft-bar .btn { margin-left: 4px; }
.save-place { grid-column: span 2; align-self: end; display: flex; align-items: center; gap: 8px; font-size: 14px; }
.save-place input { width: 20px; height: 20px; flex: none; margin: 0; cursor: pointer; }
.find-box { width: 100%; margin-bottom: 4px; }
td.mark, th.mark { text-align: center; white-space: nowrap; }
th.mark { font-size: 12px; white-space: normal; }
