/* ============================================================
   Kay Construction — Internal Operations System
   Monochrome design system. Echoes the logo: high-contrast
   serif display (Bodoni), grotesque UI (Archivo), mono for
   document codes (IBM Plex Mono). Neutral grays, no color
   chrome — semantic color used sparingly for status only.
   ============================================================ */

:root {
  /* neutrals — slightly cool-neutral, low saturation */
  --ink:        #16181a;
  --ink-soft:   #34383c;
  --muted:      #6c7178;
  --muted-2:    #9aa0a6;
  --line:       #e6e7e6;
  --line-soft:  #eeefee;
  --paper:      #f4f4f2;
  --paper-2:    #fafaf8;
  --card:       #ffffff;
  --sidebar:    #18191b;
  --sidebar-2:  #202224;
  --sidebar-line: #2c2f31;
  --sidebar-text: #c7c9cb;
  --sidebar-muted: #7f8388;

  /* brand sphere gray (from logo) */
  --sphere-1:   #d8d8d6;
  --sphere-2:   #b4b5b3;

  /* semantic — muted, desaturated so chrome stays monochrome */
  --pos:        oklch(0.55 0.07 155);
  --pos-bg:     oklch(0.96 0.02 155);
  --neg:        oklch(0.55 0.13 26);
  --neg-bg:     oklch(0.96 0.03 26);
  --warn:       oklch(0.62 0.10 70);
  --warn-bg:    oklch(0.96 0.04 75);
  --info:       oklch(0.55 0.06 250);
  --info-bg:    oklch(0.96 0.02 250);

  --r-sm: 6px;
  --r:    9px;
  --r-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(20,24,26,0.05), 0 1px 1px rgba(20,24,26,0.04);
  --shadow:    0 2px 8px rgba(20,24,26,0.06), 0 1px 2px rgba(20,24,26,0.05);
  --shadow-lg: 0 18px 50px rgba(20,24,26,0.16), 0 4px 14px rgba(20,24,26,0.08);

  --font-display: "Newsreader", "Georgia", serif;
  --font-ui: "Archivo", -apple-system, system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --sidebar-w: 248px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-ui);
  background: var(--paper);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.005em;
}
button { font-family: inherit; }
a { color: inherit; text-decoration: none; }

.tnum { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--font-mono); }
.serif { font-family: var(--font-display); }

/* ---------- layout ---------- */
.app { display: flex; min-height: 100vh; }
.sidebar {
  width: var(--sidebar-w); flex: 0 0 var(--sidebar-w);
  background: var(--sidebar); color: var(--sidebar-text);
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column;
  border-right: 1px solid #000;
}
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  height: 64px; flex: 0 0 64px; background: var(--paper-2);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px; position: sticky; top: 0; z-index: 30;
}
.content { padding: 32px; max-width: 1320px; width: 100%; margin: 0 auto; }

