:root { --bahari-brand:#292562; --bahari-accent:#f79521; --bahari-action:#4338ca; --bahari-muted:#64748b; --bahari-focus:#6366f1; --bahari-success:#047857; --bahari-danger:#b91c1c; }
html[data-bahari-panel] { --bahari-panel-bg:#f8fafc; --bahari-panel-border:#e2e8f0; --bahari-panel-ink:#334155; }
html[data-bahari-panel] [data-bahari-shell] { background:var(--bahari-panel-bg); }
/* Let the shared shell and each page root fill the space beside the sidebar. */
html[data-bahari-panel] #app main { min-width:0; }
html[data-bahari-panel] #app main > div,
html[data-bahari-panel] #app main > div > [class*="max-w-"] {
 width:100%;max-width:none;min-width:0;margin-inline:0;box-sizing:border-box;
}

html[data-bahari-panel] header { border-color:var(--bahari-panel-border); box-shadow:0 1px 0 #0f172a03; }
html[data-bahari-panel] aside[data-bahari-sidebar] { border-color:var(--bahari-panel-border); }
html[data-bahari-panel] aside nav { scrollbar-width:thin!important; scrollbar-color:#cbd5e1 transparent!important; padding:16px 12px!important; }
html[data-bahari-panel] aside nav::-webkit-scrollbar { display:block!important;width:4px;height:4px; }
html[data-bahari-panel] aside nav::-webkit-scrollbar-thumb { background:#cbd5e1;border-radius:4px; }
html[data-bahari-panel] table { font-size:13px; }
html[data-bahari-panel] th { font-size:11px;letter-spacing:.035em; }
html[data-bahari-panel] input,html[data-bahari-panel] select,html[data-bahari-panel] textarea { border-radius:10px; }
html[data-bahari-panel] button,html[data-bahari-panel] a { -webkit-tap-highlight-color:transparent; }
html[data-bahari-panel] :is(a,button,summary):focus-visible { outline:2px solid #6366f1;outline-offset:3px; }


html[data-bahari-panel] .stat-card,html[data-bahari-panel] .card { border-radius:16px;box-shadow:0 1px 3px #0f172a05; }
.bahari-central-notice { display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 18px;border:1px solid #e0e7ff;background:#eef2ff;border-radius:12px;font-size:12px;color:#475569; }
.bahari-central-notice a { flex-shrink:0;color:var(--bahari-action);font-weight:600; }
@media(max-width:639px) { .bahari-central-notice{align-items:start;flex-direction:column;gap:8px;} }


.bahari-webhook-button { padding:8px 12px;border:1px solid #cbd5e1;border-radius:10px;background:#fff;color:#292562;font:inherit;cursor:pointer;margin-top:10px; }
.bahari-webhook-dialog { box-sizing:border-box;width:min(560px,calc(100vw - 32px));max-height:85vh;overflow:auto;padding:24px;border:1px solid #cbd5e1;border-radius:16px;color:#334155;background:white;font:14px/1.6 Inter,system-ui,sans-serif; }
.bahari-webhook-dialog::backdrop { background:#0f172a80; }
.bahari-webhook-dialog h2 { font-size:20px;color:#292562; }
.bahari-webhook-dialog select { width:100%;padding:9px;border:1px solid #94a3b8;border-radius:8px;margin:12px 0; }
.bahari-webhook-dialog button { padding:9px 14px;margin:10px 8px 0 0;border:1px solid #cbd5e1;border-radius:9px;background:#fff;cursor:pointer; }
.bahari-webhook-dialog button:disabled { opacity:.6;cursor:wait; }
.bahari-webhook-dialog pre { padding:12px;background:#f1f5f9;border:1px solid #e2e8f0; }
.btn-primary { background:var(--bahari-brand);background-image:none;color:#fff; }
.btn-primary:hover { background:#1e1b4b;background-image:none; }
html[data-bahari-panel] .text-text-tertiary { color:var(--bahari-muted); }
@media(prefers-reduced-motion:reduce) { html[data-bahari-panel] *,html[data-bahari-panel] *::before,html[data-bahari-panel] *::after { scroll-behavior:auto!important;transition-duration:0s!important;animation-duration:0s!important; } }

/* Shared single-select spacing for client/admin filters, forms and dialogs. */
html[data-bahari-panel] select:not([multiple]):not([size]) {
 box-sizing:border-box;min-width:0;min-height:36px;
 padding-block:6px!important;padding-inline-start:12px!important;padding-inline-end:40px!important;
 font-family:inherit;line-height:20px;text-align:start;text-indent:0;vertical-align:middle;
 background-position:right 12px center;background-size:16px;background-repeat:no-repeat;
}
html[data-bahari-panel] select:is(.input-field,.input):not([multiple]):not([size]) {
 min-height:42px;padding-block:10px!important;
}
html[data-bahari-panel] select:disabled { cursor:not-allowed;opacity:.6; }
html[data-bahari-panel] select option,
html[data-bahari-panel] select optgroup { font-family:inherit;text-align:start; }
html[data-bahari-panel] select option { padding:8px 12px;line-height:1.4; }
html[data-bahari-panel] select:dir(rtl):not([multiple]):not([size]) { background-position:left 12px center; }

/* Use the browser's accessible picker with aligned option rows where supported. */
@supports (appearance:base-select) and selector(select::picker(select)) {
 html[data-bahari-panel] select:not([multiple]):not([size]),
 html[data-bahari-panel] select:not([multiple]):not([size])::picker(select) { appearance:base-select; }
 html[data-bahari-panel] select:not([multiple]):not([size])::picker-icon { display:none; }
 html[data-bahari-panel] select:not([multiple]):not([size])::picker(select) {
  min-inline-size:anchor-size(self-inline);max-inline-size:calc(100vw - 24px);
  max-block-size:min(320px,60vh);overflow:auto;box-sizing:border-box;
  margin-block:4px;padding:4px;border:1px solid #cbd5e1;border-radius:10px;
  background:#fff;color:#1e293b;box-shadow:0 10px 30px #0f172a26;
 }
 html[data-bahari-panel] select:not([multiple]):not([size]) option {
  display:flex;align-items:center;gap:12px;min-block-size:36px;box-sizing:border-box;
  padding:8px 8px;border:0;border-radius:6px;background:transparent;color:inherit;
  white-space:normal;overflow-wrap:anywhere;
 }
 html[data-bahari-panel] select:not([multiple]):not([size]) option::checkmark {
  order:1;margin-inline-start:auto;color:var(--bahari-brand);
 }
 html[data-bahari-panel] select:not([multiple]):not([size]) option:checked { background:#eef2ff;color:#292562;font-weight:600; }
 html[data-bahari-panel] select:not([multiple]):not([size]) option:is(:hover,:focus-visible) { background:#f1f5f9;outline:0; }
 html[data-bahari-panel] select:not([multiple]):not([size]) option:disabled { opacity:.5; }
 html[data-bahari-panel] select:not([multiple]):not([size]) optgroup { padding:4px;font-weight:600; }
 html.dark[data-bahari-panel] select:not([multiple]):not([size])::picker(select) { background:#111827;color:#e2e8f0;border-color:#475569; }
 html.dark[data-bahari-panel] select:not([multiple]):not([size]) option:checked { background:#312e81;color:#eef2ff; }
 html.dark[data-bahari-panel] select:not([multiple]):not([size]) option:is(:hover,:focus-visible) { background:#334155; }
 html.dark[data-bahari-panel] select:not([multiple]):not([size]) option::checkmark { color:#c4b5fd; }
}
@media(forced-colors:active) {
 html[data-bahari-panel] select:not([multiple]):not([size]) { appearance:auto;background-image:none; }
 html[data-bahari-panel] select:not([multiple]):not([size])::picker(select) { appearance:auto; }
}


html.bahari-kyc-locked, html.bahari-kyc-locked body { overflow: hidden !important; }
html.bahari-kyc-locked #app { filter: blur(7px); pointer-events: none !important; user-select: none; }
#bahari-kyc-gate { box-sizing: border-box; position: fixed; inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; border: 0; padding: max(24px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom)); overflow: auto; background: #f1f5f9db; color: #0f172a; font: 15px/1.65 system-ui, sans-serif; }
#bahari-kyc-gate[open] { display: grid; place-items: center; }
#bahari-kyc-gate::backdrop { background: #0f172a38; backdrop-filter: blur(8px); }
#bahari-kyc-gate .bahari-kyc-card { box-sizing: border-box; width: min(100%, 590px); padding: clamp(24px, 5vw, 48px); background: #fff; border: 1px solid #dbe5ed; border-radius: 24px; text-align: center; box-shadow: 0 24px 80px #0f172a1c; }
#bahari-kyc-gate .bahari-kyc-icon { display: grid; place-items: center; margin: 0 auto 20px; width: 72px; height: 72px; border-radius: 22px; background: #ecfeff; font-size: 34px; }
#bahari-kyc-gate h1 { margin: 0 0 14px; font: 750 clamp(22px, 4vw, 29px)/1.3 system-ui; color: #0f172a; }
#bahari-kyc-gate p { margin: 0 0 22px; color: #52637a; }
#bahari-kyc-gate .bahari-kyc-status { padding: 12px 14px; border-radius: 12px; font-size: 13px; font-weight: 600; background: #fffbeb; color: #92400e; }
#bahari-kyc-gate .bahari-kyc-status[data-tone="review"] { background: #eff6ff; color: #1d4ed8; }
#bahari-kyc-gate .bahari-kyc-status[data-tone="rejected"] { background: #fef2f2; color: #b91c1c; }
#bahari-kyc-gate .bahari-kyc-primary, #bahari-kyc-gate .bahari-kyc-refresh { box-sizing: border-box; display: block; width: 100%; padding: 14px 16px; margin: 12px 0; border-radius: 12px; font: 650 14px/1.5 system-ui; cursor: pointer; text-decoration: none; }
#bahari-kyc-gate .bahari-kyc-primary { color: #fff; background: #087f92; border: 1px solid #087f92; }
#bahari-kyc-gate .bahari-kyc-primary:hover { background: #096979; }
#bahari-kyc-gate .bahari-kyc-refresh { color: #334155; background: #fff; border: 1px solid #cbd5e1; }
#bahari-kyc-gate .bahari-kyc-refresh:disabled { opacity: .65; cursor: wait; }
#bahari-kyc-gate .bahari-kyc-signout { padding: 10px; margin-top: 8px; color: #52637a; background: transparent; border: 0; text-decoration: underline; cursor: pointer; }
#bahari-kyc-gate .bahari-kyc-error { margin: 14px 0 0; color: #b91c1c; font-size: 13px; }
#bahari-kyc-gate .bahari-kyc-error:empty { display: none; }
#bahari-kyc-gate :focus-visible { outline: 3px solid #0891b2; outline-offset: 4px; }
.bahari-kyc-success { position: fixed; z-index: 2147483647; inset: 24px 20px auto auto; max-width: calc(100vw - 40px); padding: 16px 22px; background: #065f46; color: #fff; border-radius: 12px; box-shadow: 0 6px 24px #0002; font: 600 14px/1.5 system-ui; }

/* Sender request form: readable hierarchy and consistent panel typography. */
html[data-bahari-panel] .bahari-sender-request { font-family:inherit;color:#334155;font-size:14px;line-height:1.6; }
html[data-bahari-panel] .bahari-sender-request h1 { margin:0;font-size:clamp(22px,2vw,26px);font-weight:650;line-height:1.3;letter-spacing:-.025em;color:#182033; }
html[data-bahari-panel] .bahari-sender-request h1 + p { margin-top:8px;font-size:14px;line-height:1.65;color:#526178; }
html[data-bahari-panel] .bahari-sender-request > button { font-size:13px;font-weight:500;line-height:1.5;min-height:32px; }
html[data-bahari-panel] .bahari-sender-request form { padding:clamp(16px,2vw,28px); }
html[data-bahari-panel] .bahari-sender-request label { font-size:13px;font-weight:600;line-height:1.5;letter-spacing:normal;text-transform:none;color:#334155; }
html[data-bahari-panel] .bahari-sender-request .input-field { box-sizing:border-box;font-family:inherit;font-size:14px;font-weight:400;line-height:1.5;letter-spacing:normal;text-transform:none;padding:11px 14px; }
html[data-bahari-panel] .bahari-sender-request :is(input:not([type=file]),select) { min-height:44px; }
html[data-bahari-panel] .bahari-sender-request select { padding-right:42px; }
html[data-bahari-panel] .bahari-sender-request #sender-request-id { font-size:16px;font-weight:600;letter-spacing:.025em; }
html[data-bahari-panel] .bahari-sender-request .input-field::placeholder { font-family:inherit;font-size:14px;font-weight:400;letter-spacing:normal;color:#64748b;opacity:1; }
html[data-bahari-panel] .bahari-sender-request textarea { resize:vertical;min-height:92px; }
html[data-bahari-panel] .bahari-sender-request form p { font-size:12px;line-height:1.65;color:#526178;margin-top:7px; }
html[data-bahari-panel] .bahari-sender-request form > div:first-child > div > span { font-family:inherit;font-size:12px;font-weight:500;font-variant-numeric:tabular-nums; }
html[data-bahari-panel] .bahari-sender-request input[type=file] { max-width:100%;min-width:0;font-family:inherit;font-size:13px;line-height:1.5;color:#475569; }
html[data-bahari-panel] .bahari-sender-request input[type=file]::file-selector-button { font-family:inherit;font-size:13px;font-weight:600;padding:10px 14px;margin-right:12px;border:0;border-right:1px solid #e2e8f0;border-radius:0;background:#f1f5f9;color:#334155;cursor:pointer; }
html[data-bahari-panel] .bahari-sender-request form > div:has(input[type=file]) > div { flex-wrap:wrap; }
html[data-bahari-panel] .bahari-sender-request .bahari-sender-review { font-size:13px;line-height:1.65; }
html[data-bahari-panel] .bahari-sender-request .bahari-sender-review strong { font-size:13px;font-weight:600;margin-bottom:4px; }
html[data-bahari-panel] .bahari-sender-request form > div:last-child button { min-height:44px;font-family:inherit;font-size:14px;font-weight:600;line-height:1.5; }
@media(max-width:479px) { html[data-bahari-panel] .bahari-sender-request form > div:last-child { flex-wrap:wrap; } html[data-bahari-panel] .bahari-sender-request form > div:last-child button { flex:1;justify-content:center; } }
/* Keep the overview's wallet, heading, actions and statistics on one spacing scale. */
html[data-bahari-page=overview] .bahari-page-content>.space-y-6{display:flex;flex-direction:column;gap:24px;min-width:0}
html[data-bahari-page=overview] .bahari-page-content>.space-y-6>*{margin-block:0!important}
html[data-bahari-page=overview] .bahari-page-content>.space-y-6>.grid{gap:16px}
html[data-bahari-page=overview] .page-header{margin:0;align-items:center;gap:20px}
html[data-bahari-page=overview] .page-header>div:last-child{align-items:center;gap:8px}
html[data-bahari-page=overview] .page-header h1{margin:0}
html[data-bahari-page=overview] .page-header p{margin-top:6px;line-height:22px}
html[data-bahari-page=overview] .bahari-page-content>.space-y-6>.grid:has(>a)>a{min-height:72px;padding:16px;gap:12px;align-items:center;box-sizing:border-box}
html[data-bahari-page=overview] .stat-card{padding:20px;min-height:128px;box-sizing:border-box}
html[data-bahari-page=overview] .stat-card>div:first-child{min-height:40px;align-items:center}
html[data-bahari-page=overview] .stat-card>div:first-child>svg{width:36px;height:36px}
html[data-bahari-page=overview] .stat-card .stat-value{display:block;margin-top:12px;line-height:34px}
html[data-bahari-page=overview] .stat-card .stat-change{margin-top:6px;line-height:18px}
@media(max-width:639px){html[data-bahari-page=overview] .bahari-page-content>.space-y-6{gap:20px}html[data-bahari-page=overview] .page-header{align-items:flex-start;gap:16px}html[data-bahari-page=overview] .stat-card{padding:16px}html[data-bahari-page=overview] .bahari-page-content>.space-y-6>.grid:has(>a)>a{padding:12px;gap:10px;min-height:68px}}
html[data-bahari-page=overview] main select{min-width:120px}
