:root { color-scheme: light; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif; color: #21334b; background: #f5f7fa; font-size: 14px; line-height: 1.6; }
* { box-sizing: border-box; }
body { margin: 0; }
a { color: #146bce; text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select { font: inherit; }
button, .button { cursor: pointer; border: 1px solid transparent; border-radius: 7px; padding: 10px 17px; display: inline-block; font-weight: 600; text-align: center; line-height: 1.4; }
button:hover, .button:hover { filter: brightness(.96); text-decoration: none; }
button:disabled { cursor: not-allowed; opacity: .45; }
input, select { display: block; width: 100%; background: #fff; border: 1px solid #cbd5e1; border-radius: 6px; padding: 10px 11px; color: #24354a; margin-top: 6px; min-width: 0; }
input:focus, select:focus { outline: 2px solid #accdf8; border-color: #146bce; }
label { display: block; font-weight: 500; min-width: 0; }
h1, h2, h3, p { margin: 0 0 12px; }
h1 { font-size: 28px; line-height: 1.3; letter-spacing: -.5px; font-weight: 700; }
h2 { font-size: 17px; margin-bottom: 18px; }
h3 { font-size: 15px; }
small { font-size: 12px; }
.topbar { height: 76px; display: flex; align-items: center; gap: 22px; padding: 0 32px; background: #fff; border-bottom: 1px solid #e3e9f0; }
.brand { color: #172c47; font-size: 22px; font-weight: 750; display: flex; gap: 12px; align-items: center; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand small { font-weight: 400; color: #738398; margin-left: 8px; }
.brand-mark { background: #1572dd; color: #fff; border-radius: 10px 10px 10px 2px; width: 38px; height: 38px; text-align: center; font-size: 22px; }
.local-badge { font-size: 11px; color: #64758b; border: 1px solid #dce4ec; padding: 3px 9px; border-radius: 20px; }
.account { margin-left: auto; display: flex; gap: 22px; align-items: center; }
.account small { color: #8492a5; margin-left: 6px; }
.account-menu { position: relative; }
.account-menu summary { cursor: pointer; padding: 6px 0; }
.account-menu-panel { position: absolute; right: 0; top: 100%; z-index: 10; min-width: 210px; padding: 8px; background: #fff; border: 1px solid #e3e9f0; border-radius: 8px; box-shadow: 0 4px 12px #17345510; }
.account-menu-panel a { display: block; padding: 8px 10px; white-space: nowrap; }
.password-settings { max-width: 520px; }
.password-help { margin: 18px 0 0; font-size: 12px; }
.text-button { padding: 6px 0; color: #607188; background: transparent; }
.layout { max-width: 1600px; margin: auto; min-height: calc(100vh - 76px); }
.with-nav { display: grid; grid-template-columns: 215px minmax(0, 1fr); }
.sidebar { padding: 34px 20px; border-right: 1px solid #e3e9f0; background: #f9fafc; }
.sidebar a { display: block; color: #53657b; padding: 12px 15px; border-radius: 7px; margin-bottom: 6px; }
.sidebar a.selected { background: #e5effd; color: #146bce; font-weight: 600; }
.sidebar .eyebrow { margin: 0 15px 22px; font-size: 11px; }
.sidebar-note { border-top: 1px solid #e1e8f0; margin: 42px 14px 0; padding-top: 20px; font-size: 12px; color: #8996a8; }
main { min-width: 0; padding: 38px 38px 22px; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.page-heading p:last-child { margin-bottom: 0; }
.eyebrow { color: #8795a9; font-size: 11px; font-weight: 650; letter-spacing: 1.6px; margin-bottom: 10px; }
.muted { color: #728197; }
.mono { font-family: Consolas, "SFMono-Regular", monospace; font-size: 11px; overflow-wrap: anywhere; }
.card { background: #fff; border: 1px solid #e1e7ef; border-radius: 11px; padding: 24px; margin-bottom: 22px; box-shadow: 0 2px 5px #17345503; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 20px; }
.stat p { color: #738399; margin-bottom: 10px; }
.stat strong { display: block; font-size: 38px; line-height: 1.3; font-weight: 650; color: #183654; }
.stat span { display: block; font-size: 12px; color: #8a97a7; margin-top: 12px; }
.stat.accent { border-top: 3px solid #218ca0; padding-top: 22px; }
.stat.accent strong { color: #157386; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; padding: 8px 0 22px; }
.steps span { color: #146bce; font-size: 13px; font-weight: 600; display: block; margin-bottom: 12px; }
.steps p, .workflow > p { color: #7a899c; font-size: 13px; }
.workflow > p { margin: 0; padding-top: 16px; border-top: 1px solid #edf0f5; }
.primary { background: #146bce; color: #fff; }
.secondary { background: #fff; border-color: #cfdae6; color: #426078; }
.danger { background: #fff5f4; border-color: #f0d1cc; color: #b4493c; }
.compact { padding: 6px 12px; font-size: 12px; }
.stack { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: flex; align-items: end; flex-wrap: wrap; gap: 18px; }
.form-row label { flex: 1 1 150px; }
.form-row .grow { flex: 2 1 210px; }
.form-row button { margin-bottom: 1px; }
.table-card { padding: 0; overflow: hidden; }
.table-title { padding: 20px 24px 0; }
.table-scroll { overflow-x: auto; }
.wholesale-prices th { padding: 10px 16px; }
.wholesale-prices td { height: 56px; padding: 8px 16px; }
.wholesale-prices td:first-child { width: 35%; }
.wholesale-prices input[name="amount"] { max-width: 180px; height: 36px; margin: 0; padding: 6px 10px; }
.wholesale-prices form { margin: 0; }
.wholesale-prices button { height: 36px; padding: 6px 16px; }
.retail-prices td:first-child { width: 28%; }
.retail-prices :disabled { opacity: .5; cursor: not-allowed; }
table { border-collapse: collapse; width: 100%; text-align: left; font-size: 13px; }
th { background: #fafbfd; color: #7e8b9d; font-size: 12px; font-weight: 500; padding: 14px 20px; white-space: nowrap; border-bottom: 1px solid #e8edf3; }
td { padding: 18px 20px; border-bottom: 1px solid #edf1f5; vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
td small { display: block; color: #8996a7; margin-top: 5px; }
td strong { font-weight: 500; }
.empty { padding: 44px 22px; text-align: center; color: #8694a5; }
.badge, .count { white-space: nowrap; display: inline-block; border-radius: 20px; padding: 3px 10px; font-size: 12px; background: #eaf0f6; color: #698096; }
.active { color: #217f6a; background: #e7f5ef; }
.disabled { color: #a46645; background: #faf0e8; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 22px; align-items: start; }
.detail-grid .table-card table { min-width: 620px; }
.balance strong { display: block; font-size: 38px; color: #157386; margin-bottom: 10px; }
.balance p:last-child { margin-bottom: 0; }
.detail-grid aside p { font-size: 13px; }
.full-width { width: 100%; }
.detail-grid aside small { display: block; margin-top: 12px; }
.checkbox { display: flex; align-items: start; gap: 8px; font-size: 12px; font-weight: 400; }
.checkbox input { width: auto; margin: 4px 0 0; }
.align-start { align-self: flex-start; }
.positive { color: #21836b; font-weight: 600; }
.negative { color: #bd5447; font-weight: 600; }
.back-link { display: inline-block; font-size: 12px; margin-bottom: 22px; }
.login-card { max-width: 440px; margin: 64px auto 80px; padding: 38px; }
.login-card h1 { font-size: 26px; }
.login-card > .muted { margin-bottom: 28px; }
.switch-login { text-align: center; font-size: 12px; margin: 26px 0 0; }
.notice { border: 1px solid #cce7da; padding: 12px 16px; border-radius: 8px; color: #2f765f; background: #eff9f3; margin-bottom: 24px; }
.notice.error { background: #fff4f1; color: #af5144; border-color: #efd2cc; }
.error-card { max-width: 620px; margin: 50px auto; }
/* Customer detail only: compact single-column layout. */
.customer-detail .back-link { margin-bottom: 8px; }
.customer-detail .page-heading { margin-bottom: 12px; }
.customer-detail h1 { font-size: 24px; margin: 0; }
.customer-detail .card { padding: 14px 16px; margin-bottom: 10px; }
.customer-detail h2 { font-size: 15px; margin: 0; }
.customer-detail h2 small { font-size: 12px; font-weight: 400; margin-left: 12px; }
.customer-detail h3 { font-size: 14px; margin: 12px 0 6px; }
.customer-inline { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 0; }
.customer-inline input:not([type=hidden]):not([type=checkbox]), .customer-inline select { width: auto; min-width: 0; max-width: 100%; margin: 0; height: 36px; padding: 6px 10px; }
.customer-inline button { min-height: 36px; padding: 6px 14px; white-space: nowrap; }
.customer-inline #customer-label { flex: 0 1 360px; }
.customer-inline #activation-code { flex: 1 1 330px; max-width: 530px; font: 13px monospace; }
.customer-inline #fund-amount { width: 130px; }
.customer-balance { font-size: 22px; }
.customer-fund { margin-left: auto; }
.customer-transactions h2 { margin-bottom: 10px; }
.customer-table-scroll { overflow: auto; max-height: 310px; }
.customer-detail th { padding: 9px 12px; position: sticky; top: 0; }
.customer-detail td { height: 48px; padding: 8px 12px; }
.customer-detail td:not(:first-child) { white-space: nowrap; }
.customer-detail .empty { text-align: left; }
.customer-detail summary { cursor: pointer; font-weight: 500; }
.customer-advanced section { padding: 8px 0 14px; border-bottom: 1px solid #edf1f5; }
.customer-advanced p { margin: 6px 0 10px; }
.customer-prices > p { margin: 10px 0; font-size: 12px; }
.customer-prices table { min-width: 950px; }
.customer-prices td { white-space: nowrap; }
.customer-prices form { margin: 0; }
.customer-price-edit { display: flex; align-items: center; gap: 6px; }
.customer-price-edit input { width: 94px; height: 34px; padding: 6px 8px; margin: 0; }
.customer-prices button { padding: 6px 10px; min-height: 34px; }
.customer-prices :disabled { opacity: .5; cursor: not-allowed; }
@media (max-width: 900px) { .customer-fund { margin-left: 0; } }
footer { color: #97a3b2; font-size: 11px; margin-top: 44px; text-align: center; }
@media (max-width: 1100px) { .with-nav { grid-template-columns: 180px minmax(0, 1fr); } main { padding: 26px; } .detail-grid { grid-template-columns: minmax(0, 1fr); } .detail-grid aside { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; } }
@media (max-width: 720px) { .topbar { padding: 0 18px; height: auto; min-height: 70px; flex-wrap: wrap; gap: 10px; } .brand small, .local-badge { display: none; } .account { gap: 12px; font-size: 12px; } .with-nav { display: block; } .sidebar { display: flex; padding: 12px 18px 0; gap: 6px; border-right: 0; border-bottom: 1px solid #e3e9f0; } .sidebar .eyebrow, .sidebar-note { display: none; } .sidebar a { padding: 8px 12px; } main { padding: 24px 16px; } .page-heading { align-items: start; } h1 { font-size: 24px; } .stats { gap: 12px; } .steps { grid-template-columns: 1fr; gap: 8px; } .login-card { margin-top: 30px; padding: 26px; } .form-row label { flex-basis: 100%; } .customer-id { max-width: 250px; } }
