/* ============================================================
   Khan SAT-1600 · ACCA Bookkeeping (v160)
   Author: Xudoyorxon Bunyodov / Худоёрхон Бунёдов
   ============================================================ */
.bk { --b-g:#1B5E20; --b-gold:#C9A227; --b-red:#B3261E; --b-line:#dfe6df; --b-soft:#f4f8f4;
  --b-sans:"Segoe UI",Roboto,Arial,system-ui,sans-serif;
  max-width:1280px; margin:0 auto; padding:2px 0 44px; font-family:var(--b-sans); color:#1a1a1a; }
.bk *,.bk *::before,.bk *::after { box-sizing:border-box; }
.bk-top { margin-bottom:14px; }
.bk-top h1 { margin:6px 0 6px; font-size:24px; color:inherit; }
.bk-top p { margin:0; color:#4a574c; font-size:14.5px; line-height:1.55; max-width:900px; }
.bk-back { color:var(--b-g); font-weight:600; text-decoration:none; font-size:14px; }
html[data-theme="dark"] .bk-back { color:#A5D6A7; }
.bk-grid, .bk-row { display:grid; grid-template-columns:repeat(auto-fill,minmax(min(270px, 100%),1fr)); gap:13px; margin-bottom:14px; }
.bk-card { display:flex; flex-direction:column; gap:6px; background:#fff; color:#1a1a1a; border:1.5px solid var(--b-line); border-radius:16px; padding:16px 18px; text-decoration:none; text-align:left; font:inherit; cursor:pointer; transition:border-color .15s, transform .15s; }
.bk-card:hover { border-color:var(--b-g); transform:translateY(-2px); }
.bk-card b { font-size:16px; }
.bk-card span { font-size:13.5px; color:#4a574c; line-height:1.5; }
.bk-card small { font-size:12.5px; color:#6b776d; }
.bk-new { border-style:dashed; background:#fbfdfb; }
.bk-drill { background:linear-gradient(135deg,#f3f9f3,#fff8e1); }
.bk-bar { height:6px; background:#eef2ee; border-radius:6px; overflow:hidden; }
.bk-bar i { display:block; height:100%; background:var(--b-g); border-radius:6px; }
.bk-bar.big { height:10px; margin-bottom:16px; }
.bk-note { background:var(--b-soft); border-radius:12px; padding:12px 16px; font-size:14px; line-height:1.6; color:#37453a; }
.bk-steps { display:flex; gap:8px; overflow-x:auto; padding:2px 0 10px; margin-bottom:10px; -webkit-overflow-scrolling:touch; }
.bk-pill { flex:0 0 auto; border:1.5px solid #cfd8cf; background:#fff; color:#37453a; border-radius:20px; padding:6px 13px; font:600 12.5px var(--b-sans); cursor:pointer; white-space:nowrap; }
.bk-pill.on { background:var(--b-g); border-color:var(--b-g); color:#fff; }
.bk-pill.done:not(.on) { border-color:#2e7d32; color:#2e7d32; background:#f1f8f1; }
.bk-card2 { background:#fff; border:1.5px solid var(--b-line); border-radius:16px; padding:18px 20px; margin-bottom:14px; }
.bk-card2 h2 { margin:0 0 8px; font-size:19px; color:#0d3b1a; }
.bk-card2 h3 { margin:16px 0 8px; font-size:15px; color:#1e4d2b; }
.bk-muted { color:#5b675c; font-size:13.5px; line-height:1.55; }
.bk-score { background:var(--b-soft); border-radius:10px; padding:8px 12px; font-size:14px; margin:8px 0 12px; display:inline-block; }
.bk-txn { display:flex; flex-wrap:wrap; gap:8px 10px; align-items:center; padding:10px 12px; background:#f7faf7; border-left:4px solid #9fb7a3; border-radius:8px; margin-bottom:8px; font-size:14px; }
.bk-txn.ok { border-left-color:#2e7d32; background:#f0faf1; }
.bk-txn.bad { border-left-color:var(--b-red); background:#fdf3f2; }
.bk-n { font-weight:700; color:var(--b-g); min-width:28px; }
.bk-d { flex:1 1 220px; min-width:0; }
.bk-a { font-weight:700; color:#0d3b1a; white-space:nowrap; }
.bk-txn label { display:flex; align-items:center; gap:5px; font-size:12px; color:#5b675c; font-weight:700; }
.bk-txn select { padding:6px 8px; border:1.5px solid #cfd8cf; border-radius:8px; font:13px var(--b-sans); background:#fff; color:#1a1a1a; max-width:230px; }
.bk-fb { font-weight:800; font-size:16px; min-width:16px; }
.bk-txn.ok .bk-fb { color:#2e7d32; } .bk-txn.bad .bk-fb { color:var(--b-red); }
.bk-hint { flex-basis:100%; background:#fff8e1; color:#6d5200; border-radius:8px; padding:7px 10px; font-size:13px; }
.bk-actions { display:flex; gap:10px; flex-wrap:wrap; margin-top:14px; }
.bk-btn { border:1.5px solid var(--b-g); background:var(--b-g); color:#fff !important; border-radius:10px; padding:9px 16px; font:600 14px var(--b-sans); cursor:pointer; text-decoration:none; display:inline-flex; align-items:center; }
.bk-btn.ghost { background:#fff; color:#1a1a1a !important; border-color:#cfd8cf; }
.bk-btn:hover { filter:brightness(1.05); }
.bk-nav { display:flex; justify-content:space-between; gap:10px; }
.bk-taccs { display:grid; grid-template-columns:repeat(auto-fill,minmax(min(280px, 100%),1fr)); gap:12px; }
.bk-tacc { border:1px solid #cbd5cb; border-radius:8px; overflow:hidden; background:#fff; }
.bk-tacc-h { background:#0d3b1a; color:#fff; text-align:center; padding:7px; font-weight:700; font-size:12.5px; }
.bk-tacc table { width:100%; border-collapse:collapse; font-size:12.5px; }
.bk-tacc th, .bk-tacc td { padding:4px 7px; border-bottom:1px solid #eef2ee; text-align:left; }
.bk-tacc th { background:#f6f8f6; font-size:11px; text-transform:uppercase; }
.bk-tacc tr.tt td { border-top:2px solid #0d3b1a; font-weight:700; }
.bk-tacc tr.bl td { font-style:italic; color:#4a574c; background:#f7faf7; }
.am { text-align:right; font-variant-numeric:tabular-nums; white-space:nowrap; }
.bk-tbl { width:100%; border-collapse:collapse; font-size:14px; }
.bk-tbl th, .bk-tbl td { padding:7px 10px; border-bottom:1px solid #eef2ee; text-align:left; }
.bk-tbl th { background:#f6f8f6; font-size:11.5px; text-transform:uppercase; color:#4a574c; }
.bk-tbl tr.tt td { font-weight:700; border-top:2px solid #0d3b1a; border-bottom:2px solid #0d3b1a; background:#f7faf7; }
.bk-tbl tr.st td { font-weight:700; border-top:1px solid #a0b0a2; }
.bk-tbl tr.hd td { background:#0d3b1a; color:#fff; font-size:12.5px; }
.bk-tbl tr.sec td { background:#f6f8f6; font-size:12px; color:#37453a; }
.bk-fs { margin-top:14px; max-width:760px; }
.bk-check { margin-top:10px; padding:10px 14px; border-radius:10px; font-weight:600; font-size:14px; }
.bk-check.ok { background:#f0faf1; color:#1f5c22; border:1px solid #b5dfb9; }
.bk-check.bad { background:#fdf3f2; color:var(--b-red); border:1px solid #f3c2bd; }
.bk-warn { background:#fff8e1; color:#6d5200; border-radius:10px; padding:9px 12px; font-size:13.5px; margin:8px 0; }
.bk-fields { display:grid; grid-template-columns:repeat(auto-fill,minmax(min(220px, 100%),1fr)); gap:10px; margin-top:10px; }
.bk-field { display:flex; flex-direction:column; gap:5px; font-size:12.5px; font-weight:700; color:#45514a; }
.bk-field input { border:1.5px solid #cfd8cf; border-radius:9px; padding:9px 11px; font:15px var(--b-sans); color:#1a1a1a; background:#fff; }
.bk-field.ok input { border-color:#2e7d32; background:#f0faf1; }
.bk-field.bad input { border-color:var(--b-red); background:#fdf3f2; }
.bk-kpis { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(130px, 100%),1fr)); gap:10px; margin:6px 0 14px; }
.bk-kpis div { background:var(--b-soft); border-radius:12px; padding:12px; display:flex; flex-direction:column; }
.bk-kpis b { font-size:22px; color:var(--b-g); }
.bk-kpis span { font-size:12.5px; color:#5b675c; }
.bk-center { text-align:center; }
.bk-big { font-size:48px; font-weight:800; color:var(--b-g); margin:10px 0; }
.bk-q { font-size:20px; margin:4px 0 16px; }
.bk-opts { display:grid; gap:10px; }
.bk-opt { text-align:left; border:2px solid #d7dfd7; background:#fff; border-radius:12px; padding:12px 14px; font:600 15px var(--b-sans); color:#1a1a1a; cursor:pointer; }
.bk-opt:hover:not(:disabled) { border-color:var(--b-g); }
.bk-opt.ok { border-color:#2e7d32; background:#f0faf1; }
.bk-opt.bad { border-color:var(--b-red); background:#fdf3f2; }
html[data-theme="dark"] .bk { color:#e8efe9; }
html[data-theme="dark"] .bk-card, html[data-theme="dark"] .bk-card2, html[data-theme="dark"] .bk-tacc, html[data-theme="dark"] .bk-opt,
html[data-theme="dark"] .bk-pill:not(.on), html[data-theme="dark"] .bk-btn.ghost { background:#16241a; color:#e8efe9 !important; border-color:#2e4332; }
html[data-theme="dark"] .bk-card span, html[data-theme="dark"] .bk-muted, html[data-theme="dark"] .bk-top p { color:#b9c9bc; }
html[data-theme="dark"] .bk-txn { background:#1b2b1f; }
html[data-theme="dark"] .bk-tbl th, html[data-theme="dark"] .bk-tbl tr.sec td, html[data-theme="dark"] .bk-note, html[data-theme="dark"] .bk-kpis div, html[data-theme="dark"] .bk-score { background:#1b2b1f; color:#e8efe9; }
html[data-theme="dark"] .bk-card2 h2 { color:#c8e6c9; }
@media (max-width:620px) {
  .bk-top h1 { font-size:20px; }
  .bk-txn { padding:10px; }
  .bk-txn label { flex:1 1 100%; }
  .bk-txn select { max-width:none; flex:1; }
  .bk-card2 { padding:14px; }
  .bk-tbl { font-size:13px; }
  .bk-tbl th, .bk-tbl td { padding:6px 6px; }
}
