@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/plus-jakarta-sans-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --ivory: #F7F6F0;
  --mandiri-blue: #003D79;
  --olive: #596744;
  --pale-olive: #DDE3D3;
  --sage: #A3AE8C;
  --mandiri-gold: #FFB700;
  --slate: #253440;
  --surface: #FFFFFF;
  --surface-soft: #F1F3EC;
  --line: #DCE1D7;
  --muted: #607079;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 8px 28px rgba(37, 52, 64, .06);
  --motion: 180ms ease;
  --navy: var(--mandiri-blue);
  --gold: var(--mandiri-gold);
  --blue: var(--mandiri-blue);
  --aqua: var(--sage);
  font: 400 15px/1.55 "Plus Jakarta Sans", Arial, sans-serif;
  color: var(--slate);
}

html { scroll-behavior: smooth; }
body {
  color: var(--slate);
  background: var(--ivory);
  font-family: "Plus Jakarta Sans", Arial, sans-serif;
  font-size: 15px;
}
body::before {
  content: "";
  position: fixed;
  z-index: -1;
  right: -140px;
  top: 135px;
  width: 380px;
  height: 280px;
  border-radius: 47% 53% 63% 37% / 54% 42% 58% 46%;
  background: rgba(163, 174, 140, .10);
  pointer-events: none;
}
* { -webkit-tap-highlight-color: transparent; }
:where(button, input, select, textarea, a) { transition: background-color var(--motion), border-color var(--motion), color var(--motion), box-shadow var(--motion); }
:where(button, input, select, textarea, a):focus-visible { outline: 2px solid var(--mandiri-blue); outline-offset: 2px; }
:where(input, select, textarea):focus { border-color: var(--mandiri-blue); box-shadow: 0 0 0 3px rgba(0, 61, 121, .10); outline: none; }
:where(input, select, textarea)::placeholder { color: #87918B; opacity: 1; }
:where(input, select, textarea) { color: var(--slate); background: #fff; border: 1px solid #C9D2C5; border-radius: var(--radius-sm); font-size: 14px; }
:where(input, select) { min-height: 44px; }
textarea { line-height: 1.55; }
input[type="checkbox"] { accent-color: var(--olive); }
label { color: var(--slate); font-size: 13px; font-weight: 600; }
:where(h1, h2, h3, h4) { color: var(--mandiri-blue); letter-spacing: -.025em; font-weight: 600; }
h1 { font-size: clamp(28px, 2.7vw, 32px); line-height: 1.25; }
h2 { font-size: clamp(20px, 2vw, 24px); line-height: 1.3; }
h3 { font-size: 17px; line-height: 1.4; }
p { line-height: 1.6; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.section-kicker, .eyebrow { color: var(--olive); font-size: 11px; font-weight: 600; letter-spacing: .11em; }
:where(.summary-stat strong, .ranking-card span, .pipeline-cell, .pipeline-breakdown, .report-table, .profile-highlights dd) { font-variant-numeric: tabular-nums; }

button { min-height: 40px; padding: 9px 15px; border: 1px solid #C5D0C0; border-radius: var(--radius-sm); color: var(--mandiri-blue); background: #fff; font-size: 13px; font-weight: 600; box-shadow: none; }
button:hover { border-color: var(--olive); background: #F0F2EA; }
button:active { transform: translateY(1px); }
button:disabled { cursor: not-allowed; opacity: .55; }
button.primary, .primary { color: #fff; background: var(--mandiri-blue); border-color: var(--mandiri-blue); box-shadow: none; }
button.primary:hover, .primary:hover { color: #fff; background: #0B4B88; border-color: #0B4B88; }
.text-button { color: var(--mandiri-blue); background: transparent; border: 0; box-shadow: none; }
.text-button:hover { color: var(--olive); background: transparent; }
#pipelineRefresh, #summaryRefresh, #branchSummaryRefresh, #refreshHistory, #summaryMore, #moreHistory { color: #fff; background: var(--olive); border-color: var(--olive); }
#pipelineRefresh:hover, #summaryRefresh:hover, #branchSummaryRefresh:hover, #refreshHistory:hover, #summaryMore:hover, #moreHistory:hover { background: #4D5A3B; border-color: #4D5A3B; }

.site-header { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 20px; align-items: center; padding: 12px max(24px, calc((100vw - 1200px)/2)); background: var(--mandiri-blue); border-bottom: 3px solid var(--mandiri-gold); overflow: visible; }
.site-header::after { display: none; }
.brand { min-width: 0; gap: 12px; }
.brand-mark { width: 160px; height: 67px; flex: none; background: transparent; border: 0; border-radius: 0; box-shadow: none; overflow: hidden; }
.brand-mark img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.brand strong { max-width: 360px; color: #fff; font-size: 16px; font-weight: 600; line-height: 1.25; white-space: normal; }
.brand small { color: #DDEAF5; font-size: 12px; font-weight: 400; }
.header-badge { color: #E1EBD1; background: transparent; border: 1px solid rgba(221, 227, 211, .45); border-radius: 999px; font-size: 12px; }
#appNav { grid-column: 1 / -1; display: flex; flex-wrap: nowrap; gap: 5px; max-width: 100%; padding: 0 0 3px; overflow-x: auto; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.35) transparent; }
#appNav button { flex: none; min-height: 36px; padding: 7px 11px; color: #EAF0F3; background: transparent; border: 0; border-radius: 8px; font-size: 12px; font-weight: 500; white-space: nowrap; box-shadow: none; }
#appNav button:hover { color: #fff; background: rgba(255,255,255,.11); }
#appNav button[aria-current="page"] { color: var(--mandiri-blue); background: var(--ivory); box-shadow: inset 0 -3px 0 var(--mandiri-gold); font-weight: 600; }
#appNav .logout { margin-left: auto; color: #EAF0F3; border: 1px solid rgba(255,255,255,.28); }

main { max-width: 1248px; padding: 32px 24px 56px; }
.surface { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.login-layout { display: grid; place-items: center; max-width: 560px; min-height: 540px; grid-template-columns: minmax(0, 1fr); gap: 0; margin: 16px auto 0; }
.login-intro { padding: 16px 0 18px; }
.login-intro::before { content: ""; position: absolute; z-index: -1; width: 238px; height: 260px; right: 0; bottom: -36px; background: var(--pale-olive); border-radius: 57% 43% 47% 53% / 57% 44% 56% 43%; opacity: .45; transform: rotate(-16deg); }
.login-intro h1 { margin: 14px 0 16px; max-width: 480px; font-size: clamp(28px, 2.7vw, 32px); font-weight: 600; line-height: 1.25; }
.login-intro > p { max-width: 480px; color: #4F6067; font-size: 15px; }
.login-intro .eyebrow { color: var(--olive); }
.intro-steps { gap: 14px; margin-top: 28px; }
.intro-steps > div { padding: 0 0 0 21px; border-left: 2px solid var(--pale-olive); }
.intro-steps strong { color: var(--mandiri-blue); font-size: 14px; font-weight: 600; }
.intro-steps p { color: var(--muted); font-size: 13px; }
.intro-steps .step-dot { width: 8px; height: 8px; left: -5px; background: var(--olive); border: 2px solid var(--ivory); box-shadow: none; }
.orbit { display: none; }
.login-card { width: 100%; max-width: 478px; padding: 32px; border-top: 3px solid var(--mandiri-gold); }
.login-card h2 { margin: 4px 0 8px; font-size: 24px; }
.login-card .muted { font-size: 14px; }
.login-card form label { margin-top: 22px; }
#loginButton { width: 100%; margin-top: 20px; }

.workspace-heading { margin: 4px 0 24px; align-items: end; }
.workspace-heading h1 { margin: 4px 0 6px; font-size: 30px; }
.workspace-heading > div:first-child p { color: var(--muted); font-size: 14px; }
.identity { max-width: 380px; padding: 10px 0 10px 16px; border-left: 3px solid var(--mandiri-gold); background: transparent; }
.identity strong { color: var(--mandiri-blue); font-size: 13px; font-weight: 600; }
.identity small { color: var(--muted); font-size: 12px; }

.pipeline-panel, .summary-panel, .template-card, .help-panel, .form-card { padding: 24px; }
.pipeline-heading { align-items: center; }
.pipeline-heading h2 { margin: 3px 0 5px; font-size: 22px; }
.pipeline-heading p { font-size: 13px; }
.pipeline-asof { color: var(--olive); font-size: 11px; }
.pipeline-filters { gap: 16px; margin: 20px 0 18px; }
.area-branch-field { background: var(--surface-soft); border-color: var(--line); }
.branch-options { border-color: var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.branch-option { color: var(--slate); }
.branch-option:hover { background: var(--surface-soft); }
.pipeline-filter-heading { margin: 18px 0 8px; }
.pipeline-filter-heading strong { color: var(--mandiri-blue); font-size: 16px; font-weight: 600; }
#pipelineFilterReset { color: var(--olive); background: transparent; border: 0; min-height: 32px; padding: 3px 5px; }
#pipelineFilterReset:hover { color: var(--mandiri-blue); text-decoration: underline; }
#pipelineControls { gap: 10px; margin-bottom: 16px; }
#pipelineControls .pipeline-check-group { padding: 12px 14px 14px; background: #F5F6F1; border: 1px solid var(--line); border-radius: var(--radius-sm); }
#pipelineControls .pipeline-check-group legend { padding: 0 6px; color: var(--mandiri-blue); font-size: 12px; font-weight: 600; }
#pipelineControls .pipeline-check-options label { color: var(--slate); font-size: 11px; font-weight: 500; line-height: 1.4; border-color: transparent; border-radius: 6px; }
#pipelineControls .pipeline-check-options label:hover { background: rgba(163, 174, 140, .18); }
#pipelineControls .pipeline-check-options label:has(input:checked) { color: var(--mandiri-blue); background: var(--pale-olive); border-color: var(--sage); font-weight: 600; }
#pipelineControls input[type="checkbox"] { accent-color: var(--olive); }
.pipeline-list-scroll { border: 1px solid var(--line); border-radius: var(--radius-sm); }
.pipeline-list-scroll .pipeline-list-heading { color: var(--mandiri-blue); background: var(--pale-olive); border-radius: 0; }
.pipeline-list-scroll .pipeline-sort-button { color: var(--mandiri-blue); font-size: 12px; font-weight: 600; }
.pipeline-list-scroll .pipeline-sort-button:hover, .pipeline-list-scroll .pipeline-sort-button:focus-visible { background: rgba(89, 103, 68, .10); outline-color: var(--mandiri-blue); }
.pipeline-list-scroll .sort-arrow { color: var(--olive); }
.pipeline-list-scroll .pipeline-sort-button[aria-pressed="false"] .sort-arrow { color: #788570; }
.pipeline-list-scroll .pipeline-row { min-height: 62px; color: var(--slate); background: #fff; border: 0; border-top: 1px solid #E9EDE7; }
.pipeline-list-scroll .pipeline-row:hover { background: #F9FAF6; }
.pipeline-cell, .pipeline-customer { color: var(--slate); font-size: 13px; font-weight: 500; }
.pipeline-cell strong { font-weight: 600; }
.pipeline-category { color: var(--mandiri-blue); background: var(--surface-soft); border: 1px solid #D7DED1; border-radius: 8px; }
.pipeline-more { display: inline-flex; justify-content: center; align-items: center; width: 36px; height: 36px; color: var(--mandiri-blue); background: #fff; border-color: #CDD7CB; border-radius: 8px; font-size: 0; }
.pipeline-more:hover, .pipeline-more:focus-visible { background: var(--pale-olive); border-color: var(--olive); }
.pipeline-more svg { width: 18px; height: 18px; stroke-width: 1.8; }
.pipeline-list-scroll .pipeline-row.pipeline-flagged { background: #FFF4F1; border-color: #EED2C9; }
.pipeline-list-scroll .pipeline-row.pipeline-interested { background: #F0F8EF; border-color: #CDE3CD; }
.pipeline-warning, .pipeline-interested .pipeline-customer::after { border-radius: 6px; font-size: 10px; }

.activity-layout { grid-template-columns: minmax(0,1fr) 268px; gap: 20px; }
.form-card { margin-bottom: 18px; }
.context-card { padding: 22px; background: var(--surface-soft); border-color: var(--pale-olive); }
.context-card h2 { font-size: 20px; }
.context-card li, .context-footer { color: #4B5B5B; font-size: 13px; }
.branch-pic-fields { background: var(--surface-soft); border-color: var(--line); border-radius: var(--radius-sm); }
.profile-heading { background: var(--surface-soft); border-bottom-color: var(--line); }
.profile-heading h3 { font-size: 19px; }
.profile-highlights > div { background: #F8F9F5; border-color: var(--line); border-radius: var(--radius-sm); }
.profile-highlights > div:first-child { background: var(--pale-olive); border-color: var(--pale-olive); }
.profile-highlights dt, .profile-grid dt { color: var(--muted); }
.profile-highlights dd, .profile-grid dd { color: var(--slate); }
.profile-section h4, .profile-more summary { color: var(--mandiri-blue); }
.profile-date { background: #F7F8F4; }
.profile-notice { background: #FFF5DC; color: #725303; }
.field-caption { color: var(--muted); }
.submit-row { background: var(--surface-soft); border-color: var(--line); border-radius: var(--radius-sm); }
.success-card { max-width: 600px; padding: 36px 28px; }
.success-icon { color: #fff; background: #268250; box-shadow: none; }

.summary-filters { gap: 16px; padding: 20px; }
.summary-stats { gap: 12px; margin: 18px 0 20px; }
.summary-stat { padding: 18px; border: 1px solid var(--line); border-top: 2px solid var(--mandiri-blue); border-radius: var(--radius-sm); background: #fff; box-shadow: var(--shadow); }
.summary-stat span { color: var(--muted); font-size: 12px; }
.summary-stat strong { color: var(--mandiri-blue); font-size: 28px; font-weight: 600; }
.summary-stat small { color: var(--muted); }
.ranking-grid { gap: 12px; }
.ranking-card { padding: 18px; background: #fff; border: 1px solid var(--line); border-top: 2px solid var(--olive); border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.ranking-card h3 { color: var(--mandiri-blue); font-size: 16px; }
.ranking-card p { border-color: var(--line); color: var(--slate); font-size: 13px; }
.ranking-card strong { font-weight: 600; }
.top-area-card .area-rank small { color: var(--olive); }
.report-scroll { border: 1px solid var(--line); border-radius: var(--radius-sm); }
.report-table { font-size: 12px; }
.report-table th { color: var(--mandiri-blue); background: var(--pale-olive); font-weight: 600; }
.report-table td { color: var(--slate); border-color: #E9EDE7; }
.report-table tbody tr:hover { background: #FAFBF7; }
.pipeline-breakdown > div { color: var(--slate); background: var(--surface-soft); border-color: var(--line); border-radius: var(--radius-sm); }

.history-heading h2, .faq-heading h2, .guide-heading h2, .help-panel h2, .template-card h2 { font-size: 22px; }
.history-list { gap: 12px; margin-top: 18px; }
.history-card { padding: 20px; border-radius: var(--radius); }
.history-card h3 { font-size: 17px; }
.history-card .pill { border-radius: 6px; }
.pill { border-radius: 6px; font-weight: 600; }
.pill.interested { color: #1B6845; background: #E7F4EA; }
.pill.declined { color: #915230; background: #FFF0E7; }
.pill.followup { color: #314C82; background: #E8EEF8; }
.template-card textarea { min-height: 260px; }
.faq-heading { border-bottom-color: var(--line); }
.faq-tabs { gap: 6px; }
.faq-tabs button[aria-pressed="true"] { color: #fff; background: var(--olive); border-color: var(--olive); }
.faq-item { background: #fff; border-color: var(--line); border-radius: var(--radius-sm); }
.faq-item[open] { background: #F6F8F2; border-color: var(--sage); }
.faq-item summary { color: var(--mandiri-blue); font-weight: 600; }
.help-contact { background: #fff; border-color: var(--line); border-radius: var(--radius-sm); }
.help-whatsapp { color: var(--olive); background: var(--surface-soft); border-color: var(--pale-olive); }
.help-whatsapp:hover { color: #fff; background: var(--olive); }
.guide-pages { gap: 16px; }
.guide-page { border-color: var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.message.error, .error { color: #A13B35; }
.skip-link:not(:focus) { position: absolute; top: auto; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.skip-link:focus { position: fixed; top: 10px; left: 10px; width: auto; height: auto; }
footer { color: var(--muted); font-size: 12px; }

@media (max-width: 1000px) {
  main { padding: 28px 20px 48px; }
  .login-layout { gap: 32px; }
  .activity-layout { grid-template-columns: 1fr; }
  .context-card { display: none; }
  .summary-stats { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 700px) {
  .site-header { gap: 8px 12px; padding: 12px 16px 10px; }
  .brand { gap: 9px; }
  .brand-mark { width: 100px; height: 51px; }
  .brand strong { font-size: 13px; line-height: 1.25; }
  .brand small { font-size: 10px; }
  #appNav { margin: 0 -16px; padding: 1px 16px 4px; width: calc(100% + 32px); }
  #appNav button { font-size: 11px; min-height: 34px; padding: 6px 10px; }
  main { padding: 24px 16px 42px; }
  .login-layout { display: block; margin: 0 auto; min-height: 0; }
  .login-intro { padding: 4px 4px 18px; }
  .login-intro h1 { font-size: 28px; margin: 9px 0 12px; }
  .login-intro > p { font-size: 14px; }
  .login-intro::before { width: 140px; height: 180px; opacity: .30; }
  .login-card { max-width: none; padding: 22px; }
  .login-card h2 { font-size: 21px; }
  .workspace-heading { align-items: flex-start; gap: 14px; margin-bottom: 20px; }
  .workspace-heading h1 { font-size: 27px; }
  .identity { max-width: 100%; padding: 5px 0 5px 12px; }
  .pipeline-panel, .summary-panel, .template-card, .help-panel, .form-card { padding: 18px; }
  .pipeline-heading h2 { font-size: 20px; }
  .pipeline-profile-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  .pipeline-profile-heading .text-button { padding: 8px 0; white-space: normal; text-align: left; }
  .pipeline-list-scroll .pipeline-list-heading { background: var(--pale-olive); }
  .pipeline-list-scroll .pipeline-row { margin: 0 0 8px; border: 1px solid var(--line); border-radius: var(--radius-sm) !important; }
  #pipelineControls .pipeline-check-group { padding: 10px 12px; }
  #pipelineControls .pipeline-check-options label { font-size: 12px; }
  .summary-filters { padding: 18px; }
  .summary-stat strong { font-size: 24px; }
  .history-card { padding: 16px; }
  .report-scroll { overflow: visible; border: 0; }
  .report-table { min-width: 0; border-collapse: separate; border-spacing: 0; }
  .report-table thead { display: none; }
  .report-table tbody { display: block; }
  .report-table tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 12px; padding: 14px; margin-bottom: 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); }
  .report-table td { display: block; min-width: 0 !important; max-width: none; padding: 0; border: 0; font-size: 12px; white-space: normal; overflow-wrap: anywhere; }
  .report-table td:nth-child(3), .report-table td:nth-child(6) { grid-column: 1 / -1; }
  .report-table td::before { display: block; margin-bottom: 3px; color: var(--muted); font-size: 10px; font-weight: 500; }
  .report-table td:nth-child(1)::before { content: "Waktu input (WITA)"; }
  .report-table td:nth-child(2)::before { content: "Cabang"; }
  .report-table td:nth-child(3)::before { content: "Nasabah"; }
  .report-table td:nth-child(4)::before { content: "Metode"; }
  .report-table td:nth-child(5)::before { content: "Hasil"; }
  .report-table td:nth-child(6)::before { content: "Keterangan"; }
}
@media (max-width: 420px) {
  .brand-mark { width: 88px; height: 48px; }
  .brand strong { max-width: 230px; font-size: 12px; }
  .header-badge { display: none; }
  .workspace-heading h1 { font-size: 25px; }
  .summary-stats { gap: 8px; }
  .summary-stat { padding: 14px; }
  .summary-stat strong { font-size: 22px; }
  .summary-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .summary-filters > div { min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  :where(button, input, select, textarea, a) { transition: none; }
}

/* Contemporary Corporate Olive: shared layout and navigation */
:root {
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 40px;
  --radius-control: 10px;
  --radius-card: 14px;
  --border-soft: 1px solid var(--line);
  --shadow-soft: 0 5px 18px rgba(37, 52, 64, .045);
  --sidebar-width: 232px;
  --success-ink: #1D684A;
  --success-bg: #E8F3E9;
  --warning-ink: #8A5428;
  --warning-bg: #FFF0E5;
  --error-ink: #A13B35;
  --error-bg: #FFF0EE;
}
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.nav-icon { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
body { background: var(--ivory); }
body::before { display: none; }
body:has(#loginView:not([hidden])) .site-header,
body:has(#loginView:not([hidden])) .app-topbar,
body:has(#loginView:not([hidden])) .nav-overlay,
body:has(#loginView:not([hidden])) footer { display: none !important; }
body:has(#loginView:not([hidden])) main { width: 100%; max-width: none; min-height: 100vh; margin: 0; padding: 0; }
.login-layout { position: relative; width: 100%; max-width: none; height: 100vh; min-height: 680px; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 42%) minmax(0, 58%); gap: 0; overflow: hidden; background: var(--ivory); }
.login-layout::before { content: ""; position: absolute; left: -105px; bottom: -135px; width: 270px; height: 270px; border-radius: 55% 45% 61% 39%; background: rgba(221,227,211,.33); pointer-events: none; }
.login-card { position: relative; z-index: 1; justify-self: center; align-self: center; width: min(calc(100% - 64px), 390px); max-width: none; margin: 0; padding: 24px 0; background: transparent; border: 0; border-radius: 0; box-shadow: none; }
.login-logo { display: block; width: 178px; height: 82px; margin: 0 0 28px -8px; object-fit: cover; object-position: center; }
.login-card .section-kicker { margin-bottom: 8px; }
.login-card .section-kicker::after { content: ""; display: block; width: 38px; height: 2px; margin-top: 7px; border-radius: 2px; background: var(--mandiri-gold); }
.login-card h2 { margin: 0 0 7px; font-size: 25px; font-weight: 600; }
.login-card > .muted { max-width: 370px; margin-bottom: 22px; }
.login-card form label { margin: 17px 0 6px; }
.login-card input { min-height: 43px; }
.login-card .message { min-height: 0; margin: 12px 0 0; }
.login-card .message:empty { display: none; }
#loginButton { margin-top: 22px; min-height: 44px; }
.login-note { margin-top: 20px; padding-top: 14px; border-top: var(--border-soft); font-size: 12px; line-height: 1.5; }
.login-hero { position: relative; justify-self: stretch; width: 100%; height: 100%; min-height: 0; overflow: hidden; background: var(--pale-olive); }
.login-hero img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; min-height: 0; object-fit: cover; object-position: 54% center; filter: brightness(1.14) saturate(.83); }
.hero-olive { position: absolute; left: -21%; top: -17%; width: 52%; height: 39%; border-radius: 56% 44% 61% 39%; background: rgba(221,227,211,.68); transform: rotate(-17deg); }
.hero-sage { position: absolute; right: -14%; bottom: -18%; width: 55%; height: 44%; border-radius: 49% 51% 42% 58%; background: rgba(163,174,140,.42); transform: rotate(17deg); }

body:has(#workspace:not([hidden])) { --content-offset: var(--sidebar-width); }
body:has(#workspace:not([hidden])) .site-header { position: fixed; z-index: 80; inset: 0 auto 0 0; display: flex; flex-direction: column; align-items: stretch; gap: 24px; width: var(--sidebar-width); height: 100vh; padding: 24px 12px 16px; overflow: hidden; border: 0; border-right: 1px solid rgba(255,255,255,.15); background: var(--mandiri-blue); }
.site-header .brand { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; min-width: 0; padding: 0 8px; }
.site-header .brand-mark { width: 154px; height: 72px; }
.site-header .brand strong { color: #fff; font-size: 13px; line-height: 1.3; }
.site-header .brand small { color: #D9E5EF; font-size: 11px; }
.site-header #appNav { grid-column: auto; display: flex; flex: 1; flex-direction: column; flex-wrap: nowrap; gap: 4px; width: 100%; max-width: none; margin: 0; padding: 0 0 8px; overflow: auto; scrollbar-width: thin; }
.site-header #appNav button { display: flex; align-items: center; justify-content: flex-start; gap: 11px; width: 100%; min-height: 42px; padding: 9px 11px; text-align: left; color: #E5EDF3; background: transparent; border: 0; border-radius: 8px; font-size: 12px; font-weight: 500; line-height: 1.35; white-space: normal; }
.site-header #appNav button:hover { color: #fff; background: rgba(255,255,255,.10); }
.site-header #appNav button[aria-current="page"] { color: var(--mandiri-blue); background: var(--pale-olive); box-shadow: inset 3px 0 0 var(--mandiri-gold); font-weight: 600; }
.site-header #appNav .logout { margin: auto 0 0; border: 1px solid rgba(255,255,255,.22); }
.site-header #appNav .logout:hover { border-color: rgba(255,255,255,.4); }
.drawer-close { display: none; }
.sidebar-collapse { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 38px; padding: 7px 10px; color: #D9E5EF; background: transparent; border: 1px solid rgba(255,255,255,.22); border-radius: 8px; text-align: left; font-size: 11px; font-weight: 500; }
.sidebar-collapse:hover { color: #fff; background: rgba(255,255,255,.10); border-color: rgba(255,255,255,.4); }
.site-header .header-badge { display: none; }
body:has(#workspace:not([hidden])) main { width: auto; max-width: none; min-height: calc(100vh - 70px); margin-left: var(--content-offset); padding: 28px 32px 56px; }
body:has(#workspace:not([hidden])) footer { margin-left: var(--content-offset); }
#workspace { max-width: 1460px; margin: 0 auto; }
.app-topbar, .nav-overlay { display: none; }
.workspace-heading { margin: 0 0 20px; }
.workspace-heading h1 { font-size: 28px; }
.workspace-heading .eyebrow { font-size: 10px; }
.workspace-heading .identity { padding-top: 4px; padding-bottom: 4px; }
body.sidebar-collapsed { --sidebar-width: 72px; }
body.sidebar-collapsed .site-header { align-items: center; padding-right: 8px; padding-left: 8px; }
body.sidebar-collapsed .site-header .brand { padding: 0; align-items: center; }
body.sidebar-collapsed .site-header .brand-mark { width: 52px; height: 52px; }
body.sidebar-collapsed .site-header .brand > span:last-child,
body.sidebar-collapsed .site-header .nav-label { display: none; }
body.sidebar-collapsed .site-header #appNav button,
body.sidebar-collapsed .sidebar-collapse { justify-content: center; padding-right: 0; padding-left: 0; }
body.sidebar-collapsed .site-header #appNav button[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--mandiri-gold); }
body.sidebar-collapsed .sidebar-collapse { width: 44px; }
body.sidebar-collapsed .sidebar-collapse .nav-icon { transform: rotate(180deg); }

/* Operational pages */
.pipeline-panel { padding: 20px 24px 24px; }
.pipeline-heading { align-items: center; margin-bottom: 8px; }
.pipeline-heading .section-kicker,
.pipeline-heading h2,
.pipeline-heading p { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.pipeline-heading .pipeline-asof { display: block; color: var(--muted); font-size: 12px; }
.pipeline-filters { margin: 12px 0 14px; }
.pipeline-filter-heading { margin: 12px 0 7px; }
#pipelineControls { display: grid; width: 100%; overflow-x: auto; grid-template-columns: minmax(0, 1fr) 150px 210px; grid-template-rows: auto auto; gap: 10px; align-items: stretch; }
#pipelineControls .category-group { grid-column: 1; grid-row: 1 / 3; }
#pipelineControls .followup-group { grid-column: 2; grid-row: 1; }
#pipelineControls .account-group { grid-column: 2; grid-row: 2; }
#pipelineControls .balance-group { grid-column: 3; grid-row: 1 / 3; }
#pipelineControls .pipeline-check-group { min-height: 0; padding: 9px 10px 11px; background: #F6F7F2; }
#pipelineControls .category-options { display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: repeat(4, auto); grid-auto-flow: column; gap: 2px 5px; align-content: start; }
#pipelineControls .pipeline-check-options label { gap: 5px; min-height: 34px; padding: 5px 4px; font-size: 11px; overflow-wrap: normal; }
#pipelineControls .pipeline-check-options label span { min-width: 0; }
#pipelineControls .pipeline-check-options input[type="checkbox"] { width: 16px; height: 16px; }
#pipelineControls .balance-group .pipeline-check-options { grid-template-columns: 1fr; }
#pipelineControls .followup-group .pipeline-check-options,
#pipelineControls .account-group .pipeline-check-options { grid-template-columns: 1fr; }
.pipeline-list-scroll { max-height: min(68vh, 760px); border-color: var(--line); }
.pipeline-list-scroll .pipeline-list-heading { position: sticky; top: 0; z-index: 5; }
.pipeline-list-scroll .pipeline-row { min-height: 56px; }
.pipeline-list-scroll .pipeline-category { border-radius: 7px; }
.summary-stats { gap: 10px; }
.summary-stat { padding: 16px; }
.summary-stat strong { font-size: 26px; }
.summary-panel, .template-card, .help-panel { padding: 22px; }
.report-table td:nth-child(1), .report-table th:nth-child(1) { font-variant-numeric: tabular-nums; }
.report-table td:nth-child(4), .report-table th:nth-child(4) { text-align: center; }

@media (max-width: 900px) {
  :root { --sidebar-width: 0px; }
  body:has(#workspace:not([hidden])) .app-topbar { position: sticky; top: 0; z-index: 70; display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 8px 18px; color: var(--mandiri-blue); background: var(--ivory); border-bottom: var(--border-soft); font-size: 13px; font-weight: 600; }
  .menu-toggle { display: grid; place-items: center; width: 40px; min-height: 40px; padding: 0; background: transparent; border-color: var(--line); }
  body:has(#workspace:not([hidden])) .site-header { z-index: 90; width: min(284px, calc(100vw - 40px)); transform: translateX(-105%); transition: transform 200ms ease; box-shadow: 12px 0 32px rgba(0,0,0,.12); }
  body.nav-open:has(#workspace:not([hidden])) .site-header { transform: translateX(0); }
  body.nav-open:has(#workspace:not([hidden])) .nav-overlay { position: fixed; z-index: 85; inset: 0; display: block; width: 100%; height: 100%; padding: 0; border: 0; border-radius: 0; background: rgba(37,52,64,.38); }
  body.nav-open { overflow: hidden; }
  body:has(#workspace:not([hidden])) main { margin-left: 0; padding: 24px 20px 48px; }
  body:has(#workspace:not([hidden])) footer { margin-left: 0; }
  .sidebar-collapse { display: none; }
  .drawer-close { position: absolute; top: 18px; right: 14px; display: grid; place-items: center; width: 36px; min-height: 36px; padding: 0; color: #fff; background: transparent; border: 1px solid rgba(255,255,255,.28); }
  .drawer-close:hover { color: #fff; background: rgba(255,255,255,.12); }
  body.sidebar-collapsed .site-header .brand > span:last-child,
  body.sidebar-collapsed .site-header .nav-label { display: inline; }
  body.sidebar-collapsed .site-header #appNav button { justify-content: flex-start; padding-right: 11px; padding-left: 11px; }
  #pipelineControls { overflow-x: visible; grid-template-columns: repeat(2,minmax(0,1fr)); grid-template-rows: auto auto; }
  #pipelineControls .category-group { grid-column: 1 / -1; grid-row: 1; }
  #pipelineControls .followup-group { grid-column: 1; grid-row: 2; }
  #pipelineControls .account-group { grid-column: 2; grid-row: 2; }
  #pipelineControls .balance-group { grid-column: 1 / -1; grid-row: 3; }
  #pipelineControls .balance-group .pipeline-check-options { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .login-layout { grid-template-columns: 1fr; height: auto; min-height: 100vh; padding: 30px 0; }
  .login-hero { display: none; }
  .login-card { width: min(calc(100% - 48px), 390px); padding: 24px 0; }
}
@media (max-width: 700px) {
  body:has(#workspace:not([hidden])) main { padding: 20px 16px 40px; }
  .workspace-heading { margin-bottom: 16px; }
  .workspace-heading h1 { font-size: 26px; }
  .pipeline-panel { padding: 16px; }
  #pipelineControls { grid-template-columns: 1fr; grid-template-rows: none; gap: 8px; }
  #pipelineControls .category-group,
  #pipelineControls .followup-group,
  #pipelineControls .account-group,
  #pipelineControls .balance-group { grid-column: 1; grid-row: auto; }
  #pipelineControls .category-options { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-flow: row; }
  #pipelineControls .pipeline-check-options label { min-height: 34px; font-size: 12px; }
  #pipelineControls .balance-group .pipeline-check-options { grid-template-columns: 1fr; }
  #pipelineControls .followup-group .pipeline-check-options,
  #pipelineControls .account-group .pipeline-check-options { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .login-card h2 { font-size: 24px; }
  .login-logo { margin-bottom: 22px; }
}
@media (max-width: 420px) {
  .login-card { width: calc(100% - 40px); }
  .login-logo { width: 154px; height: 74px; }
  .app-topbar span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
}
@media (prefers-reduced-motion: reduce) {
  body:has(#workspace:not([hidden])) .site-header { transition: none; }
}

/* Sheer Editorial SaaS: architectural surfaces and page compositions.
   Breakpoints: compact 700px, drawer 900px; data surfaces stay opaque. */
:root{--surface-frost:rgba(247,246,240,.30);--surface-warm:#fbfbf7;--surface-tint:rgba(221,227,211,.38);--blur-nav:12px;--shadow-float:0 12px 40px rgba(37,52,64,.075);--text-page:26px;--text-section:18px;--text-body:14px;--text-meta:12px;--layer-soft:.12;--layer-mid:.24}
body{font-size:var(--text-body)}
body:has(#workspace:not([hidden]))::before{display:block;content:"";position:fixed;z-index:-1;left:-140px;top:-110px;width:530px;height:650px;transform:rotate(-24deg);border-radius:42% 58% 65% 35%;background:rgba(163,174,140,.24);pointer-events:none}
body:has(#workspace:not([hidden]))::after{content:"";position:fixed;z-index:-1;right:-150px;bottom:-260px;width:650px;height:650px;border:70px solid rgba(221,227,211,.25);border-radius:48% 52% 35% 65%;pointer-events:none}
body:has(#workspace:not([hidden])) .site-header{inset:14px auto 14px 14px;height:calc(100dvh - 28px);width:218px;padding:22px 10px 12px;border:1px solid rgba(255,255,255,.8);border-radius:19px;background:var(--surface-frost);backdrop-filter:blur(var(--blur-nav));-webkit-backdrop-filter:blur(var(--blur-nav));box-shadow:var(--shadow-float);gap:22px}
.site-header .brand>span:last-child{display:none}.site-header .brand{align-items:center}.site-header .brand-mark{width:152px;height:72px}
.site-header #appNav button{color:var(--mandiri-blue);min-height:43px;font-size:12px}.site-header #appNav .nav-icon{color:var(--olive)}
.site-header #appNav button:hover{color:var(--mandiri-blue);background:rgba(255,255,255,.65)}
.site-header #appNav button[aria-current="page"]{background:rgba(255,255,255,.9);box-shadow:inset 2px 0 var(--mandiri-gold),0 3px 12px rgba(37,52,64,.04)}
.site-header #appNav .logout,.sidebar-collapse{border:0;color:var(--muted);background:transparent}.sidebar-collapse:hover{color:var(--mandiri-blue);background:rgba(255,255,255,.6)}
body:has(#workspace:not([hidden])) main{padding:30px 32px 48px;margin-left:246px}
body.sidebar-collapsed:has(#workspace:not([hidden])) .site-header{width:64px}
body.sidebar-collapsed:has(#workspace:not([hidden])) main{margin-left:92px}
.workspace-heading{align-items:center;gap:20px;margin-bottom:26px}.workspace-heading .eyebrow{display:none}.workspace-heading h1{font-size:var(--text-page);margin:0 0 5px}.workspace-heading>div:first-child p{font-size:13px;margin:0}
.workspace-heading .identity{position:relative;border:0;padding:6px 0 6px 46px;max-width:320px;font-size:11px}.identity::before{content:attr(data-initials);position:absolute;left:0;top:6px;width:34px;height:34px;display:grid;place-items:center;border-radius:11px;color:var(--olive);background:var(--pale-olive);font-size:12px;font-weight:600}.identity strong{font-size:12px}
.surface{box-shadow:none}.pipeline-panel{padding:0;border:0;background:transparent}.pipeline-filters{padding:18px 0}.pipeline-heading{margin:0}.pipeline-checkbox-filters{background:transparent}.pipeline-list-scroll{background:white;border:0;border-radius:12px}.pipeline-list-scroll .pipeline-list-heading{background:#e9ede3}.pipeline-list-scroll .pipeline-row{min-height:54px}
#pipelineControls .pipeline-check-group{background:rgba(255,255,255,.65);border-color:rgba(163,174,140,.3)}
.summary-filters{background:transparent;border:0;border-bottom:1px solid var(--line);border-radius:0;padding:0 0 18px}.summary-stats{grid-template-columns:1.3fr repeat(3,1fr);gap:16px;margin:24px 0}.summary-stat{border:0;padding:22px;background:var(--surface-warm);box-shadow:none}.summary-stat:first-child{background:var(--mandiri-blue);color:white;position:relative;overflow:hidden}.summary-stat:first-child:after{content:"";position:absolute;width:130px;height:130px;border:25px solid rgba(221,227,211,.12);border-radius:45%;right:-45px;bottom:-70px;pointer-events:none}.summary-stat:first-child :is(span,strong,small){color:white}.summary-stat:nth-child(3){background:var(--pale-olive)}.summary-stat strong{font-size:30px}.ranking-card{border:0;border-radius:12px;padding:22px 18px;background:rgba(255,255,255,.7);box-shadow:none}.ranking-card:nth-child(2){background:rgba(221,227,211,.38)}.ranking-card h3{font-size:16px;margin-bottom:20px}.ranking-card p{padding:9px 0;font-size:12px}.summary-panel{border:0;margin-top:24px}.report-scroll{border:0}.report-table th{background:#eef1e9}
.history-list{position:relative;padding-left:24px;border-left:1px solid var(--pale-olive);gap:0;margin-left:6px}.history-card{position:relative;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent;padding:20px 0;box-shadow:none}.history-card:before{content:"";position:absolute;left:-30px;top:27px;width:10px;height:10px;border-radius:50%;background:var(--olive);border:2px solid var(--ivory)}.history-card h3{font-size:15px}.history-card p{font-size:13px;margin:7px 0}.history-card small{color:var(--muted);font-size:11px}.history-card-top{display:flex;justify-content:space-between;align-items:center;gap:12px}
#templateView{display:grid;grid-template-columns:minmax(220px,.7fr) minmax(0,1.3fr);gap:0 32px;padding:0;background:transparent;border:0}#templateView .card-heading{grid-column:1/-1;border:0;padding:0;margin-bottom:24px}#templateView .template-fields{grid-column:1;grid-row:2/5;display:grid;grid-template-columns:1fr;gap:18px;align-content:start;padding:22px;background:var(--surface-tint);border-radius:14px}#templateView>label{grid-column:2;margin-bottom:8px}#templateView textarea{grid-column:2;min-height:470px;background:var(--surface-warm);padding:22px;line-height:1.8;border-color:var(--line)}#templateView #waStatus,#templateView #copyWaTemplate{grid-column:2}#copyWaTemplate{justify-self:end;margin-top:14px}.section-kicker{letter-spacing:.05em;font-size:10px}
#helpView{border:0;background:transparent;padding:0}.help-contacts{gap:12px}.help-area-heading{font-size:13px;font-weight:500;letter-spacing:.06em;color:var(--olive);border:0!important;margin-top:26px!important}.help-contact{position:relative;padding:16px 16px 16px 66px;border:0;background:rgba(255,255,255,.8)}.help-contact:before{content:attr(data-initials);position:absolute;left:16px;top:18px;width:34px;height:34px;display:grid;place-items:center;background:var(--pale-olive);color:var(--olive);border-radius:12px;font-size:12px;font-weight:600}.help-contact strong{font-size:13px}.help-contact span{font-size:11px}.help-whatsapp{border:0;background:transparent}
#faqView{border:0;padding:0;background:transparent}.faq-heading{border:0}.faq-toolbar{padding:20px;background:var(--surface-tint);border-radius:14px}.faq-item{border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent}.faq-item summary{font-size:14px;padding:19px 8px}.faq-item[open]{background:rgba(255,255,255,.65);border-color:var(--line)}
#guideView{padding:0;border:0;background:transparent}.guide-heading{padding:12px 0 20px}.guide-heading p{font-size:12px}.guide-pages{background:var(--surface-tint);padding:16px;border-radius:14px}.guide-page{border:0;border-radius:4px;box-shadow:0 4px 16px rgba(37,52,64,.06)}
.form-card{border:0}.profile-card{border:0!important}.context-card{border:0;background:var(--surface-tint)}.context-card h2{font-size:17px}.profile-heading{border:0}.profile-highlights>div{border:0}.activity-layout .card-heading:has(+.customer-profile){border:0}
@supports not (backdrop-filter:blur(1px)){body:has(#workspace:not([hidden])) .site-header{background:#eef0e7}}
@media(max-width:1100px){.summary-stats{grid-template-columns:repeat(2,minmax(0,1fr))}#templateView{grid-template-columns:minmax(200px,.8fr) minmax(0,1.2fr);gap:0 20px}}
@media(max-width:900px){body:has(#workspace:not([hidden])) main,body.sidebar-collapsed:has(#workspace:not([hidden])) main{margin-left:0;padding:24px 20px}body:has(#workspace:not([hidden])) .site-header{width:270px;inset:12px auto 12px 12px;height:calc(100dvh - 24px);transform:translateX(-115%)}body.nav-open:has(#workspace:not([hidden])) .site-header{transform:translateX(0)}.drawer-close{color:var(--mandiri-blue);border:0}.drawer-close:hover{color:var(--mandiri-blue);background:white}.app-topbar{background:var(--surface-frost)!important;backdrop-filter:blur(12px)}.workspace-heading .identity{max-width:300px}}
@media(max-width:700px){.workspace-heading{gap:12px;margin-bottom:22px}.workspace-heading h1{font-size:24px}.workspace-heading .identity{padding-left:44px}.summary-stats{gap:10px}.summary-stat{padding:16px}.summary-stat strong{font-size:27px}#templateView{display:block}#templateView .template-fields{margin-bottom:22px}#templateView textarea{min-height:420px}#templateView>label{display:block}.ranking-card{padding:18px}.guide-pages{padding:5px}.history-list{padding-left:18px}.history-card:before{left:-24px}.history-card-top{align-items:flex-start}.help-contact{padding-left:60px}.login-card{max-width:390px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
body{isolation:isolate}
#templateView .template-fields{align-self:start}
body:has(#workspace:not([hidden]))::before{z-index:-1;background:rgba(163,174,140,.28)}
body:has(#workspace:not([hidden]))::before{background:rgba(163,174,140,.14)}
body:has(#workspace:not([hidden]))::after{border-color:rgba(221,227,211,.12)}
@media(max-width:900px){body:has(#workspace:not([hidden]))::before{width:320px;height:430px;background:rgba(163,174,140,.09)}body:has(#workspace:not([hidden]))::after{display:none}}

.scope-filters{display:flex;gap:12px;align-items:end;margin:12px 0;flex-wrap:wrap}.scope-filters label{min-width:190px;margin:0}.scope-filters input,.scope-filters select{margin-top:5px}.pipeline-status{display:inline-block;margin:5px 0 0;padding:3px 7px;border-radius:5px;font-size:11px;font-weight:600}.pipeline-status.interested{background:#e7f4ea;color:#17613b}.pipeline-status.declined{background:#fce8e6;color:#a52b28}.pipeline-status.followup{background:#fff2c5;color:#765400}.branch-rank strong{font-size:32px;color:var(--mandiri-blue)}.branch-rank small{display:block;color:var(--muted)}#branchEmployees td:not(:first-child),#branchEmployees th:not(:first-child){text-align:right;font-variant-numeric:tabular-nums}

.pipeline-interested .pipeline-customer::after{display:none}.rank-total{display:inline!important;font-size:15px!important;font-weight:500;vertical-align:baseline}.summary-stats{grid-template-columns:repeat(4,minmax(0,1fr))}@media(max-width:1100px){.summary-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:620px){.summary-stats{grid-template-columns:1fr 1fr}.summary-stat strong{font-size:22px}}

@media(max-width:900px){body:has(#workspace:not([hidden])) .app-topbar{background:rgba(247,246,240,.82)!important}}
/* Make the frosted sidebar reveal the atmospheric layer behind it. */
@media(min-width:901px){body:has(#workspace:not([hidden]))::before{left:-250px;top:210px;width:500px;height:480px;transform:rotate(-18deg);background:rgba(89,103,68,.20)}}
.pipeline-more{width:44px;height:44px;min-width:44px;min-height:44px;padding:0;flex:0 0 44px}
.pipeline-more svg{width:24px;height:24px;flex:0 0 24px;stroke-width:2.2}
.pipeline-more svg circle{r:1.65}
