:root {
  color-scheme: light;
  --ink: #142c3a;
  --ink-soft: #526978;
  --muted: #7d909c;
  --line: #e0e9ee;
  --paper: #f4f8fb;
  --white: #fff;
  --blue: #4baddd;
  --blue-strong: #168ac2;
  --blue-pale: #e5f4fb;
  --red: #cf3346;
  --red-pale: #fff0f1;
  --gold: #e6b746;
  --gold-deep: #8b6512;
  --gold-pale: #fff8e8;
  --green: #39856c;
  --green-pale: #eaf5f1;
  --shadow: 0 18px 50px rgba(23, 52, 69, .08);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--paper); }
body { margin: 0; min-height: 100vh; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }

.launch-screen { position: fixed; inset: 0; z-index: 40; display: grid; overflow: hidden; color: #fff; background: #081d2b; transition: opacity .35s ease, visibility .35s ease; }
.launch-screen.is-hidden { visibility: hidden; opacity: 0; pointer-events: none; }
.launch-image, .launch-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.launch-image { object-fit: cover; object-position: center 42%; }
.launch-shade { background: linear-gradient(180deg, rgba(8,25,40,.32), rgba(7,22,35,.06) 45%, rgba(7,20,31,.78)); }
.launch-wordmark { display: none; }
.launch-wordmark b { color: #8ddfff; font-weight: 750; }.launch-wordmark small { align-self: center; margin-left: 7px; color: #fff; font-size: 9px; font-weight: 800; letter-spacing: .19em; }
.launch-caption { position: absolute; right: 24px; bottom: 34px; left: 24px; display: flex; justify-content: space-between; color: rgba(255,255,255,.8); font-size: 8px; font-weight: 800; letter-spacing: .17em; }
.launch-progress { position: absolute; right: 24px; bottom: 19px; left: 24px; height: 2px; overflow: hidden; background: rgba(255,255,255,.25); }.launch-progress i { display: block; width: 34%; height: 100%; transform: translateX(-100%); background: #8ddfff; animation: load-sweep 1.2s ease-in-out infinite; }
@keyframes load-sweep { to { transform: translateX(400%); } }

.auth-wrap { min-height: 100dvh; display: grid; grid-template-columns: minmax(440px, 1fr) minmax(360px, .9fr); background: #fbfdfe; }
.auth-panel { width: min(520px, 100%); margin: auto; padding: 56px 50px; }
.brand-lockup { display: inline-flex; gap: 12px; align-items: center; color: var(--ink); }
.brand-lockup img { width: 44px; height: 44px; border: 1px solid #d7e5eb; border-radius: 8px; object-fit: cover; object-position: center 28%; background: #102431; }
.brand-lockup strong, .brand-lockup small { display: block; }
.brand-lockup strong { font-size: 15px; letter-spacing: -.02em; font-weight: 800; }
.brand-lockup strong span { color: var(--ink); }.brand-lockup strong em { color: var(--blue-strong); font-style: normal; }
.brand-lockup small { padding-top: 4px; color: var(--muted); font-size: 9px; letter-spacing: .17em; font-weight: 800; }
.auth-panel > .brand-lockup { margin-bottom: 74px; }
.eyebrow { margin: 0; color: var(--blue-strong); font-size: 10px; line-height: 1.5; font-weight: 800; letter-spacing: .16em; }.eyebrow::before { display: inline-block; width: 5px; height: 5px; margin: 0 6px 1px 0; border-radius: 50%; background: var(--gold); content: ""; }
.auth-panel h1 { margin: 17px 0 14px; font-size: clamp(37px, 5vw, 54px); letter-spacing: -.055em; line-height: 1.05; font-weight: 760; }
.auth-panel h1 span { color: var(--blue-strong); }
.auth-copy { max-width: 420px; color: var(--ink-soft); font-size: 15px; line-height: 1.7; }
.login-form { display: grid; gap: 10px; margin-top: 32px; }
.login-form label, .dialog-form label { color: var(--ink); font-size: 12px; font-weight: 700; }
.login-form input, .dialog-form input, .dialog-form select, .dialog-form textarea, .search-field input { width: 100%; min-height: 48px; padding: 12px 14px; color: var(--ink); border: 1px solid var(--line); border-radius: 7px; outline: none; background: #fff; transition: border-color .15s, box-shadow .15s; }
.login-form input { margin: 0 0 10px; }
.login-form input:focus, .dialog-form input:focus, .dialog-form select:focus, .dialog-form textarea:focus, .search-field input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(75, 173, 221, .13); }
.form-message { min-height: 18px; margin: 12px 0 0; color: var(--red); font-size: 12px; line-height: 1.5; }
.form-message.success { color: var(--green); }
.auth-footnote { max-width: 420px; margin: 14px 0 28px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.store-link { display: inline-flex; gap: 10px; align-items: center; color: var(--ink-soft); font-size: 12px; font-weight: 700; }
.store-link span, .text-action span, .panel-footer-link span { color: var(--blue-strong); }
.auth-aside { position: relative; display: flex; min-height: 100dvh; flex-direction: column; justify-content: center; overflow: hidden; padding: 66px clamp(44px, 9vw, 140px); color: #f5fbfe; background: #102431; }
.auth-aside::before { position: absolute; top: -150px; right: -120px; width: 530px; height: 530px; border: 1px solid rgba(145, 213, 241, .18); border-radius: 50%; content: ""; box-shadow: 0 0 0 56px rgba(145, 213, 241, .035), 0 0 0 112px rgba(145, 213, 241, .025); }
.aside-mark { position: absolute; top: 52px; right: 54px; color: rgba(255,255,255,.12); font-size: 38px; font-weight: 850; letter-spacing: -.09em; }
.aside-mark span { color: var(--red); }
.auth-aside .eyebrow { color: #91d5f1; }
.auth-aside h2 { position: relative; margin: 18px 0 34px; font-size: clamp(35px, 4.5vw, 56px); font-weight: 730; line-height: 1.05; letter-spacing: -.055em; }
.receipt-art { position: relative; width: min(330px, 92%); min-height: 218px; display: flex; flex-direction: column; gap: 16px; margin: 0 0 28px 5%; padding: 26px 25px; overflow: hidden; transform: rotate(-3deg); border-radius: 6px; background: #eff7fa; box-shadow: 14px 18px 0 rgba(10, 25, 33, .28); }
.receipt-art::before, .receipt-art::after { position: absolute; left: -7px; right: -7px; height: 12px; border-radius: 50%; background: #102431; content: ""; }
.receipt-art::before { top: -7px; }.receipt-art::after { bottom: -7px; }
.receipt-line { display: block; width: 72%; height: 5px; border-radius: 4px; background: #cbdce4; }.receipt-line.long { width: 95%; }.receipt-line.short { width: 48%; }
.receipt-art i { position: absolute; right: 24px; bottom: 25px; color: var(--red); font-size: 32px; font-style: normal; font-weight: 800; letter-spacing: -.04em; }
.aside-note { max-width: 340px; margin: 0; color: #b9cbd4; font-size: 14px; line-height: 1.6; }
.aside-place { position: absolute; bottom: 28px; color: #76909d; font-size: 9px; font-weight: 800; letter-spacing: .16em; }

.app-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 5; display: flex; width: 238px; flex-direction: column; padding: 27px 17px 19px; color: #e8f1f5; background: #102431; }
.sidebar-brand { align-self: flex-start; margin: 0 0 56px 8px; color: #fff; }
.sidebar-brand img { width: 40px; height: 40px; }
.sidebar-brand small { color: #91a8b4; }
.nav-caption { margin: 0 13px 12px; color: #738b97; font-size: 9px; font-weight: 800; letter-spacing: .17em; }
.main-nav { display: grid; gap: 5px; }
.nav-item { position: relative; display: flex; min-height: 46px; align-items: center; gap: 12px; padding: 0 13px; border: 0; border-radius: 5px; color: #a9bec8; text-align: left; background: transparent; cursor: pointer; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,.06); }
.nav-item.active { color: #fff; background: #1b394a; }
.nav-item.active::before { position: absolute; top: 11px; bottom: 11px; left: -17px; width: 3px; border-radius: 0 3px 3px 0; background: var(--blue); content: ""; }
.nav-icon { width: 18px; color: #8fb9cc; text-align: center; font-size: 17px; font-weight: 700; }
.nav-item.active .nav-icon { color: #91d5f1; }
.nav-item > span:nth-child(2) { font-size: 12px; font-weight: 700; }
.nav-count { display: inline-grid; min-width: 19px; height: 19px; place-items: center; margin-left: auto; padding: 0 5px; border-radius: 10px; color: #fff; background: var(--red); font-size: 10px; font-weight: 800; }
.sidebar-bottom { display: grid; gap: 24px; margin-top: auto; }
.sidebar .store-link { padding: 0 10px; color: #a9bec8; }
.account-row { display: flex; min-width: 0; align-items: center; gap: 10px; padding: 14px 4px 0; border-top: 1px solid rgba(255,255,255,.11); }
.avatar { display: grid; width: 33px; height: 33px; flex: 0 0 auto; place-items: center; border: 1px solid rgba(145,213,241,.4); border-radius: 50%; color: #91d5f1; font-size: 10px; font-weight: 800; }
.account-text { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 4px; }
.account-text strong { color: #f7fbfd; font-size: 11px; }.account-text small { overflow: hidden; color: #93aab5; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.icon-button { display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--ink-soft); background: #fff; font-size: 17px; cursor: pointer; }
.icon-button:hover { border-color: #9db2bd; color: var(--ink); }
.sidebar .icon-button { width: 30px; height: 30px; border-color: rgba(255,255,255,.14); color: #a9bec8; background: transparent; }
.sidebar .icon-button.signout { width: auto; min-width: 70px; gap: 5px; padding: 0 9px; border-radius: 5px; font-size: 9px; font-weight: 750; }
.sidebar .icon-button.signout span { white-space: nowrap; }

.main-content { min-height: 100vh; margin-left: 238px; }
.topbar { position: sticky; top: 0; z-index: 4; display: flex; height: 73px; align-items: center; justify-content: space-between; padding: 0 clamp(24px, 4vw, 54px); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.94); backdrop-filter: blur(14px); }
.breadcrumb { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 11px; }
.breadcrumb b { color: #c6d1d7; font-weight: 500; }.breadcrumb strong { color: var(--ink); font-weight: 700; }
.top-actions { display: flex; align-items: center; gap: 18px; }
.connection-pill { display: flex; align-items: center; gap: 8px; color: var(--ink-soft); font-size: 10px; font-weight: 650; }
.connection-pill i { width: 7px; height: 7px; border-radius: 50%; background: #50a281; box-shadow: 0 0 0 3px #eaf5f1; }
.button { display: inline-flex; min-height: 43px; align-items: center; justify-content: center; gap: 14px; padding: 0 17px; border: 1px solid transparent; border-radius: 5px; font-size: 11px; font-weight: 750; cursor: pointer; transition: transform .15s, background .15s, border-color .15s; }
.button:hover { transform: translateY(-1px); }.button:disabled { opacity: .6; cursor: wait; transform: none; }
.button span { font-size: 15px; }
.button-primary { color: #fff; background: var(--blue-strong); }.button-primary:hover { background: #1179aa; }
.button-dark { color: #fff; background: var(--ink); }.button-dark:hover { background: #214257; }
.button-secondary { border-color: var(--line); color: var(--ink); background: #fff; }.button-secondary:hover { border-color: #b8c9d2; }
.button-danger { border-color: #ecc7cc; color: #a83c4c; background: #fff; }.button-danger:hover { border-color: #d8919b; background: #fff5f6; }
.button-danger { border-color: #f0c5cb; color: #a72f40; background: #fff; }
.button-wide { width: 100%; min-height: 50px; margin-top: 7px; }
.mobile-brand, .mobile-signout { display: none; }
.page-body { width: min(1280px, 100%); margin: 0 auto; padding: 37px clamp(24px, 4vw, 54px) 35px; }
.view { display: none; }.view.active { display: block; animation: appear .22s ease-out; }
@keyframes appear { from { opacity: .7; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.page-heading h1 { margin: 7px 0 7px; font-size: clamp(28px, 3vw, 38px); font-weight: 790; letter-spacing: -.055em; line-height: 1.05; }
.subheading { margin: 0; color: var(--ink-soft); font-size: 12px; line-height: 1.6; }
.summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin-bottom: 18px; }
.metric-card { position: relative; min-height: 151px; padding: 18px 20px; overflow: hidden; border: 1px solid var(--line); border-radius: 5px; background: #fff; }
.metric-card.metric-primary { border-color: #214555; color: #f1f9fc; background: #173544; }
.metric-card.metric-alert { background: #fffafb; }
.metric-card.metric-overdue { color: var(--gold-deep); border-color: #eedcae; background: var(--gold-pale); text-align: left; cursor: pointer; transition: border-color .15s, transform .15s, box-shadow .15s; }.metric-card.metric-overdue:hover { transform: translateY(-2px); border-color: var(--gold); box-shadow: var(--shadow); }.metric-card.metric-overdue strong { color: #9b6810; }.metric-overdue .metric-label { color: #947025; }.metric-overdue small { color: #947c4b; }.metric-arrow { position: absolute; top: 15px; right: 17px; color: #bf921e; font-weight: 800; }
.metric-label { display: block; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.metric-primary .metric-label { color: #9ec4d1; }
.metric-card strong { position: relative; z-index: 1; display: block; margin: 15px 0 6px; font-size: 27px; font-weight: 770; letter-spacing: -.045em; }
.metric-card small { color: var(--muted); font-size: 10px; }.metric-primary small { color: #b5cad3; }
.metric-mark { position: absolute; right: 10px; bottom: -39px; color: rgba(145,213,241,.1); font-size: 130px; font-weight: 800; line-height: 1; }
.metric-index { position: absolute; right: 17px; top: 16px; color: #c5d4db; font-size: 9px; font-weight: 800; }
.metric-alert .metric-index { color: #e4b3ba; }
.metric-link { display: block; margin: 10px 0 0; padding: 0; border: 0; color: var(--blue-strong); background: none; font-size: 10px; font-weight: 750; cursor: pointer; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(270px, .85fr); gap: 15px; }
.panel { border: 1px solid var(--line); border-radius: 5px; background: #fff; }
.panel-heading { display: flex; min-height: 76px; align-items: center; justify-content: space-between; gap: 18px; padding: 15px 20px; border-bottom: 1px solid #edf1f3; }
.panel-heading h2 { margin: 4px 0 0; font-size: 16px; font-weight: 760; letter-spacing: -.025em; }
.panel-heading .eyebrow { font-size: 8px; }
.text-action, .panel-footer-link { display: inline-flex; align-items: center; gap: 8px; padding: 0; border: 0; color: var(--ink-soft); background: none; font-size: 10px; font-weight: 750; cursor: pointer; }
.panel-count { display: grid; min-width: 28px; height: 28px; place-items: center; padding: 0 8px; border: 1px solid var(--line); border-radius: 50%; color: var(--ink-soft); font-size: 11px; font-weight: 750; }
.list-stack { display: grid; }
.due-row, .approval-row { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid #edf1f3; }
.due-row:last-child, .approval-row:last-child { border-bottom: 0; }
.due-date { display: flex; width: 43px; height: 46px; flex: 0 0 auto; flex-direction: column; align-items: center; justify-content: center; border: 1px solid #e1eaf0; border-radius: 4px; color: var(--ink); background: #f7fafc; }
.due-date.overdue { border-color: #f1c9cf; color: var(--red); background: var(--red-pale); }
.due-date strong { font-size: 16px; line-height: 1; }.due-date span { margin-top: 4px; color: var(--muted); font-size: 8px; font-weight: 750; text-transform: uppercase; }
.row-main { min-width: 0; flex: 1; }.row-main strong { display: block; overflow: hidden; color: var(--ink); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.row-main small { display: block; margin-top: 5px; overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.row-side { display: flex; flex: 0 0 auto; flex-direction: column; align-items: flex-end; gap: 7px; }
.row-side strong { font-size: 11px; font-weight: 780; }.row-side small { color: var(--muted); font-size: 9px; }
.reminder-link { display: inline-flex; align-items: center; gap: 5px; padding: 6px 8px; border: 1px solid #cfe6f0; border-radius: 3px; color: #26799b; background: #f1f9fc; font-size: 9px; font-weight: 750; cursor: pointer; }
.reminder-link:hover { border-color: #94cbe1; background: var(--blue-pale); }
.approval-row .row-main { padding-left: 2px; }.approval-amount { color: var(--ink); font-size: 12px; font-weight: 780; white-space: nowrap; }
.payment-kind { display: inline-flex; align-items: center; gap: 5px; color: var(--ink-soft); font-size: 9px; }.payment-kind::before { width: 6px; height: 6px; border-radius: 50%; background: #d89e40; content: ""; }
.panel-footer-link { min-height: 46px; justify-content: center; width: 100%; border-top: 1px solid #edf1f3; color: var(--blue-strong); }
.empty-state { padding: 30px 18px; color: var(--muted); text-align: center; font-size: 11px; line-height: 1.6; }
.quick-panel { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 15px; padding: 21px 24px; background: #e9f5fa; }
.quick-copy .eyebrow { font-size: 8px; }.quick-copy h2 { margin: 6px 0; font-size: 16px; letter-spacing: -.03em; }.quick-copy p:last-child { margin: 0; color: var(--ink-soft); font-size: 11px; line-height: 1.55; }
.quick-copy .alert-status { display: block; margin-top: 10px; color: #54717f; font-size: 9px; line-height: 1.5; }.alert-actions { display: flex; flex: 0 0 auto; gap: 8px; }
.page-footer { display: flex; justify-content: space-between; padding: 6px clamp(24px, 4vw, 54px) 22px; color: #98a8b0; font-size: 8px; font-weight: 750; letter-spacing: .11em; }

.table-panel { overflow: hidden; }.search-field { display: flex; width: min(280px, 45%); align-items: center; gap: 7px; padding-left: 11px; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); background: #fff; }.search-field input { min-height: 37px; padding: 8px 9px 8px 0; border: 0; box-shadow: none !important; font-size: 10px; }.search-field input:focus { outline: 0; }.search-field span { font-size: 18px; }
.table-wrap { width: 100%; overflow-x: auto; }
.ledger-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 18px; border-bottom: 1px solid #edf1f3; }
.data-table { width: 100%; border-collapse: collapse; text-align: left; }
.data-table th { padding: 13px 16px; color: #81929b; background: #fafcfd; font-size: 8px; font-weight: 800; letter-spacing: .1em; white-space: nowrap; }
.data-table td { padding: 14px 16px; border-top: 1px solid #edf1f3; color: var(--ink-soft); font-size: 10px; vertical-align: middle; white-space: nowrap; }
.data-table td strong { color: var(--ink); font-size: 11px; font-weight: 740; }
.table-primary { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; }
.table-primary img { width: 36px; height: 36px; border: 1px solid #e8eef1; border-radius: 4px; object-fit: cover; background: #f4f8fa; }
.table-primary span { display: grid; gap: 4px; }.table-primary small { color: var(--muted); font-size: 9px; font-weight: 500; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 20px; color: var(--ink-soft); background: #eff3f5; font-size: 8px; font-weight: 800; }
.status-pill::before { width: 5px; height: 5px; border-radius: 50%; background: #8297a2; content: ""; }
.status-pill.active, .status-pill.approved { color: #337c62; background: var(--green-pale); }.status-pill.active::before, .status-pill.approved::before { background: var(--green); }
.status-pill.ready, .status-pill.completed, .status-pill.collected { color: #337c62; background: var(--green-pale); }.status-pill.ready::before, .status-pill.completed::before, .status-pill.collected::before { background: var(--green); }
.status-pill.pending { color: #956d22; background: #fff7e8; }.status-pill.pending::before { background: #cb983c; }
.status-pill.overdue, .status-pill.rejected, .status-pill.cancelled { color: #a83c4c; background: var(--red-pale); }.status-pill.overdue::before, .status-pill.rejected::before, .status-pill.cancelled::before { background: var(--red); }
.plan-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 11px; }.filter-chip { min-height: 27px; padding: 0 9px; border: 1px solid var(--line); border-radius: 20px; color: var(--ink-soft); background: #fff; font-size: 9px; font-weight: 750; cursor: pointer; }.filter-chip.active { border-color: #edd99e; color: #805d13; background: var(--gold-pale); }.filter-chip span { display: inline-grid; min-width: 17px; height: 17px; margin-left: 3px; place-items: center; border-radius: 50%; color: #805d13; background: #f6e9c1; font-size: 8px; }
.table-actions { display: inline-flex; align-items: center; gap: 6px; }
.small-button { min-height: 29px; padding: 0 9px; border: 1px solid var(--line); border-radius: 4px; color: var(--ink); background: #fff; font-size: 9px; font-weight: 750; cursor: pointer; }.small-button:hover { border-color: #9db7c3; }
.small-button.approve { border-color: #c4dfd4; color: #2c785c; background: #f1f8f5; }.small-button.reject { color: #9c3c4a; }
.approval-list { display: grid; }.approval-card { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 18px; padding: 16px 20px; border-bottom: 1px solid #edf1f3; }.approval-card:last-child { border-bottom: 0; }.approval-customer { display: flex; align-items: center; gap: 12px; }.approval-initial { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; color: #1f7da6; background: #e7f4fa; font-size: 11px; font-weight: 800; }.approval-customer strong, .approval-customer small { display: block; }.approval-customer strong { font-size: 11px; }.approval-customer small { margin-top: 4px; color: var(--muted); font-size: 9px; }.approval-actions { display: flex; gap: 6px; }
.privacy-note { display: flex; align-items: center; gap: 8px; margin: 13px 4px; color: var(--muted); font-size: 10px; }.privacy-note span { color: #50a281; font-size: 9px; }
.wallet-banner { display: flex; align-items: center; justify-content: space-between; gap: 30px; min-height: 192px; margin: 0 0 17px; padding: 31px 36px; border-radius: 5px; color: #f3f9fb; background: #173544; }
.wallet-banner .eyebrow { color: #9acfe2; font-size: 9px; }.wallet-banner > div:first-child strong { display: block; margin: 10px 0 8px; font-size: clamp(36px, 5vw, 50px); font-weight: 780; letter-spacing: -.06em; }.wallet-banner > div:first-child span { color: #b9cbd2; font-size: 10px; }
.wallet-side { display: flex; min-width: 170px; flex-direction: column; gap: 8px; padding-left: 28px; border-left: 1px solid rgba(255,255,255,.18); }.wallet-side span { color: #b9cbd2; font-size: 10px; }.wallet-side strong { font-size: 22px; letter-spacing: -.04em; }.ledger-key { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 9px; }.ledger-key .status-dot:nth-of-type(2) { margin-left: 9px; }.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #d49b37; }.status-dot.approved { background: var(--green); }

.sheet-dialog { width: min(690px, calc(100vw - 24px)); max-width: none; max-height: min(92dvh, 880px); padding: 0; overflow-y: auto; border: 0; border-radius: 9px; background: #fff; box-shadow: 0 30px 100px rgba(8, 29, 40, .3); }
.sheet-dialog::backdrop { background: rgba(10, 31, 43, .52); backdrop-filter: blur(3px); }
.dialog-form { padding: 26px 30px 25px; }
.dialog-heading { display: flex; justify-content: space-between; gap: 18px; padding-bottom: 19px; border-bottom: 1px solid var(--line); }
.dialog-heading h2 { margin: 5px 0 6px; font-size: 24px; font-weight: 790; letter-spacing: -.045em; }.dialog-heading p:last-child { margin: 0; color: var(--ink-soft); font-size: 11px; line-height: 1.55; }
.close-button { display: grid; width: 42px; height: 42px; flex: 0 0 auto; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--ink-soft); background: #fff; font-size: 25px; cursor: pointer; touch-action: manipulation; }.close-button:hover { border-color: var(--gold); color: var(--ink); background: var(--gold-pale); }
.form-section { display: grid; gap: 13px; padding: 20px 0; border-bottom: 1px solid #edf1f3; }.form-section h3 { display: flex; align-items: center; gap: 9px; margin: 0; font-size: 12px; font-weight: 800; }.form-section h3 span { color: var(--blue-strong); font-size: 9px; letter-spacing: .08em; }.form-section h3 small { color: var(--muted); font-size: 9px; font-weight: 500; }
.dialog-form .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }.dialog-form label { display: grid; gap: 7px; }.dialog-form label > small { color: var(--muted); font-size: 9px; font-weight: 500; }.dialog-form input, .dialog-form select, .dialog-form textarea { min-height: 42px; padding: 10px 12px; font-size: 11px; }.dialog-form textarea { min-height: 65px; resize: vertical; }.full-field { grid-column: 1 / -1; }
.device-fields { margin-top: 13px; }.selected-device { display: flex; align-items: center; gap: 10px; margin-top: 12px; color: var(--ink-soft); font-size: 10px; font-weight: 700; }.selected-device img { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 4px; object-fit: cover; }
.plan-calculation { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; padding: 14px; border-radius: 5px; background: #f2f8fb; }.plan-calculation div { display: grid; gap: 7px; }.plan-calculation span { color: var(--muted); font-size: 9px; }.plan-calculation strong { color: var(--ink); font-size: 13px; font-weight: 800; }.plan-calculation div:last-child strong { color: var(--blue-strong); }
.dialog-footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding-top: 18px; }.dialog-footer .form-message { flex: 1; margin: 0; }.approval-explainer { margin: 16px 0 0; padding: 12px 14px; border-left: 3px solid var(--blue); color: var(--ink-soft); background: #f2f8fb; font-size: 10px; line-height: 1.6; }
.compact-dialog { width: min(540px, calc(100vw - 24px)); }.compact-dialog .form-grid { margin: 20px 0 13px; }.compact-dialog .dialog-form > label { margin-top: 14px; }
.detail-dialog { width: min(760px, calc(100vw - 24px)); }.detail-body { padding: 27px 30px; }.detail-top { display: flex; justify-content: space-between; gap: 24px; }.detail-title { display: flex; align-items: center; gap: 14px; }.detail-title img { width: 62px; height: 62px; object-fit: cover; border: 1px solid var(--line); border-radius: 5px; }.detail-title h2 { margin: 5px 0; font-size: 22px; letter-spacing: -.04em; }.detail-title p { margin: 0; color: var(--ink-soft); font-size: 10px; }.detail-summary { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin: 22px 0; }.detail-summary div { padding: 13px; border: 1px solid var(--line); border-radius: 4px; }.detail-summary span, .detail-summary strong { display: block; }.detail-summary span { color: var(--muted); font-size: 8px; font-weight: 750; letter-spacing: .08em; }.detail-summary strong { margin-top: 7px; font-size: 15px; }.detail-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 20px 0 9px; }.detail-section-heading h3 { margin: 0; font-size: 12px; }.detail-actions { display: flex; flex-wrap: wrap; gap: 8px; }.detail-note { margin: 14px 0 0; padding: 10px 12px; color: var(--ink-soft); background: #f4f8fa; font-size: 10px; line-height: 1.5; }
.toast { position: fixed; right: 22px; bottom: 22px; z-index: 20; max-width: calc(100vw - 36px); padding: 13px 17px; transform: translateY(12px); border: 1px solid #c7dcd4; border-radius: 5px; color: #27654e; background: #f2f8f5; box-shadow: var(--shadow); font-size: 11px; font-weight: 750; opacity: 0; pointer-events: none; transition: opacity .18s, transform .18s; }.toast.show { transform: translateY(0); opacity: 1; }
.mobile-nav { display: none; }

.credit-summary { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 12px; margin: -4px 0 17px; }
.credit-summary > div { display: grid; gap: 9px; min-height: 90px; align-content: center; padding: 17px 20px; border: 1px solid var(--line); border-radius: 5px; background: #fff; }
.credit-summary > div:first-child { border-color: #214555; color: #fff; background: #173544; }
.credit-summary span { color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .12em; }
.credit-summary > div:first-child span { color: #a9c8d4; }
.credit-summary strong { font-size: 23px; letter-spacing: -.04em; }
.credit-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 11px; }
.credit-status.ready { color: #337c62; background: var(--green-pale); }
.credit-status.cancelled { color: #a83c4c; background: var(--red-pale); }
.trash-count-row { padding: 10px 20px; color: var(--muted); font-size: 10px; }
.form-hint, .credit-balance-hint { color: var(--ink-soft); font-size: 10px; line-height: 1.55; }
.credit-balance-hint { margin: 13px 0 0; padding: 11px 13px; border-left: 3px solid var(--blue); background: #f2f8fb; }
.credit-reminder-settings { display: grid; grid-template-columns: minmax(150px, 1fr) minmax(150px, .7fr) auto; align-items: end; gap: 10px; margin: 13px 0; padding: 14px; border: 1px solid var(--line); border-radius: 6px; background: #f8fbfc; }
.credit-reminder-settings > div { display: grid; gap: 5px; align-self: center; }.credit-reminder-settings > div strong { color: var(--ink); font-size: 11px; }.credit-reminder-settings > div small, .credit-reminder-next { color: var(--muted); font-size: 9px; line-height: 1.5; }
.credit-reminder-settings label { display: grid; gap: 5px; color: var(--ink-soft); font-size: 9px; font-weight: 700; }.credit-reminder-settings select { min-width: 150px; min-height: 38px; padding: 0 10px; border: 1px solid var(--line); border-radius: 4px; background: #fff; color: var(--ink); font: inherit; }
.credit-reminder-next { grid-column: 1 / -1; }

@media (max-width: 1060px) {
  .summary-grid { grid-template-columns: repeat(2, 1fr); }
  .metric-card { min-height: 135px; }
  .content-grid { grid-template-columns: minmax(0, 1.25fr) minmax(260px, .9fr); }
}
@media (max-width: 820px) {
  .auth-wrap { grid-template-columns: 1fr; }.auth-panel { width: min(560px, 100%); padding: 38px 28px 50px; }.auth-panel > .brand-lockup { margin-bottom: 54px; }.auth-aside { display: none; }
  .sidebar { display: none; }.main-content { margin-left: 0; padding-bottom: calc(72px + env(safe-area-inset-bottom)); }.topbar { height: 62px; padding: 0 18px; }.mobile-brand { display: flex; align-items: center; gap: 9px; }.mobile-brand img { width: 34px; height: 34px; border: 1px solid #d7e5eb; border-radius: 6px; object-fit: cover; object-position: center 28%; }.mobile-brand strong, .mobile-brand small { display: block; }.mobile-brand strong { font-size: 12px; font-weight: 800; }.mobile-brand strong span { color: var(--ink); }.mobile-brand strong em { color: var(--blue-strong); font-style: normal; }.mobile-brand small { margin-top: 2px; color: var(--muted); font-size: 8px; letter-spacing: .12em; font-weight: 800; }.breadcrumb { display: none; }.top-actions { gap: 10px; }.connection-pill { display: none; }.new-plan-top { min-height: 37px; padding: 0 12px; font-size: 10px; }.new-plan-top span { font-size: 13px; }.mobile-signout { display: grid; width: 34px; height: 34px; font-size: 15px; }.page-body { padding: 26px 17px 23px; }.page-heading { align-items: flex-start; margin-bottom: 19px; }.page-heading h1 { font-size: 28px; }.page-heading .subheading { max-width: 420px; font-size: 11px; }.desktop-new-plan { display: none; }
  .summary-grid { gap: 9px; margin-bottom: 11px; }.metric-card { min-height: 125px; padding: 15px 14px; }.metric-card strong { margin: 14px 0 5px; font-size: 23px; }.metric-label { font-size: 8px; }.metric-card small { font-size: 9px; }.content-grid { grid-template-columns: 1fr; gap: 11px; }.panel-heading { min-height: 68px; padding: 13px 15px; }.panel-heading h2 { font-size: 15px; }.due-row, .approval-row { padding: 12px 14px; }.quick-panel { align-items: flex-start; flex-direction: column; gap: 16px; margin-top: 11px; padding: 18px; }.alert-actions { width: 100%; flex-direction: column; }.alert-actions .button { width: 100%; }.page-footer { padding: 2px 17px 14px; font-size: 7px; }
  .mobile-nav { position: fixed; right: 0; bottom: 0; left: 0; z-index: 10; display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); padding: 6px 3px calc(6px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(255,255,255,.97); backdrop-filter: blur(18px); }.mobile-nav .nav-item { min-height: 51px; min-width: 0; flex-direction: column; justify-content: center; gap: 3px; padding: 3px 1px; border-radius: 4px; color: #768994; }.mobile-nav .nav-item.active { color: var(--blue-strong); background: #eff8fb; }.mobile-nav .nav-item.active::before { top: 0; right: 17px; bottom: auto; left: 17px; width: auto; height: 2px; border-radius: 0 0 3px 3px; background: var(--blue-strong); }.mobile-nav .nav-icon { font-size: 16px; }.mobile-nav .nav-item > span:nth-child(2) { font-size: 8px; }.mobile-nav .nav-count { position: absolute; top: 1px; left: calc(50% + 8px); min-width: 15px; height: 15px; padding: 0 4px; font-size: 8px; }
  .credit-summary { gap: 8px; }.credit-summary > div { min-height: 76px; padding: 12px; }.credit-summary strong { font-size: 18px; }.credit-summary span { font-size: 7px; }
  .credit-reminder-settings { grid-template-columns: 1fr; align-items: stretch; }.credit-reminder-settings select, .credit-reminder-settings .button { width: 100%; }.credit-reminder-next { grid-column: auto; }
  .table-panel .panel-heading { align-items: flex-start; flex-direction: column; gap: 12px; }.search-field { width: 100%; }.data-table { display: block; min-width: 0; }.data-table thead { display: none; }.data-table tbody { display: grid; gap: 9px; padding: 9px; }.data-table tr { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: start; padding: 9px; border: 1px solid #e7edf0; border-radius: 6px; background: #fff; }.data-table td { display: grid; grid-template-columns: minmax(76px,.72fr) minmax(0,1fr); align-items: center; gap: 7px; min-width: 0; padding: 7px 5px; border: 0; white-space: normal; overflow-wrap: anywhere; font-size: 10px; }.data-table td::before { content: attr(data-label); color: #81929b; font-size: 7px; font-weight: 800; letter-spacing: .06em; }.data-table td[data-label="CUSTOMER / DEVICE"] { grid-column: 1/-1; padding-bottom: 10px; border-bottom: 1px solid #edf1f3; }.data-table td[data-label="CUSTOMER / DEVICE"]::before { align-self: start; padding-top: 7px; }.data-table td > strong { min-width: 0; }.data-table td .status-pill { justify-self: start; }.data-table td .table-primary { min-width: 0; }.data-table td .table-primary span { min-width: 0; }.data-table td .table-primary small { white-space: normal; }.data-table td[data-label="ACTIONS"] { grid-column: 1/-1; padding-top: 10px; border-top: 1px solid #edf1f3; }.table-actions { flex-wrap: wrap; }.ledger-tools { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; }.wallet-banner { align-items: flex-start; flex-direction: column; gap: 19px; min-height: 0; padding: 24px 22px; }.wallet-side { width: 100%; min-width: 0; gap: 5px; padding: 15px 0 0; border-top: 1px solid rgba(255,255,255,.18); border-left: 0; }.wallet-side strong { font-size: 19px; }.ledger-key { align-self: flex-start; }.approval-card { grid-template-columns: 1fr auto; gap: 12px; padding: 14px; }.approval-card .approval-amount { justify-self: end; }.approval-actions { grid-column: 1/-1; justify-content: flex-end; }
  .dialog-form { padding: 21px 18px 18px; }.dialog-heading h2 { font-size: 21px; }.sheet-dialog { max-height: calc(100dvh - 18px); margin: auto 9px 9px; border-radius: 10px; }.sheet-dialog:not([open]) { display: none; }.sheet-dialog[open] { align-self: end; }.plan-calculation { padding: 12px 10px; }.plan-calculation strong { font-size: 11px; }.detail-body { padding: 21px 18px; }.detail-summary { gap: 6px; }.detail-summary div { padding: 10px 8px; }.detail-summary strong { font-size: 13px; }.detail-title h2 { font-size: 18px; }
}
@media (max-width: 420px) {
  .credit-summary { grid-template-columns: 1fr 1fr; }.credit-summary > div:first-child { grid-column: 1 / -1; }
  .auth-panel { padding: 29px 21px 35px; }.auth-panel > .brand-lockup { margin-bottom: 45px; }.auth-panel h1 { font-size: 37px; }
  .metric-card { min-height: 119px; }.metric-card strong { font-size: 21px; }.metric-card small { font-size: 8px; }.metric-index { top: 13px; right: 12px; }.row-side { gap: 6px; }.row-main strong { font-size: 10px; }.row-main small { font-size: 9px; }.due-row { gap: 9px; padding-right: 11px; padding-left: 11px; }.due-date { width: 38px; height: 42px; }.reminder-link { font-size: 8px; }.dialog-form .form-grid { gap: 10px; }.plan-calculation { grid-template-columns: 1fr 1fr; }.plan-calculation div:last-child { grid-column: 1/-1; padding-top: 8px; border-top: 1px solid var(--line); }.dialog-footer { align-items: stretch; flex-direction: column; }.dialog-footer .button { width: 100%; }.detail-top { align-items: flex-start; }
}
