/* ==========================================================================
   হালখাতা অ্যাডমিন — the same tokens at a desk: denser, tabular, a rail on
   the left carrying the signboard. Built for a laptop on a shop visit and a
   phone in the evening, in that order.
   ========================================================================== */

body.adm { background: var(--paper); font-size: 15px; }
.adm-shell { min-height: 100dvh; display: grid; grid-template-columns: 236px minmax(0, 1fr); }
.rail { position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; background: var(--leaf); border-right: 1px solid var(--rule); }
.rail__sign { padding: 20px 18px 16px; background: var(--board); color: var(--board-ink); box-shadow: inset 0 -3px 0 var(--board-2); }
.rail__word { font-family: var(--sign); font-size: 30px; line-height: 1.1; }
.rail__tag { font-size: 12px; font-weight: 800; letter-spacing: .04em; opacity: .75; }
.rail__nav { display: grid; gap: 2px; padding: 12px 10px; }
.rail__nav button { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: var(--r-2); font-weight: 700; color: var(--ink-2); text-align: left; }
.rail__nav button:hover { background: var(--leaf-2); }
.rail__nav button[aria-current="page"] { background: var(--carbon-wash); color: var(--carbon); }
.rail__nav .n { margin-left: auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--rani); color: var(--on-rani); font-size: 12px; font-weight: 800; line-height: 22px; text-align: center; }
.rail__foot { margin-top: auto; padding: 14px 18px; border-top: 1px solid var(--rule); font-size: 13px; color: var(--ink-3); }
.rail__foot a { color: var(--carbon); font-weight: 700; }

.adm-main { padding: 26px 32px 60px; min-width: 0; max-width: 1240px; }
.adm-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.adm-head .h1 { font-size: 26px; }
.adm-head .lede { margin-top: 2px; }

.akpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.akpis .kpi__fig { font-size: 27px; }
.grid2 { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 18px; align-items: start; margin-top: 22px; }

.call { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 14px; padding: 14px 16px; border-top: 1px solid var(--rule); align-items: center; }
.call:first-child { border-top: 0; }
.call__name { font-weight: 800; font-size: 15.5px; }
.call__why { font-size: 13px; color: var(--ink-3); }
.call__acts { grid-row: 1 / span 2; grid-column: 2; display: flex; gap: 6px; }

.tbl { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--leaf); border: 1px solid var(--rule); border-radius: var(--r-4); overflow: hidden; box-shadow: var(--sh-1); font-size: 14px; }
.tbl th { text-align: left; font-size: 12px; font-weight: 800; color: var(--ink-3); padding: 11px 14px; background: var(--leaf-2); border-bottom: 2px solid var(--ink); white-space: nowrap; }
.tbl td { padding: 12px 14px; border-top: 1px solid var(--rule); vertical-align: middle; }
.tbl tr:first-child td { border-top: 0; }
.tbl tbody tr { cursor: pointer; transition: background .12s; }
.tbl tbody tr:hover { background: var(--leaf-2); }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl__name { font-weight: 800; }
.tbl__sub { font-size: 12.5px; color: var(--ink-3); }

.state { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 800; white-space: nowrap; }
.state::before { content: ""; width: 7px; height: 7px; border-radius: 999px; background: currentColor; }
.state--active { background: var(--paid-wash); color: var(--paid); }
.state--trial { background: var(--carbon-wash); color: var(--carbon); }
.state--grace { background: var(--warn-wash); color: var(--warn); }
.state--expired { background: var(--rani-wash); color: var(--rani); }
.state--suspended { background: var(--sunk); color: var(--ink-2); }

.days { display: flex; gap: 2px; align-items: flex-end; height: 22px; }
.days span { width: 4px; border-radius: 2px; background: var(--sunk); height: 30%; }
.days span.on { background: var(--carbon); height: 100%; }

.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar .search { flex: 1; min-width: 240px; max-width: 420px; }

/* the drawer: register a shop, or look after one */
.drawer-scrim { position: fixed; inset: 0; z-index: 50; background: rgba(15,13,24,.42); animation: fade .2s var(--ease); }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 51; width: min(560px, 100%); display: flex; flex-direction: column; background: var(--paper); box-shadow: var(--sh-3); animation: slidein .32s var(--ease-out); }
@keyframes slidein { from { transform: translateX(40px); opacity: 0; } }
.drawer__head { display: flex; align-items: center; gap: 10px; padding: 18px 16px 14px 22px; background: var(--leaf); border-bottom: 1px solid var(--rule); }
.drawer__head .h2 { flex: 1; font-size: 20px; }
.drawer__body { flex: 1; overflow-y: auto; padding: 18px 22px 30px; }
.drawer__foot { padding: 14px 22px 18px; background: var(--leaf); border-top: 1px solid var(--rule); display: flex; gap: 10px; justify-content: flex-end; }

.secret { padding: 18px; border-radius: var(--r-4); background: var(--board); color: var(--board-ink); }
.secret__pw { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 24px; font-weight: 700; letter-spacing: .02em; margin: 6px 0 4px; user-select: all; }
.secret__line { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; padding: 3px 0; }
.secret__line b { font-family: ui-monospace, 'SF Mono', Menlo, monospace; }

.dl { display: grid; grid-template-columns: 130px 1fr; gap: 8px 14px; font-size: 14px; }
.dl dt { color: var(--ink-3); font-weight: 600; }
.dl dd { margin: 0; font-weight: 600; }

.login-adm { min-height: 100dvh; display: grid; place-items: center; padding: 20px; background: var(--paper); }
.login-adm .card { width: min(400px, 100%); overflow: hidden; }
.login-adm .rail__sign { border-radius: 0; }

@media (max-width: 900px) {
  .adm-shell { grid-template-columns: 1fr; }
  .rail { position: static; height: auto; }
  .rail__nav { grid-auto-flow: column; overflow-x: auto; }
  .rail__foot { display: none; }
  .adm-main { padding: 18px 14px 50px; }
  .akpis { grid-template-columns: 1fr 1fr; }
  .grid2 { grid-template-columns: 1fr; }
  .tbl .hide-s { display: none; }
}

/* ---- served build: what the prototype wrote as style="" (the CSP forbids it) */
.toast--fixed { position: fixed; }
.mt-10 { margin-top: 10px; }
.mt-12 { margin-top: 12px; }
.mt-14 { margin-top: 14px; }
.mt-18 { margin-top: 18px; }
.mt-22 { margin-top: 22px; }
.secret__note { font-size: 13px; font-weight: 700; }
.secret__rule { border: 0; border-top: 1px solid rgba(0,0,0,.2); margin: 12px 0; }
.acts-col { display: grid; gap: 8px; }
.login-adm__err { margin-top: 12px; }
.loading { padding: 60px 20px; text-align: center; color: var(--ink-3); }
.dev { display: flex; justify-content: space-between; gap: 10px; }
.btn[aria-busy="true"] { opacity: .6; pointer-events: none; }
