/* =====================================================================
   NAPADAO Apartment — UI
   Palette from the logo: burnt orange → apricot, charcoal ink, warm paper
   ===================================================================== */
:root {
  --brand-900: #7A3A14;
  --brand-700: #B4581F;
  --brand-600: #C8692C;
  --brand-500: #DC8443;
  --brand-300: #F0B47E;
  --brand-100: #FBE7D3;
  --brand-50:  #FDF4EA;
  --ink: #26221F;
  --ink-2: #4A4440;
  --muted: #857B73;
  --line: #E9E1D8;
  --line-2: #F2ECE5;
  --paper: #FAF7F3;
  --card: #FFFFFF;
  --side: #221E1B;
  --side-2: #2E2925;
  --ok: #2F8F5B;   --ok-bg: #E5F4EA;
  --warn: #B7791F; --warn-bg: #FCF1DC;
  --bad: #C2413A;  --bad-bg: #FBE6E4;
  --info: #2F6FA8; --info-bg: #E4EEF8;
  --water: #2C8FB8; --elec: #D9952B;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(38,34,31,.05), 0 6px 18px rgba(38,34,31,.06);
  --font: "IBM Plex Sans Thai", "Noto Sans Thai", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--font); color: var(--ink); background: var(--paper); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--brand-700); text-decoration: none; }
.num, td.n, th.n { font-variant-numeric: tabular-nums; }
.hidden { display: none !important; }

