/* SolidTGG — same visual language as RecordsMatter: white panels on a cool
   grey page, green for the action that matters, blue for links. */

:root {
  --page: #f4f5f8; --panel: #ffffff; --ink: #393a3d; --ink-2: #6b6c72; --ink-3: #8d9096;
  --line: #d4d7dc; --line-2: #eceef1; --head: #f4f5f8;
  --green: #2ca01c; --green-dark: #108000; --green-soft: #e8f5e3;
  --blue: #0077c5; --blue-soft: #e5f2fa; --red: #d52b1e; --red-soft: #fdecea;
  --amber: #b25e00; --amber-soft: #fff3e0; --grey-bar: #babec5; --wordmark: #293840;
  --hover: #f8f9fa; --input: #ffffff;
  --radius: 8px;
  --shadow: 0 1px 2px rgba(0,0,0,.06), 0 2px 6px rgba(0,0,0,.04);
  --shadow-pop: 0 6px 24px rgba(0,0,0,.14);
  --font: "Avenir Next", Avenir, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --page: #18191c; --panel: #222327; --ink: #e4e5e8; --ink-2: #a8aab0; --ink-3: #82848b;
    --line: #3a3c42; --line-2: #2d2f34; --head: #2a2b30;
    --green: #3cb52a; --green-dark: #5ccf4a; --green-soft: rgba(60,181,42,.15);
    --blue: #4aa8e8; --blue-soft: rgba(74,168,232,.14); --red: #f0675c; --red-soft: rgba(240,103,92,.14);
    --amber: #f0a04b; --amber-soft: rgba(240,160,75,.14); --grey-bar: #4a4c52; --wordmark: #e4e5e8;
    --hover: #2a2c31; --input: #1c1d20;
    --shadow: 0 1px 2px rgba(0,0,0,.4); --shadow-pop: 0 8px 28px rgba(0,0,0,.5);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 14px/1.5 var(--font); background: var(--page); color: var(--ink); -webkit-font-smoothing: antialiased; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 24px; font-weight: 700; margin: 0 0 4px; letter-spacing: -.01em; }
h2 { font-size: 17px; font-weight: 600; margin: 0; }
h3 { font-size: 14px; font-weight: 600; margin: 0 0 8px; }
p { margin: 0 0 10px; }
.muted { color: var(--ink-2); }
.small { font-size: 12px; }
.num, td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; }
.nowrap { white-space: nowrap; }
.ico { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* --- Shell -------------------------------------------------------------- */
.shell { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
.side { background: var(--panel); border-right: 1px solid var(--line); padding: 16px 12px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 14px; color: var(--wordmark); }
.brand:hover { text-decoration: none; }
.logo { width: 32px; height: 32px; border-radius: 8px; background: var(--green); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 17px; }
.wordmark { font-weight: 700; font-size: 18px; letter-spacing: -.01em; }
.newmenu { position: relative; margin: 0 4px 14px; }
.newmenu > summary { list-style: none; }
.newmenu > summary::-webkit-details-marker { display: none; }
.btn-new { display: flex; align-items: center; justify-content: center; gap: 6px; background: var(--green); color: #fff; border-radius: 999px; padding: 9px 14px; font-weight: 600; cursor: pointer; }
.btn-new:hover, .newmenu[open] > .btn-new { background: var(--green-dark); }
.newmenu-panel { position: absolute; left: 0; right: -60px; top: 44px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-pop); padding: 8px; z-index: 20; }
.newmenu-panel a { display: block; padding: 7px 10px; border-radius: 6px; color: var(--ink); }
.newmenu-panel a:hover { background: var(--hover); text-decoration: none; }
.side nav { display: flex; flex-direction: column; gap: 1px; }
.side .group { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); padding: 14px 10px 4px; }
.side nav a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 6px; color: var(--ink); position: relative; }
.side nav a .ico { color: var(--ink-2); }
.side nav a span:first-of-type { flex: 1; }
.side nav a:hover { background: var(--hover); text-decoration: none; }
.side nav a.on { background: var(--green-soft); color: var(--green-dark); font-weight: 600; }
.side nav a.on::before { content: ""; position: absolute; left: -12px; top: 6px; bottom: 6px; width: 4px; border-radius: 0 3px 3px 0; background: var(--green); }
.side nav a.on .ico { color: var(--green-dark); }
.side .pill { font-size: 11px; padding: 0 7px; }
.frame { min-width: 0; display: flex; flex-direction: column; }
.appbar { display: flex; align-items: center; gap: 12px; padding: 10px 24px; background: var(--panel); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; min-height: 56px; flex-wrap: wrap; }
.appbar .company { font-weight: 600; font-size: 15px; color: var(--wordmark); }
.appbar .spacer { flex: 1; }
.appbar .who { display: flex; align-items: center; gap: 8px; color: var(--ink-2); }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; font-weight: 700; font-size: 12px; }
main { padding: 22px 24px 60px; max-width: 1400px; width: 100%; }
.pagehead { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.pagehead .grow { flex: 1; min-width: 240px; }
.crumbs { font-size: 12px; color: var(--ink-2); margin-bottom: 4px; }

/* --- Panels, grids ------------------------------------------------------- */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 18px; }
.panel-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line-2); flex-wrap: wrap; }
.panel-head .grow { flex: 1; }
.panel-body { padding: 16px 18px; }
.panel-body > :last-child { margin-bottom: 0; }
.cols { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: start; }
.cols-2-1 { display: grid; gap: 18px; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); align-items: start; }
.cols-1-2 { display: grid; gap: 18px; grid-template-columns: minmax(360px, 1fr) minmax(0, 2fr); align-items: start; }
.scroll { overflow-x: auto; }

