/* Cutoff — shared styles (Tailwind CDN does the rest) */
:root {
    --brand-900: #0B2524; --brand-800: #133837; --brand-600: #0E7C70; --brand-500: #14968a;
    --amber: #D97706; --line: #E2E8F0;
}
body { font-feature-settings: "tnum" 1; -webkit-font-smoothing: antialiased; }
.font-mono, .num { font-family: "JetBrains Mono", ui-monospace, monospace; font-variant-numeric: tabular-nums; }

/* Sidebar */
.sidebar { transition: transform .25s ease; }
@media (max-width: 1023px) { .sidebar { transform: translateX(-100%); } .sidebar.open { transform: translateX(0); } }
.nav-item { color: #cbd5e1; transition: background .15s ease, color .15s ease; }
.nav-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav-item.active { background: rgba(255,255,255,.10); color: #fff; box-shadow: inset 3px 0 0 var(--accent, #fbbf24); }

/* Cut-off countdown */
.cutoff-pill { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; padding: 6px 12px; border-radius: 999px;
    background: #FEF3C7; border: 1px solid #F59E0B; color: #92400E; white-space: nowrap; }
.cutoff-pill.critical { background: #FEE2E2; border-color: #DC2626; color: #991B1B; }

/* Cards & stat tiles */
.card { background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 1px 2px rgba(15,23,42,.04); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.card-head h2 { font-size: 15px; font-weight: 700; color: #0f172a; }
.card-head p { font-size: 12px; color: #64748b; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.tile .k { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: #64748b; font-weight: 600; }
.tile .v { font-family: "JetBrains Mono", monospace; font-size: 21px; font-weight: 600; color: #0f172a; margin-top: 6px; }
.tile .n { font-size: 12px; color: #64748b; margin-top: 2px; }
.tile.bad .v { color: #DC2626; } .tile.ok .v { color: #059669; } .tile.warn .v { color: #B45309; }

/* Tables */
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: #64748b; font-weight: 600; text-align: left;
    padding: 9px 14px; background: #F8FAFC; border-bottom: 1px solid #CBD5E1; white-space: nowrap; }
.tbl td { padding: 10px 14px; border-bottom: 1px solid #F1F5F9; vertical-align: middle; }
.tbl tbody tr:hover { background: #F8FAFC; }
.tbl tr:last-child td { border-bottom: none; }
.tbl .r, .tbl th.r { text-align: right; font-family: "JetBrains Mono", monospace; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl tfoot td { font-weight: 700; border-top: 1px solid #CBD5E1; background: #F8FAFC; }
.tbl tr.click { cursor: pointer; }

/* Pills and code badges */
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.code-badge { display: inline-block; font-family: "JetBrains Mono", monospace; font-size: 10.5px; font-weight: 600; padding: 2px 6px; border-radius: 4px; letter-spacing: .03em; }

/* Buttons & inputs */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; font-size: 13px; font-weight: 600; padding: 9px 15px;
    border-radius: 8px; background: var(--brand-600); color: #fff; transition: background .15s ease; cursor: pointer; border: 1px solid transparent; }
.btn:hover { background: var(--brand-700, #0a6a60); }
.btn.dark { background: var(--brand-900); } .btn.dark:hover { background: var(--brand-800); }
.btn.amber { background: var(--amber); } .btn.amber:hover { background: #b45309; }
.btn.danger { background: #DC2626; } .btn.danger:hover { background: #b91c1c; }
.btn.ghost { background: #fff; color: #334155; border-color: #CBD5E1; } .btn.ghost:hover { background: #F8FAFC; }
.btn.sm { font-size: 12px; padding: 6px 10px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.label { display: block; font-size: 12px; font-weight: 600; color: #475569; margin-bottom: 5px; }
.input { width: 100%; font-size: 14px; padding: 8px 11px; border: 1px solid #CBD5E1; border-radius: 8px; background: #fff; color: #0f172a; }
.input:focus { outline: 2px solid var(--brand-600); outline-offset: 0; border-color: transparent; }
.input[disabled], .input[readonly] { background: #F8FAFC; color: #64748b; }
.input.money { font-family: "JetBrains Mono", monospace; text-align: right; }
.hint { font-size: 11.5px; color: #64748b; margin-top: 4px; }

/* Workflow steps */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); }
.step { padding: 12px 14px; border-top: 3px solid #E2E8F0; font-size: 12px; color: #94a3b8; }
.step b { display: block; font-size: 13px; color: #64748b; }
.step.done { border-color: #059669; } .step.done b { color: #047857; }
.step.now { border-color: #D97706; } .step.now b { color: #0f172a; }
@media (max-width: 640px) { .steps { grid-template-columns: repeat(2, minmax(0,1fr)); } }

/* Modals */
.modal { position: fixed; inset: 0; z-index: 60; display: none; align-items: flex-start; justify-content: center; padding: 40px 16px;
    background: rgba(11,37,36,.45); backdrop-filter: blur(3px); overflow-y: auto; }
.modal.open { display: flex; }
.modal-box { background: #fff; border-radius: 12px; width: 100%; max-width: 640px; box-shadow: 0 20px 25px -5px rgba(11,37,36,.25); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.modal-head h3 { font-weight: 700; font-size: 16px; color: #0f172a; }
.modal-body { padding: 18px 20px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--line); background: #F8FAFC; border-radius: 0 0 12px 12px; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #0B2524; color: #fff; padding: 10px 16px;
    border-radius: 8px; font-size: 13px; z-index: 80; max-width: calc(100% - 32px); box-shadow: 0 10px 20px rgba(0,0,0,.2); }
.toast.error { background: #991B1B; }

/* Attention list */
.alert-row { display: grid; grid-template-columns: 4px 1fr; gap: 12px; padding: 11px 18px; border-bottom: 1px solid #F1F5F9; }
.alert-row:last-child { border-bottom: none; }
.alert-row i.bar { border-radius: 4px; background: #D97706; } .alert-row.bad i.bar { background: #DC2626; } .alert-row.info i.bar { background: #0E7C70; }

@media print { #sidebar, header, footer, .no-print { display: none !important; } .lg\:ml-64 { margin-left: 0 !important; } }

/* Payment method switch */
.btn.method.on { background: var(--brand-900); color: #fff; border-color: var(--brand-900); }