/* ---------------------------------------------------------------- shell */
.shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.side { background: var(--side); color: #E9E2DA; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; z-index: 40; }
.brand { display: flex; align-items: center; gap: 10px; padding: 20px 18px 16px; }
.brand img { width: 46px; height: auto; filter: drop-shadow(0 2px 4px rgba(0,0,0,.25)); }
.brand b { display: block; font-size: 15px; letter-spacing: .2px; color: #fff; }
.brand small { display: block; font-size: 11px; color: #A99E94; letter-spacing: 2.5px; }
.nav { flex: 1; overflow-y: auto; padding: 6px 10px 12px; }
.nav .grp { font-size: 11px; color: #8D8279; letter-spacing: 1px; padding: 14px 10px 6px; text-transform: uppercase; }
.nav a { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 10px; color: #D9D0C7; font-size: 14.5px; transition: background .15s, color .15s; }
.nav a svg { width: 19px; height: 19px; flex: none; opacity: .85; }
.nav a:hover { background: var(--side-2); color: #fff; }
.nav a.active { background: linear-gradient(90deg, rgba(220,132,67,.22), rgba(220,132,67,.06)); color: #fff; box-shadow: inset 3px 0 0 var(--brand-500); }
.nav a.active svg { color: var(--brand-300); opacity: 1; }
.nav .badge { margin-left: auto; }
.me { border-top: 1px solid #36302B; padding: 12px 14px; display: flex; align-items: center; gap: 10px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 600; font-size: 14px; flex: none; }
.me .who { flex: 1; min-width: 0; }
.me .who b { display: block; font-size: 14px; color: #fff; }
.me .who small { color: #9C9188; font-size: 12px; }
.icon-btn { border: 0; background: transparent; padding: 7px; border-radius: 8px; cursor: pointer; color: inherit; display: inline-grid; place-items: center; }
.icon-btn:hover { background: rgba(127,127,127,.14); }
.icon-btn svg { width: 19px; height: 19px; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 30; background: rgba(250,247,243,.88); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; padding: 12px 28px; min-height: 62px; }
.topbar h1 { font-size: 20px; margin: 0; font-weight: 600; letter-spacing: -.2px; }
.topbar .sub { color: var(--muted); font-size: 13px; }
.topbar .spacer { flex: 1; }
.menu-btn { display: none; }
.content { padding: 24px 28px 60px; max-width: 1400px; width: 100%; }

/* ---------------------------------------------------------------- primitives */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-h { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line-2); }
.card-h h3 { margin: 0; font-size: 15.5px; font-weight: 600; }
.card-h .spacer { flex: 1; }
.card-b { padding: 16px 18px; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.stack > * + * { margin-top: 14px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.right { text-align: right; }
.mt { margin-top: 16px; }
.mb { margin-bottom: 16px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--line); background: #fff; color: var(--ink); padding: 8px 14px; border-radius: 10px; font-weight: 500; font-size: 14px; cursor: pointer; transition: background .15s, border-color .15s, transform .05s; white-space: nowrap; }
.btn:hover { background: var(--brand-50); border-color: var(--brand-300); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 17px; height: 17px; }
.btn.primary { background: linear-gradient(180deg, var(--brand-500), var(--brand-600)); border-color: var(--brand-600); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 2px 6px rgba(200,105,44,.25); }
.btn.primary:hover { background: linear-gradient(180deg, var(--brand-600), var(--brand-700)); }
.btn.dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.danger { color: var(--bad); border-color: #F0C9C5; }
.btn.danger:hover { background: var(--bad-bg); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.sm { padding: 5px 10px; font-size: 13px; border-radius: 8px; }
.btn[disabled] { opacity: .55; pointer-events: none; }

.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 500; background: var(--line-2); color: var(--ink-2); white-space: nowrap; }
.badge.ok { background: var(--ok-bg); color: var(--ok); }
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.bad { background: var(--bad-bg); color: var(--bad); }
.badge.info { background: var(--info-bg); color: var(--info); }
.badge.brand { background: var(--brand-100); color: var(--brand-900); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }

/* forms */
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field > span { font-size: 13px; color: var(--ink-2); font-weight: 500; }
.field > span em { color: var(--bad); font-style: normal; }
.input, select.input, textarea.input { width: 100%; border: 1px solid #DCD2C7; background: #fff; border-radius: 10px; padding: 8px 11px; outline: none; transition: border-color .15s, box-shadow .15s; min-height: 38px; }
.input:focus { border-color: var(--brand-500); box-shadow: 0 0 0 3px rgba(220,132,67,.18); }
.input[readonly] { background: var(--paper); }
textarea.input { min-height: 70px; resize: vertical; }
.input.num { text-align: right; }
.form-grid { display: grid; gap: 12px 14px; grid-template-columns: repeat(12, minmax(0,1fr)); }
.c12 { grid-column: span 12; } .c8 { grid-column: span 8; } .c6 { grid-column: span 6; } .c4 { grid-column: span 4; } .c3 { grid-column: span 3; }
.seg { display: inline-flex; background: var(--line-2); border-radius: 10px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; padding: 6px 12px; border-radius: 8px; cursor: pointer; font-size: 13.5px; color: var(--ink-2); }
.seg button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); font-weight: 500; }
.search { position: relative; }
.search svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--muted); }
.search .input { padding-left: 34px; }

/* tables */
.table-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th { text-align: left; font-weight: 500; color: var(--muted); font-size: 12.5px; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; background: #FCFAF7; position: sticky; top: 0; }
table.t td { padding: 10px 12px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
table.t tr.click { cursor: pointer; }
table.t tr.click:hover td { background: var(--brand-50); }
table.t td.n, table.t th.n { text-align: right; white-space: nowrap; }
table.t tfoot td { font-weight: 600; background: #FCFAF7; border-top: 1px solid var(--line); }
.empty { text-align: center; color: var(--muted); padding: 36px 10px; }

/* KPI */
.kpi { padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; position: relative; overflow: hidden; }
.kpi .lbl { color: var(--muted); font-size: 13px; display: flex; align-items: center; gap: 6px; }
.kpi .val { font-size: 26px; font-weight: 600; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.kpi .foot { font-size: 12.5px; color: var(--muted); }
.kpi .ico { position: absolute; right: 14px; top: 14px; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-600); }
.kpi .ico svg { width: 20px; height: 20px; }
.bar { height: 7px; background: var(--line-2); border-radius: 99px; overflow: hidden; margin-top: 6px; }
.bar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand-500), var(--brand-300)); border-radius: 99px; }

/* list items */
.li { display: flex; align-items: center; gap: 12px; padding: 11px 18px; border-bottom: 1px solid var(--line-2); }
.li:last-child { border-bottom: 0; }
.li .grow { flex: 1; min-width: 0; }
.li .grow b { font-weight: 500; }
.trunc { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------------------------------------------------------------- room map */
.bldg { margin-bottom: 26px; }
.bldg-h { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.bldg-h h2 { font-size: 17px; margin: 0; }
.floor { display: grid; grid-template-columns: 74px 1fr; gap: 10px; margin-bottom: 10px; align-items: stretch; }
.floor-l { display: flex; align-items: center; justify-content: center; border-radius: 12px; background: var(--line-2); color: var(--ink-2); font-size: 13px; font-weight: 500; }
.rooms { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.room { background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 11px 12px 12px; cursor: pointer; position: relative; transition: transform .12s, box-shadow .12s, border-color .12s; min-height: 108px; display: flex; flex-direction: column; }
.room:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--brand-300); }
.room .no { font-size: 21px; font-weight: 600; letter-spacing: -.3px; }
.room .tn { font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.room .meta { margin-top: auto; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.room::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 4px; border-radius: 0 4px 4px 0; background: var(--ok); }
.room.vacant::before { background: var(--bad); }
.room.vacant { background: repeating-linear-gradient(135deg, #fff, #fff 9px, #FDF8F3 9px, #FDF8F3 18px); }
.room.reserved::before { background: var(--info); }
.room.maintenance::before { background: var(--warn); }
.room.inactive { opacity: .5; }
.room.inactive::before { background: #aaa; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }

/* ---------------------------------------------------------------- drawer / modal */
.overlay { position: fixed; inset: 0; background: rgba(30,25,22,.42); z-index: 80; opacity: 0; transition: opacity .18s; }
.overlay.show { opacity: 1; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(640px, 100vw); background: var(--paper); z-index: 90; box-shadow: -10px 0 40px rgba(0,0,0,.15); transform: translateX(100%); transition: transform .22s ease; display: flex; flex-direction: column; }
.drawer.show { transform: none; }
.drawer.wide { width: min(880px, 100vw); }
.drawer-h { padding: 16px 20px; background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.drawer-h h2 { margin: 0; font-size: 18px; font-weight: 600; flex: 1; min-width: 0; }
.drawer-b { flex: 1; overflow-y: auto; padding: 18px 20px 30px; }
.drawer-f { padding: 12px 20px; background: #fff; border-top: 1px solid var(--line); display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.modal { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -46%); opacity: 0; z-index: 95; width: min(520px, calc(100vw - 24px)); max-height: calc(100vh - 40px); background: #fff; border-radius: 16px; box-shadow: 0 30px 80px rgba(0,0,0,.25); transition: transform .18s, opacity .18s; display: flex; flex-direction: column; }
.modal.show { transform: translate(-50%, -50%); opacity: 1; }
.modal .drawer-b { padding: 18px 20px; }
.modal .drawer-h { border-radius: 16px 16px 0 0; }
.modal .drawer-f { border-radius: 0 0 16px 16px; }

.kv { display: grid; grid-template-columns: 140px 1fr; gap: 7px 12px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.section-t { font-size: 13px; color: var(--muted); font-weight: 600; letter-spacing: .3px; margin: 20px 0 8px; text-transform: uppercase; }
.sum-box { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; font-variant-numeric: tabular-nums; }
.sum-row.total { border-top: 1px dashed var(--line); margin-top: 6px; padding-top: 9px; font-weight: 600; font-size: 17px; }
.sum-row.total.neg { color: var(--bad); }

/* toast */
.toasts { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 11px; box-shadow: 0 10px 30px rgba(0,0,0,.25); font-size: 14px; max-width: min(560px, 92vw); white-space: pre-line; animation: tin .2s ease; pointer-events: auto; }
.toast.bad { background: #8E2C26; }
.toast.ok { background: #1F6B43; }
@keyframes tin { from { transform: translateY(8px); opacity: 0; } }

.spinner { width: 26px; height: 26px; border: 3px solid var(--brand-100); border-top-color: var(--brand-500); border-radius: 50%; animation: spin .8s linear infinite; margin: 40px auto; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------------- billing */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; margin-bottom: 18px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px; display: flex; gap: 10px; align-items: center; }
.step i { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 600; background: var(--line-2); color: var(--ink-2); font-size: 14px; flex: none; }
.step.done i { background: var(--ok); color: #fff; }
.step.now { border-color: var(--brand-500); box-shadow: 0 0 0 3px rgba(220,132,67,.12); }
.step.now i { background: var(--brand-500); color: #fff; }
.step b { display: block; font-size: 14px; font-weight: 500; }
.step small { color: var(--muted); font-size: 12px; }
.meter-t td { padding: 7px 8px; }
.meter-t .input { min-height: 34px; padding: 5px 8px; text-align: right; max-width: 110px; }
.meter-t .u { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.meter-t .bad-row .input.cur { border-color: var(--bad); background: var(--bad-bg); }
.meter-t .hi { color: var(--warn); font-weight: 600; }
.wcol { color: var(--water); } .ecol { color: var(--elec); }
.rate-card { border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: #fff; }
.rate-card h4 { margin: 0 0 8px; font-size: 14px; display: flex; gap: 8px; align-items: center; }

/* ---------------------------------------------------------------- login */
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px; background:
  radial-gradient(1200px 600px at 80% -10%, rgba(240,180,126,.35), transparent 60%),
  radial-gradient(900px 500px at -10% 110%, rgba(200,105,44,.18), transparent 60%), var(--paper); }
.login-card { width: min(420px, 100%); background: #fff; border-radius: 22px; box-shadow: 0 30px 80px rgba(80,50,20,.15); padding: 30px 28px 26px; text-align: center; border: 1px solid var(--line); }
.login-card img { width: 150px; }
.login-card h2 { margin: 10px 0 2px; font-size: 19px; }
.profiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; margin-top: 18px; }
.profile { border: 1.5px solid var(--line); border-radius: 16px; padding: 18px 10px 14px; cursor: pointer; background: #fff; transition: .15s; }
.profile:hover { border-color: var(--brand-500); transform: translateY(-2px); }
.profile .avatar { width: 54px; height: 54px; font-size: 22px; margin: 0 auto 8px; }
.pin-dots { display: flex; gap: 12px; justify-content: center; margin: 18px 0 14px; }
.pin-dots i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--brand-300); }
.pin-dots i.on { background: var(--brand-500); border-color: var(--brand-500); }
.pinpad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 280px; margin: 0 auto; }
.pinpad button { height: 56px; border-radius: 14px; border: 1px solid var(--line); background: #FCFAF7; font-size: 22px; font-weight: 500; cursor: pointer; }
.pinpad button:hover { background: var(--brand-50); }
.pinpad button.fn { font-size: 14px; color: var(--muted); }
.shake { animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }

/* ---------------------------------------------------------------- invoice paper (screen + print) */
.inv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; }
.paper { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 18px 14px; font-size: 13.5px; position: relative; }
.paper .ph { display: flex; gap: 10px; align-items: center; border-bottom: 2px solid var(--ink); padding-bottom: 10px; margin-bottom: 10px; }
.paper .ph img { width: 54px; }
.paper .ph b { font-size: 16px; display: block; }
.paper .ph small { color: var(--muted); font-size: 11.5px; display: block; line-height: 1.35; }
.paper .meta2 { display: flex; justify-content: space-between; background: var(--brand-50); border-radius: 9px; padding: 7px 10px; margin-bottom: 8px; font-size: 13px; }
.paper .ln { display: flex; justify-content: space-between; gap: 8px; padding: 5px 0; border-bottom: 1px dashed #EEE6DD; font-variant-numeric: tabular-nums; }
.paper .ln small { display: block; color: var(--muted); font-size: 11.5px; }
.paper .tot { display: flex; justify-content: space-between; font-size: 18px; font-weight: 700; padding-top: 9px; margin-top: 4px; border-top: 2px solid var(--ink); color: var(--brand-700); }
.paper .pay { display: flex; gap: 10px; align-items: center; margin-top: 10px; background: #FBF8F4; border-radius: 10px; padding: 8px; font-size: 12px; }
.paper .pay .qr { width: 92px; height: 92px; flex: none; background: #fff; border-radius: 6px; padding: 3px; }
.paper .pay .qr img, .paper .pay .qr canvas { width: 100%; height: 100%; image-rendering: pixelated; }
.paper .stamp { position: absolute; right: 16px; top: 64px; border: 2.5px solid var(--ok); color: var(--ok); border-radius: 8px; padding: 2px 10px; font-weight: 700; transform: rotate(-8deg); font-size: 16px; opacity: .85; }
.paper .foot { text-align: center; color: var(--muted); font-size: 11px; margin-top: 8px; }

#print-root { display: none; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1100px) { .g4 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: 262px; transform: translateX(-100%); transition: transform .2s; }
  .side.open { transform: none; box-shadow: 20px 0 60px rgba(0,0,0,.3); }
  .menu-btn { display: inline-grid; }
  .topbar { padding: 10px 16px; }
  .content { padding: 16px 16px 60px; }
  .g2, .g3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .c6, .c4, .c3, .c8 { grid-column: span 12; }
  .form-grid .c3.keep, .form-grid .c6.keep { grid-column: span 6; }
  .floor { grid-template-columns: 1fr; }
  .floor-l { justify-content: flex-start; padding: 4px 10px; background: transparent; }
  .rooms { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .kv { grid-template-columns: 112px 1fr; }
  .hide-sm { display: none !important; }
}
@media (max-width: 520px) { .g4 { grid-template-columns: 1fr 1fr; } .kpi .val { font-size: 21px; } .kpi .ico { display: none; } }

/* ---------------------------------------------------------------- print */
@media print {
  @page { size: A4; margin: 10mm; }
  body { background: #fff; }
  .shell, .toasts, .overlay, .drawer, .modal { display: none !important; }
  #print-root { display: block !important; }
  .inv-grid.print { display: grid; grid-template-columns: 1fr 1fr; gap: 8mm; }
  .inv-grid.print .paper { break-inside: avoid; border: 1px solid #bbb; border-radius: 6px; }
  .contract { font-family: "Sarabun", serif; font-size: 14px; color: #000; line-height: 1.55; }
  .page-break { break-before: page; }
}
.contract { font-family: "Sarabun", serif; font-size: 14px; color: #000; line-height: 1.55; max-width: 780px; margin: 0 auto; background: #fff; }
.contract h3 { text-align: center; font-size: 18px; margin: 0 0 18px; }
.contract .r { text-align: right; margin-bottom: 14px; }
.contract .cl { margin-bottom: 10px; text-align: justify; }
.contract .ind { text-indent: 40px; }
.contract b { font-weight: 600; }
.contract table.sig { width: 100%; margin-top: 28px; border-collapse: collapse; break-inside: avoid; }
.contract table.sig td { width: 50%; text-align: center; padding: 14px 0; }
.contract table.chk { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 12px; }
.contract table.chk th, .contract table.chk td { border: 1px solid #000; padding: 5px 8px; text-align: center; }
.contract table.chk td.l { text-align: left; }

/* inline icons in headings */
.card-h h3, .rate-card h4 { display: flex; align-items: center; gap: 8px; }
.card-h h3 svg, .rate-card h4 svg, .badge svg, .kv svg, .section-t svg, .empty svg { width: 18px; height: 18px; flex: none; }
.badge svg { width: 13px; height: 13px; }
.empty svg { width: 30px; height: 30px; display: block; margin: 0 auto 8px; color: var(--muted); }
@media (max-width: 900px) { .topbar .sub { display: none; } .topbar h1 { font-size: 17px; } .card-h .muted.small { display: none; } }
