:root { --accent:#0f766e; --bg:#f6f7f8; --card:#fff; --ink:#1b1f23; --muted:#6b7280; --line:#e3e6ea; --red:#b42318; --green:#067647; --amber:#b54708; --blue:#175cd3; }
* { box-sizing: border-box; }
body { margin:0; font:15px/1.45 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif; background:var(--bg); color:var(--ink); }
h2 { font-size:20px; margin:8px 0 12px; } h3 { font-size:16px; margin:20px 0 8px; } h4 { margin:0 0 8px; }
.top { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 16px; background:var(--accent); color:#fff; }
.brand { font-weight:700; font-size:18px; } .who { display:flex; align-items:center; gap:8px; } .who .name { max-width:140px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.top .lnk { color:#fff; }
.tabs { display:flex; gap:4px; overflow-x:auto; padding:8px 12px 0; background:#fff; border-bottom:1px solid var(--line); }
.tab { border:0; background:none; padding:10px 14px; font:inherit; color:var(--muted); border-bottom:3px solid transparent; cursor:pointer; white-space:nowrap; }
.tab.on { color:var(--accent); border-color:var(--accent); font-weight:600; }
.main { max-width:1100px; margin:0 auto; padding:16px; } .narrow { max-width:520px; }
.card { background:var(--card); border:1px solid var(--line); border-radius:10px; padding:14px; margin-bottom:12px; }
.cards { display:grid; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:12px; } .cards .card { margin:0; }
.order > * + * { margin-top:6px; }
.muted, small { color:var(--muted); } .big-amt { font-size:20px; font-weight:700; }
.between { display:flex; justify-content:space-between; align-items:center; gap:8px; }
.row { display:flex; flex-wrap:wrap; gap:8px; align-items:flex-end; margin-top:8px; } .grow { flex:1; min-width:140px; }
.grid2 { display:grid; grid-template-columns:1fr 1fr; gap:10px; } .grid3 { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }
@media (max-width:640px) { .grid2,.grid3 { grid-template-columns:1fr; } }
label { display:block; font-weight:600; font-size:13px; margin-bottom:10px; } label small { font-weight:400; }
input, select { width:100%; padding:9px 10px; border:1px solid #cfd4da; border-radius:8px; font:inherit; background:#fff; margin-top:4px; }
input[type=checkbox] { width:auto; margin:0 6px 0 0; } input[type=color] { padding:2px; height:38px; }
.checks { display:flex; flex-wrap:wrap; gap:6px 18px; margin:4px 0 8px; } .checks label { font-weight:400; margin:0; }
.btn { border:1px solid #cfd4da; background:#fff; padding:9px 14px; border-radius:8px; font:inherit; cursor:pointer; color:var(--ink); }
.btn:hover { background:#f2f4f6; } .btn:disabled { opacity:.55; cursor:wait; }
.btn.primary { background:var(--accent); border-color:var(--accent); color:#fff; } .btn.primary:hover { filter:brightness(1.08); }
.btn.ok { border-color:var(--green); color:var(--green); } .btn.danger { border-color:var(--red); color:var(--red); }
.btn.sm { padding:5px 9px; font-size:13px; }
.pill { border:1px solid var(--line); background:#fff; border-radius:999px; padding:6px 12px; cursor:pointer; font:inherit; }
.pill.on { background:var(--accent); color:#fff; border-color:var(--accent); } .chips { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:10px; }
.chip { display:inline-block; padding:2px 8px; border-radius:999px; font-size:12px; background:#eef0f3; color:#444; }
.chip.green { background:#dcfae6; color:var(--green); } .chip.red { background:#fee4e2; color:var(--red); }
.chip.amber { background:#fef0c7; color:var(--amber); } .chip.blue { background:#d1e9ff; color:var(--blue); } .chip.gray { background:#eef0f3; color:#555; }
.stats { display:grid; grid-template-columns:repeat(auto-fit,minmax(120px,1fr)); gap:10px; margin-bottom:12px; }
.stat { background:#fff; border:1px solid var(--line); border-radius:10px; padding:10px 12px; } .stat b { display:block; font-size:24px; } .stat span { color:var(--muted); font-size:13px; }
.stat.warn b { color:var(--amber); }
.filters { margin:0 0 10px; } .filters input, .filters select { margin:0; width:auto; flex:1; min-width:150px; }
.table-wrap { overflow-x:auto; background:#fff; border:1px solid var(--line); border-radius:10px; }
.tbl { width:100%; border-collapse:collapse; } .tbl th { text-align:left; font-size:12px; color:var(--muted); padding:8px 10px; border-bottom:1px solid var(--line); }
.tbl td { padding:9px 10px; border-bottom:1px solid var(--line); vertical-align:top; } .tbl tr:last-child td { border-bottom:0; } .tbl tr.off { opacity:.5; }
.tbl .acts { min-width:200px; } .tbl .acts .btn { margin:0 4px 4px 0; }
.kv { display:flex; justify-content:space-between; gap:12px; padding:5px 0; border-bottom:1px dashed var(--line); } .kv:last-child { border:0; } .kv.big { font-size:17px; }
.hint { color:var(--muted); font-size:13px; margin:0 0 10px; } .err { color:var(--red); min-height:1em; margin:6px 0; } .err.okmsg { color:var(--green); }
.lnk { color:var(--accent); font-weight:600; text-decoration:none; margin-right:6px; }
.login { max-width:420px; margin:30px auto; }
.timeline { list-style:none; padding:0 0 0 14px; margin:8px 0 0; border-left:2px solid var(--line); } .timeline li { padding:4px 0 10px 12px; position:relative; }
.timeline li::before { content:""; position:absolute; left:-20px; top:9px; width:10px; height:10px; border-radius:50%; background:var(--accent); }
.timeline small { display:block; }
.modal { position:fixed; inset:0; background:rgba(0,0,0,.45); display:flex; align-items:flex-start; justify-content:center; padding:30px 12px; overflow:auto; z-index:10; } .modal[hidden] { display:none; }
.modal-card { background:#fff; border-radius:12px; padding:18px; width:100%; max-width:460px; position:relative; } .modal-card.wide { max-width:640px; }
.modal-card h3 { margin-top:0; } .modal-card .x { position:absolute; right:10px; top:6px; border:0; background:none; font-size:26px; cursor:pointer; color:var(--muted); }
.toast { position:fixed; left:50%; bottom:20px; transform:translateX(-50%); background:#1b1f23; color:#fff; padding:10px 16px; border-radius:8px; opacity:0; pointer-events:none; transition:opacity .2s; z-index:20; max-width:90vw; }
.toast.show { opacity:1; } .toast.bad { background:var(--red); }
.stmt-text { background:#f6f7f8; border:1px solid var(--line); border-radius:8px; padding:10px; white-space:pre-wrap; font-size:13px; max-height:260px; overflow:auto; }
.sheet { border:2px solid #222; padding:14px; font-size:14px; } .sheet-head { display:flex; justify-content:space-between; margin-bottom:8px; font-size:16px; } .sheet-head .no { color:#c00; font-size:20px; }
.sheet table { width:100%; border-collapse:collapse; } .sheet td { border:1px solid #444; padding:6px 8px; vertical-align:top; } .sheet td:first-child { width:34%; font-weight:600; background:#f4f4f4; }
.cb { display:inline-block; width:16px; height:16px; border:1.5px solid #222; text-align:center; line-height:14px; vertical-align:middle; margin-right:3px; } .small { font-size:12px; }
@media print { body > *:not(#modal) { display:none !important; } .modal { position:static; background:none; padding:0; } .modal-card { box-shadow:none; padding:0; max-width:none; }
  .modal-card .x, .modal-card .row, .toast { display:none !important; } .sheet-head, .sheet td { -webkit-print-color-adjust:exact; print-color-adjust:exact; } }
.access { align-items:center; } .access select { width:auto; flex:1; min-width:130px; margin:0; } .access .btn { flex:none; }
