/* BSZ SURGICO ERP - theme replicated from the reference system: blue sidebar, soft raised grey tiles, Poppins */
@font-face { font-family: 'Poppins'; font-weight: 300; font-style: normal; font-display: swap; src: url('../fonts/poppins-latin-300-normal.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 400; font-style: normal; font-display: swap; src: url('../fonts/poppins-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 500; font-style: normal; font-display: swap; src: url('../fonts/poppins-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 600; font-style: normal; font-display: swap; src: url('../fonts/poppins-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 700; font-style: normal; font-display: swap; src: url('../fonts/poppins-latin-700-normal.woff2') format('woff2'); }

:root {
  --side-top: #3d64b2;
  --side-bottom: #2c4f96;
  --side-text: rgba(255, 255, 255, .92);
  --side-muted: rgba(255, 255, 255, .62);
  --side-active-bg: rgba(10, 25, 70, .22);
  --navy: #1c2a55;
  --chip: #35488c;
  --bg: #eef0f3;
  --tile: #e3e5e8;
  --card: #ffffff;
  --text: #2a313d;
  --muted: #697384;
  --line: #dadee4;
  --head-bg: #e9edf5;
  --accent: #f2c200;
  --primary: #34489a;
  --primary-hover: #2b3d85;
  --danger: #c0392b;
  --ok: #1d8a4a;
  --warn: #b7791f;
  --shadow-out: 7px 7px 15px rgba(158, 166, 180, .42), -7px -7px 15px rgba(255, 255, 255, .95);
  --shadow-out-sm: 4px 4px 9px rgba(158, 166, 180, .38), -4px -4px 9px rgba(255, 255, 255, .9);
  --shadow-card: 0 1px 2px rgba(30, 40, 70, .06), 0 6px 20px rgba(30, 40, 70, .06);
  --side-w: 248px;
  --top-h: 64px;
  --radius: 14px;
}
[data-theme='dark'] {
  --bg: #161a24;
  --tile: #1f2431;
  --card: #1c212d;
  --text: #e4e8f0;
  --muted: #98a1b3;
  --line: #2c3342;
  --head-bg: #242a39;
  --navy: #c9d4f5;
  --primary: #5d78d6;
  --primary-hover: #7088e0;
  --shadow-out: 6px 6px 14px rgba(0, 0, 0, .45), -6px -6px 14px rgba(255, 255, 255, .035);
  --shadow-out-sm: 4px 4px 9px rgba(0, 0, 0, .4), -3px -3px 8px rgba(255, 255, 255, .03);
  --shadow-card: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 20px rgba(0, 0, 0, .25);
  --side-top: #25376b;
  --side-bottom: #1b2850;
}
[data-sidebar='navy'] { --side-top: #25346a; --side-bottom: #18234d; }
[data-sidebar='teal'] { --side-top: #1f7a86; --side-bottom: #155c66; }
[data-sidebar='charcoal'] { --side-top: #3a4150; --side-bottom: #262b36; }
[data-tiles='flat'] { --shadow-out: none; --shadow-out-sm: none; }
[data-tiles='flat'] .tile { border: 1px solid var(--line); }

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; font-size: 13px; color: var(--text);
  background: var(--bg); -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; }
svg.i { width: 1em; height: 1em; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.hidden { display: none !important; }

/* ---------------------------------------------------------------- shell */
#app { display: flex; min-height: 100vh; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--side-w); z-index: 40; display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--side-top), var(--side-bottom)); color: var(--side-text); transition: transform .25s, width .25s;
}
.side-logo { height: var(--top-h); background: #ffffff; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid #d9dce2; flex: none; }
.side-logo svg, .side-logo img { max-height: 54px; max-width: 180px; object-fit: contain; }
.side-scroll { flex: 1; overflow-y: auto; padding: 8px 0 24px; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .3) transparent; }
.menu-label { padding: 12px 22px 6px; font-size: 10px; letter-spacing: .12em; color: var(--side-muted); font-weight: 500; }
.nav-item, .nav-link {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 20px; border: 0; background: transparent; color: var(--side-text);
  font-size: 12.5px; text-align: left; cursor: pointer; text-decoration: none; position: relative;
}
.nav-item:hover, .nav-link:hover { background: rgba(255, 255, 255, .08); text-decoration: none; }
.nav-item .i { font-size: 17px; }
.nav-item .chev { margin-left: auto; font-size: 14px; transition: transform .2s; opacity: .85; }
.nav-item.open { font-weight: 600; background: var(--side-active-bg); color: #fff; }
.nav-item.open .chev { transform: rotate(90deg); }
.nav-sub { max-height: 0; overflow: hidden; opacity: 0; background: rgba(8, 20, 60, .12); transition: max-height .35s ease, opacity .25s ease, padding .25s ease; }
.nav-sub.open { max-height: 1400px; opacity: 1; padding: 4px 0; }
.nav-sub a, .nav-sub button.sub-btn {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 20px 7px 50px; font-size: 11.5px; color: var(--side-text); background: transparent; border: 0; cursor: pointer; text-align: left;
}
.nav-sub a::before, .nav-sub button.sub-btn::before { content: ''; width: 5px; height: 1.5px; background: var(--side-muted); flex: none; }
.nav-sub a:hover, .nav-sub button.sub-btn:hover { background: rgba(255, 255, 255, .08); text-decoration: none; }
.nav-sub a.active { font-weight: 700; color: #fff; }
.nav-sub a.active::before { background: #fff; width: 7px; height: 2px; }
.nav-sub .sub-sep { height: 1px; background: rgba(255, 255, 255, .18); margin: 5px 20px 5px 50px; }
.nav-sub .nav-sub { background: rgba(8, 20, 60, .1); }
.nav-sub .nav-sub a { padding-left: 66px; }
.nav-link.active { font-weight: 700; background: var(--side-active-bg); color: #fff; }

.main { flex: 1; margin-left: var(--side-w); display: flex; flex-direction: column; min-width: 0; transition: margin .25s; }
body.side-collapsed .sidebar { transform: translateX(-100%); }
body.side-collapsed .main { margin-left: 0; }
.topbar {
  position: sticky; top: 0; z-index: 30; height: var(--top-h); display: flex; align-items: center; gap: 10px; padding: 0 22px 0 18px;
  background: var(--bg); border-bottom: 1px solid transparent;
}
.icon-btn { width: 36px; height: 36px; border-radius: 10px; border: 0; background: transparent; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; font-size: 18px; position: relative; }
.icon-btn:hover { background: rgba(120, 130, 150, .15); color: var(--text); }
.icon-btn .badge-dot { position: absolute; top: 6px; right: 6px; width: 8px; height: 8px; border-radius: 50%; background: #3b82f6; border: 2px solid var(--bg); }
.top-spacer { flex: 1; }
.top-title { font-size: 12px; color: var(--muted); }
.user-chip { display: flex; align-items: center; gap: 10px; background: var(--chip); color: #fff; padding: 6px 14px 6px 8px; border-radius: 5px; border: 0; cursor: pointer; min-width: 150px; }
.user-chip .av { width: 30px; height: 30px; border-radius: 50%; background: #fff; color: var(--chip); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; }
.user-chip .nm { font-size: 11.5px; font-weight: 600; line-height: 1.2; text-align: left; text-transform: uppercase; letter-spacing: .02em; }
.user-chip .rl { font-size: 10px; opacity: .8; text-align: left; }
.user-menu { position: absolute; right: 22px; top: calc(var(--top-h) - 6px); background: var(--card); border-radius: 10px; box-shadow: var(--shadow-card); border: 1px solid var(--line); min-width: 190px; padding: 6px; z-index: 60; }
.user-menu button { display: flex; width: 100%; gap: 10px; align-items: center; padding: 9px 12px; border: 0; background: transparent; color: var(--text); border-radius: 8px; cursor: pointer; font-size: 12.5px; }
.user-menu button:hover { background: var(--head-bg); }
#view { flex: 1; padding: 6px 26px 26px; min-width: 0; }
.footer { display: flex; justify-content: space-between; padding: 12px 26px; font-size: 10.5px; color: var(--muted); }
.gear {
  position: fixed; right: 0; top: 140px; z-index: 35; width: 36px; height: 38px; border: 0; background: var(--accent); color: #1a1a1a;
  border-radius: 8px 0 0 8px; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 20px; box-shadow: 0 2px 10px rgba(0, 0, 0, .18);
}
.gear svg { animation: spin 7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------------- home tiles */
.sec-head { display: flex; align-items: center; margin: 22px 0 14px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.sec-head h2 { margin: 0; font-size: 14.5px; font-weight: 500; color: var(--muted); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(138px, 1fr)); gap: 20px 18px; }
.tile {
  background: var(--tile); border-radius: var(--radius); box-shadow: var(--shadow-out-sm); height: 98px; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 11px; color: var(--text); border: 0; cursor: pointer; text-decoration: none; transition: transform .12s, box-shadow .12s; padding: 6px;
}
.tile { position: relative; overflow: hidden; transition: transform .22s cubic-bezier(.2, .8, .2, 1), box-shadow .22s, background .25s, color .2s; }
.tile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, #4a73bb 0%, #2c4f96 100%); opacity: 0; transition: opacity .25s; z-index: 0; }
.tile > * { position: relative; z-index: 1; }
.tile:hover, .tile:focus-visible { transform: translateY(-6px) scale(1.04); text-decoration: none; box-shadow: 0 16px 30px rgba(44, 79, 150, .38); color: #fff; outline: none; }
.tile:hover::after, .tile:focus-visible::after { opacity: 1; }
.tile:active { transform: translateY(-2px) scale(.98); }
.tile .i { font-size: 30px; color: var(--navy); stroke-width: 1.5; transition: color .2s, transform .3s; }
.tile:hover .i, .tile:focus-visible .i { color: #fff; animation: tileIcon .55s ease; }
.tile span { font-size: 10.5px; font-weight: 500; text-align: center; line-height: 1.25; }
@keyframes tileIcon { 0% { transform: scale(1) rotate(0); } 35% { transform: scale(1.28) rotate(-8deg); } 70% { transform: scale(1.12) rotate(6deg); } 100% { transform: scale(1.18) rotate(0); } }
.kpi { transition: transform .2s, box-shadow .2s; }
.kpi:hover { transform: translateY(-3px); box-shadow: var(--shadow-out); }
@media (prefers-reduced-motion: reduce) { .tile, .tile .i, .nav-sub { transition: none; animation: none !important; } .tile:hover .i { animation: none; } }

/* ---------------------------------------------------------------- page chrome */
.page-head { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 14px 0 12px; }
.page-head h1 { margin: 0; font-size: 18px; font-weight: 600; color: var(--text); }
.crumbs { font-size: 11px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.page-actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-card); }
.card.pad { padding: 18px 20px; }

.btn {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 15px; font-size: 12.5px; font-weight: 500; border-radius: 9px; border: 1px solid var(--line);
  background: var(--card); color: var(--text); cursor: pointer; transition: background .15s, border-color .15s; text-decoration: none; white-space: nowrap;
}
.btn:hover { background: var(--head-bg); text-decoration: none; }
.btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn.primary:hover { background: var(--primary-hover); }
.btn.danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, var(--line)); }
.btn.danger:hover { background: color-mix(in srgb, var(--danger) 10%, var(--card)); }
.btn.sm { padding: 5px 10px; font-size: 11.5px; border-radius: 7px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* ---------------------------------------------------------------- forms */
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px 18px; }
.field label { display: block; font-size: 11px; font-weight: 500; color: var(--muted); margin-bottom: 5px; }
.field label .req { color: var(--danger); }
.field .help { font-size: 10.5px; color: var(--muted); margin-top: 3px; }
.field.wide { grid-column: 1 / -1; }
input[type='text'], input[type='number'], input[type='date'], input[type='month'], input[type='time'], input[type='email'], input[type='password'], input[type='search'], select, textarea {
  width: 100%; padding: 8px 11px; font: inherit; font-size: 12.5px; color: var(--text); background: var(--card); border: 1px solid var(--line); border-radius: 8px; outline: none; transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent); }
input[readonly], input:disabled, select:disabled, textarea:disabled { background: var(--head-bg); color: var(--muted); }
input.num { text-align: right; font-variant-numeric: tabular-nums; }
textarea { min-height: 62px; resize: vertical; }
.field.err input, .field.err select, .field.err textarea { border-color: var(--danger); }
.switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 12.5px; padding-top: 6px; }
.switch input { width: 16px; height: 16px; accent-color: var(--primary); }
.combo { position: relative; }
.combo .menu { position: absolute; left: 0; right: 0; top: calc(100% + 3px); z-index: 80; background: var(--card); border: 1px solid var(--line); border-radius: 9px; box-shadow: var(--shadow-card); max-height: 240px; overflow: auto; min-width: 220px; }
.combo .menu div { padding: 8px 11px; font-size: 12.5px; cursor: pointer; }
.combo .menu div.act, .combo .menu div:hover { background: var(--head-bg); }
.combo .menu .none { color: var(--muted); cursor: default; }
.combo .clear { position: absolute; right: 8px; top: 8px; border: 0; background: transparent; color: var(--muted); cursor: pointer; display: none; }
.combo.has .clear { display: block; }
.form-errors { background: color-mix(in srgb, var(--danger) 10%, var(--card)); border: 1px solid color-mix(in srgb, var(--danger) 45%, var(--line)); color: var(--danger); padding: 10px 14px; border-radius: 9px; margin-bottom: 14px; font-size: 12.5px; }
.form-foot { display: flex; gap: 10px; align-items: center; margin-top: 18px; flex-wrap: wrap; }
.form-foot .grow { flex: 1; }

/* ---------------------------------------------------------------- tables */
.table-wrap { overflow-x: auto; border-radius: var(--radius); }
table.t { width: 100%; border-collapse: collapse; font-size: 12.5px; }
table.t th { background: var(--head-bg); color: var(--navy); text-align: left; font-weight: 600; font-size: 11.5px; padding: 10px 12px; white-space: nowrap; border-bottom: 1px solid var(--line); position: sticky; top: 0; }
table.t th.sortable { cursor: pointer; user-select: none; }
table.t td { padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.t tr:hover td { background: color-mix(in srgb, var(--head-bg) 55%, transparent); }
table.t td.nw { white-space: nowrap; }
table.t td.r, table.t th.r { text-align: right; font-variant-numeric: tabular-nums; }
table.t td.c, table.t th.c { text-align: center; }
table.t tr.bold td { font-weight: 600; background: color-mix(in srgb, var(--head-bg) 60%, transparent); }
table.t tr.total td { font-weight: 700; border-top: 2px solid var(--line); }
table.t tfoot td { font-weight: 700; background: var(--head-bg); }
table.t td.act { white-space: nowrap; text-align: right; width: 1%; }
.row-click { cursor: pointer; }
.empty { padding: 36px 16px; text-align: center; color: var(--muted); }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.toolbar .search { position: relative; }
.toolbar .search input { padding-left: 32px; width: 240px; }
.toolbar .search .i { position: absolute; left: 10px; top: 10px; color: var(--muted); font-size: 14px; }
.toolbar .grow { flex: 1; }
.pager { display: flex; gap: 8px; align-items: center; padding: 12px 16px; font-size: 12px; color: var(--muted); }
.pager .grow { flex: 1; }
.badge { display: inline-block; padding: 2px 9px; border-radius: 20px; font-size: 10.5px; font-weight: 600; background: var(--head-bg); color: var(--muted); white-space: nowrap; }
.badge.ok { background: color-mix(in srgb, var(--ok) 15%, var(--card)); color: var(--ok); }
.badge.warn { background: color-mix(in srgb, var(--warn) 17%, var(--card)); color: var(--warn); }
.badge.bad { background: color-mix(in srgb, var(--danger) 14%, var(--card)); color: var(--danger); }
.badge.info { background: color-mix(in srgb, var(--primary) 14%, var(--card)); color: var(--primary); }
.progress { width: 110px; height: 8px; border-radius: 6px; background: var(--head-bg); overflow: hidden; display: inline-block; vertical-align: middle; }
.progress i { display: block; height: 100%; background: var(--primary); }

/* line items */
.lines { margin-top: 20px; }
.lines h3 { font-size: 13px; margin: 0 0 8px; font-weight: 600; }
.lines table.t td { padding: 6px 6px; }
.lines table.t td input, .lines table.t td select { padding: 6px 8px; }
.lines .rm { color: var(--danger); }
.totals-box { margin-left: auto; width: min(340px, 100%); margin-top: 14px; }
.totals-box div { display: flex; justify-content: space-between; padding: 5px 0; font-size: 12.5px; }
.totals-box .grand { border-top: 2px solid var(--line); font-weight: 700; font-size: 14px; margin-top: 4px; padding-top: 8px; }

/* ---------------------------------------------------------------- dashboards */
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; margin-bottom: 18px; }
.kpi { background: var(--tile); border-radius: var(--radius); box-shadow: var(--shadow-out-sm); padding: 16px 18px; }
.kpi .l { font-size: 11px; color: var(--muted); font-weight: 500; }
.kpi .v { font-size: 22px; font-weight: 600; color: var(--navy); margin-top: 6px; font-variant-numeric: tabular-nums; }
.kpi.warn .v { color: var(--danger); }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 18px; }
.chart svg { width: 100%; height: auto; display: block; }
.chart h3, .card h3 { margin: 0 0 10px; font-size: 13px; font-weight: 600; }
.legend { display: flex; gap: 14px; font-size: 11px; color: var(--muted); margin-top: 6px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; }
.summary { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 10px 16px; border-bottom: 1px solid var(--line); font-size: 12px; }
.summary b { font-weight: 600; }
.note { padding: 10px 16px; font-size: 12px; color: var(--muted); }
.params { display: flex; flex-wrap: wrap; gap: 12px 14px; align-items: flex-end; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.params .field { min-width: 150px; }

/* ---------------------------------------------------------------- overlays */
.toast-host { position: fixed; right: 18px; bottom: 18px; z-index: 200; display: flex; flex-direction: column; gap: 8px; }
.toast { background: #222b3e; color: #fff; padding: 11px 16px; border-radius: 10px; font-size: 12.5px; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); max-width: 380px; }
.toast.err { background: #a8322a; }
.toast.ok { background: #1d7a43; }
.modal-back { position: fixed; inset: 0; background: rgba(15, 20, 35, .5); z-index: 150; display: flex; align-items: flex-start; justify-content: center; padding: 8vh 16px; overflow: auto; }
.modal { background: var(--card); border-radius: 14px; width: min(520px, 100%); padding: 20px 22px; box-shadow: 0 20px 60px rgba(0, 0, 0, .3); }
.modal h3 { margin: 0 0 12px; font-size: 15px; }
.modal .foot { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }
.drawer-back { position: fixed; inset: 0; background: rgba(15, 20, 35, .35); z-index: 90; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 320px; background: var(--card); z-index: 95; box-shadow: -10px 0 40px rgba(0, 0, 0, .2); padding: 20px; overflow: auto; }
.drawer h3 { margin: 0 0 16px; }
.drawer .grp { margin-bottom: 20px; }
.drawer .grp > b { display: block; font-size: 11px; color: var(--muted); margin-bottom: 8px; text-transform: uppercase; letter-spacing: .08em; }
.seg { display: flex; gap: 8px; flex-wrap: wrap; }
.seg button { padding: 7px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); color: var(--text); cursor: pointer; font-size: 12px; }
.seg button.on { border-color: var(--primary); color: var(--primary); font-weight: 600; }
.swatch { width: 30px; height: 30px; border-radius: 50%; border: 3px solid transparent; cursor: pointer; }
.swatch.on { border-color: var(--text); }

/* ---------------------------------------------------------------- login */
.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; background: linear-gradient(135deg, #3d64b2, #1d2f63); }
.login-card { width: min(400px, 100%); background: #ffffff; border-radius: 16px; padding: 30px 30px 26px; box-shadow: 0 24px 70px rgba(0, 0, 0, .35); color: #2a313d; }
.login-card .logo { display: flex; justify-content: center; margin-bottom: 8px; }
.login-card .logo svg, .login-card .logo img { height: 84px; max-width: 240px; object-fit: contain; border-radius: 8px; }
.login-card h1 { text-align: center; font-size: 15px; font-weight: 600; margin: 4px 0 20px; color: #55607a; }
.login-card .field { margin-bottom: 14px; }
.login-card .btn { width: 100%; justify-content: center; padding: 11px; font-size: 13.5px; }
.login-card .err { color: #c0392b; font-size: 12px; margin-bottom: 10px; min-height: 16px; }

/* ---------------------------------------------------------------- print */
.print-sheet { background: #fff; color: #111; max-width: 900px; margin: 0 auto; padding: 28px 34px; font-size: 12px; box-shadow: var(--shadow-card); }
[data-theme='dark'] .print-sheet { box-shadow: none; }
.print-sheet h1 { font-size: 20px; margin: 0; }
.print-sheet .ph { display: flex; gap: 20px; justify-content: space-between; border-bottom: 2px solid #1c2a55; padding-bottom: 12px; margin-bottom: 14px; }
.print-sheet .ph img { max-height: 60px; }
.print-sheet .co { font-size: 11px; color: #444; line-height: 1.5; }
.print-sheet .co b { font-size: 16px; color: #1c2a55; }
.print-sheet .title { text-align: center; font-size: 15px; font-weight: 700; letter-spacing: .06em; margin: 6px 0 12px; text-transform: uppercase; }
.print-sheet .meta { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 28px; margin-bottom: 12px; }
.print-sheet .meta div span { color: #666; display: inline-block; min-width: 118px; }
.print-sheet table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.print-sheet th, .print-sheet td { border: 1px solid #999; padding: 5px 7px; font-size: 11.5px; }
.print-sheet th { background: #e8ecf5; text-align: left; }
.print-sheet td.r, .print-sheet th.r { text-align: right; }
.print-sheet .sig { display: flex; justify-content: space-between; margin-top: 46px; gap: 14px; }
.print-sheet .sig div { flex: 1; border-top: 1px solid #333; text-align: center; padding-top: 4px; font-size: 11px; }
.print-sheet .words { margin-top: 10px; font-weight: 600; }
@media print {
  body { background: #fff !important; }
  .sidebar, .topbar, .footer, .gear, .page-head, .no-print, .toast-host { display: none !important; }
  .main { margin: 0 !important; }
  #view { padding: 0 !important; }
  .print-sheet { box-shadow: none; max-width: none; padding: 0; }
  .card { box-shadow: none; }
  table.t th { position: static; }
}

/* ---------------------------------------------------------------- responsive */
@media (max-width: 991px) {
  .sidebar { transform: translateX(-100%); }
  .main { margin-left: 0; }
  body.side-open .sidebar { transform: none; box-shadow: 10px 0 40px rgba(0, 0, 0, .3); }
  body.side-collapsed .sidebar { transform: translateX(-100%); }
  #view { padding: 4px 14px 20px; }
  .user-chip .rl, .user-chip .nm { display: none; }
  .user-chip { min-width: 0; padding: 6px; }
  .toolbar .search input { width: 100%; }
}
