/* Books (2026-11-29). Everything here is bk-*; the cards, tiles, buttons and
   toolbar come from styles.css. */
.bk-hero { background: var(--grad-brand); color: #fff; border-radius: var(--radius); padding: 16px 20px; margin-bottom: 14px;
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.bk-hero h1 { margin: 0; font-size: 1.3rem; font-weight: 800; letter-spacing: -.01em; color: #fff;
  background: none; -webkit-background-clip: border-box; background-clip: border-box; -webkit-text-fill-color: #fff; }
.bk-hero .bk-sub { font-size: .8rem; opacity: .85; margin-top: 2px; }
.bk-hero .bk-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.bk-hero button, .bk-hero a.bk-btn { background: rgba(255, 255, 255, .14); color: #fff; border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 999px; padding: 7px 14px; font-weight: 700; font-size: .8rem; text-decoration: none; cursor: pointer; }
.bk-hero button:hover, .bk-hero a.bk-btn:hover { background: rgba(255, 255, 255, .26); }
.bk-tabs { display: flex; gap: 6px; flex-wrap: nowrap; overflow-x: auto; margin-bottom: 12px; padding-bottom: 2px; }
.bk-tab { border: 1px solid var(--line); background: var(--card); color: var(--text); border-radius: 999px; padding: 7px 14px;
  font-weight: 700; font-size: .82rem; cursor: pointer; white-space: nowrap; }
.bk-tab.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.bk-period { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.bk-period input, .bk-period select { width: auto; }
.bk-period .bk-pl { font-size: .78rem; font-weight: 700; color: var(--muted); }
.bk-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; margin-bottom: 14px; }
.bk-check { border-left: 4px solid var(--ok); }
.bk-check.bad { border-left-color: var(--bad); }
.bk-check .bk-ct { font-size: .74rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.bk-check .bk-cv { font-size: 1.15rem; font-weight: 800; margin-top: 2px; }
.bk-check .bk-cs { font-size: .78rem; margin-top: 2px; }
.bk-check .bk-cs.ok { color: var(--ok); font-weight: 700; }
.bk-check .bk-cs.bad { color: var(--bad); font-weight: 700; }
.bk-table { width: 100%; border-collapse: collapse; font-size: .86rem; }
.bk-table th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted);
  padding: 8px 10px; border-bottom: 2px solid var(--line); white-space: nowrap; position: sticky; top: 0; background: var(--card); }
.bk-table td { padding: 7px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.bk-table th.num, .bk-table td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bk-table tr.bk-sec td { background: var(--brand-tint); font-weight: 800; color: var(--brand); border-bottom: none; }
.bk-table tr.bk-tot td { font-weight: 800; border-top: 2px solid var(--text); border-bottom: none; }
.bk-table tr.bk-sub td { font-weight: 700; background: var(--neutral-bg); }
.bk-table tr.bk-click { cursor: pointer; }
.bk-table tr.bk-click:hover td { background: var(--brand-tint); }
.bk-table td.bk-code { font-variant-numeric: tabular-nums; color: var(--muted); white-space: nowrap; }
.bk-table .neg { color: var(--bad); }
.bk-scroll { overflow-x: auto; }
.bk-pill { display: inline-block; border-radius: 999px; padding: 2px 9px; font-size: .7rem; font-weight: 800; }
.bk-pill.auto { background: var(--info-bg); color: var(--info); }
.bk-pill.manual { background: var(--warn-bg); color: var(--warn); }
.bk-pill.reversal { background: var(--bad-bg); color: var(--bad); }
.bk-pill.opening { background: var(--ok-bg); color: var(--ok); }
.bk-pill.open { background: var(--ok-bg); color: var(--ok); }
.bk-pill.closed { background: var(--neutral-bg); color: var(--muted); }
.bk-note { background: var(--warn-bg); color: var(--warn); border-radius: 12px; padding: 10px 14px; font-size: .84rem; font-weight: 600; margin-bottom: 12px; }
.bk-ok { background: var(--ok-bg); color: var(--ok); border-radius: 12px; padding: 10px 14px; font-size: .84rem; font-weight: 700; margin-bottom: 12px; }
.bk-bad { background: var(--bad-bg); color: var(--bad); border-radius: 12px; padding: 10px 14px; font-size: .84rem; font-weight: 700; margin-bottom: 12px; }
.bk-months { display: flex; flex-wrap: wrap; gap: 8px; }
.bk-month { border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; display: flex; gap: 8px; align-items: center; font-size: .84rem; font-weight: 700; }
.bk-jl { display: grid; grid-template-columns: minmax(180px, 2fr) 1fr 1fr 28px; gap: 6px; margin-bottom: 6px; align-items: center; }
.bk-jl input, .bk-jl select { width: 100%; }
.bk-jsum { font-weight: 800; margin-top: 8px; }
.bk-h { margin: 0 0 10px; font-size: 1rem; font-weight: 800; }
.bk-acc-in { width: 110px; }
@media (max-width: 640px) {
  .bk-hero { padding: 14px; }
  .bk-table { font-size: .8rem; }
  .bk-table th, .bk-table td { padding: 6px 7px; }
  .bk-jl { grid-template-columns: 1fr 1fr; }
}
/* E-invoice tab (2026-11-30) */
.bk-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin-top: 10px; }
.bk-f { display: flex; flex-direction: column; gap: 3px; font-size: .74rem; font-weight: 700; color: var(--muted); }
.bk-f input, .bk-f select { width: 100%; }
.bk-pre { max-height: 46vh; overflow: auto; background: var(--neutral-bg); border-radius: 10px; padding: 10px; font-size: .72rem; white-space: pre; margin-top: 6px; }
/* LUNOX Accounts' own shell and sign-in (2026-11-30) */
.acc-body { margin: 0; min-height: 100vh; }
.acc-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 22px; background: var(--card);
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.acc-brand { font-weight: 800; font-size: 1.05rem; color: var(--brand); letter-spacing: -.01em; }
.acc-who { display: flex; align-items: center; gap: 10px; }
.acc-content { padding: 18px 22px 40px; max-width: 1320px; margin-inline: auto; }
.acc-gate { min-height: 100vh; display: flex; align-items: flex-start; justify-content: center; padding: 12vh 16px 40px; }
.acc-gate-card { width: 100%; max-width: 360px; padding: 22px; }
.acc-gate-card .acc-brand { font-size: 1.25rem; margin-bottom: 4px; }
.acc-gate-card input { width: 100%; }
@media (max-width: 640px) { .acc-top { padding: 10px 14px; } .acc-content { padding: 12px 12px 32px; } }