/* ---------- sidebar brand ---------- */
.brand {
  padding: 24px 22px 20px; border-bottom: 1px solid var(--sidebar-line);
  display: flex; flex-direction: column; gap: 2px;
}
.brand .word {
  font-family: var(--font-display);
  font-weight: 600; font-size: 30px; letter-spacing: 0.22em;
  color: #fff; line-height: 1; padding-left: 0.22em;
}
.brand .sub {
  font-family: var(--font-display); font-style: italic;
  font-size: 11.5px; letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--sidebar-muted); padding-left: 0.3em;
}
.nav { flex: 1; overflow-y: auto; padding: 14px 12px; }
.nav-group-label {
  font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--sidebar-muted); padding: 16px 12px 7px; font-weight: 600;
}
.nav-item {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 12px; border-radius: var(--r-sm);
  color: var(--sidebar-text); font-size: 13.5px; font-weight: 500;
  cursor: pointer; transition: background .12s, color .12s; user-select: none;
  margin-bottom: 1px;
}
.nav-item:hover { background: var(--sidebar-2); color: #fff; }
.nav-item.active { background: #fff; color: var(--ink); font-weight: 600; }
.nav-item.active .nav-ico { opacity: 1; }
.nav-ico { width: 17px; height: 17px; flex: 0 0 17px; opacity: .72; }
.nav-item.active .nav-ico path,
.nav-item.active .nav-ico rect,
.nav-item.active .nav-ico circle,
.nav-item.active .nav-ico line { stroke: var(--ink); }
.nav-badge {
  margin-left: auto; font-size: 10.5px; font-weight: 700; min-width: 18px;
  height: 18px; padding: 0 5px; border-radius: 9px; display: inline-flex;
  align-items: center; justify-content: center;
  background: var(--neg); color: #fff; font-variant-numeric: tabular-nums;
}
.nav-item.active .nav-badge { background: var(--neg); color: #fff; }
.sidebar-foot { padding: 14px 16px; border-top: 1px solid var(--sidebar-line); font-size: 11px; color: var(--sidebar-muted); }

/* ---------- typography ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.page-title { font-family: var(--font-display); font-weight: 600; font-size: 33px; line-height: 1.05; letter-spacing: -0.01em; margin: 0; }
.page-sub { color: var(--muted); font-size: 14px; margin-top: 6px; }
.eyebrow { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
h2.section { font-family: var(--font-display); font-weight: 600; font-size: 20px; margin: 0 0 14px; letter-spacing: -0.01em; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 7px; justify-content: center;
  padding: 9px 15px; border-radius: var(--r-sm); border: 1px solid var(--line);
  background: var(--card); color: var(--ink); font-size: 13px; font-weight: 600;
  cursor: pointer; transition: all .12s; white-space: nowrap; line-height: 1;
}
.btn:hover { border-color: var(--muted-2); background: var(--paper-2); }
.btn.primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.primary:hover { background: #000; border-color: #000; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--line-soft); }
.btn.danger { color: var(--neg); border-color: color-mix(in oklch, var(--neg) 35%, var(--line)); }
.btn.danger:hover { background: var(--neg-bg); }
.btn.sm { padding: 6px 10px; font-size: 12px; }
.btn.icon { padding: 8px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn .ico { width: 15px; height: 15px; }

.linklike { color: var(--ink); font-weight: 600; cursor: pointer; border-bottom: 1px solid var(--line); }
.linklike:hover { border-color: var(--ink); }

/* ---------- cards ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm); }
.card.pad { padding: 22px; }
.card-head { padding: 18px 22px; border-bottom: 1px solid var(--line-soft); display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.card-body { padding: 22px; }

/* KPI */
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 26px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; position: relative; overflow: hidden; }
.kpi .label { font-size: 11.5px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.kpi .val { font-family: var(--font-ui); font-weight: 600; font-size: 29px; margin-top: 10px; line-height: 1.05; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.kpi .val.sm { font-size: 25px; }
.kpi .meta { font-size: 12px; color: var(--muted); margin-top: 8px; }
.kpi .corner { position: absolute; top: 16px; right: 18px; width: 30px; height: 30px; opacity: .14; }
.kpi.accent-neg .val { color: var(--neg); }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
table.tbl th {
  text-align: left; font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted); font-weight: 700; padding: 11px 14px; border-bottom: 1px solid var(--line);
  white-space: nowrap; background: var(--paper-2);
}
table.tbl td { padding: 13px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
table.tbl tr:last-child td { border-bottom: none; }
table.tbl tbody tr { transition: background .1s; }
table.tbl tbody tr.clickable { cursor: pointer; }
table.tbl tbody tr.clickable:hover { background: var(--paper-2); }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.col-code { font-weight: 600; }
.subtle { color: var(--muted); font-size: 12px; }

/* ---------- badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 100px;
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.01em; white-space: nowrap;
  border: 1px solid var(--line); background: var(--paper-2); color: var(--ink-soft);
}
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.pos { color: var(--pos); background: var(--pos-bg); border-color: color-mix(in oklch, var(--pos) 22%, transparent); }
.badge.neg { color: var(--neg); background: var(--neg-bg); border-color: color-mix(in oklch, var(--neg) 22%, transparent); }
.badge.warn { color: var(--warn); background: var(--warn-bg); border-color: color-mix(in oklch, var(--warn) 24%, transparent); }
.badge.info { color: var(--info); background: var(--info-bg); border-color: color-mix(in oklch, var(--info) 22%, transparent); }
.badge.neutral { color: var(--muted); background: var(--paper); }
.badge.ink { color: #fff; background: var(--ink); border-color: var(--ink); }

/* progress bar */
.progress { height: 6px; background: var(--line); border-radius: 100px; overflow: hidden; min-width: 80px; }
.progress > span { display: block; height: 100%; background: var(--ink); border-radius: 100px; }
.progress.warn > span { background: var(--warn); }
.progress.neg > span { background: var(--neg); }

/* budget meter */
.meter { height: 9px; background: var(--line); border-radius: 100px; overflow: hidden; position: relative; }
.meter > span { display: block; height: 100%; background: var(--ink-soft); }
.meter.over > span { background: var(--neg); }
.meter.warn > span { background: var(--warn); }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 12px; font-weight: 600; color: var(--ink-soft); }
.field label .opt { color: var(--muted-2); font-weight: 500; }
.input, .select, textarea.input {
  width: 100%; padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--r-sm);
  font-size: 13.5px; font-family: inherit; background: var(--card); color: var(--ink);
  transition: border-color .12s, box-shadow .12s; outline: none;
}
.input:focus, .select:focus, textarea.input:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(22,24,26,0.07); }
.input.num { text-align: right; font-variant-numeric: tabular-nums; }
textarea.input { resize: vertical; min-height: 72px; line-height: 1.5; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5L6 7.5L9 4.5' stroke='%236c7178' stroke-width='1.4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 11px center; padding-right: 30px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.form-grid .full { grid-column: 1 / -1; }
.input-prefix { position: relative; }
.input-prefix > span { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 13px; pointer-events: none; }
.input-prefix .input { padding-left: 32px; }

/* segmented toggle (language) */
.segmented { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; background: var(--card); }
.segmented button { border: none; background: transparent; padding: 6px 12px; font-size: 12px; font-weight: 600; cursor: pointer; color: var(--muted); }
.segmented button.on { background: var(--ink); color: #fff; }

.toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.search { position: relative; flex: 1; max-width: 320px; }
.search .input { padding-left: 34px; }
.search .ico { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--muted); }
.filters { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.chip { padding: 6px 12px; border-radius: 100px; border: 1px solid var(--line); background: var(--card); font-size: 12px; font-weight: 600; color: var(--muted); cursor: pointer; transition: all .12s; }
.chip:hover { border-color: var(--muted-2); }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- modal ---------- */
.overlay { position: fixed; inset: 0; background: rgba(20,24,26,0.46); backdrop-filter: blur(2px); z-index: 100; display: flex; align-items: flex-start; justify-content: center; padding: 48px 20px; overflow-y: auto; }
.modal { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); width: 100%; max-width: 560px; margin: auto 0; animation: pop .16s ease-out; }
.modal.lg { max-width: 920px; }
.modal.xl { max-width: 1100px; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-head { padding: 20px 24px; border-bottom: 1px solid var(--line-soft); display: flex; align-items: center; justify-content: space-between; }
.modal-title { font-family: var(--font-display); font-size: 21px; font-weight: 600; }
.modal-body { padding: 24px; max-height: 64vh; overflow-y: auto; }
.modal-foot { padding: 16px 24px; border-top: 1px solid var(--line-soft); display: flex; justify-content: flex-end; gap: 10px; }

/* ---------- empty state ---------- */
.empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty .ic { width: 40px; height: 40px; margin: 0 auto 14px; opacity: .4; }
.empty .t { font-family: var(--font-display); font-size: 19px; color: var(--ink-soft); margin-bottom: 4px; }

/* tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.tab { padding: 11px 16px; font-size: 13.5px; font-weight: 600; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color .12s; }
.tab:hover { color: var(--ink); }
.tab.active { color: var(--ink); border-bottom-color: var(--ink); }

/* misc layout helpers */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.row { display: flex; align-items: center; gap: 10px; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.spread { display: flex; justify-content: space-between; gap: 16px; }
.muted { color: var(--muted); }
.tiny { font-size: 11.5px; }
.dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 24px; font-size: 13.5px; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; text-align: right; font-weight: 500; }
.stat-line { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line-soft); font-size: 13.5px; }
.stat-line:last-child { border-bottom: none; }
.stat-line .v { font-weight: 600; font-variant-numeric: tabular-nums; }
.divider { height: 1px; background: var(--line); margin: 22px 0; }

.avatar { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(150deg, var(--sphere-1), var(--sphere-2)); display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 600; color: var(--ink); flex: 0 0 38px; }
.avatar.sm { width: 30px; height: 30px; flex-basis: 30px; font-size: 13px; }

.notice { padding: 12px 16px; border-radius: var(--r-sm); font-size: 13px; display: flex; gap: 10px; align-items: flex-start; }
.notice.warn { background: var(--warn-bg); color: color-mix(in oklch, var(--warn) 75%, #000); }
.notice.info { background: var(--info-bg); color: color-mix(in oklch, var(--info) 70%, #000); }

/* item editor table */
.items-tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.items-tbl th { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); font-weight: 700; text-align: left; padding: 8px 8px; border-bottom: 1px solid var(--line); }
.items-tbl td { padding: 5px 6px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.items-tbl .input { padding: 7px 9px; font-size: 13px; }
.items-tbl .input.cell-amt { background: var(--paper-2); }
.cat-recap { display: flex; flex-direction: column; gap: 6px; }

/* responsive */
.menu-btn { display: none; }
.scrim { position: fixed; inset: 0; background: rgba(20,24,26,0.42); z-index: 55; backdrop-filter: blur(1px); }
@media (max-width: 1100px) { .kpi-grid { grid-template-columns: repeat(2,1fr); } .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 860px) {
  .sidebar { position: fixed; left: -280px; width: 270px; flex-basis: 270px; z-index: 60; transition: left .2s; box-shadow: var(--shadow-lg); }
  .sidebar.open { left: 0; }
  .menu-btn { display: inline-flex; }
  .topbar { padding: 0 16px; }
  .content { padding: 20px 16px; }
  .form-grid, .grid-2 { grid-template-columns: 1fr; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .page-title { font-size: 27px; }
  .modal-body { max-height: 72vh; }
}

/* wide tables → stacked cards on phones */
@media (max-width: 680px) {
  table.tbl thead { display: none; }
  table.tbl, table.tbl tbody { display: block; width: 100%; }
  table.tbl tr { display: block; padding: 13px 15px; border-bottom: none; box-shadow: var(--shadow-sm); border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 10px; background: var(--card); }
  table.tbl tbody tr.clickable:hover { background: var(--card); }
  table.tbl td { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 5px 0; border: none; text-align: right; min-height: 26px; }
  table.tbl td::before { content: attr(data-label); color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; text-align: left; white-space: nowrap; }
  table.tbl td.num { text-align: right; }
  table.tbl td:empty, table.tbl td[data-label=""]:empty { display: none; }
  table.tbl td .col-code { text-align: right; }
  .kpi-grid { grid-template-columns: 1fr; }
  .toolbar { gap: 8px; }
  .search { max-width: none; }
  .page-head { gap: 12px; }
  .print-toolbar { padding: 0 12px; flex-wrap: wrap; height: auto; min-height: 60px; gap: 8px; }
}

/* ============ printable documents ============ */
.print-screen { background: #6b6f72; min-height: 100vh; padding: 0 0 60px; }
.print-toolbar { position: sticky; top: 0; z-index: 20; background: var(--paper-2); border-bottom: 1px solid var(--line); height: 60px; display: flex; align-items: center; justify-content: space-between; padding: 0 24px; }
.paper { background: #fff; width: 210mm; min-height: 297mm; margin: 28px auto; box-shadow: 0 12px 40px rgba(0,0,0,.35); padding: 18mm 16mm; color: #1a1a1a; font-size: 11.5px; line-height: 1.55; position: relative; }
.paper .kop { display: flex; gap: 16px; align-items: flex-start; border-bottom: 2px solid #1a1a1a; padding-bottom: 14px; }
.paper .kop img { width: 64px; height: 64px; object-fit: contain; flex: 0 0 64px; }
.paper .kop .co-name { font-family: var(--font-display); font-size: 24px; letter-spacing: 0.16em; line-height: 1; font-weight: 600; }
.paper .kop .co-legal { font-family: var(--font-display); font-style: italic; font-size: 12px; color: #555; margin-top: 3px; }
.paper .kop .co-meta { font-size: 10px; color: #555; margin-top: 7px; line-height: 1.5; }
.paper .doc-title { font-family: var(--font-display); font-size: 20px; font-weight: 600; letter-spacing: 0.04em; text-align: center; text-transform: uppercase; margin: 22px 0 4px; }
.paper .doc-no { text-align: center; font-family: var(--font-mono); font-size: 11px; color: #333; margin-bottom: 20px; }
.paper .parties { display: flex; justify-content: space-between; gap: 30px; margin-bottom: 18px; }
.paper .parties .lbl { font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.08em; color: #888; margin-bottom: 3px; }
.paper .parties .v { font-weight: 600; }
.paper table.doc-tbl { width: 100%; border-collapse: collapse; margin: 8px 0 14px; font-size: 10.5px; }
.paper table.doc-tbl th { background: #1a1a1a; color: #fff; text-align: left; padding: 7px 8px; font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.04em; font-weight: 600; }
.paper table.doc-tbl th.r, .paper table.doc-tbl td.r { text-align: right; }
.paper table.doc-tbl td { padding: 6px 8px; border-bottom: 1px solid #e2e2e2; vertical-align: top; }
.paper table.doc-tbl tr.cat-row td { background: #f2f2f0; font-weight: 700; font-size: 10px; text-transform: uppercase; letter-spacing: 0.04em; }
.paper .totals { width: 56%; margin-left: auto; }
.paper .totals .line { display: flex; justify-content: space-between; padding: 4px 8px; }
.paper .totals .line.grand { border-top: 2px solid #1a1a1a; margin-top: 4px; padding-top: 8px; font-family: var(--font-display); font-size: 15px; font-weight: 600; }
.paper .terbilang-box { border: 1px solid #1a1a1a; border-left: 4px solid #1a1a1a; padding: 8px 12px; margin: 14px 0; font-family: var(--font-display); font-style: italic; font-size: 12px; }
.paper .sign-row { display: flex; justify-content: space-between; margin-top: 34px; gap: 40px; }
.paper .sign { text-align: center; min-width: 180px; }
.paper .sign .ttd { height: 70px; position: relative; }
.paper .sign .ttd .sign-img { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); max-height: 66px; max-width: 150px; object-fit: contain; }
.paper .sign .ttd .stamp-img { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -52%) rotate(-8deg); max-height: 78px; max-width: 130px; object-fit: contain; opacity: .85; mix-blend-mode: multiply; }
.paper .header-band { width: 100%; max-height: 150px; object-fit: cover; border-radius: 6px; margin: 14px 0 4px; display: block; }
.paper .sign .name { font-weight: 600; border-top: 1px solid #1a1a1a; padding-top: 4px; }
.paper .doc-foot { position: absolute; bottom: 14mm; left: 16mm; right: 16mm; border-top: 1px solid #ccc; padding-top: 8px; font-size: 9px; color: #666; display: flex; justify-content: space-between; gap: 20px; }
.paper .note-block { font-size: 10.5px; color: #444; margin: 10px 0; }
.paper .bank-box { background: #f6f6f4; border: 1px solid #e2e2e2; border-radius: 5px; padding: 10px 14px; font-size: 10.5px; margin: 12px 0; }
.kwit-amount { font-family: var(--font-display); font-size: 22px; font-weight: 700; border: 2px solid #1a1a1a; display: inline-block; padding: 8px 18px; letter-spacing: 0.02em; }
.paper.pdf-capturing { box-shadow: none !important; margin: 0 !important; }
@media (max-width: 820px) { .paper { width: 100%; padding: 24px 16px; min-height: auto; } .paper .doc-foot { position: static; margin-top: 30px; } }

/* ============ print / PDF ============ */
@media print {
  @page { size: A4; margin: 14mm 14mm; }
  body { background: #fff; }
  .no-print, .sidebar, .topbar, .print-toolbar, .print-screen > .print-toolbar { display: none !important; }
  .content { padding: 0; max-width: none; }
  .print-screen { background: #fff !important; padding: 0 !important; }
  .paper { box-shadow: none !important; margin: 0 auto !important; width: auto !important; padding: 0 !important; }
  .print-doc { box-shadow: none !important; border: none !important; }
}
