/* คนของเรา — โครงจากแนว framed sheet: กรอบสีอ่อนรูปตัว L หน้างานเป็นแผ่นขาว สีอยู่บนข้อมูล ไม่อยู่บนโครง
   กริด 12 คอลัมน์ gap 24: 12 ช่อง + 11 × 24 = เต็มความกว้างแผ่นงานพอดี ทุกการ์ดลงขอบเดียวกัน */
@font-face { font-family: "IBM Plex Sans Thai"; src: url(fonts/plex-thai-thai-400.woff2) format("woff2"); font-weight: 400; unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC; font-display: swap; }
@font-face { font-family: "IBM Plex Sans Thai"; src: url(fonts/plex-thai-thai-500.woff2) format("woff2"); font-weight: 500; unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC; font-display: swap; }
@font-face { font-family: "IBM Plex Sans Thai"; src: url(fonts/plex-thai-thai-600.woff2) format("woff2"); font-weight: 600; unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC; font-display: swap; }
@font-face { font-family: "IBM Plex Sans Thai"; src: url(fonts/plex-thai-latin-400.woff2) format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2212; }
@font-face { font-family: "IBM Plex Sans Thai"; src: url(fonts/plex-thai-latin-500.woff2) format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2212; }
@font-face { font-family: "IBM Plex Sans Thai"; src: url(fonts/plex-thai-latin-600.woff2) format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2212; }

:root {
  --ground: #f2f7f5; --surface: #ffffff; --raised: #f3f6f6; --active: #e4ebe9;
  --border: #e6eaea; --rule: #f0f2f2; --control: #cdd2d1;
  --text: #131416; --muted: #55595a; --faint: #666a6b;
  --accent: #14695a; --primary: #15282a; --primary-ink: #ffffff;
  --positive: #1e7b4f; --negative: #c4242a; --warning: #92400e;
  --pill-positive-bg: #dcfae5; --pill-positive-ink: #04250e;
  --pill-negative-bg: #ffedea; --pill-negative-ink: #831c1e;
  --pill-warning-bg: #fffbeb; --pill-warning-ink: #92400e;
  --pill-neutral-bg: #e9edec; --pill-neutral-ink: #353736;
  --radius-card: 8px; --radius-control: 6px; --radius-sheet: 16px; --sheet-inset: 8px;
  --sidebar-width: 228px; --gap: 24px; --pad: 24px; --card-pad: 20px;
  --control-height: 36px; --row-height: 44px;
  --fs-title: 22px; --fs-section: 16px; --fs-kpi: 24px; --fs-lead: 34px; --fs-body: 14px; --fs-small: 12px;
  --font: "IBM Plex Sans Thai", "Leelawadee UI", "Noto Sans Thai", Tahoma, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--text); font: var(--fs-body)/22px var(--font); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
svg { display: block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.num, table, .kpi-value { font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }

/* ---------- โครงหลัก ---------- */
.app { display: grid; grid-template-columns: var(--sidebar-width) minmax(0, 1fr); min-height: 100svh; }
.sidebar { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; padding: 14px 12px; overflow: auto; }
.brand { display: flex; align-items: center; gap: 10px; padding: 2px 8px 2px; }
.brand svg { width: 28px; height: 28px; flex: none; }
.brand-name { font-size: 16px; font-weight: 600; line-height: 20px; }
.brand-co { font-size: var(--fs-small); color: var(--muted); line-height: 16px; display: block; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 400; }
.group-label { margin: 18px 8px 4px; font-size: var(--fs-small); color: var(--muted); }
.nav-item { display: flex; align-items: center; gap: 10px; min-height: 34px; padding: 0 8px; border-radius: 8px; color: var(--muted); transition: background-color 150ms ease, color 150ms ease; }
.nav-item svg { width: 16px; height: 16px; flex: none; }
.nav-item:hover { background: var(--raised); color: var(--text); }
.nav-item[aria-current="page"] { background: var(--active); color: var(--text); font-weight: 500; }
.nav-item .count { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--negative); color: #fff; font-size: var(--fs-small); line-height: 20px; text-align: center; font-weight: 500; font-variant-numeric: tabular-nums; }
.side-bottom { margin-top: auto; padding-top: 16px; display: grid; gap: 6px; }
.side-bottom label { font-size: var(--fs-small); color: var(--muted); padding: 0 8px; }
.viewas { width: 100%; height: 36px; padding: 0 8px; border: 1px solid var(--control); border-radius: var(--radius-control); background: var(--surface); }
.main { min-width: 0; padding: var(--sheet-inset) var(--sheet-inset) var(--sheet-inset) 0; display: flex; flex-direction: column; }
.sheet { flex: 1; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sheet); min-width: 0; display: flex; flex-direction: column; }
.canvas { padding: var(--pad); min-width: 0; flex: 1; }
.topbar { display: none; }
.banner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 8px var(--pad); background: var(--pill-warning-bg); color: var(--pill-warning-ink); font-size: var(--fs-small); border-bottom: 1px solid #fde68a; border-radius: var(--radius-sheet) var(--radius-sheet) 0 0; }
.banner .btn { height: 28px; font-size: var(--fs-small); }
.banner.solid { border-radius: 0; }

