/* עונים לי בהודעות — /bot/admin/, Achiya's own page (never a customer's). On family.css and ui.css, which carry
   the page bar, the .ledger tables and .table-scroll, the quiet keys, the dialog, the waiting line and the design chip;
   this file only lays the page out. admin.js fills #admin-sum, #admin-rows and #margin-rows. */

.admin { width: min(100% - 2 * var(--gutter), 1240px); margin-inline: auto; padding-block: clamp(26px, 4vw, 44px) 88px; }
.admin h1 { font-size: clamp(30px, 4vw, 42px); }
#admin-state { margin-top: 18px; }

/* the period at a glance: one ink-ruled strip of numbers */
.admin-sum { display: flex; flex-wrap: wrap; gap: 14px 44px; margin: 22px 0 28px; padding: 16px 22px; background: var(--sheet); border: 2px solid var(--ink); border-radius: var(--leaf-sm); }
.admin-sum div { display: grid; gap: 2px; }
.admin-sum dt { color: var(--ink-soft); font: 14.5px/1.35 var(--f-ui); }
.admin-sum dd { font: 30px/1.15 var(--f-display); font-variant-numeric: tabular-nums lining-nums; }

/* the tables: an ink-edged sheet; on a phone the rows scroll sideways inside it, never the page */
.admin-box { background: var(--sheet); border: 2px solid var(--ink); border-radius: var(--leaf-sm); }
.admin-box + .admin-box { margin-top: 28px; }
.admin-table { min-width: 960px; }
.admin-margin .admin-table { min-width: 620px; }
.admin-table caption { padding: 16px 18px 8px; font: 19px/1.35 var(--f-ui); text-align: start; }
.admin-table :is(th, td):first-child { padding-inline-start: 18px; }
.admin-table :is(th, td):last-child { padding-inline-end: 18px; }
.admin-table tbody tr:last-child > * { border-bottom: 0; }
.admin-table small { display: block; color: var(--ink-soft); font: 14px/1.5 var(--f-body); }
.admin-table tr.is-disabled > * { color: var(--ink-soft); background: var(--ivory); }
.admin-margin tr.is-disabled > :last-child { color: var(--err); }   /* a plan that loses money at a full quota */
.admin-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.admin-actions .btn { min-height: 44px; padding: 6px 14px; font-size: 15px; }
