/* ===== RASSIDI Seller Hub theme — loaded last, overrides colours/fonts only ===== */
@font-face { font-family: "Inter"; src: url("/inter-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

/* Light (default) — Seller Hub */
:root, [data-theme="light"] {
  --bg: #F3F5F9; --rail: #0E1A3A; --surface: #FFFFFF; --surface-2: #F8FAFC; --raise: #EEF2F7;
  --line: #E5E9F2; --line-strong: #CBD5E1;
  --text: #0F172A; --text-2: #475569; --text-3: #64748B;
  --star: #2563EB; --on-star: #FFFFFF; --link: #2563EB;
  --pending: #B45309;   --pending-bg: #FEF3C7;
  --processing: #1D4ED8; --processing-bg: #DBEAFE;
  --completed: #15803D;  --completed-bg: #DCFCE7;
  --rejected: #B91C1C;   --rejected-bg: #FEE2E2;
  --refunded: #7C3AED;   --refunded-bg: #EDE9FE;
  --shadow: 0 12px 32px #0F172A1F;
  --grid: #E5E9F2;
  --accent-2: #1D4ED8;
  color-scheme: light;
}
/* Dark — navy variant */
[data-theme="dark"] {
  --bg: #0B1328; --rail: #08112A; --surface: #111C3A; --surface-2: #0F1934; --raise: #182548;
  --line: #22315A; --line-strong: #31437A;
  --text: #E8EEFC; --text-2: #A8B4D4; --text-3: #7C8BA8;
  --star: #3B82F6; --on-star: #FFFFFF; --link: #60A5FA;
  --pending: #FBBF24;   --pending-bg: #FBBF241F;
  --processing: #60A5FA; --processing-bg: #60A5FA1F;
  --completed: #4ADE80;  --completed-bg: #4ADE801F;
  --rejected: #F87171;   --rejected-bg: #F871711F;
  --refunded: #A78BFA;   --refunded-bg: #A78BFA1F;
  --shadow: 0 18px 50px #00000066;
  --grid: #22315A99;
  --accent-2: #2563EB;
  color-scheme: dark;
}

body, button, input, select, textarea { font-family: "Inter", system-ui, "Segoe UI", sans-serif; }
body { background: var(--bg); color: var(--text); }

/* every heading/number that used the round display font -> Inter */
.rail-brand, .topbar h1, .section-head h2, .kpi strong, .cc-kpi strong, .login-brand,
.login-brand-name, .cc-search input, h1, h2, h3 { font-family: "Inter", system-ui, sans-serif !important; }
.topbar h1 { font-weight: 700; font-size: 24px; letter-spacing: -.02em; }
.section-head h2 { font-weight: 700; font-size: 15px; letter-spacing: -.01em; }
.kpi strong, .cc-kpi strong { font-weight: 800; letter-spacing: -.03em; }

/* ---------- buttons ---------- */
.btn { border-radius: 10px; font-weight: 600; }
.btn-primary, .actions .btn-primary { background: var(--star); border-color: var(--star); color: #fff; }
.btn-primary:hover { background: var(--accent-2); border-color: var(--accent-2); filter: none; }
input:focus, select:focus, textarea:focus { border-color: var(--star); box-shadow: 0 0 0 3px color-mix(in srgb, var(--star) 22%, transparent); }

/* ---------- sidebar ---------- */
.rail { background: var(--rail); color: #CBD5E1; padding: 20px 14px; }
.rail-brand { gap: 12px; padding: 2px 6px 16px; color: #fff; }
.rx-logo { width: 42px; height: 42px; flex: none; border-radius: 12px; background: #2563EB; color: #fff; display: grid; place-items: center; font: 800 22px/1 "Inter", sans-serif; }
.rail-brand > span:last-child { font: 800 18px/1.2 "Inter", sans-serif; color: #fff; }
.cc-sub { font: 500 12.5px "Inter", sans-serif; letter-spacing: 0; text-transform: none; color: #94A3B8; margin-top: 2px; }
.rail-group { font: 700 11px "Inter", sans-serif; letter-spacing: 1px; text-transform: uppercase; color: #7C8BA8; margin: 18px 12px 5px; }
.rail nav { align-content: start; }
.rail nav a { color: #CBD5E1; font-weight: 500; font-size: 14px; padding: 9px 12px; border-radius: 10px; }
.rail nav a:hover { background: #FFFFFF0F; color: #fff; }
.rail nav a.is-active { background: #2563EB; color: #fff; box-shadow: none; font-weight: 600; }
.rail nav a.is-active .cc-ic { opacity: 1; }
.rail nav a.cc-ext > span:last-child { color: #94A3B8; }
.rail nav a.cc-tg { background: #FFFFFF0D; color: #fff; }
.rail nav a.cc-tg span:last-child { color: #60A5FA; }
.count { background: #EF4444; color: #fff; border-radius: 999px; font-weight: 700; }
.rail-foot { border-top: 1px solid #FFFFFF14; }
.rail .btn-ghost { color: #CBD5E1; }
.rail .btn-ghost:hover { background: #FFFFFF14; color: #fff; }

/* ---------- top bar ---------- */
.main { min-width: 0; }
.topbar { background: var(--surface); border-bottom: 1px solid var(--line); padding: 16px 32px; position: sticky; top: 0; z-index: 20; }
#page { padding-top: 22px; }

/* ---------- cards / tables ---------- */
.section { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 1px 2px #0F172A0A; }
.section-head { border-bottom: 1px solid var(--line); }
th { color: var(--text-3); font-weight: 700; font-size: 11px; letter-spacing: .06em; background: var(--surface-2); }
tbody tr.clickable:hover, .cc-row:hover { background: var(--surface-2); }
.kpis:not(.section .kpis) .kpi, .cc-kpi { border-radius: 14px; box-shadow: 0 1px 2px #0F172A0A; }
.kpi-star strong { color: var(--star); }
.kpis:not(.section .kpis) .kpi-star, .cc-kpi.hot { background: #0E1A3A; border-color: #0E1A3A; }
.kpis:not(.section .kpis) .kpi-star p, .kpis:not(.section .kpis) .kpi-star small,
.cc-kpi.hot p, .cc-kpi.hot small { color: #94A3B8; }
.kpis:not(.section .kpis) .kpi-star strong, .cc-kpi.hot strong { color: #fff; }
.cc-kpi.ok strong, .cc-pos { color: #16A34A; }
.tab.is-active { color: var(--star); border-color: var(--star); }
.toggle[aria-checked="true"] { background: var(--star); }
.cc-search input { border-radius: 10px; }

/* ---------- sign-in ---------- */
.login { background: radial-gradient(70% 55% at 50% 0%, #2563EB33, transparent), linear-gradient(180deg, #0E1A3A 0%, #0B1328 100%); }
.login-card-modern { background: #FFFFFF; border: 1px solid #E5E9F2; box-shadow: 0 30px 80px #00000055; color: #0F172A; border-radius: 18px; }
.login-brand-modern { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 22px; }
.login-brand-modern .rx-logo { width: 52px; height: 52px; font-size: 26px; border-radius: 14px; }
.login-brand-name { font: 800 26px/1.1 "Inter", sans-serif !important; letter-spacing: -.02em; color: #0F172A; }
.login-brand-subtitle { color: #64748B; font-size: 13px; font-weight: 500; }
.login-heading h1 { color: #0F172A; font-size: 20px; font-weight: 700; }
.login-heading p { color: #64748B; font-size: 13px; }
.login-field input { background: #FFFFFF; border: 1px solid #CBD5E1; color: #0F172A; }
.login-field input::placeholder { color: #94A3B8; }
.login-field input:focus { border-color: #2563EB; box-shadow: 0 0 0 3px #2563EB26; }
.password-toggle { color: #64748B; }
.password-toggle:hover { color: #0F172A; background: #F1F5F9; }
.account-selector-title { color: #475569; }
.account-option { background: #F8FAFC; border: 1px solid #E2E8F0; color: #0F172A; }
.account-option:hover, .account-option.is-selected { background: #EFF6FF; border-color: #2563EB; box-shadow: none; }
.account-option-icon { background: #DBEAFE; color: #1D4ED8; }
.account-option small { color: #64748B; }
.login-submit { background: #2563EB; border-color: #2563EB; color: #fff; }
.login-submit:hover { background: #1D4ED8; border-color: #1D4ED8; filter: none; }
.form-error { color: #B91C1C; }

@media (max-width: 860px) {
  .topbar { padding: 12px 16px; }
  #page { padding-top: 14px; }
}

/* ---------- Suppliers page (BAMBOO1ST) ---------- */
.rx-sups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 18px; }
.rx-sup { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; box-shadow: 0 1px 2px #0F172A0A; min-width: 0; }
.rx-sup p { margin: 6px 0; }
.rx-sup-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 16px; }
.rx-rank { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--raise); color: var(--text-2); font-weight: 800; flex: none; }
.rx-on { border-color: var(--star); box-shadow: 0 0 0 3px color-mix(in srgb, var(--star) 15%, transparent); }
.rx-on .rx-rank { background: var(--star); color: #fff; }
.rx-off { opacity: .7; }
.warn { color: var(--rejected); }
@media (max-width: 1000px) { .rx-sups { grid-template-columns: 1fr; } }

/* ---------- Seller Hub layout (RXHUB) ---------- */
.cc-ic { display: inline-grid; place-items: center; width: 20px; margin-right: 10px; opacity: .9; }
.cc-ic svg { width: 18px; height: 18px; display: block; }
.rail nav a { min-height: 40px; }
.topbar { gap: 14px; }
.topbar h1:empty { display: none; }
.rx-search { flex: 1 1 280px; max-width: 520px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; background: var(--surface); min-height: 42px; color: var(--text-3); }
.rx-search input { border: 0; background: transparent; height: 40px; flex: 1; padding: 0; box-shadow: none; min-width: 0; }
.rx-search input:focus { box-shadow: none; }
.rx-search:focus-within { border-color: var(--star); box-shadow: 0 0 0 3px color-mix(in srgb, var(--star) 20%, transparent); }
.topbar-flags { margin-left: auto; }
.rx-chip { display: inline-flex; align-items: center; gap: 10px; padding-left: 14px; border-left: 1px solid var(--line); }
.rx-chip .rx-logo { width: 36px; height: 36px; font-size: 17px; border-radius: 10px; }
.rx-chip b { display: block; font-size: 13.5px; letter-spacing: .02em; }
.rx-chip small { display: block; color: var(--text-3); font-size: 12px; }

.hx-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 20px; }
.hx-head h1 { margin: 0 0 4px; font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.hx-head span { color: var(--text-2); }
.hx-tools { display: flex; gap: 10px; align-items: center; }
.hx-period { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 10px; padding: 0 6px 0 12px; background: var(--surface); min-height: 42px; color: var(--text-2); font-weight: 600; font-size: 13.5px; }
.hx-period select { border: 0; background: transparent; font-weight: 700; color: var(--text); height: 38px; }
.hx-icon-btn { width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text-2); display: grid; place-items: center; cursor: pointer; }
.hx-icon-btn:hover { color: var(--star); border-color: var(--star); }

.hx-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.hx-kpi { position: relative; display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 18px 28px; min-width: 0; box-shadow: 0 1px 2px #0F172A0A; }
.hx-ib { width: 52px; height: 52px; flex: 0 0 52px; border-radius: 12px; display: grid; place-items: center; }
.hx-ib.sm { width: 44px; height: 44px; flex-basis: 44px; }
.hx-kl { display: block; color: var(--text-2); font-weight: 600; font-size: 13.5px; }
.hx-kv { display: block; font-size: 26px; font-weight: 800; letter-spacing: -.02em; margin-top: 2px; }
.hx-kn { position: absolute; left: 84px; bottom: 10px; color: var(--text-3); font-size: 12px; }

.hx-cols { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.hx-left, .hx-right { display: grid; gap: 20px; min-width: 0; }
.hx-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; box-shadow: 0 1px 2px #0F172A0A; min-width: 0; }
.hx-ch { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; }
.hx-ch h2, .hx-h2 { margin: 0; font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.hx-h2 { margin-bottom: 12px; }
.hx-ch h2 span { color: var(--text-3); font-weight: 500; }
.hx-ch > a { margin-left: auto; font-weight: 600; font-size: 13.5px; text-decoration: none; }
.hx-sub { margin-left: auto; color: var(--text-3); font-size: 13px; }

.hx-mk { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.hx-mkt { position: relative; display: grid; gap: 6px; border: 1px solid var(--line); border-radius: 12px; padding: 14px; color: var(--text); text-decoration: none; min-width: 0; }
.hx-mkt:hover, .hx-sup:hover { border-color: var(--star); }
.hx-mkt.is-on { border-color: color-mix(in srgb, #16A34A 45%, var(--line)); }
.hx-mrow { display: flex; align-items: center; gap: 10px; }
.hx-mark { width: 30px; height: 30px; flex: 0 0 30px; border-radius: 8px; color: #fff; font-weight: 800; font-size: 12px; display: grid; place-items: center; }
.hx-mark.sm { width: 24px; height: 24px; flex-basis: 24px; font-size: 10px; border-radius: 6px; }
.hx-mkt small, .hx-sup small { color: var(--text-3); font-size: 12px; overflow-wrap: anywhere; }
.hx-tick { position: absolute; top: 10px; right: 10px; width: 20px; height: 20px; border-radius: 50%; background: #16A34A; display: grid; place-items: center; }
.hx-st { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--text-3); }
.hx-st-on { color: #15803D; } .hx-st-ready { color: #1D4ED8; } .hx-st-paused { color: #B45309; }
.hx-dot { width: 8px; height: 8px; border-radius: 50%; background: #94A3B8; display: inline-block; }
.hx-on { background: #16A34A; } .hx-ready { background: #2563EB; } .hx-paused { background: #D97706; }

.hx-sups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.hx-sup { position: relative; display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line); border-radius: 12px; padding: 14px; color: var(--text); text-decoration: none; min-width: 0; }
.hx-sup > div { display: grid; gap: 4px; min-width: 0; }
.hx-sup.is-on { border-color: color-mix(in srgb, #16A34A 45%, var(--line)); }
.hx-smark { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 12px; color: #fff; font-weight: 800; font-size: 17px; display: grid; place-items: center; }
.hx-sn { display: flex; align-items: center; gap: 8px; }
.hx-sn em { font-style: normal; font-size: 11.5px; font-weight: 700; color: var(--text-2); background: var(--raise); border-radius: 6px; padding: 1px 7px; }

.hx-tabs { display: flex; flex-wrap: wrap; gap: 2px; margin-left: 12px; }
.hx-tabs button { border: 0; background: transparent; font: 600 13px Inter, sans-serif; color: var(--text-2); padding: 8px 12px; min-height: 38px; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.hx-tabs button.is-on { color: var(--star); box-shadow: inset 0 -2px 0 var(--star); }
.hx-cnt { font-size: 11px; font-weight: 700; border-radius: 999px; padding: 1px 7px; background: #FEE2E2; color: #B91C1C; }
.hx-table th { background: var(--surface-2); }
.hx-table td, .hx-table th { padding: 11px 14px; }
.hx-om { display: inline-flex; align-items: center; gap: 8px; }
.hx-pill { display: inline-block; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 6px; white-space: nowrap; }
.hx-p-ok { background: #DCFCE7; color: #15803D; } .hx-p-bad { background: #FEE2E2; color: #B91C1C; } .hx-p-mute { background: #E2E8F0; color: #334155; }
.hx-p-pend { background: #FEF3C7; color: #B45309; } .hx-p-info { background: #DBEAFE; color: #1D4ED8; }

.hx-svc { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; color: var(--text); text-decoration: none; margin-top: 10px; }
.hx-svc:hover { border-color: var(--star); }
.hx-svt { display: grid; gap: 2px; flex: 1; min-width: 0; }
.hx-svt small { color: var(--text-3); font-size: 12.5px; }
.hx-act { display: grid; grid-template-columns: 24px 1fr; gap: 4px 10px; padding: 10px 0; border-top: 1px solid var(--line); color: var(--text); text-decoration: none; font-size: 13.5px; }
.hx-act:first-of-type { border-top: 0; }
.hx-act small { grid-column: 2; color: var(--text-3); font-size: 12px; }
.hx-ad { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; }

@media (max-width: 1280px) { .hx-cols { grid-template-columns: 1fr; } .hx-mk { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .hx-kpis { grid-template-columns: 1fr 1fr; } .hx-sups { grid-template-columns: 1fr; } .rx-chip { display: none; } }
@media (max-width: 560px) { .hx-kpis, .hx-mk { grid-template-columns: 1fr; } .rx-search { order: 5; flex-basis: 100%; max-width: none; } .topbar { flex-wrap: wrap; } }
[data-theme="dark"] .hx-p-ok { background: #4ADE8022; color: #4ADE80; } [data-theme="dark"] .hx-p-bad { background: #F8717122; color: #F87171; }
[data-theme="dark"] .hx-p-mute { background: #ffffff14; color: var(--text-2); } [data-theme="dark"] .hx-p-pend { background: #FBBF2422; color: #FBBF24; } [data-theme="dark"] .hx-p-info { background: #60A5FA22; color: #60A5FA; }