/* ---------- หัวเรื่อง ---------- */
.title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.title-row h1 { font-size: var(--fs-title); line-height: 30px; font-weight: 600; }
.title-row .sub { margin-top: 2px; color: var(--muted); max-width: 72ch; }
.title-row .sub.alert { color: var(--negative); }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.crumb { color: var(--muted); }
.crumb:hover { text-decoration: underline; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 16px; }
.toolbar .spacer { flex: 1; }
.toolbar .meta { color: var(--muted); font-size: var(--fs-small); }

/* ---------- การ์ดและกริด ---------- */
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: start; }
.grid.stretch { align-items: stretch; }
.c3 { grid-column: span 3; } .c4 { grid-column: span 4; } .c5 { grid-column: span 5; } .c6 { grid-column: span 6; } .c7 { grid-column: span 7; } .c8 { grid-column: span 8; } .c12 { grid-column: span 12; }
.stack { display: grid; gap: var(--gap); align-content: start; min-width: 0; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: var(--card-pad); min-width: 0; }
.panel > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.panel h2 { font-size: var(--fs-section); line-height: 24px; font-weight: 600; }
.panel .meta, .meta { color: var(--muted); font-size: var(--fs-small); }
.muted { color: var(--muted); }
.neg { color: var(--negative); }
.small { font-size: var(--fs-small); }
.card-link { display: inline-flex; padding: 0; border: 0; background: none; font-weight: 500; cursor: pointer; text-underline-offset: 3px; }
.card-link:hover { text-decoration: underline; }
.lead-value { font-size: var(--fs-lead); line-height: 42px; font-weight: 500; font-variant-numeric: tabular-nums; }
.lead-value small { font-size: 16px; color: var(--muted); font-weight: 400; margin-left: 4px; }
.kpis { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); border: 1px solid var(--border); border-radius: var(--radius-card); margin-bottom: var(--gap); }
.kpi { padding: 14px var(--card-pad); min-width: 0; }
.kpi + .kpi { border-left: 1px solid var(--border); }
.kpi-label { color: var(--muted); }
.kpi-value { margin-top: 2px; font-size: var(--fs-kpi); line-height: 32px; font-weight: 400; }
.kpi-value small { font-size: 13px; color: var(--muted); margin-left: 2px; }

/* เส้นเตรียมจ่ายเงินเดือน: ลายเซ็นของระบบนี้ */
.ready-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.ready-row { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; min-height: 44px; border-top: 1px solid var(--rule); }
.ready-mark { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--control); }
.ready-row.ok .ready-mark { background: var(--accent); border-color: var(--accent); }
.ready-row.block .ready-mark { border-color: var(--negative); }
.ready-row.watch .ready-mark { border-color: var(--warning); }
.ready-count { font-variant-numeric: tabular-nums; font-weight: 500; text-align: right; min-width: 32px; }
.ready-row .card-link { min-width: 40px; justify-content: flex-end; }

