/* Blue Tree Project & Expenditure Management — application styles
   Brand colours sampled from the official logo: teal #297B85, charcoal #1F1D1D */
:root {
  --brand: #297b85;
  --brand-dark: #1f5f67;
  --brand-tint: #e8f2f3;
  --ink: #1f1d1d;
  --text: #2b2b2b;
  --muted: #6b7075;
  --line: #d9dde0;
  --line-soft: #eceff1;
  --bg: #f4f6f7;
  --card: #ffffff;
  --red: #b42318; --red-bg: #fdecea;
  --amber: #a15c07; --amber-bg: #fdf3e1;
  --green: #1d7a46; --green-bg: #e6f4ec;
  --blue: #1f5aa6; --blue-bg: #e8f0fb;
  --radius: 6px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, "Noto Sans Thai", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: var(--font); font-size: 14px; color: var(--text); background: var(--bg); line-height: 1.45; }
a { color: var(--brand-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 22px; margin: 0; color: var(--ink); font-weight: 600; }
h2 { font-size: 16px; margin: 0; color: var(--ink); font-weight: 600; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.nowrap { white-space: nowrap; }

/* ---------- frame ---------- */
.env-banner { background: #fff4d6; color: #6b4a00; text-align: center; font-size: 12px; padding: 3px 8px; border-bottom: 1px solid #f0d48a; }
.topbar { height: 56px; background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 16px; position: sticky; top: 0; z-index: 20; }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 14px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-text { font-weight: 600; font-size: 15px; border-left: 1px solid var(--line); padding-left: 12px; }
.user-name { color: var(--muted); font-size: 13px; }
.topbar-link { background: none; border: 0; color: var(--brand-dark); font: inherit; font-size: 13px; cursor: pointer; padding: 4px 0; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius); font-size: 18px; padding: 2px 9px; cursor: pointer; }
.shell { display: flex; min-height: calc(100vh - 56px); }
.sidenav { width: 210px; flex: 0 0 210px; background: #fff; border-right: 1px solid var(--line); padding: 14px 10px; display: flex; flex-direction: column; gap: 2px; }
.nav-item { display: block; padding: 9px 12px; border-radius: var(--radius); color: var(--text); font-weight: 500; }
.nav-item:hover { background: var(--line-soft); text-decoration: none; }
.nav-item.active { background: var(--brand-tint); color: var(--brand-dark); font-weight: 600; box-shadow: inset 3px 0 0 var(--brand); }
.content { flex: 1; padding: 22px 26px 40px; min-width: 0; max-width: 1400px; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .brand-text, .user-name { display: none; }
  .sidenav { position: fixed; top: 56px; left: 0; bottom: 0; z-index: 30; transform: translateX(-100%); transition: transform .15s; box-shadow: 2px 0 8px rgba(0,0,0,.08); }
  .sidenav.open { transform: none; }
  .content { padding: 16px; }
}

/* ---------- page parts ---------- */
.page-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.page-subtitle { color: var(--muted); margin-top: 4px; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.back-link { font-size: 13px; display: inline-block; margin-bottom: 6px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 18px; }
.card-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); gap: 10px; }
.card-actions { display: flex; gap: 8px; }
.card-body { padding: 16px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 1000px) { .grid-2 { grid-template-columns: 1fr; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 6px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; color: var(--ink); padding: 7px 14px; font: inherit; font-weight: 500; cursor: pointer; white-space: nowrap; }
.btn:hover:not(:disabled) { background: var(--line-soft); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--brand-dark); }
.btn-danger { background: #fff; border-color: #e7b4ae; color: var(--red); }
.btn-danger:hover:not(:disabled) { background: var(--red-bg); }
.btn-sm { padding: 4px 10px; font-size: 13px; }
.btn-block { width: 100%; justify-content: center; }
.btn-link { border: 0; background: none; color: var(--brand-dark); padding: 0; }

/* ---------- forms ---------- */
.form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 18px; }
.form-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 900px) { .form-grid, .form-grid.cols-2 { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field-wide { grid-column: 1 / -1; }
.field-label { font-size: 12.5px; font-weight: 600; color: #3d4247; }
.req { color: var(--red); }
.field-help { font-size: 12px; color: var(--muted); }
.field-error { font-size: 12px; color: var(--red); }
.has-error input, .has-error select, .has-error textarea { border-color: var(--red); }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=search], select, textarea {
  font: inherit; border: 1px solid #c7cdd1; border-radius: var(--radius); padding: 7px 9px; background: #fff; color: var(--ink); width: 100%; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(41,123,133,.35); border-color: var(--brand); }
input[readonly] { background: var(--line-soft); }
textarea { min-height: 80px; resize: vertical; }
input.amount { text-align: right; font-variant-numeric: tabular-nums; }
.checks { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 4px 0; }
.check { display: inline-flex; align-items: center; gap: 6px; font-weight: 400; cursor: pointer; }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }
.section-title { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--brand-dark); margin: 4px 0 10px; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; }
table.data th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; padding: 8px 10px; border-bottom: 1px solid var(--line); background: #fafbfb; white-space: nowrap; }
table.data td { padding: 9px 10px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
table.data tr:hover td { background: #fafcfc; }
table.data tr.clickable { cursor: pointer; }
table.data tfoot td { font-weight: 600; border-top: 1px solid var(--line); }
table.data th.num, table.data td.num { text-align: right; }

/* ---------- badges / alerts ---------- */
.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge-grey { background: #eef0f2; color: #4a5056; }
.badge-blue { background: var(--blue-bg); color: var(--blue); }
.badge-green { background: var(--green-bg); color: var(--green); }
.badge-amber { background: var(--amber-bg); color: var(--amber); }
.badge-red { background: var(--red-bg); color: var(--red); }
.badge-teal { background: var(--brand-tint); color: var(--brand-dark); }
.badge-dark { background: #e3e4e6; color: var(--ink); }
.to-confirm { display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: .03em; color: var(--amber); background: var(--amber-bg); border: 1px dashed #e0b064; padding: 0 6px; border-radius: 3px; vertical-align: middle; }
.alert { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border-radius: var(--radius); margin-bottom: 14px; border: 1px solid; }
.alert-error { background: var(--red-bg); border-color: #f3c1bb; color: #7a1a12; }
.alert-warning { background: var(--amber-bg); border-color: #f0d48a; color: #6b4a00; }
.alert-success { background: var(--green-bg); border-color: #b5dec6; color: #135331; }
.alert-info { background: var(--blue-bg); border-color: #c4d7f2; color: #173f73; }
.alert-close { background: none; border: 0; font-size: 18px; line-height: 1; cursor: pointer; color: inherit; }
.loading { display: flex; align-items: center; gap: 10px; color: var(--muted); padding: 30px; }
.empty { padding: 24px; text-align: center; color: var(--muted); }
.spinner { width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; display: inline-block; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- tabs ---------- */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tab { background: none; border: 0; padding: 10px 14px; font: inherit; font-weight: 500; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; }
.tab.active { color: var(--brand-dark); border-bottom-color: var(--brand); font-weight: 600; }
.tab-count { margin-left: 6px; background: var(--line-soft); border-radius: 999px; padding: 0 7px; font-size: 11px; }

/* ---------- definition grid ---------- */
.dgrid { display: grid; gap: 12px 20px; margin: 0; }
.dgrid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dgrid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dgrid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .dgrid-3, .dgrid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.dgrid-item.wide { grid-column: 1 / -1; }
.dgrid dt { font-size: 12px; color: var(--muted); }
.dgrid dd { margin: 2px 0 0; color: var(--ink); font-weight: 500; white-space: pre-wrap; }
.dgrid dd.num { text-align: left; }

/* ---------- KPI tiles ---------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 12px; margin-bottom: 18px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.kpi-label { font-size: 12px; color: var(--muted); }
.kpi-value { font-size: 19px; font-weight: 600; color: var(--ink); margin-top: 3px; font-variant-numeric: tabular-nums; }
.kpi-note { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.kpi.warn .kpi-value { color: var(--red); }

/* ---------- toolbar / filters ---------- */
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 14px; }
.toolbar .field { min-width: 150px; }
.toolbar .grow { flex: 1; min-width: 220px; }

/* ---------- modal ---------- */
.modal-backdrop { position: fixed; inset: 0; background: rgba(20,24,28,.45); display: flex; align-items: flex-start; justify-content: center; padding: 60px 16px; z-index: 100; overflow-y: auto; }
.modal { background: #fff; border-radius: 8px; width: 100%; max-width: 520px; padding: 20px 22px; box-shadow: 0 10px 40px rgba(0,0,0,.2); outline: none; }
.modal-wide { max-width: 900px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.modal-body { margin: 12px 0; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; }

/* ---------- login ---------- */
.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; background: var(--bg); }
.login-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 32px 30px; width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 14px; text-align: center; }
.login-card .brand-logo { align-self: center; }
.login-card h1 { font-size: 18px; }
.login-card .field { text-align: left; }
.login-card p { margin: 0; }
.env-pill { align-self: center; background: #fff4d6; color: #6b4a00; font-size: 11px; padding: 2px 10px; border-radius: 999px; }

/* ---------- misc ---------- */
.text-red { color: var(--red); }
.subform { background: #fafbfb; border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 14px; margin-bottom: 14px; }
tr.removed td { color: var(--muted); text-decoration: line-through; }
tr.removed td .badge, tr.removed td .btn { text-decoration: none; }
.budget-table tr.strong td { font-weight: 600; }
.budget-table tr.grp-requested td:first-child { border-left: 3px solid var(--blue); }
.budget-table tr.grp-approved td:first-child { border-left: 3px solid var(--green); }
.budget-table tr.grp-spend td:first-child { border-left: 3px solid var(--amber); }
.budget-table tr.grp-result td:first-child { border-left: 3px solid var(--ink); }
.budget-table tr.grp-budget td:first-child { border-left: 3px solid var(--brand); }
.upload-bar { background: #fafbfb; border: 1px dashed var(--line); border-radius: var(--radius); padding: 10px 12px; }
table.comparison th[scope=row] { text-transform: none; font-size: 13px; color: var(--ink); background: #fafbfb; width: 210px; white-space: normal; }
table.comparison thead th { text-transform: none; font-size: 13px; color: var(--ink); vertical-align: top; }
table.comparison th.proposed, table.comparison td.proposed { background: var(--brand-tint); }
table.comparison tr.strong td { font-weight: 600; }

/* ---------- approval table (screen) ---------- */
table.approval-matrix { width: 100%; border-collapse: collapse; font-size: 13px; }
table.approval-matrix th, table.approval-matrix td { border: 1px solid #9aa1a6; padding: 6px 8px; vertical-align: top; text-align: left; }
table.approval-matrix thead th { background: #d9d9d9; font-weight: 600; color: var(--ink); }
table.approval-matrix th.am-title { text-align: center; font-weight: 500; }
table.approval-matrix tr.am-banner td { background: #d9d9d9; text-align: center; }
table.approval-matrix .am-group { width: 26%; }
table.approval-matrix .am-doa { width: 15%; }
table.approval-matrix .am-name { width: 18%; }
table.approval-matrix .am-sign { width: 20%; }
table.approval-matrix .am-date { width: 10%; white-space: nowrap; }

.workflow-steps { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.wf-step { padding: 4px 10px; border-radius: 999px; background: #eef0f2; color: #4a5056; font-size: 12px; }
.wf-step.current { background: var(--brand); color: #fff; font-weight: 600; }
table.approval-matrix .am-sys { width: 16%; background: #f6f8f9; border-left: 3px solid var(--line); font-weight: 400; }
table.approval-matrix thead th.am-sys { background: #eef0f2; color: var(--muted); font-size: 12px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.seg-btn { border: 0; background: #fff; padding: 7px 12px; font: inherit; font-weight: 500; cursor: pointer; color: var(--muted); }
.seg-btn + .seg-btn { border-left: 1px solid var(--line); }
.seg-btn.active { background: var(--brand); color: #fff; }
.meter { height: 6px; background: var(--line-soft); border-radius: 3px; overflow: hidden; }
.meter span { display: block; height: 100%; background: var(--brand); }
a.kpi-link { color: inherit; display: block; }
a.kpi-link:hover { text-decoration: none; border-color: var(--brand); }

/* =====================================================================
   PRINT / PDF (A4)
   ===================================================================== */
@page { size: A4; margin: 10mm 11mm 12mm; @bottom-right { content: "Page " counter(page) " of " counter(pages); font-family: Arial, "Noto Sans Thai", sans-serif; font-size: 8pt; color: #333; } }
body.print-mode { background: #e9ecee; }
.print-toolbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 10px; background: #fff; border-bottom: 1px solid var(--line); padding: 10px 16px; flex-wrap: wrap; }
.print-toolbar-title { font-weight: 600; }
.print-toolbar-hint { color: var(--muted); font-size: 12px; flex: 1; }
.a4 { width: 210mm; min-height: 297mm; margin: 16px auto; background: #fff; padding: 10mm 11mm 12mm; box-shadow: 0 2px 10px rgba(0,0,0,.12);
  font-family: Arial, "Helvetica Neue", "Noto Sans Thai", sans-serif; font-size: 8.5pt; color: #111; line-height: 1.35; }
@media print {
  .no-print { display: none !important; }
  body, body.print-mode { background: #fff !important; }
  .a4 { width: auto; min-height: 0; margin: 0; padding: 0; box-shadow: none; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  tr, .doc-sign { break-inside: avoid; }
}

/* ---------- official CAPEX form ---------- */
.capex-form { font-size: 8.4pt; }
.cf-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; margin-bottom: 4px; }
.cf-logo { height: 46px; justify-self: center; }
.cf-topbox { justify-self: end; width: 64mm; height: 11mm; border: 1px solid #222; padding: 2px 4px; }
.cf-band { background: #d9d9d9; border: 1px solid #555; text-align: center; padding: 1px 4px; margin-top: 4px; }
.cf-title { margin-top: 2px; }
.cf-gap { margin-top: 8px; }
.cf-subtitle { font-size: 7.4pt; }
.cf-date { text-align: right; padding-right: 38mm; margin: 2px 0 4px; }
.cf-grid { width: 100%; border-collapse: collapse; }
.cf-grid td { border: 1px solid #555; background: #d9d9d9; padding: 3px 6px; vertical-align: top; }
.cf-head3 td { height: 9.5mm; width: 33.3%; }
.cf-head3 td:last-child { width: 33.4%; }
.cf-head2 td:first-child { width: 50%; }
.cf-head2 { margin-top: -1px; }
.cf-textbox { border: 1px solid #555; border-top: 0; min-height: 10mm; padding: 3px 6px; white-space: pre-wrap; }
.cf-variance { border-top: 1px solid #555; min-height: 12mm; margin-top: 2px; }
.cf-value-block { white-space: pre-wrap; }
.cf-boxes { display: flex; flex-wrap: wrap; gap: 2px 14px; padding: 3px 6px; }
.cf-glyph { font-family: "Segoe UI Symbol", "DejaVu Sans", Arial, sans-serif; font-size: 10pt; line-height: 1; }
.cf-yesno { padding-top: 0; gap: 2px 38px; }
.cf-line { display: flex; gap: 8px; border-bottom: 1px solid #333; padding: 3px 0 1px; margin: 0 6px; min-height: 5mm; }
.cf-line .cf-value { flex: 1; text-align: right; }
.cf-row1 { margin-top: 2px; }
.cf-row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 14px; margin-top: 4px; }
.cf-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; margin-top: 4px; }
.cf-spacer { height: 5mm; }
.cf-approvals { margin-top: 6px; }
.approval-matrix-print { font-size: 8pt; }
.approval-matrix-print th, .approval-matrix-print td { border: 1px solid #555 !important; padding: 3px 5px !important; }
.approval-matrix-print tbody td { height: 5.5mm; }
.approval-matrix-print thead th { background: #d9d9d9 !important; font-weight: 400 !important; }
.approval-matrix-print tr.am-banner td { background: #d9d9d9 !important; }

/* ---------- Blue Tree internal document standard ---------- */
.doc-head { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; border-bottom: 2px solid #297b85; padding-bottom: 8px; margin-bottom: 8px; }
.doc-logo { height: 48px; }
.doc-title { font-size: 15pt; margin: 0; color: #111; }
.doc-company { color: #555; font-size: 8.5pt; }
.doc-meta { border-collapse: collapse; font-size: 8pt; }
.doc-meta th { text-align: left; color: #555; font-weight: 400; padding: 1px 8px 1px 0; }
.doc-meta td { padding: 1px 0; font-weight: 600; max-width: 62mm; }
.doc-section { margin-top: 8px; }
.doc-band { font-size: 9pt; font-weight: 700; background: #e8f2f3; border-left: 3px solid #297b85; padding: 3px 6px; margin: 0 0 4px; color: #1f5f67; }
.doc-kv { width: 100%; border-collapse: collapse; margin-bottom: 4px; }
.doc-kv th { text-align: left; font-weight: 400; color: #555; width: 22%; padding: 2px 6px; vertical-align: top; border-bottom: 1px solid #e3e6e8; }
.doc-kv td { padding: 2px 6px; vertical-align: top; border-bottom: 1px solid #e3e6e8; white-space: pre-wrap; }
.doc-table { width: 100%; border-collapse: collapse; margin-bottom: 6px; font-size: 7.8pt; }
.doc-table th, .doc-table td { border: 1px solid #b9bfc3; padding: 2px 4px; vertical-align: top; text-align: left; }
.doc-table thead th { background: #eef0f2; font-weight: 600; }
.doc-table tbody th { background: #f6f7f8; font-weight: 600; width: 26%; }
.doc-table tr.strong td { font-weight: 700; }
.doc-table .num, .doc-kv .num { text-align: right; white-space: nowrap; }
.doc-budget td:first-child { width: 60%; }
.doc-mark { font-weight: 400; font-size: 7pt; color: #1f5f67; }
.doc-empty { color: #555; margin: 2px 6px 6px; }
.doc-sign { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 8pt; }
.doc-sign th, .doc-sign td { border: 1px solid #b9bfc3; padding: 4px 6px; text-align: left; }
.doc-sign thead th { background: #eef0f2; }
.doc-sign tbody th { width: 18%; font-weight: 600; background: #f6f7f8; }
.doc-sign tbody td { height: 12mm; vertical-align: bottom; }
.doc-sign tbody td:nth-child(3) { width: 34%; }
.menu { position: relative; display: inline-block; }
.menu-list { position: absolute; right: 0; top: calc(100% + 4px); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 6px 20px rgba(0,0,0,.12); min-width: 220px; z-index: 50; padding: 4px; }
.menu-item { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 8px 10px; font: inherit; border-radius: 4px; cursor: pointer; }
.menu-item:hover { background: var(--line-soft); }

.approval-matrix-print .am-group { width: 31%; }
.approval-matrix-print .am-doa { width: 17%; }
.approval-matrix-print .am-name { width: 20%; }
.approval-matrix-print .am-sign { width: 20%; }
.approval-matrix-print .am-date { width: 12%; }
.approval-matrix-print tbody td { height: auto; padding: 2px 5px !important; }
.capex-form .cf-line { min-height: 4.6mm; padding-top: 2px; }
.capex-form .cf-spacer { height: 4mm; }
table.approval-matrix.approval-matrix-print { font-size: 8pt; }
table.approval-matrix.approval-matrix-print th, table.approval-matrix.approval-matrix-print td { padding: 2px 5px; }
.steps { margin: 0; padding-left: 20px; }
.steps li { margin-bottom: 4px; }
.perm-matrix .center, .data .center { text-align: center; }
.perm-matrix th.center { white-space: normal; min-width: 90px; }
.settings-list { display: flex; flex-direction: column; gap: 12px; }
.setting { border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 10px 12px; }
.setting-head { margin-bottom: 2px; }
.setting-edit { display: flex; gap: 10px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.setting-edit > select, .setting-edit > input { max-width: 360px; }
