/* GlobalTel admin portal. Builds on site.css and app.css (shell, cards, tables). Layout follows the Figma "Admin ·" frames. */
.admin-chip { display: inline-block; padding: 3px 9px; border-radius: 8px; background: var(--note-bg); color: var(--note-text); font-size: 11px; font-weight: 600; letter-spacing: .06em; }
.admin .topbar .brand { width: auto; min-width: 290px; }
.who { color: var(--text-3); font-size: 13px; }
.logged { padding: 12px 14px; border-radius: 14px; border: 1px solid var(--orange); background: var(--note-bg); color: var(--note-text); font-size: 12px; }
.logged b { display: block; font-size: 13px; margin-bottom: 4px; }
.logged span { display: block; line-height: 1.4; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px; }
.filters .seg { margin: 0; }
.filters select, .filters input[type=search] { height: 40px; padding: 0 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text); font: 500 14px "Fira Sans", sans-serif; }
.filters .grow { flex: 1; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 20px; }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 16px 18px; box-shadow: var(--shadow); }
.kpi small { display: block; color: var(--text-3); font-size: 13px; }
.kpi .v { font-size: 30px; font-weight: 300; margin: 4px 0 2px; }
.kpi .v.neg { color: #E5484D; }
.kpi .v.pos { color: var(--success-text); }
.kpi .d { font-size: 12px; color: var(--text-3); }
.chart-panel { margin-bottom: 20px; }
.chart-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.chart-head h2 { margin: 0; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--text-2); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
svg.chart { width: 100%; height: auto; display: block; }
svg.chart text { fill: var(--text-3); font: 400 11px "Fira Sans", sans-serif; }
svg.chart .grid { stroke: var(--border); stroke-width: 1; }
.tbl.sortable th { cursor: pointer; user-select: none; }
.tbl.sortable th:hover { color: var(--blue); }
/* app.css right-aligns the last column; here only number columns are right-aligned, and columns get room between them. */
.tbl th, .tbl td { text-align: left; padding-right: 16px; vertical-align: middle; }
.tbl th:last-child, .tbl td:last-child { text-align: left; padding-right: 0; }
.tbl td.num, .tbl th.num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl th.num, .tbl td.num { padding-left: 8px; }
.tbl td small.muted { font-size: 12px; }
.tbl tr.click { cursor: pointer; }
.tbl tr.click:hover td { background: var(--surface-muted); }
.tbl tfoot td { font-weight: 500; border-bottom: 0; }
.neg { color: #E5484D; }
.pos { color: var(--success-text); }
.op-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; }
.two { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; align-items: start; }
.table-scroll { overflow-x: auto; }
.form-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.form-row input, .form-row select { height: 46px; padding: 0 16px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text); font: 400 15px "Fira Sans", sans-serif; }
.form-row input { flex: 1; min-width: 220px; }
.bars-h { display: grid; gap: 12px; }
.bar-h .top { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 4px; }
.bar-h .track { height: 8px; border-radius: 99px; background: var(--surface-muted); overflow: hidden; }
.bar-h .fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--blue), var(--sky)); }

.drawer { position: fixed; inset: 0; z-index: 80; }
.drawer-back { position: absolute; inset: 0; background: rgba(11, 37, 89, .45); }
.drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(480px, 100%); background: var(--surface); box-shadow: -20px 0 60px rgba(0, 0, 0, .25); padding: 26px; overflow: auto; }
.drawer-panel h2 { margin: 0 0 4px; font-size: 28px; }
.drawer .close { float: right; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface-muted); cursor: pointer; font-size: 18px; color: var(--text); }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 10px 14px; margin: 18px 0; font-size: 14px; }
.kv dt { color: var(--text-3); } .kv dd { margin: 0; font-weight: 500; word-break: break-word; }
.sec-note { margin: 14px 0; padding: 12px 14px; border-radius: 14px; background: var(--surface-muted); font-size: 13px; color: var(--text-2); }

@media (max-width: 1100px) { .two { grid-template-columns: 1fr; } }
@media (max-width: 860px) { .admin .topbar .brand { min-width: 0; } .admin-chip { display: none; } .who { display: none; } }

/* eSIM: the icon is orange, the pill colour is the status (enabled green, disabled yellow, deleted red). */
.esim-cell { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.esim-ic { color: #EF7C08; font-size: 19px; }
.pill.yellow { background: #FFF1BF; color: #7A5A00; }
.pill.bad { background: #FDECEC; color: #B42318; }
@media (prefers-color-scheme: dark) { .pill.yellow { background: #3B3010; color: #F7CF5A; } .pill.bad { background: #3D1517; color: #FF8A8F; } }
.drawer-panel h3 { margin: 22px 0 8px; font-size: 16px; font-weight: 500; }
.num-card { border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; margin-bottom: 10px; display: grid; gap: 3px; }
.num-card.sel { border-color: var(--blue); box-shadow: 0 0 0 2px rgba(18, 94, 190, .15); }
.num-card .top { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.num-card small { font-size: 12px; }
.attempts { list-style: none; padding: 0; margin: 4px 0 0; font-size: 13px; }
.attempts li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.actions-row { margin: 16px 0 0; }