/* รายการ */
.rows { display: grid; }
.row { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 8px 0; min-width: 0; }
.row + .row { border-top: 1px solid var(--rule); }
.row .grow { flex: 1; min-width: 0; }
.row .title { display: block; }
.row .sub { display: block; font-size: var(--fs-small); color: var(--muted); line-height: 18px; }
.row .right { text-align: right; font-variant-numeric: tabular-nums; flex: none; }
.avatar { width: 28px; height: 28px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 12px; font-weight: 500; color: #243; }
.bar { height: 8px; border-radius: 4px; background: var(--accent); }
.bar-track { height: 8px; border-radius: 4px; background: var(--raised); overflow: hidden; }
.bar-row { display: grid; gap: 4px; padding: 8px 0; }
.bar-row .line { display: flex; justify-content: space-between; gap: 8px; }

/* ตาราง */
.table-wrap { overflow-x: auto; min-width: 0; }
table { width: 100%; border-collapse: collapse; }
th { height: 36px; padding: 0 12px; text-align: left; font-weight: 400; font-size: var(--fs-small); color: var(--muted); border-bottom: 1px solid var(--border); white-space: nowrap; }
td { padding: 11px 12px; border-bottom: 1px solid var(--rule); vertical-align: baseline; }
tbody tr:last-child td { border-bottom: 0; }
tfoot td { border-top: 1px solid var(--border); border-bottom: 0; font-weight: 500; }
th:first-child, td:first-child { padding-left: 0; }
th:last-child, td:last-child { padding-right: 0; }
th.n, td.n { text-align: right; white-space: nowrap; }
td .sub { display: block; font-size: var(--fs-small); color: var(--muted); line-height: 18px; }
td.nowrap { white-space: nowrap; }
.link-cell { background: none; border: 0; padding: 0; font-weight: 500; cursor: pointer; text-align: left; }
.link-cell:hover { text-decoration: underline; text-underline-offset: 3px; }
.pill { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px; font-size: var(--fs-small); font-weight: 500; background: var(--pill-neutral-bg); color: var(--pill-neutral-ink); white-space: nowrap; flex: none; }
.pill.pos { background: var(--pill-positive-bg); color: var(--pill-positive-ink); }
.pill.neg { background: var(--pill-negative-bg); color: var(--pill-negative-ink); }
.pill.warn { background: var(--pill-warning-bg); color: var(--pill-warning-ink); }

/* ตารางกะ */
.roster-wrap { overflow: auto; border: 1px solid var(--border); border-radius: var(--radius-card); }
.roster { min-width: 840px; }
.roster th, .roster td { padding: 6px 6px; text-align: center; border-bottom: 1px solid var(--rule); }
.roster th:first-child, .roster td:first-child { position: sticky; left: 0; background: var(--surface); text-align: left; padding-left: 12px; min-width: 170px; z-index: 1; }
.roster th.today { color: var(--text); font-weight: 600; box-shadow: inset 0 -2px 0 var(--accent); }
.roster td.weekend, .roster th.weekend { background: var(--raised); }
.roster .dept-row td { background: var(--raised); font-weight: 500; text-align: left; font-size: var(--fs-small); color: var(--muted); }
.roster .cell-select { width: 100%; min-width: 74px; height: 32px; padding: 0 4px; border: 1px solid var(--border); border-radius: var(--radius-control); background: var(--surface); font-size: 13px; }
.roster .cell-select.off { background: var(--raised); color: var(--muted); }
.roster .cell-text { font-size: 13px; }
.roster .cell-text.off { color: var(--muted); }
.roster .leave-mark { display: block; font-size: 11px; line-height: 15px; color: var(--pill-warning-ink); }
.cover { font-variant-numeric: tabular-nums; font-size: 13px; display: inline-block; min-width: 40px; padding: 1px 6px; border-radius: 4px; }
.cover.tight { background: var(--pill-warning-bg); color: var(--pill-warning-ink); }
.cover.short { background: var(--negative); color: #fff; font-weight: 500; }

/* ใครไม่อยู่ */
.away { display: grid; grid-template-columns: minmax(96px, 150px) repeat(7, minmax(0, 1fr)); gap: 0; }
.away > div { min-height: 30px; display: flex; align-items: center; justify-content: center; font-size: var(--fs-small); border-top: 1px solid var(--rule); }
.away > div.name { justify-content: flex-start; font-size: var(--fs-body); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.away > div.head { border-top: 0; color: var(--muted); min-height: 26px; }
.away > div.head.today { color: var(--text); font-weight: 600; }
.away .mark { display: block; width: calc(100% - 4px); height: 20px; border-radius: 4px; background: #d5e6e1; text-align: center; line-height: 20px; font-size: 11px; color: #123; }
.away .mark.pending { background: none; border: 1px dashed var(--muted); line-height: 18px; }
.away .mark.sick { background: #eef1f0 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='6'%3E%3Cpath d='M-1 7 7-1M-1 1l2-2M5 7l2-2' stroke='%23aab3b0'/%3E%3C/svg%3E"); }

/* ปุ่มและฟอร์ม */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: var(--control-height); padding: 0 12px; border-radius: var(--radius-control); border: 1px solid var(--control); background: var(--surface); font-weight: 500; cursor: pointer; white-space: nowrap; transition: background-color 150ms ease, transform 120ms ease; }
.btn:hover { background: var(--raised); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--primary); color: var(--primary-ink); border-color: transparent; }
.btn.primary:hover { background: #26393b; }
.btn.danger { color: var(--negative); border-color: #e7b6b8; }
.btn.small { height: 30px; font-size: 13px; padding: 0 10px; }
.btn[disabled] { opacity: 1; background: var(--raised); color: var(--muted); cursor: not-allowed; }
.input { height: 38px; width: 100%; padding: 0 10px; border: 1px solid var(--control); border-radius: var(--radius-control); background: var(--surface); }
.input.compact { height: var(--control-height); width: auto; }
textarea.input { height: auto; min-height: 76px; padding: 8px 10px; resize: vertical; }
.input::placeholder { color: var(--faint); }
.field { display: grid; gap: 6px; min-width: 0; }
.field > label, .field > .label { font-weight: 500; }
.field .hint { color: var(--muted); font-size: var(--fs-small); line-height: 18px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.form-grid .full { grid-column: 1 / -1; }
.check { display: flex; align-items: center; gap: 8px; min-height: 28px; }
.check input { width: 18px; height: 18px; accent-color: var(--primary); }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 2px 12px; }
.form-error { color: var(--pill-negative-ink); background: var(--pill-negative-bg); padding: 8px 12px; border-radius: var(--radius-control); }
.form-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--border); margin-bottom: 20px; overflow-x: auto; scrollbar-width: none; }
.tabs a { position: relative; flex: none; padding: 8px 0; color: var(--muted); }
.tabs a[aria-selected="true"] { color: var(--text); font-weight: 500; }
.tabs a[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent); }
dialog { border: 1px solid var(--border); border-radius: 12px; padding: 0; width: min(620px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); color: var(--text); box-shadow: 0 12px 36px rgba(0, 0, 0, .16); }
dialog::backdrop { background: rgba(10, 20, 20, .35); }
.dlg { padding: 20px; }
.dlg h2 { font-size: 18px; line-height: 26px; font-weight: 600; margin-bottom: 14px; }
.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--primary); color: #fff; padding: 8px 14px; border-radius: var(--radius-control); max-width: calc(100vw - 32px); z-index: 1000; box-shadow: 0 6px 20px rgba(0, 0, 0, .18); }
.empty { display: grid; place-items: center; min-height: 72px; padding: 14px; border: 1px dashed var(--control); border-radius: var(--radius-card); color: var(--muted); text-align: center; }

/* ลงเวลา */
.clock-time { font-size: var(--fs-lead); line-height: 42px; font-weight: 500; font-variant-numeric: tabular-nums; }
.clock-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.clock-actions .btn { height: 44px; padding: 0 20px; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; margin-top: 14px; }
.facts dt { color: var(--muted); font-size: var(--fs-small); }
.facts dd { font-variant-numeric: tabular-nums; }
.steps { display: grid; gap: 8px; }
.step { display: grid; grid-template-columns: 20px 1fr; gap: 8px; }
.step-dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 6px; border: 2px solid var(--control); }
.step.approved .step-dot { background: var(--accent); border-color: var(--accent); }
.step.rejected .step-dot { background: var(--negative); border-color: var(--negative); }
.step.current .step-dot { border-color: var(--text); }

