/* =========================================================================
   SIVA 24x7 LIVE PaySys — styles.css
   Modern professional fintech design system (offline, no frameworks)
   ========================================================================= */

:root {
  --bg: #F3F5FA;
  --card: #FFFFFF;
  --ink: #0E1F3D;
  --muted: #5D6B85;
  --line: #E4E9F2;
  --line-2: #EEF1F7;
  --navy: #0A1730;
  --navy-2: #10234A;
  --brand: #2563EB;
  --brand-2: #1D4ED8;
  --accent: #FF7A1A;
  --ok: #10B981;
  --warn: #F59E0B;
  --bad: #E5484D;
  --info: #0EA5E9;
  --violet: #8B5CF6;
  --shadow: 0 1px 2px rgba(14, 31, 61, .05), 0 8px 24px -12px rgba(14, 31, 61, .12);
  --shadow-lg: 0 24px 60px -16px rgba(14, 31, 61, .25);
  --r: 14px;
  --font: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
  min-height: 100vh;
}
b { font-weight: 650; }
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.01em; }
a { color: var(--brand); text-decoration: none; }
button { font-family: inherit; }
.mono { font-family: 'SFMono-Regular', ui-monospace, 'Cascadia Mono', Consolas, Menlo, monospace; font-size: 12px; letter-spacing: .01em; }
.mut { color: var(--muted); }
.sm { font-size: 12px; }
.mt { margin-top: 16px; }
.mt0 { margin-top: 0 !important; }
.ok-text { color: var(--ok); }
.bad-text { color: var(--bad); }
.ta-r { text-align: right; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ic { vertical-align: -3px; }

/* ============================ LOGIN ==================================== */
.login-wrap {
  display: grid; grid-template-columns: 1.05fr 1fr; min-height: 100vh;
}
.login-brand {
  background: radial-gradient(1100px 700px at -10% -10%, #16307A 0%, transparent 55%),
              radial-gradient(900px 700px at 110% 110%, #0B4A6F 0%, transparent 50%),
              linear-gradient(160deg, #0A1730 0%, #0D1F45 60%, #0A1730 100%);
  color: #E7ECF6; padding: 56px 58px; display: flex; flex-direction: column; gap: 18px;
}
.brand-row { display: flex; align-items: center; gap: 14px; }
.login-logo { height: 46px; width: auto; display: block; }
.brand-row h1 { font-size: 30px; color: #fff; letter-spacing: -0.02em; }
.brand-row h1 span { color: #7DB2FF; }
.brand-sub { color: #8FA3C8; font-size: 13px; margin-top: 2px; }
.tagline { font-size: 17px; color: #C9D6EF; font-weight: 600; margin-top: 8px; }
.tagline-gu { font-size: 14px; color: #8FA3C8; }
.feat { list-style: none; margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.feat li { color: #B9C7E2; font-size: 13.5px; }
.feat .ic { color: #34D399; margin-right: 6px; }
.brand-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: auto; padding-top: 30px; }
.brand-stats div { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 12px; padding: 12px 14px; }
.brand-stats b { display: block; font-size: 17px; color: #fff; font-variant-numeric: tabular-nums; }
.brand-stats span { font-size: 11px; color: #8FA3C8; }
.login-foot { color: #63739A; font-size: 11.5px; margin-top: 22px; }

.login-panel { padding: 56px 54px; overflow-y: auto; background: var(--bg); }
.login-panel h2 { font-size: 22px; }
.role-cards { display: flex; flex-direction: column; gap: 10px; margin: 22px 0; }
.role-card {
  display: flex; align-items: center; gap: 13px; background: var(--card);
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; cursor: pointer;
  transition: all .16s ease; box-shadow: var(--shadow);
}
.role-card:hover { border-color: var(--tone, var(--brand)); transform: translateY(-1px); box-shadow: 0 10px 24px -10px rgba(37, 99, 235, .25); }
.rc-ico {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; flex: none;
  background: color-mix(in srgb, var(--tone) 12%, white); color: var(--tone);
}
.rc-b { flex: 1; min-width: 0; }
.rc-t { font-weight: 700; font-size: 13.5px; }
.rc-p { font-size: 12px; color: var(--ink); }
.rc-d { font-size: 11.5px; color: var(--muted); }
.rc-go { color: var(--muted); }
.login-form { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow); }
.hint { margin-top: 10px; font-size: 12px; color: var(--muted); }
.sec-note { margin-top: 16px; font-size: 11.5px; color: var(--muted); display: flex; gap: 6px; align-items: center; }

/* ============================ LAYOUT =================================== */
.layout { display: grid; grid-template-columns: 246px 1fr; min-height: 100vh; }
.sidebar {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #B9C7E2; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
}
.sb-brand { display: flex; align-items: center; gap: 10px; padding: 18px 16px 14px; border-bottom: 1px solid rgba(255,255,255,.08); }
.sb-logo { height: 32px; width: auto; display: block; }
.sb-bt { line-height: 1.2; }
.sb-bt b { color: #fff; font-size: 15px; letter-spacing: -0.01em; }
.sb-bt em { color: #7DB2FF; font-style: normal; font-weight: 700; }
.sb-bt span { display: block; font-size: 10.5px; color: #8FA3C8; margin-top: 2px; }
.sb-nav { padding: 12px 10px; display: flex; flex-direction: column; gap: 2px; flex: 1; overflow-y: auto; }
.sb-item {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  background: none; border: 0; color: #B9C7E2; padding: 9px 12px; border-radius: 9px;
  font-size: 13px; font-weight: 550; cursor: pointer; transition: all .14s ease;
}
.sb-item:hover { background: rgba(255,255,255,.07); color: #fff; }
.sb-item.active { background: linear-gradient(90deg, rgba(37,99,235,.9), rgba(6,182,212,.55)); color: #fff; box-shadow: 0 6px 16px -6px rgba(37,99,235,.6); }
.sb-foot { padding: 14px; border-top: 1px solid rgba(255,255,255,.08); }
.sb-user { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.sb-user b { color: #fff; font-size: 13px; display: block; }
.sb-user span { font-size: 11px; color: #8FA3C8; }

.main { display: flex; flex-direction: column; min-width: 0; }
.topbar {
  display: flex; align-items: center; gap: 14px; background: rgba(255,255,255,.85); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line); padding: 12px 26px; position: sticky; top: 0; z-index: 30;
}
.tb-title h1 { font-size: 17px; }
.tb-date { font-size: 11.5px; color: var(--muted); display: block; }
.tb-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.role-chip {
  display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 650;
  color: var(--tone); background: color-mix(in srgb, var(--tone) 10%, white);
  border: 1px solid color-mix(in srgb, var(--tone) 25%, white); padding: 6px 11px; border-radius: 999px;
}
.icon-btn {
  position: relative; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--card); color: var(--ink); display: grid; place-items: center; cursor: pointer;
}
.icon-btn:hover { border-color: var(--brand); color: var(--brand); }
.dot-badge {
  position: absolute; top: -5px; right: -5px; background: var(--accent); color: #fff; font-style: normal;
  font-size: 10px; font-weight: 700; min-width: 16px; height: 16px; border-radius: 999px; display: grid; place-items: center; padding: 0 4px;
}
.sb-toggle { display: none; }
.content { padding: 24px 26px 40px; max-width: 1360px; width: 100%; margin: 0 auto; }
.pfoot { text-align: center; color: var(--muted); font-size: 11px; padding: 14px; border-top: 1px solid var(--line); }

/* ============================== PAGE =================================== */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head h2 { font-size: 21px; letter-spacing: -0.02em; }
.sub { color: var(--muted); font-size: 12.5px; margin-top: 3px; }
.head-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.sec-title { font-size: 15px; margin: 26px 0 12px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; align-items: start; }
.grid-21 { display: grid; grid-template-columns: 1.9fr 1fr; gap: 16px; margin-bottom: 16px; align-items: start; }

/* ============================== KPI ==================================== */
.kpi-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi-row.sm { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.kpi {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 14px 16px; display: flex; gap: 12px; align-items: flex-start; box-shadow: var(--shadow);
}
.kpi-ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.kpi-main { min-width: 0; }
.kpi-lab { font-size: 11px; font-weight: 650; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.kpi-val { font-size: 18px; font-weight: 750; letter-spacing: -0.02em; margin-top: 2px; font-variant-numeric: tabular-nums; }
.kpi-sub { font-size: 11.5px; color: var(--muted); margin-top: 3px; display: flex; align-items: center; gap: 6px; }
.delta { font-weight: 700; display: inline-flex; align-items: center; gap: 2px; }
.d-up { color: var(--ok); } .d-down { color: var(--bad); }

/* ============================== CARD =================================== */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow); overflow: hidden;
}
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px 0; }
.card-h h3 { font-size: 14px; }
.card-acts { display: flex; gap: 8px; }
.card-b { padding: 14px 18px 18px; }
.card-b .tbl-wrap { margin: 6px -18px -18px; }
.card-b .tbl-wrap table { border: 0; }
.card-b .tbl-foot { padding: 10px 18px; }

/* ============================== TABLE ================================== */
.tbl-wrap { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl thead th {
  text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted);
  background: #F7F9FC; padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; user-select: none;
}
.tbl thead th[data-act] { cursor: pointer; }
.tbl thead th[data-act]:hover { color: var(--brand); }
.tbl tbody td { padding: 10px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; white-space: nowrap; }
.tbl td.wrap, .tbl th.wrap { white-space: normal; min-width: 200px; }
.tbl tbody tr:hover { background: #F8FAFF; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl.sm { font-size: 12.5px; }
.tbl.sm thead th { padding: 8px 10px; }
.tbl.sm tbody td { padding: 8px 10px; }
.td-empty { text-align: center; color: var(--muted); padding: 26px !important; }
.tbl-foot { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; font-size: 12px; color: var(--muted); }
.pager { display: flex; align-items: center; gap: 10px; }
.pg-info { font-variant-numeric: tabular-nums; }

/* ============================= BADGES ================================== */
.badge {
  display: inline-flex; align-items: center; padding: 2.5px 9px; border-radius: 999px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap;
}
.b-ok { background: #E7F8F0; color: #067A55; }
.b-warn { background: #FDF3E1; color: #9A6A08; }
.b-bad { background: #FDE8E8; color: #B42323; }
.b-info { background: #E3F2FC; color: #0B6FA4; }
.b-mute { background: #EEF1F6; color: #5D6B85; }

/* ============================= BUTTONS ================================= */
.btn {
  display: inline-flex; align-items: center; gap: 6px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--card); color: var(--ink); font-size: 13px; font-weight: 600; padding: 8px 14px; cursor: pointer;
  transition: all .15s ease; white-space: nowrap;
}
.btn:hover { border-color: var(--brand); color: var(--brand); }
.btn-primary { background: linear-gradient(135deg, var(--brand), #3B82F6); border-color: transparent; color: #fff; box-shadow: 0 8px 18px -8px rgba(37,99,235,.55); }
.btn-primary:hover { color: #fff; filter: brightness(1.05); }
.btn-danger { background: #FDECEC; border-color: #F6C6C6; color: #B42323; }
.btn-danger:hover { background: #FBDDDD; color: #B42323; border-color: #B42323; }
.btn-ok { background: #E7F8F0; border-color: #B5E8D2; color: #067A55; }
.btn-ok:hover { color: #067A55; border-color: #067A55; }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: #EEF2FA; border-color: transparent; }
.btn-sm { padding: 6px 11px; font-size: 12.5px; }
.btn-xs { padding: 3px 8px; font-size: 11.5px; border-radius: 8px; }
.btn-block { width: 100%; justify-content: center; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }

/* ============================= FORMS =================================== */
.field { margin-bottom: 12px; min-width: 0; }
.field label { display: block; font-size: 11.5px; font-weight: 650; color: var(--muted); margin-bottom: 5px; text-transform: uppercase; letter-spacing: .04em; }
.field input, .field select, .field textarea, .f-sel {
  width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px;
  font-family: inherit; font-size: 13.5px; color: var(--ink); background: #FBFCFE; outline: none;
}
.field input:focus, .field select:focus, .field textarea:focus, .f-sel:focus { border-color: var(--brand); background: #fff; box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.f-sel { width: auto; min-width: 150px; padding: 8px 10px; font-size: 12.5px; }
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.tb-search {
  display: flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--line);
  border-radius: 10px; padding: 8px 12px; flex: 1; min-width: 220px; color: var(--muted);
}
.tb-search input { border: 0; outline: none; font-family: inherit; font-size: 13px; width: 100%; background: transparent; color: var(--ink); }
.tb-search.big { min-width: 320px; }
.tb-search.big input { font-size: 14.5px; }
.chk { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; margin-right: 14px; }
.chip-row { display: flex; gap: 8px; margin: 4px 0 8px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: #F7F9FC; border-radius: 999px; padding: 5px 12px; font-size: 12px; font-weight: 650; cursor: pointer; }
.chip:hover { border-color: var(--brand); color: var(--brand); }
.rate-line { font-size: 12px; color: var(--muted); }

/* ============================= TABS ==================================== */
.tabs { display: flex; gap: 6px; background: #E9EDF5; padding: 4px; border-radius: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.tab { border: 0; background: transparent; padding: 7px 14px; border-radius: 9px; font-size: 12.5px; font-weight: 650; color: var(--muted); cursor: pointer; }
.tab.active { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }

/* ============================= MODAL =================================== */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(10, 23, 48, .55); backdrop-filter: blur(3px);
  display: grid; place-items: center; z-index: 100; padding: 20px; overflow-y: auto;
}
.modal {
  background: var(--card); border-radius: 18px; width: 560px; max-width: 100%; max-height: 88vh;
  display: flex; flex-direction: column; box-shadow: var(--shadow-lg); animation: pop .18s ease;
}
.modal.wide { width: 860px; }
@keyframes pop { from { transform: translateY(10px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.modal-h h3 { font-size: 15px; display: flex; align-items: center; gap: 8px; }
.modal-b { padding: 18px 20px; overflow-y: auto; }
.modal-f { display: flex; gap: 8px; justify-content: flex-end; padding: 14px 20px; border-top: 1px solid var(--line); flex-wrap: wrap; }

/* ============================= TOASTS ================================== */
#toast-root { position: fixed; bottom: 22px; right: 22px; z-index: 200; display: flex; flex-direction: column; gap: 8px; }
.toast {
  display: flex; align-items: center; gap: 8px; background: var(--navy); color: #fff; font-size: 13px; font-weight: 550;
  border-radius: 12px; padding: 11px 16px; box-shadow: var(--shadow-lg); animation: slideIn .22s ease; max-width: 420px;
}
.toast.t-ok .ic { color: #34D399; }
.toast.t-err { background: #7F1D1D; }
.toast.t-err .ic { color: #FCA5A5; }
.toast.t-warn { background: #78350F; }
.toast.t-warn .ic { color: #FCD34D; }
.toast.out { opacity: 0; transform: translateX(20px); transition: all .3s ease; }
@keyframes slideIn { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }

/* =========================== KV / TIMELINE ============================= */
.kv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; }
.kv { padding: 6px 0; border-bottom: 1px dashed var(--line-2); }
.kv-k { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; font-weight: 650; }
.kv-v { font-size: 13.5px; margin-top: 1px; word-break: break-word; }
.timeline { display: flex; flex-direction: column; gap: 0; }
.tl-item { display: flex; gap: 12px; position: relative; padding-bottom: 14px; }
.tl-item:not(:last-child)::before { content: ''; position: absolute; left: 5px; top: 14px; bottom: 0; width: 2px; background: var(--line); }
.tl-dot { width: 12px; height: 12px; border-radius: 999px; background: #CBD5E4; flex: none; margin-top: 4px; position: relative; z-index: 1; }
.tl-item.done .tl-dot { background: var(--ok); box-shadow: 0 0 0 3px #E7F8F0; }
.tl-t { font-size: 13px; font-weight: 600; }
.tl-s { font-size: 12px; color: var(--muted); }
.note { border-radius: 10px; padding: 10px 13px; font-size: 12.5px; margin: 10px 0; }
.n-info { background: #E9F3FD; color: #0B5C8C; border: 1px solid #CBE4F8; }
.n-warn { background: #FDF6E7; color: #8A5A0A; border: 1px solid #F5E3BC; }
.n-ok { background: #EAF9F2; color: #067A55; border: 1px solid #C4EDDA; }

/* ============================== CHARTS ================================= */
.ct { font-size: 10.5px; fill: #7C89A3; font-family: var(--font); }
.legend { display: flex; gap: 16px; margin: 2px 0 8px; flex-wrap: wrap; }
.lg-item { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); font-weight: 600; }
.lg-item i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.donut-wrap { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.donut-big { font-size: 19px; font-weight: 750; fill: var(--ink); }
.d-legend { flex: 1; min-width: 150px; }
.dl-row { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 12.5px; }
.dl-row i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.dl-lab { flex: 1; color: var(--muted); }
.dl-pc { color: var(--muted); font-size: 11px; width: 34px; text-align: right; }
.hbars { display: flex; flex-direction: column; gap: 10px; }
.hbar-row { display: grid; grid-template-columns: 150px 1fr 70px; gap: 10px; align-items: center; font-size: 12.5px; }
.hbar-lab { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--muted); }
.hbar-track { background: #EDF1F8; border-radius: 999px; height: 10px; overflow: hidden; }
.hbar-fill { height: 100%; border-radius: 999px; }
.hbar-val { text-align: right; font-weight: 650; font-variant-numeric: tabular-nums; }
.prog { background: #EDF1F8; border-radius: 999px; height: 8px; overflow: hidden; margin-bottom: 4px; }
.prog-fill { height: 100%; border-radius: 999px; }

/* ============================ QR & PAY ================================= */
.qr-box { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: inline-block; box-shadow: var(--shadow); }
.qr-box canvas { display: block; image-rendering: pixelated; }
.qr-note { text-align: center; font-size: 11.5px; color: var(--muted); margin-top: 8px; font-family: ui-monospace, monospace; }
.qr-center { text-align: center; }
.qr-center .qr-box { margin-bottom: 10px; }
.pay-sum { display: grid; grid-template-columns: 200px 1fr; gap: 20px; }
.pay-amt { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.success-block, .fail-block { text-align: center; padding: 10px 0 4px; }
.sb-ico {
  width: 52px; height: 52px; margin: 0 auto 10px; border-radius: 999px; display: grid; place-items: center;
  background: #E7F8F0; color: var(--ok); font-size: 24px; font-weight: 800;
}
.sb-ico.bad { background: #FDE8E8; color: var(--bad); }
.cb-line { margin-top: 10px; background: #FDF6E7; border: 1px dashed #EBCF8E; display: inline-block; padding: 8px 14px; border-radius: 10px; }
.thread { display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 84%; background: #F3F5FA; border-radius: 12px; padding: 10px 13px; font-size: 13px; }
.msg.mine { background: #E9F0FE; margin-left: auto; }
.msg-h { font-size: 11px; color: var(--muted); margin-bottom: 3px; }
.notif-row { display: flex; gap: 10px; padding: 10px 2px; border-bottom: 1px solid var(--line-2); }
.notif-row .ic { color: var(--brand); flex: none; margin-top: 2px; }
.nt { font-size: 13px; }
.queue-row { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--line-2); font-size: 13px; gap: 10px; }
.queue-row b { font-variant-numeric: tabular-nums; }
.prov-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line-2); }
.prov-act { display: flex; gap: 6px; flex-shrink: 0; }
.doc-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 6px 0; }

/* ============================== PLANS ================================== */
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin-bottom: 8px; }
.plan-card { background: var(--card); border: 1.5px solid var(--line); border-top: 4px solid var(--pc, var(--brand)); border-radius: var(--r); padding: 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 8px; }
.plan-card.current { border-color: var(--pc); background: linear-gradient(180deg, color-mix(in srgb, var(--pc) 4%, white), white); }
.plan-h { display: flex; align-items: center; gap: 8px; }
.plan-h h3 { font-size: 15px; flex: 1; }
.plan-tier { font-size: 10px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; color: var(--pc); background: color-mix(in srgb, var(--pc) 10%, white); border-radius: 6px; padding: 3px 7px; }
.plan-price { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.plan-price span { font-size: 12px; color: var(--muted); font-weight: 600; }
.plan-cb { font-size: 12.5px; color: var(--pc); font-weight: 700; }
.plan-card ul { list-style: none; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.plan-card li { font-size: 12.5px; color: #3D4B66; }
.plan-card li .ic { color: var(--pc); margin-right: 4px; }
.plan-meta { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 8px; }
.plan-dot { display: inline-block; width: 8px; height: 8px; border-radius: 3px; margin-right: 6px; }

/* ============================ MEMBER CARD ============================== */
.member-card {
  border-radius: 20px; padding: 22px; color: #fff; position: relative; overflow: hidden;
  background: linear-gradient(130deg, var(--pc, #2563EB) 0%, #0E1F3D 130%);
  box-shadow: 0 20px 44px -14px color-mix(in srgb, var(--pc) 60%, transparent);
  min-height: 190px; display: flex; flex-direction: column;
}
.member-card::after { content: ''; position: absolute; right: -40px; top: -60px; width: 190px; height: 190px; border-radius: 999px; background: rgba(255,255,255,.09); }
.mc-top { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.mc-tier { background: rgba(255,255,255,.16); padding: 4px 10px; border-radius: 999px; font-size: 10.5px; }
.mc-name { font-size: 22px; font-weight: 800; margin: auto 0 4px; letter-spacing: -0.01em; }
.mc-meta { display: flex; gap: 14px; font-size: 11.5px; color: rgba(255,255,255,.75); }
.mc-bot { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 14px; gap: 10px; }
.mc-bot .mut { color: rgba(255,255,255,.66); font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; display: block; }
.mc-bot b { font-size: 15px; font-variant-numeric: tabular-nums; }
.mc-q canvas { width: 52px; height: 52px; border-radius: 8px; background: #fff; padding: 3px; }
.pump-row { display: flex; align-items: center; gap: 11px; padding: 9px 0; border-bottom: 1px dashed var(--line-2); }
.pump-row:last-child { border-bottom: 0; }
.pr-ico { width: 36px; height: 36px; border-radius: 10px; background: #FDF0E5; color: var(--accent); display: grid; place-items: center; flex: none; }
.pr-b { flex: 1; min-width: 0; }
.refer-box { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #F0F5FF; border: 1.5px dashed #B9CBF7; border-radius: 12px; padding: 14px 16px; }
.big-code { font-size: 20px; font-weight: 800; letter-spacing: .08em; color: var(--brand); }
.kb-item { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 4px 16px; margin-bottom: 10px; box-shadow: var(--shadow); }
.kb-item summary { cursor: pointer; padding: 10px 0; font-size: 13.5px; display: flex; align-items: center; gap: 8px; list-style: none; }
.kb-item summary::-webkit-details-marker { display: none; }
.kb-item summary .badge { margin-left: auto; }
.kb-body { padding: 2px 0 14px; color: var(--muted); font-size: 13px; }

/* ============================= AVATAR ================================== */
.avatar {
  width: 34px; height: 34px; border-radius: 10px; display: inline-grid; place-items: center;
  font-size: 12px; font-weight: 750; flex: none; letter-spacing: .02em;
}
.modal-h .avatar { width: 28px; height: 28px; font-size: 10.5px; }

/* ============================ RESPONSIVE =============================== */
@media (max-width: 1120px) {
  .grid-21 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .pay-sum { grid-template-columns: 1fr; }
}
@media (max-width: 920px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 250px; z-index: 60; transform: translateX(-100%); transition: transform .22s ease; height: 100dvh; }
  .sidebar.open { transform: none; box-shadow: var(--shadow-lg); }
  .sb-toggle { display: grid; }
  .login-wrap { grid-template-columns: 1fr; }
  .login-brand { padding: 36px 26px; }
  .brand-stats { grid-template-columns: repeat(2, 1fr); }
  .login-panel { padding: 30px 22px; }
  .content { padding: 18px 14px 30px; }
  .frow { grid-template-columns: 1fr; }
  .kpi-row { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
  .role-chip { display: none; }
  .topbar { padding: 10px 14px; }
}

/* ============================== PRINT ================================== */
@media print {
  body { background: #fff; }
  .sidebar, .topbar, .pfoot, .head-acts, .btn, .toolbar, .tabs, #toast-root, .modal-backdrop { display: none !important; }
  .layout { grid-template-columns: 1fr; }
  .content { max-width: 100%; padding: 0; }
  .card, .tbl-wrap { box-shadow: none; border-color: #D7DEEA; break-inside: avoid; }
  .kpi-row { grid-template-columns: repeat(4, 1fr); }
}

/* ==================== GRADIENT ICON TILES (gicons) ===================== */
.gtile {
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
  border-radius: 11px;
}
.gtile-solid {
  background: linear-gradient(135deg, var(--g1, #2563EB), var(--g2, #0EA5E9));
  box-shadow: 0 6px 14px -6px color-mix(in srgb, var(--g1, #2563EB) 60%, transparent);
}
.gtile-soft {
  background: linear-gradient(135deg, color-mix(in srgb, var(--g1, #2563EB) 13%, #fff), color-mix(in srgb, var(--g2, #0EA5E9) 13%, #fff));
  border: 1px solid color-mix(in srgb, var(--g1, #2563EB) 20%, #fff);
}
.back-site {
  display: inline-flex; align-items: center; gap: 5px; margin-top: 12px;
  font-size: 12.5px; font-weight: 650; color: var(--brand);
}
.back-site:hover { text-decoration: underline; }

/* ==================== FUELMITRA — FUEL ASSET UI ======================== */
/* FuelMitra: Centralised Fuel Management System (SNAIL INFOTECH) */
.fchip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(238px, 1fr)); gap: 14px; }
.fchip {
  position: relative; text-align: left; display: flex; flex-direction: column; gap: 10px;
  background: var(--card); border: 1.5px solid var(--line); border-radius: 16px;
  padding: 14px 15px 12px 18px; cursor: pointer; transition: .2s; overflow: hidden;
  box-shadow: var(--shadow); font-family: inherit; color: var(--ink);
}
.fchip::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: linear-gradient(180deg, var(--g1), var(--g2)); }
.fchip:hover { transform: translateY(-3px); border-color: var(--g1); box-shadow: 0 14px 30px -14px rgba(15, 23, 42, .28); }
.fchip-top { display: flex; align-items: center; gap: 10px; }
.fchip-name { font-weight: 800; font-size: 14.5px; display: block; }
.fchip-unit { font-size: 10.5px; font-weight: 700; color: var(--muted); border: 1px solid var(--line); padding: 2px 8px; border-radius: 20px; background: var(--bg); flex: none; }
.fchip-qty { font-size: 23px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.fchip-qty small { font-size: 11px; color: var(--muted); font-weight: 700; margin-left: 5px; letter-spacing: 0; }
.fchip-row { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--muted); }
.fchip-row b { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fchip-val { border-top: 1px dashed var(--line); padding-top: 9px; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 11.5px; color: var(--muted); }
.fchip-val b { font-size: 16px; font-weight: 800; background: linear-gradient(135deg, var(--g1), var(--g2)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; white-space: nowrap; }
.fchip-tap { font-size: 10.5px; font-weight: 600; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.fchip.zero { background: linear-gradient(180deg, #F8FAFC, #F1F5F9); border-style: dashed; }
.fchip.zero::before { background: #CBD5E1; }
.fchip.zero .fchip-qty, .fchip.zero .fchip-name { color: var(--muted); }
.fchip.zero .fchip-val b { background: none; -webkit-text-fill-color: currentcolor; color: var(--muted); }
.fchip.zero:hover { transform: none; border-color: var(--line); box-shadow: var(--shadow); }

/* contextual action sheet */
.fm-sheet { display: flex; flex-direction: column; gap: 9px; }
.fm-band {
  display: flex; align-items: center; gap: 12px; border-radius: 14px; padding: 13px 15px;
  color: #fff; background: linear-gradient(135deg, var(--g1), var(--g2)); margin-bottom: 4px;
}
.fm-band b { font-size: 15px; display: block; }
.fm-band span { font-size: 12px; opacity: .92; }
.fm-act {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  background: var(--bg); border: 1.5px solid var(--line); border-radius: 13px;
  padding: 11px 13px; cursor: pointer; transition: .18s; font-family: inherit;
}
.fm-act b { display: block; font-size: 13.5px; color: var(--ink); }
.fm-act span { font-size: 11.5px; color: var(--muted); display: block; }
.fm-act .go { margin-left: auto; color: var(--muted); flex: none; }
.fm-act:hover { border-color: var(--g1, var(--brand)); transform: translateX(3px); background: #fff; }
.fm-act.off { opacity: .55; cursor: not-allowed; }
.fm-act.off:hover { transform: none; border-color: var(--line); background: var(--bg); }
.fm-rate-panel {
  background: linear-gradient(135deg, rgba(37, 99, 235, .07), rgba(139, 92, 246, .09));
  border: 1px solid rgba(37, 99, 235, .18); border-radius: 13px; padding: 12px 14px;
}

/* fuel filter chips (master ledger) */
.fm-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.fm-chip {
  display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--line);
  background: var(--card); border-radius: 24px; padding: 6px 13px; font-size: 12px;
  font-weight: 700; color: var(--muted); cursor: pointer; transition: .15s; font-family: inherit;
}
.fm-chip:hover { border-color: var(--g1); color: var(--ink); }
.fm-chip.on { background: linear-gradient(135deg, var(--g1), var(--g2)); border-color: transparent; color: #fff; }
.fm-chip.on svg path, .fm-chip.on svg rect, .fm-chip.on svg circle { stroke: #fff; }