table.grid { width: 100%; border-collapse: collapse; }
table.grid th, table.grid td { padding: 8px 12px; border-bottom: 1px solid var(--line-2); text-align: left; vertical-align: top; }
table.grid th { background: var(--head); font-size: 12px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
table.grid tbody tr:hover td { background: var(--hover); }
table.grid tr.sub td { background: var(--head); font-weight: 600; }
table.grid tr.total td { font-weight: 700; border-top: 1px solid var(--line); border-bottom: 3px double var(--line); }
table.grid tr.na td { color: var(--ink-3); }
table.grid tr.flag td { background: var(--amber-soft); }
table.grid td.ind { padding-left: 28px; }
table.grid .group-row td { background: var(--green-soft); color: var(--green-dark); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
table.compact th, table.compact td { padding: 5px 10px; }
table.stmt td { border-bottom: none; padding: 5px 12px; }
table.stmt tr.total td { border-bottom: 1px solid var(--line); border-top: 1px solid var(--line); }
table.stmt tr.grand td { font-weight: 700; border-top: 1px solid var(--ink-3); border-bottom: 3px double var(--ink-3); }
table.stmt tr.head td { font-weight: 700; padding-top: 14px; }

/* --- Buttons, forms -------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 6px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); font: 600 13px var(--font); cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--hover); text-decoration: none; }
.btn.primary { background: var(--green); border-color: var(--green); color: #fff; }
.btn.primary:hover { background: var(--green-dark); border-color: var(--green-dark); }
.btn.danger { color: var(--red); }
.btn.small { padding: 3px 9px; font-size: 12px; }
.btn.link { border: none; background: none; color: var(--blue); padding: 0; font-weight: 500; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
form.inline { display: inline; }
label { font-size: 12px; font-weight: 600; color: var(--ink-2); display: block; margin-bottom: 4px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=search], select, textarea {
  width: 100%; font: 14px var(--font); color: var(--ink); background: var(--input); border: 1px solid var(--line); border-radius: 6px; padding: 7px 10px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--blue-soft); border-color: var(--blue); }
textarea { min-height: 90px; resize: vertical; }
input.num { text-align: right; }
.field { margin-bottom: 14px; }
.fields { display: grid; gap: 0 16px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.check { display: flex; align-items: center; gap: 8px; font-weight: 500; color: var(--ink); font-size: 14px; }
.check input { width: auto; }
.hint { font-size: 12px; color: var(--ink-3); margin-top: 3px; }
select.tight, input.tight { padding: 4px 6px; font-size: 13px; }

/* --- Pills, flashes, progress -------------------------------------------- */
.pill { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: var(--line-2); color: var(--ink-2); white-space: nowrap; }
.pill.green { background: var(--green-soft); color: var(--green-dark); }
.pill.blue { background: var(--blue-soft); color: var(--blue); }
.pill.amber { background: var(--amber-soft); color: var(--amber); }
.pill.red { background: var(--red-soft); color: var(--red); }
.flashes { margin-bottom: 16px; display: flex; flex-direction: column; gap: 6px; }
.flash { padding: 10px 14px; border-radius: 6px; border-left: 4px solid var(--blue); background: var(--blue-soft); }
.flash.ok { border-color: var(--green); background: var(--green-soft); }
.flash.error { border-color: var(--red); background: var(--red-soft); }
.flash.warn { border-color: var(--amber); background: var(--amber-soft); }
.bar { height: 6px; background: var(--line-2); border-radius: 99px; overflow: hidden; min-width: 60px; }
.bar > i { display: block; height: 100%; background: var(--green); border-radius: 99px; }
.bar.blue > i { background: var(--blue); }
.kpis { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin-bottom: 18px; }
.kpi { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.kpi .label { font-size: 12px; color: var(--ink-2); font-weight: 600; }
.kpi .value { font-size: 21px; font-weight: 700; font-variant-numeric: tabular-nums; margin-top: 2px; color: var(--wordmark); }
.kpi .sub { font-size: 12px; color: var(--ink-3); }

/* --- Module tiles ---------------------------------------------------------- */
.tiles { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.tile { display: flex; flex-direction: column; gap: 8px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); color: var(--ink); box-shadow: var(--shadow); transition: border-color .15s, transform .15s; }
.tile:hover { border-color: var(--green); text-decoration: none; transform: translateY(-1px); }
.tile .t-ico { width: 38px; height: 38px; border-radius: 10px; background: var(--green-soft); color: var(--green-dark); display: grid; place-items: center; }
.tile .t-ico .ico { width: 20px; height: 20px; }
.tile .t-title { font-weight: 600; }
.tile .t-sub { font-size: 12px; color: var(--ink-2); }
.section-title { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); margin: 6px 0 10px; }

/* --- Sign-offs ------------------------------------------------------------- */
.so { font-size: 11.5px; line-height: 1.3; }
.so b { display: block; color: var(--green-dark); font-weight: 600; }
.so .muted { font-size: 11px; }
.signbox { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.signbox .cell { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; }
.signbox .cell.done { border-color: var(--green); background: var(--green-soft); }
.signbox .cell h4 { margin: 0 0 4px; font-size: 12px; color: var(--ink-2); }
.assert { display: inline-block; min-width: 26px; text-align: center; font-size: 11px; font-weight: 700; padding: 1px 4px; border-radius: 4px; background: var(--blue-soft); color: var(--blue); margin: 1px; }
.rk { display: inline-block; width: 22px; text-align: center; font-weight: 700; border-radius: 4px; font-size: 12px; }
.rk.H { background: var(--red-soft); color: var(--red); }
.rk.M { background: var(--amber-soft); color: var(--amber); }
.rk.L { background: var(--green-soft); color: var(--green-dark); }
ol.steps { margin: 0; padding-left: 20px; }
ol.steps li { margin-bottom: 6px; }
.note { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; margin-bottom: 10px; }
.note.open { border-left: 4px solid var(--amber); }
.note.cleared { opacity: .75; border-left: 4px solid var(--green); }
.lockrow { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line-2); }
.lockrow:last-child { border-bottom: none; }
.empty { text-align: center; padding: 36px 20px; color: var(--ink-2); }
.empty .ico { width: 34px; height: 34px; color: var(--ink-3); margin-bottom: 8px; }
.steps-flow { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.step { border: 1px dashed var(--line); border-radius: var(--radius); padding: 14px; }
.step .n { width: 24px; height: 24px; border-radius: 50%; background: var(--green); color: #fff; display: inline-grid; place-items: center; font-weight: 700; font-size: 12px; margin-right: 6px; }
details.more > summary { cursor: pointer; color: var(--blue); font-weight: 600; font-size: 13px; }

/* --- Login ------------------------------------------------------------------ */
.login { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.login .hero { background: linear-gradient(160deg, var(--green-soft), var(--page) 70%); padding: 48px; display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.login .hero h1 { font-size: 40px; line-height: 1.15; color: var(--wordmark); }
.login .hero h1 em { font-style: normal; color: var(--green); }
.login .hero .tagline { max-width: 470px; margin: 0; padding-left: 12px; border-left: 3px solid var(--green); font-size: 15.5px; line-height: 1.55; color: var(--ink); }
.login .hero .desc { max-width: 470px; margin: 0; font-size: 15px; }
.login .hero .tagline, .login .hero .desc { text-align: justify; text-justify: inter-word; hyphens: none; }
.login .hero .tagline b { color: var(--wordmark); }
.login .hero .feats { display: flex; gap: 26px; margin-top: 10px; flex-wrap: wrap; }
.login .hero .feat { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; text-align: center; max-width: 110px; }
.login .hero .feat .t-ico { width: 40px; height: 40px; border-radius: 50%; background: var(--panel); color: var(--green); display: grid; place-items: center; box-shadow: var(--shadow); }
.login .formside { display: grid; place-items: center; padding: 24px; }
.login .card { width: 100%; max-width: 400px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 32px; box-shadow: var(--shadow-pop); }
.login .card .btn.primary { width: 100%; justify-content: center; padding: 11px; font-size: 15px; }

@media (max-width: 960px) {
  .cols-2-1, .cols-1-2 { grid-template-columns: 1fr; }
  .login { grid-template-columns: 1fr; }
  .login .hero { padding: 32px 20px; }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: static; height: auto; border-right: none; border-bottom: 1px solid var(--line); padding: 10px 16px; }
  .side nav { flex-direction: row; flex-wrap: nowrap; overflow-x: auto; gap: 4px; }
  .side .group { display: none; }
  .side nav a { white-space: nowrap; }
  .side nav a.on::before { display: none; }
  .newmenu { display: none; }
  .brand { padding-bottom: 8px; }
  main { padding: 16px 16px 48px; }
  .appbar { padding: 10px 16px; position: static; }
  .signbox { grid-template-columns: 1fr; }
}
@media print {
  .side, .appbar, .noprint, .flashes { display: none !important; }
  .shell { display: block; }
  .panel { box-shadow: none; border: none; }
  body { background: #fff; }
}

/* --- Excel-style working papers (templates/_sheet.html, static/sheet.js) -------- */
.xl { --xl-grid: #e2e4e7; --xl-head: #f3f4f5; --xl-sel: #1e7145; --xl-range: rgba(33,115,70,.10); --xl-input: #fff8e1;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); outline: none; overflow: hidden; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .xl { --xl-grid: #34363b; --xl-head: #2a2b30; --xl-sel: #5ccf4a; --xl-range: rgba(92,207,74,.14); --xl-input: rgba(240,160,75,.12); }
}
.xl-bar { display: flex; align-items: stretch; border-bottom: 1px solid var(--line); font: 13px var(--font); }
.xl-name { min-width: 92px; padding: 5px 10px; border-right: 1px solid var(--line); font-weight: 600; color: var(--ink); }
.xl-fx { padding: 5px 10px; border-right: 1px solid var(--line); color: var(--ink-3); font-style: italic; font-family: Georgia, serif; }
.xl-formula { flex: 1; padding: 5px 10px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; color: var(--ink); white-space: nowrap; overflow-x: auto; }
.xl-formula a { color: var(--blue); cursor: pointer; text-decoration: underline dotted; }
.xl-scroll { overflow: auto; max-height: 70vh; }
.xl-max { border: 0; border-left: 1px solid var(--line); background: none; padding: 0 12px; font-size: 16px; color: var(--ink-2); cursor: pointer; }
.xl-max:hover { background: var(--head); color: var(--ink); }
.xl.maxed { position: fixed; inset: 0; z-index: 1000; border-radius: 0; display: flex; flex-direction: column; }
.xl.maxed .xl-sheet:not([hidden]) { flex: 1; min-height: 0; display: flex; }
.xl.maxed .xl-scroll { max-height: none !important; flex: 1; }
body.xl-maxed { overflow: hidden; }
.xl-grid { border-collapse: collapse; table-layout: fixed; font: 12.5px/1.25 Calibri, Carlito, "Segoe UI", -apple-system, Arial, sans-serif; color: var(--ink); user-select: none; }
.xl-grid th, .xl-grid td { border: 1px solid var(--xl-grid); height: 22px; padding: 2px 6px; white-space: nowrap; overflow: visible; text-overflow: clip; }
.xl-grid thead th { position: sticky; top: 0; z-index: 2; background: var(--xl-head); color: var(--ink-2); font-weight: 500; text-align: center; font-size: 12px; }
.xl-grid tbody th { position: sticky; left: 0; z-index: 1; background: var(--xl-head); color: var(--ink-2); font-weight: 500; text-align: center; font-size: 11.5px; }
.xl-grid thead th.xl-corner { left: 0; z-index: 3; }
.xl-grid th.hl { background: var(--green-soft); color: var(--green-dark); font-weight: 700; }
.xl-grid td { cursor: cell; }
.xl-grid td.clip { overflow: hidden; text-overflow: ellipsis; }
.xl-grid td.n { text-align: right; font-variant-numeric: tabular-nums; }
.xl-grid td.b, .xl-grid tr.head td, .xl-grid tr.sub td, .xl-grid tr.total td, .xl-grid tr.grand td, .xl-grid tr.title td, .xl-grid tr.heading td { font-weight: 700; }
.xl-grid tr.title td { font-size: 14.5px; color: var(--green-dark); }
.xl-grid tr.head td { background: var(--green-soft); white-space: normal; vertical-align: bottom; box-shadow: inset 0 -1px 0 var(--ink-3); }
.xl-grid tr.sub td { background: var(--head); }
.xl-grid tr.total td.n, .xl-grid tr.grand td.n { box-shadow: inset 0 1px 0 var(--ink-2); }
.xl-grid tr.grand td.n { border-bottom: 3px double var(--ink-2); }
.xl-grid tr.note td { color: var(--ink-3); font-style: italic; }
.xl-grid tr.para td, .xl-grid tr.wrap td { white-space: pre-wrap; vertical-align: top; height: auto; overflow: hidden; }
.xl-grid td.input { background: var(--xl-input); }
.xl-grid td.flag { background: var(--amber-soft); color: var(--amber); font-weight: 600; }
.xl-grid td.check.ok { color: var(--green-dark); }
.xl-grid td.check.bad { color: var(--red); background: var(--red-soft); font-weight: 700; }
.xl-grid td[data-f]::after { content: ""; }
.xl-grid td.in-range { background: var(--xl-range); }
.xl-grid td.active { outline: 2px solid var(--xl-sel); outline-offset: -2px; }
.xl-grid td.prec { outline: 2px dashed var(--blue); outline-offset: -3px; }
.xl-foot { display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--line); background: var(--xl-head); min-height: 32px; }
.xl-tabs { display: flex; flex: 1; overflow-x: auto; }
.xl-tabs button { border: none; border-right: 1px solid var(--line); background: none; padding: 7px 16px; font: 600 12.5px var(--font); color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.xl-tabs button.on { background: var(--panel); color: var(--green-dark); box-shadow: inset 0 -3px 0 var(--green); }
.xl-status { padding: 0 14px; font-size: 12px; color: var(--ink-2); white-space: nowrap; }
.xl-status b { color: var(--ink); font-weight: 600; margin-right: 12px; }
.xl-help { font-size: 12px; color: var(--ink-3); margin-top: 6px; }
.xl-help kbd { font: 11px ui-monospace, Menlo, monospace; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px; padding: 0 4px; background: var(--panel); }

/* Editable grids: inputs that look and move like cells */
table.xl-edit { border-collapse: collapse; width: max-content; min-width: 100%; font-size: 13px; }
table.xl-edit th { position: sticky; top: 0; z-index: 1; background: var(--head); color: var(--ink-2); font-size: 12px; font-weight: 600; padding: 6px 8px; border: 1px solid var(--line-2); text-align: left; white-space: nowrap; }
table.xl-edit th.rn, table.xl-edit td.rn { width: 38px; text-align: center; color: var(--ink-3); background: var(--head); font-size: 11.5px; }
table.xl-edit td { border: 1px solid var(--line-2); padding: 0; vertical-align: middle; }
table.xl-edit td.ro { padding: 4px 8px; color: var(--ink-2); white-space: nowrap; }
table.xl-edit input[type=text], table.xl-edit select { border: none; border-radius: 0; background: transparent; padding: 5px 8px; font-size: 13px; min-width: 0; }
table.xl-edit input[type=text]:focus, table.xl-edit select:focus { outline: 2px solid var(--green); outline-offset: -2px; background: var(--input); }
table.xl-edit input[type=checkbox] { margin: 0 auto; display: block; }
table.xl-edit tr.del td { opacity: .45; text-decoration: line-through; }

/* --- Sign off page (templates/signoff.html) ------------------------------------- */
.signbar { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); overflow: hidden; }
.seg a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; color: var(--ink-2); font-weight: 600; border-right: 1px solid var(--line); }
.seg a:last-child { border-right: 0; }
.seg a:hover { background: var(--hover); text-decoration: none; }
.seg a.on { background: var(--green-soft); color: var(--green-dark); }
.signgrid tr.na td { color: var(--ink-3); }
@media (max-width: 1100px) { .signgrid .concl { display: none; } }
.signgrid input[type="checkbox"] { width: 16px; height: 16px; }
.signed { display: inline-flex; align-items: center; gap: 3px; color: var(--green-dark); }
.signed svg { width: 13px; height: 13px; }
.signfoot { position: sticky; bottom: 0; z-index: 5; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 18px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 -4px 16px rgba(0, 0, 0, .08); }
.signfoot .grow { flex: 1; }
.signfoot .pickwrap { flex: 3; display: flex; flex-wrap: wrap; gap: 8px; min-width: 300px; }
.signfoot .pickwrap[hidden] { display: none; }
.signfoot .pickwrap select { width: 240px; flex: none; }
.signfoot .pickwrap input { flex: 1; min-width: 220px; }
.pickline { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.pickline select { width: auto; max-width: 100%; }