/* สลิป */
.slip-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.slip-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.slip-line { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px solid var(--rule); }
.slip-line span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }
.slip-line.total { font-weight: 600; border-bottom: 0; border-top: 1px solid var(--border); margin-top: 4px; }
.slip-net { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 14px; padding-top: 12px; border-top: 2px solid var(--text); font-weight: 500; }
.slip-net strong { font-size: 24px; font-weight: 500; font-variant-numeric: tabular-nums; }
.notice { padding: 8px 12px; background: var(--pill-warning-bg); color: var(--pill-warning-ink); border: 1px solid #fde68a; border-radius: var(--radius-control); font-size: var(--fs-small); line-height: 18px; margin-bottom: 16px; }

/* จอแคบ: เมนูพับเป็นแผ่นเต็มจอ ไม่มีกรอบ */
@media (max-width: 1100px) {
  .c3, .c4, .c5, .c6, .c7, .c8 { grid-column: span 12; }
}
@media (max-width: 860px) {
  :root { --gap: 16px; }
  .app { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 30; background: var(--surface); transform: translateX(-100%); visibility: hidden; transition: transform 200ms ease, visibility 200ms; }
  .sidebar.open { transform: none; visibility: visible; }
  .nav-item { min-height: 44px; }
  .main { padding: 0; }
  .sheet { border: 0; border-radius: 0; }
  .banner { border-radius: 0; padding: 8px 16px; }
  .canvas { padding: 16px; }
  .topbar { display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 8px; background: var(--ground); position: sticky; top: 0; z-index: 10; }
  .topbar .topbar-name { font-weight: 600; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: none; cursor: pointer; }
  .icon-btn svg { width: 22px; height: 22px; }
  .kpis { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi + .kpi { border-left: 0; }
  .kpi:nth-child(n + 3) { border-top: 1px solid var(--border); }
  .kpi:nth-child(2n) { border-left: 1px solid var(--border); }
  .kpi:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .btn, .input.compact { min-height: 40px; }
  .btn.small { min-height: 36px; }
  .slip-cols { grid-template-columns: minmax(0, 1fr); gap: 12px; }
}
/* ตารางบนจอแคบกลายเป็นรายการสองคอลัมน์ ไม่มีช่องไหนหาย และหน้าไม่เลื่อนแนวนอน */
@media (max-width: 640px) {
  .table-wrap { overflow: visible; }
  .table-wrap table, .table-wrap tbody, .table-wrap tfoot, .table-wrap tr { display: block; width: 100%; }
  .table-wrap thead { display: none; }
  .table-wrap tr { padding: 10px 0; border-bottom: 1px solid var(--rule); }
  .table-wrap tbody tr:last-child { border-bottom: 0; }
  .table-wrap tfoot tr { border-top: 1px solid var(--border); border-bottom: 0; }
  .table-wrap td, .table-wrap tfoot td { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 3px 0; border: 0; text-align: right; white-space: normal; min-width: 0; }
  .table-wrap td::before { content: attr(data-label); flex: none; max-width: 45%; color: var(--muted); font-size: var(--fs-small); text-align: left; font-weight: 400; }
  .table-wrap td:first-child { justify-content: flex-start; text-align: left; font-weight: 500; padding-bottom: 5px; }
  .table-wrap td:first-child::before { content: none; }
  .table-wrap td:empty { display: none; }
  .table-wrap td .sub { font-weight: 400; }
}
@media (min-width: 861px) { .close-menu { display: none !important; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; } }

/* พิมพ์: เหลือเฉพาะเนื้อหา */
@media print {
  body { background: #fff; }
  .sidebar, .topbar, .banner, .no-print, .toast, .tabs { display: none !important; }
  .app { display: block; }
  .main { padding: 0; }
  .sheet { border: 0; }
  .canvas { padding: 0; }
  .table-wrap { overflow: visible; }
  dialog { position: static; display: block; width: 100%; max-height: none; border: 0; border-radius: 0; box-shadow: none; }
  dialog::backdrop { background: none; }
  body.printing-dialog .app { display: none; }
}

/* เข้าสู่ระบบและบัญชี */
.auth { min-height: 100svh; display: grid; place-items: center; padding: 16px; }
.auth-card { width: min(420px, 100%); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sheet); padding: 28px; }
.auth-card h1 { font-size: var(--fs-title); line-height: 30px; font-weight: 600; margin-bottom: 14px; }
.auth-card .form-error { line-height: 20px; }
.user-row { display: grid; padding: 0 8px; }
.user-name { font-weight: 500; }
.side-bottom .actions { padding: 0 8px; }
.acct { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.secret { font-weight: 600; letter-spacing: .02em; user-select: all; }
