/* 스마일컴퍼니 인테리어 견적서 (customer 2925116). Screen UI + A4 print document. */
@font-face {
  font-family: "Pretendard";
  src: url("../fonts/pretendard-ko-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --ink: #1c2328;
  --muted: #5d6870;
  --line: #d6dce0;
  --line-soft: #e7ebee;
  --bg: #eef1f3;
  --surface: #ffffff;
  --accent: #1f4e79;
  --accent-hover: #173d60;
  --accent-soft: #e6eef6;
  --danger: #a3392b;
  --radius: 6px;
  --font: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.5; color: var(--ink); background: var(--bg); font-variant-numeric: tabular-nums; }
a { color: var(--accent); }
h1, h2, h3 { margin: 0; line-height: 1.3; }
h1 { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: 16px; font-weight: 650; }
.muted { color: var(--muted); }
.hint { color: var(--muted); font-size: 13px; margin: 8px 0 0; }
.pad { padding: 4px 0 8px; margin: 0; }
.r { text-align: right; }
.boot { padding: 40px; color: var(--muted); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

/* controls */
input, select, textarea { font: inherit; color: inherit; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 7px 9px; min-width: 0; width: 100%; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: var(--accent); }
textarea { resize: vertical; line-height: 1.5; }
input.num { text-align: right; }
input[type="checkbox"] { width: 17px; height: 17px; padding: 0; accent-color: var(--accent); vertical-align: -3px; }
label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
label > input, label > select, label > textarea { color: var(--ink); font-size: 15px; }
label.check { flex-direction: row; align-items: center; gap: 8px; color: var(--ink); font-size: 14px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: inherit; font-size: 14px; font-weight: 550; padding: 8px 14px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; white-space: nowrap; transition: background-color .12s ease, border-color .12s ease; }
.btn:hover { background: #f5f7f8; border-color: #c4ccd2; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-hover); }
.btn.sm { padding: 5px 10px; font-size: 13px; }
.btn.wide { width: 100%; padding: 11px; font-size: 15px; }
.btn.ghost { border-color: transparent; background: transparent; color: var(--muted); }
.btn.danger-text { color: var(--danger); }
.btn:disabled { opacity: .45; cursor: default; }
.btn.file { position: relative; }
.link { font: inherit; background: none; border: 0; color: var(--muted); cursor: pointer; padding: 0; font-size: 14px; }
.icon { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border: 0; background: none; color: var(--muted); border-radius: var(--radius); cursor: pointer; padding: 0; }
.icon:hover { background: var(--line-soft); color: var(--ink); }
.icon:disabled { opacity: .3; cursor: default; background: none; }

/* shell */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 24px; height: 56px; background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; min-width: 0; }
.brand img { height: 28px; max-width: 120px; object-fit: contain; }
.brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top nav { display: flex; align-items: stretch; gap: 22px; height: 100%; }
.top nav a { display: flex; align-items: center; color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 550; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.top nav a:hover { color: var(--ink); }
.top nav a.on { color: var(--ink); border-bottom-color: var(--accent); }
.page { max-width: 1280px; margin: 0 auto; padding: 24px 24px 80px; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; margin-bottom: 16px; }
.title-line { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.back { font-size: 14px; color: var(--muted); text-decoration: none; }
.back::before { content: "‹ "; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.save-state { font-size: 13px; color: var(--muted); }
.save-state.dirty { color: var(--danger); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 18px 20px; margin-bottom: 14px; }
.panel > h2 { margin-bottom: 12px; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; gap: 8px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; }
.span2 { grid-column: span 2; }
.row-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.row-btns.end { justify-content: space-between; }
.notice { background: var(--accent-soft); border: 1px solid #c9d8e7; border-radius: var(--radius); padding: 10px 14px; margin-bottom: 14px; font-size: 14px; }
#toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius); font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .15s ease; z-index: 100; max-width: calc(100vw - 32px); }
#toast.show { opacity: 1; }
#toast.bad { background: var(--danger); }

/* login */
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-box { width: 100%; max-width: 360px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.login-box p { margin: -6px 0 4px; font-size: 14px; }
.err { color: var(--danger); font-size: 14px; min-height: 1em; margin: 0 !important; }

/* list */
.toolbar { margin-bottom: 12px; max-width: 360px; }
table.list { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
table.list th { text-align: left; font-size: 13px; font-weight: 600; color: var(--muted); padding: 10px 14px; border-bottom: 1px solid var(--line); background: #f7f9fa; }
table.list td { padding: 11px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
table.list tr:last-child td { border-bottom: 0; }
table.list tbody tr:hover { background: #f8fafb; }
table.list .site a { color: var(--ink); font-weight: 600; text-decoration: none; }
table.list .site a:hover { text-decoration: underline; }
table.list .amount { font-weight: 600; white-space: nowrap; }
table.list .date { white-space: nowrap; color: var(--muted); }
.row-act { text-align: right; white-space: nowrap; }
.row-act .btn + .btn { margin-left: 4px; }
.kind { font-size: 13px; font-weight: 600; color: var(--muted); }
.kind.detail { color: var(--accent); }
.empty { background: var(--surface); border: 1px dashed #c4ccd2; border-radius: 8px; padding: 40px 24px; text-align: center; }
.empty p { margin: 4px 0; }

/* editor */
.edit-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.edit-side { position: sticky; top: 72px; }
.sum-box { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.sum-total { padding: 18px 20px 16px; border-bottom: 2px solid var(--ink); display: flex; flex-direction: column; gap: 2px; }
.sum-total .muted { font-size: 13px; }
.sum-total strong { font-size: 30px; font-weight: 750; letter-spacing: -0.02em; line-height: 1.2; }
.sum-total .words { font-size: 14px; color: var(--ink); word-break: keep-all; }
.sum-rows { margin: 0; padding: 8px 20px 14px; }
.sum-rows > div { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 0; font-size: 14px; }
.sum-rows dt { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.sum-rows dd { margin: 0; font-weight: 550; white-space: nowrap; }
.sum-rows .sub { padding: 1px 0 1px 12px; font-size: 13px; }
.sum-rows .strong dt, .sum-rows .strong dd { color: var(--ink); font-weight: 650; }
.sum-rows .strong { border-top: 1px solid var(--line-soft); margin-top: 4px; padding-top: 8px; }
.sum-rows .grand { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; }
.sum-rows .grand dt, .sum-rows .grand dd { color: var(--ink); font-weight: 750; font-size: 16px; }
.sum-rows input.pct { width: 52px; padding: 3px 6px; text-align: right; font-size: 14px; }
.sum-rows select { width: auto; padding: 3px 6px; font-size: 13px; }
.sum-rows label.check { font-size: 14px; color: var(--muted); }
.mobile-total { display: none; }

.seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.seg button { font: inherit; font-size: 14px; padding: 8px 22px; border: 0; background: var(--surface); color: var(--muted); cursor: pointer; }
.seg button + button { border-left: 1px solid var(--line); }
.seg button.on { background: var(--accent); color: #fff; font-weight: 600; }

table.rough { width: 100%; border-collapse: collapse; }
table.rough th { font-size: 13px; font-weight: 600; color: var(--muted); text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); }
table.rough th.r { text-align: right; }
table.rough td { padding: 5px 8px; border-bottom: 1px solid var(--line-soft); }
table.rough .ck { width: 36px; }
table.rough .pname { font-weight: 550; }
table.rough td input.num { max-width: 150px; margin-left: auto; display: block; }
table.rough .amt { font-weight: 600; width: 130px; white-space: nowrap; }
table.rough tr.off .pname, table.rough tr.off .amt { color: #9aa4ab; }
table.rough tr.off input.num { color: #9aa4ab; }

.proc-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.proc-name { font-size: 16px; font-weight: 650; border-color: transparent; padding: 4px 6px; margin-left: -6px; max-width: 260px; }
.proc-name:hover { border-color: var(--line); }
.proc-sub { margin-left: auto; font-size: 14px; color: var(--muted); white-space: nowrap; }
.proc-sub b { color: var(--ink); font-size: 15px; }
.proc-tools { display: flex; align-items: center; gap: 2px; }
.lines { display: flex; flex-direction: column; gap: 6px; }
.line { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.2fr) 74px 78px 104px 104px 104px 30px; gap: 6px; align-items: center; }
.line-head { font-size: 12px; color: var(--muted); font-weight: 600; padding: 0 2px; }
.line input, .line select { padding: 6px 7px; font-size: 14px; }
.line .amt { font-weight: 600; font-size: 14px; white-space: nowrap; }
.line label.cell, .item label.cell { display: block; }
.line .cap, .item .cap { display: none; font-size: 12px; color: var(--muted); margin-bottom: 3px; }
.proc .hint { margin: -4px 0 10px; }
.add-proc label { max-width: 340px; }

/* modal */
.modal { position: fixed; inset: 0; background: rgba(20, 28, 34, .45); display: grid; place-items: center; z-index: 50; padding: 16px; }
.modal-box { background: var(--surface); border-radius: 8px; width: 100%; max-width: 620px; max-height: calc(100vh - 32px); display: flex; flex-direction: column; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.modal-body { overflow: auto; padding: 6px 18px; }
.modal-body details { border-bottom: 1px solid var(--line-soft); padding: 6px 0; }
.modal-body summary { cursor: pointer; font-weight: 600; padding: 6px 0; }
.modal-body summary .muted { font-weight: 400; font-size: 13px; }
.pick-row { flex-direction: row; align-items: center; gap: 10px; padding: 7px 4px; color: var(--ink); font-size: 14px; cursor: pointer; border-radius: var(--radius); }
.pick-row:hover { background: #f5f7f8; }
.pick-name { flex: 1; display: flex; flex-direction: column; }
.pick-name small { color: var(--muted); font-size: 12px; }
.pick-price { color: var(--muted); font-size: 13px; white-space: nowrap; }
.modal-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 18px; border-top: 1px solid var(--line); font-size: 13px; }

/* price table */
.intro { margin: -6px 0 12px; font-size: 14px; max-width: 760px; }
.jump { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 14px; position: sticky; top: 56px; background: var(--bg); padding: 8px 0; z-index: 5; border-bottom: 1px solid var(--line); }
.jump a { font-size: 14px; color: var(--muted); text-decoration: none; }
.jump a:hover { color: var(--accent); }
.pblock { scroll-margin-top: 110px; }
.pblock-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.pblock-head .proc-tools { margin-left: auto; }
.rates { display: flex; align-items: end; gap: 10px; flex-wrap: wrap; padding: 10px 12px; background: #f6f8f9; border: 1px solid var(--line-soft); border-radius: var(--radius); margin-bottom: 12px; }
.rates-label { font-size: 13px; font-weight: 600; color: var(--ink); align-self: center; margin-right: 6px; }
.rates label { width: 140px; }
.rates input { padding: 6px 8px; font-size: 14px; }
.items { display: flex; flex-direction: column; gap: 6px; }
.item { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.3fr) 78px 112px 112px 104px 30px; gap: 6px; align-items: center; }
.item-head { font-size: 12px; color: var(--muted); font-weight: 600; padding: 0 2px; }
.item input, .item select { padding: 6px 7px; font-size: 14px; }
.item .amt { font-size: 14px; color: var(--muted); }

/* company */
.cgrid { display: block; }
.company .panel { max-width: 860px; }
.imgs { display: flex; gap: 24px; flex-wrap: wrap; }
.img-slot { display: flex; flex-direction: column; gap: 8px; }
.img-label { font-size: 13px; color: var(--muted); }
.img-prev { width: 200px; height: 110px; border: 1px dashed #c4ccd2; border-radius: var(--radius); display: grid; place-items: center; background: #fafbfb; }
.img-prev.stamp { width: 110px; }
.img-prev img { max-width: 92%; max-height: 92%; object-fit: contain; }
.img-slot .row-btns { margin-top: 0; }

/* preview */
.preview-bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; padding: 10px 24px; background: var(--surface); border-bottom: 1px solid var(--line); }
.preview-bar .actions { margin-left: auto; }
.pv-info { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-hint { max-width: 210mm; margin: 14px auto 10px; font-size: 13px; padding: 0 8px; }
.paper-stage { padding: 0 8px 48px; overflow-x: auto; }
.paper-stage .sheet { width: 210mm; min-height: 297mm; margin: 0 auto 16px; padding: 14mm 13mm; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.12); }
#print-root { display: none; }

/* ------------------------------------------------------------ the estimate document */
.sheet { font-size: 9.6pt; line-height: 1.45; color: #111; }
.sheet table { border-collapse: collapse; width: 100%; }
.doc-top { display: flex; justify-content: space-between; align-items: center; min-height: 10mm; }
.doc-logo { max-height: 14mm; max-width: 50mm; object-fit: contain; }
.doc-no { font-size: 9.5pt; color: #333; }
.doc-title { text-align: center; font-size: 25pt; font-weight: 750; letter-spacing: .6em; text-indent: .6em; margin: 0 0 6mm; padding-bottom: 2mm; border-bottom: 3px double #111; }
.doc-head { display: grid; grid-template-columns: 1fr 1.08fr; gap: 6mm; align-items: start; margin-bottom: 5mm; }
.recipient .to { font-size: 14pt; margin: 0 0 3mm; padding-bottom: 1.5mm; border-bottom: 1px solid #111; }
.recipient .to b { font-weight: 700; }
.recipient table.meta th { text-align: left; font-weight: 600; width: 19mm; padding: 1mm 0; vertical-align: top; color: #333; }
.recipient table.meta td { padding: 1mm 0; }
.recipient .lead { margin: 3mm 0 0; font-size: 10pt; }
table.supplier { border: 1.2px solid #111; }
table.supplier th, table.supplier td { border: 1px solid #555; padding: 1.4mm 2mm; font-size: 8.8pt; }
table.supplier th { background: #eef0f2; font-weight: 600; white-space: nowrap; width: 15mm; text-align: center; }
table.supplier th.vert { width: 7mm; line-height: 1.6; }
table.supplier td.ceo { position: relative; white-space: nowrap; }
table.supplier .in { position: relative; display: inline-block; margin-left: 2mm; color: #555; }
table.supplier .stamp { position: absolute; left: 50%; top: 50%; width: 14mm; height: 14mm; object-fit: contain; transform: translate(-50%, -50%); mix-blend-mode: multiply; }
table.grand-box { border: 2px solid #111; margin-bottom: 5mm; }
table.grand-box th { width: 27mm; background: #eef0f2; font-size: 10.5pt; padding: 3mm; border-right: 1px solid #555; }
table.grand-box td { padding: 3mm 4mm; font-size: 12.5pt; }
table.grand-box td b { font-weight: 750; letter-spacing: .02em; }
table.grand-box td span { margin-left: 3mm; font-weight: 600; }
table.grand-box td em { font-style: normal; float: right; font-size: 9pt; color: #444; margin-top: 1mm; }
table.doc-table { border-top: 1.5px solid #111; border-bottom: 1.5px solid #111; }
table.doc-table th, table.doc-table td { border: 1px solid #8b939a; padding: 1.2mm 2mm; }
table.doc-table th { background: #eef0f2; font-weight: 600; text-align: center; font-size: 9pt; }
table.doc-table th.r { text-align: center; }
table.doc-table td.r { text-align: right; white-space: nowrap; }
table.doc-table td.c { text-align: center; }
table.doc-table .no { width: 10mm; text-align: center; }
table.doc-table tbody.foot td, table.doc-table tr.subtotal td { font-weight: 600; }
table.doc-table td.lbl { text-align: center; }
table.doc-table tr.subtotal td { background: #f5f6f7; }
table.doc-table tr.grand td { background: #e6e9ec; font-weight: 750; font-size: 10pt; border-top: 1.5px solid #111; }
.doc-note { margin-top: 4mm; break-inside: avoid; border: 1px solid #8b939a; padding: 3mm 4mm; font-size: 9pt; }
.doc-note h3 { font-size: 9.5pt; margin: 0 0 1.5mm; }
.doc-note p { margin: 0; }
.doc-note .bank { margin-top: 2mm; font-weight: 600; }
.doc-foot { margin-top: 3mm; font-size: 8.5pt; color: #444; }
.doc-sub { font-size: 15pt; font-weight: 700; margin: 0 0 4mm; padding-bottom: 2mm; border-bottom: 2px solid #111; letter-spacing: .1em; }
.doc-sub span { font-size: 10pt; font-weight: 500; letter-spacing: 0; margin-left: 3mm; color: #333; }
table.doc-lines { font-size: 8.4pt; table-layout: fixed; }
table.doc-lines th, table.doc-lines td { padding: 1.2mm 1.2mm; }
table.doc-lines tr.grand td { font-size: 8.8pt; }
table.doc-table.dense th, table.doc-table.dense td { padding: 0.8mm 2mm; font-size: 9pt; }
table.doc-lines col.c-name { width: auto; }
table.doc-lines col.c-spec { width: 27mm; }
table.doc-lines col.c-unit { width: 9mm; }
table.doc-lines col.c-qty { width: 11mm; }
table.doc-lines col.c-p { width: 16.5mm; }
table.doc-lines col.c-a { width: 21mm; }
table.doc-lines td small { display: block; color: #555; font-size: 7.5pt; }
table.doc-lines tr.proc-row td { background: #f5f6f7; font-weight: 700; border-top: 1.2px solid #111; }
table.doc-lines tbody.proc-block { break-inside: avoid; }
table.doc-lines thead { display: table-header-group; }
table.doc-lines tr { break-inside: avoid; }

/* ------------------------------------------------------------ responsive */
@media (max-width: 1080px) {
  .edit-grid { grid-template-columns: minmax(0, 1fr); }
  .edit-side { position: static; }
  .mobile-total { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); }
  .mobile-total b { font-size: 17px; }
}
@media (max-width: 860px) {
  .top { padding: 0 14px; height: auto; flex-direction: column; align-items: stretch; gap: 0; }
  .brand { height: 46px; }
  .top nav { height: 40px; gap: 18px; overflow-x: auto; }
  .top nav .link { margin-left: auto; }
  .page { padding: 16px 12px 96px; }
  .panel { padding: 14px; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .span2 { grid-column: auto; }
  .jump { top: 86px; }
  .line, .item { grid-template-columns: repeat(3, minmax(0, 1fr)) 30px; padding: 10px 0 12px; border-bottom: 1px solid var(--line-soft); row-gap: 8px; }
  .line-head, .item-head { display: none; }
  .line .cap, .item .cap { display: block; }
  .line > [data-lf="name"], .item > [data-if="name"] { grid-column: 1 / 4; grid-row: 1; font-weight: 600; }
  .line > .icon, .item > .icon { grid-column: 4; grid-row: 1; }
  .line > [data-lf="spec"], .item > [data-if="spec"] { grid-column: 1 / 3; grid-row: 2; align-self: end; }
  .line > .c-unit, .item > .c-unit { grid-column: 3; grid-row: 2; }
  .line > .c-qty, .item > .c-mat { grid-column: 1; }
  .line > .amt { grid-column: 1 / 4; text-align: right; }
  .line > .amt::before { content: "금액 "; color: var(--muted); font-weight: 400; }
  .item > .amt { grid-column: 3; align-self: end; padding-bottom: 7px; }
  .item > .amt::before { content: "합계 "; }
  .rates { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rates-label { grid-column: 1 / 4; }
  .rates label { width: auto; min-width: 0; }
  .proc .hint { margin-top: 0; }
  .proc-head { flex-wrap: wrap; }
  .proc-name { max-width: none; flex: 1; }
  .proc-sub { order: 3; width: 100%; margin-left: 0; }
  table.list thead { display: none; }
  table.list, table.list tbody, table.list tr, table.list td { display: block; }
  table.list tr { padding: 12px 14px; border-bottom: 1px solid var(--line-soft); display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; }
  table.list td { padding: 0; border: 0; }
  table.list td.site { grid-column: 1; grid-row: 1; font-size: 16px; }
  table.list td.amount { grid-column: 2; grid-row: 1; }
  table.list td.client { grid-column: 1; grid-row: 2; color: var(--muted); font-size: 14px; }
  table.list td.date { grid-column: 2; grid-row: 2; text-align: right; font-size: 13px; }
  table.list td:nth-child(2) { grid-column: 1; grid-row: 3; }
  table.list td.row-act { grid-column: 2; grid-row: 3; }
  .preview-bar { padding: 8px 12px; flex-wrap: wrap; }
  .pv-info { display: none; }
  .modal-foot { flex-direction: column; align-items: stretch; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ------------------------------------------------------------ print */
@page { size: A4; margin: 12mm 11mm 13mm; }
@media print {
  html, body { background: #fff; }
  body { font-size: 10pt; }
  #app, #toast, .modal { display: none !important; }
  #print-root { display: block; }
  .sheet { width: auto; min-height: 0; padding: 0; margin: 0; box-shadow: none; }
  .sheet + .sheet { break-before: page; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
