.customer-details{padding:0;background:#fff;overflow:hidden}.profile-heading{padding:22px 24px 18px;background:linear-gradient(115deg,#edfafa,#f0f6ff);border-bottom:1px solid #dce9ed}.profile-heading h3{font-size:21px;line-height:1.35;margin:0 0 7px}.profile-heading p{margin:0;color:#527383;font-size:13px;overflow-wrap:anywhere}.profile-heading .section-kicker{font-size:10px;letter-spacing:1.4px;margin-bottom:10px}.profile-highlights{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0;padding:20px 24px}.profile-highlights>div{padding:14px 12px;background:#f5f9fc;border:1px solid #e1ecf1;border-radius:12px;min-width:0}.profile-highlights>div:first-child{background:#effafa;border-color:#cbebea}.profile-highlights dt{font-size:11px;color:#527383;margin-bottom:8px}.profile-highlights dd{margin:0;color:#003d79;font-weight:700;font-size:16px;line-height:1.5;overflow-wrap:anywhere}.profile-section{padding:0 24px 20px}.profile-section h4{font-size:13px;margin:0 0 15px;color:#254f68}.profile-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 24px;margin:0}.profile-grid dt{font-size:12px;color:#617d8c;line-height:1.4;margin-bottom:5px}.profile-grid dd{font-size:14px;font-weight:550;color:#23465c;margin:0;overflow-wrap:anywhere}.profile-more{border-top:1px solid #e2edf2;padding:0 24px}.profile-more summary{padding:16px 0;color:#174d70;font-weight:650;font-size:13px;cursor:pointer;min-height:48px}.profile-more[open] summary{margin-bottom:5px}.profile-more .profile-grid{padding-bottom:22px}.profile-date{margin:0;padding:13px 24px;color:#64808f;background:#f7fafc;font-size:11px;border-top:1px solid #e2edf2}.profile-notice{font-size:12px;margin:15px 24px 0;padding:12px;background:#fff6df;border-radius:10px;color:#7c5b13}.summary-filters{display:grid;grid-template-columns:1fr 1fr 1.5fr auto;gap:18px;padding:24px;align-items:end}.summary-filters label{margin:0 0 7px}.summary-filters p{grid-column:1/-1;font-size:12px;color:#617d8c;margin:0}.summary-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:20px 0 24px}.summary-stat{background:#fff;border:1px solid #d6e4ec;border-top:3px solid #59e7e2;border-radius:16px;padding:21px}.summary-stat span{font-size:13px;color:#617d8c;display:block}.summary-stat strong{font-size:32px;color:#003d79;display:block;margin:8px 0 3px}.summary-stat small{font-size:11px;color:#617d8c}.summary-panel{padding:26px}.summary-panel .history-heading p{margin-bottom:0}.report-scroll{overflow:auto;margin:20px 0}.report-table{border-collapse:collapse;width:100%;font-size:13px;min-width:780px}.report-table th{text-align:left;padding:12px;background:#eef5f9;color:#164968;white-space:nowrap}.report-table td{padding:14px 12px;border-bottom:1px solid #e3edf2;vertical-align:top;max-width:320px;overflow-wrap:anywhere}.report-table td:last-child{white-space:pre-wrap;min-width:200px}.report-table td small{display:block;color:#617d8c;margin-top:4px}.summary-panel .message:empty{display:none}.error{color:#a63732}@media(max-width:800px){.summary-filters{grid-template-columns:1fr 1fr}.summary-stats{grid-template-columns:1fr 1fr}.summary-panel .history-heading{align-items:stretch;flex-direction:column}.summary-panel .history-heading button{width:100%}}@media(max-width:480px){.profile-heading{padding:20px 18px}.profile-heading h3{font-size:18px}.profile-highlights{padding:18px;grid-template-columns:1fr;gap:9px}.profile-highlights>div{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px}.profile-highlights dt{margin:0}.profile-highlights dd{text-align:right;font-size:14px}.profile-grid{gap:16px}.profile-section,.profile-more{padding-left:18px;padding-right:18px}.profile-date{padding:12px 18px}.summary-filters{padding:18px;gap:14px}.summary-filters>div:nth-child(3){grid-column:1/-1}.summary-filters button{grid-column:1/-1}.summary-stats{gap:10px}.summary-stat{padding:15px}.summary-stat strong{font-size:27px}.summary-panel{padding:20px 16px}}

/* Cabang and closed-account cues */
.customer-options button.customer-closed{color:#922c32;background:#fff6f5;border-color:#efc5c4}.customer-options button.customer-closed small{display:block;color:#b53b40;font-size:12px;margin-top:4px}.profile-heading.profile-closed{background:linear-gradient(115deg,#fff0ef,#fff8f5);border-bottom-color:#efc5c4;color:#922c32}.profile-heading.profile-closed h3{color:#922c32}.closed-label{display:inline-block;margin-top:10px;padding:6px 10px;background:#b83238;color:#fff;border-radius:999px;font-size:12px}.branch-pic-fields{display:grid;grid-template-columns:1fr 1fr;gap:16px;padding:18px;margin:16px 0;background:#f2f8fb;border:1px solid #dce9ed;border-radius:14px}.branch-pic-fields>div{min-width:0}@media(max-width:600px){.branch-pic-fields{grid-template-columns:1fr}}

.area-branch-field{margin-bottom:20px;padding:16px 18px;background:#eef9fb;border:1px solid #b8e4e8;border-radius:14px}.area-branch-field label{margin-top:0}.area-branch-field small{display:block;margin-top:8px;color:#617d8c;font-size:13px}

/* Branch pipeline list */
.pipeline-panel{padding:26px}.pipeline-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px}.pipeline-heading h2{margin:5px 0 8px;color:#003d79;font-size:24px}.pipeline-heading p{margin:0}.pipeline-filters{display:grid;grid-template-columns:minmax(220px,1fr) minmax(260px,2fr);gap:16px;align-items:end;margin:22px 0}.pipeline-filters label{margin:0 0 7px}.pipeline-search-wrap{min-width:0}.pipeline-list-heading,.pipeline-row{display:grid;grid-template-columns:minmax(110px,.8fr) minmax(220px,2fr) minmax(150px,1fr) 56px;align-items:center;gap:14px}.pipeline-list-heading{padding:12px 16px;background:#083d68;color:#fff;font-weight:700;border-radius:12px 12px 0 0}.pipeline-row{min-height:76px;padding:10px 16px;border:1px solid #dce8ee;border-top:0;background:#fff}.pipeline-row:last-child{border-radius:0 0 12px 12px}.pipeline-row.pipeline-flagged{background:#fff2f0;border-color:#e4aaaa}.pipeline-cell{min-width:0;overflow-wrap:anywhere;color:#28495e}.pipeline-customer{font-weight:650;color:#123f5c}.pipeline-category{display:inline-block;padding:5px 10px;border-radius:999px;background:#edf5fa;color:#164d70;font-weight:650}.pipeline-flagged .pipeline-category{background:#f9dddd;color:#952f35}.pipeline-warning{display:table;margin-top:5px;padding:4px 8px;border-radius:999px;background:#b83238;color:white;font-size:11px;font-weight:700;letter-spacing:.03em}.pipeline-action{text-align:right}.pipeline-more{width:42px;height:42px;border:1px solid #c9dce6;border-radius:12px;background:#f4f9fc;color:#003d79;font-size:24px;line-height:1;cursor:pointer}.pipeline-more:hover,.pipeline-more:focus-visible{background:#e1f8f8;border-color:#59e7e2}.pipeline-panel>#pipelineMore{display:block;margin:18px auto 0}.pipeline-profile-heading{display:flex;justify-content:space-between;align-items:center;gap:16px}.pipeline-profile-heading .card-heading{margin:0}.pipeline-profile-heading .card-heading h2{margin-bottom:0}.pipeline-profile-heading .text-button{white-space:nowrap}.pipeline-panel #pipelineStatus:empty{display:none}
@media(max-width:700px){.pipeline-panel{padding:18px 14px}.pipeline-heading{align-items:stretch;flex-direction:column}.pipeline-heading button{width:100%}.pipeline-filters{grid-template-columns:1fr}.pipeline-list-heading{display:none}.pipeline-row{grid-template-columns:minmax(0,1fr) minmax(48px,auto);gap:8px 14px;padding:14px;border-top:1px solid #dce8ee;border-radius:12px!important;margin-bottom:10px}.pipeline-cell{display:flex;flex-direction:column;gap:3px}.pipeline-cell:before{content:attr(data-label);font-size:11px;color:#718995;font-weight:500}.pipeline-cell[data-label="Nama nasabah"]{grid-column:1}.pipeline-cell[data-label="Kategori Pipeline"]{grid-column:1}.pipeline-action{grid-column:2;grid-row:1/4;align-self:center}.pipeline-profile-heading{align-items:flex-start;flex-direction:column}.pipeline-profile-heading .text-button{padding-left:0}}

.pipeline-row.pipeline-interested{background:#edfaef;border-color:#8bcc9c}.pipeline-interested .pipeline-category{background:#d6f0dd;color:#21653b}.pipeline-interested .pipeline-customer:after{content:'MINAT';display:table;margin-top:5px;padding:4px 8px;border-radius:999px;background:#25834b;color:white;font-size:11px;font-weight:700}.pipeline-legend{margin-top:20px;padding:14px 18px;background:#f3f8fb;border-radius:12px}.pipeline-legend summary{cursor:pointer;font-weight:700;color:#164d70}.pipeline-legend p{margin:10px 0;color:#36596d}.pipeline-breakdown{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:10px}.pipeline-breakdown>div{padding:14px;border:1px solid #d6e4ec;border-radius:12px;background:#f8fbfd;display:flex;justify-content:space-between;gap:8px}.pipeline-breakdown strong{color:#003d79}.pipeline-breakdown span{color:#526d7d}

[hidden]{display:none!important}

.branch-select-label{display:block;margin-top:12px!important}
.pipeline-asof{display:block;color:#698394;font-size:12px;margin:-4px 0 8px}.category-group .pipeline-legend{margin:14px 0 0;padding:10px 12px}.category-group .pipeline-legend p{font-size:12px}.branch-combobox{position:relative}.branch-options{position:absolute;z-index:20;top:100%;left:0;right:0;max-height:260px;overflow:auto;background:white;border:1px solid #bcd5e2;border-radius:0 0 12px 12px;box-shadow:0 12px 25px #003d7922}.branch-option{display:block;width:100%;padding:11px 14px;text-align:left;background:white;border:0;color:#16445e;cursor:pointer}.branch-option:hover,.branch-option:focus{background:#e9f7fa}.ranking-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:15px;margin:0 0 24px}.ranking-card{background:#fff;border:1px solid #d6e4ec;border-top:3px solid #ffb700;border-radius:14px;padding:18px}.ranking-card h3{margin:0 0 12px;color:#003d79;font-size:17px}.ranking-card p{display:flex;justify-content:space-between;gap:10px;margin:8px 0;font-size:13px}.ranking-card span{color:#607b8c;text-align:right}
.category-group .category-options{display:grid;grid-template-columns:1fr;gap:9px}.category-group .category-options label{display:flex;align-items:flex-start;gap:10px;line-height:1.45;white-space:normal}.category-group .category-options input{flex:none;margin-top:3px}.category-group .category-options strong{color:#073e68}
/* Compact pipeline filters */
.pipeline-checkbox-filters{grid-template-columns:minmax(0,3.4fr) minmax(170px,1.15fr) minmax(250px,2fr);grid-template-areas:"category followup balance" "category account balance";gap:10px 12px;align-items:stretch}
.pipeline-checkbox-filters .category-group{grid-area:category}.pipeline-checkbox-filters .followup-group{grid-area:followup}.pipeline-checkbox-filters .account-group{grid-area:account}.pipeline-checkbox-filters .balance-group{grid-area:balance}
.pipeline-checkbox-filters .pipeline-check-group{padding:11px 13px 13px}
.category-group .category-options{grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(4,auto);grid-auto-flow:column;gap:3px 8px}
.category-group .category-options label{align-items:center;gap:7px;padding:7px 5px;font-size:11px;line-height:1.3}
.category-group .category-options input{margin-top:0}.pipeline-checkbox-filters .balance-group .pipeline-check-options{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:1150px){.pipeline-checkbox-filters{grid-template-columns:minmax(0,2fr) minmax(210px,1fr);grid-template-areas:"category balance" "category followup" "category account"}.category-group .category-options{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(6,auto)}}
@media(max-width:700px){.pipeline-checkbox-filters{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-areas:"category category" "followup account" "balance balance"}.category-group .category-options{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(6,auto)}}
@media(max-width:430px){.pipeline-checkbox-filters{grid-template-columns:1fr;grid-template-areas:"category" "followup" "account" "balance"}.category-group .category-options{grid-template-columns:1fr;grid-template-rows:none;grid-auto-flow:row}}
#summaryRankings:has(> :nth-child(3)){grid-template-columns:minmax(0,1.35fr) minmax(0,1.15fr) minmax(0,.9fr)}#summaryRankings .ranking-card{min-width:0}#summaryRankings .ranking-card p{align-items:flex-start}#summaryRankings .ranking-card strong{min-width:0;overflow-wrap:anywhere}#summaryRankings .ranking-card span{flex:none;max-width:48%;overflow-wrap:anywhere}.top-area-card .area-rank+ .area-rank{border-top:1px solid #dce8ee;padding-top:11px;margin-top:11px}.top-area-card .area-rank small{font-weight:750;color:#0b5677}.top-area-card .area-rank p{margin:5px 0 0}@media(max-width:1050px){#summaryRankings:has(> :nth-child(3)){grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:650px){#summaryRankings:has(> :nth-child(3)){grid-template-columns:1fr}}
/* Layout filter sesuai contoh */
@media(min-width:1151px){
  .pipeline-checkbox-filters{grid-template-columns:minmax(0,3.25fr) minmax(230px,1.15fr) minmax(310px,2fr);grid-template-rows:1fr 1fr;column-gap:14px;row-gap:14px}
  .pipeline-checkbox-filters .pipeline-check-group{padding:15px 16px 17px;background:#f9fcfe;border-color:#c8deeb}
  .category-group .category-options{grid-template-columns:minmax(0,1.35fr) minmax(0,1fr) minmax(0,.8fr);grid-template-rows:repeat(4,minmax(38px,auto));column-gap:9px;row-gap:4px}
  .category-group .category-options label{font-size:12px;font-weight:650;padding:7px 4px;white-space:normal}
  .pipeline-checkbox-filters .balance-group .pipeline-check-options{grid-template-columns:repeat(2,minmax(0,1fr));row-gap:12px}
  .pipeline-checkbox-filters .followup-group .pipeline-check-options,.pipeline-checkbox-filters .account-group .pipeline-check-options{grid-template-columns:1fr;row-gap:7px}
  .pipeline-checkbox-filters .pipeline-check-options label{font-size:12px;font-weight:650}
}

/* Keep the filter layout ahead of the four-column rule in brand.css. */
#pipelineControls{width:100%;min-width:0;grid-template-columns:minmax(0,3.1fr) minmax(180px,.9fr) minmax(220px,1.05fr);grid-template-areas:"category followup balance" "category account balance"}
#pipelineControls .category-options label{overflow-wrap:normal;word-break:normal}
@media(min-width:1151px){#pipelineControls{grid-template-rows:1fr 1fr}#pipelineControls .category-options{grid-template-columns:minmax(0,1.35fr) minmax(0,.95fr) minmax(0,1fr)}#pipelineControls .category-options label{white-space:nowrap}}
@media(max-width:1150px){#pipelineControls{grid-template-columns:minmax(0,2fr) minmax(210px,1fr);grid-template-areas:"category balance" "category followup" "category account"}}
@media(max-width:700px){#pipelineControls{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-areas:"category category" "followup account" "balance balance"}}
@media(max-width:430px){#pipelineControls{grid-template-columns:1fr;grid-template-areas:"category" "followup" "account" "balance"}}
#pipelineControls .balance-group .pipeline-check-options{grid-template-columns:1fr;row-gap:7px}

/* Sort directly from the pipeline column headings. */
.pipeline-list-scroll .pipeline-sort-button{min-width:0;width:100%;padding:5px 3px;border:0;border-radius:6px;background:transparent;color:#fff;font:inherit;font-weight:700;text-align:left;cursor:pointer}
.pipeline-list-scroll .pipeline-sort-button:hover,.pipeline-list-scroll .pipeline-sort-button:focus-visible{background:#ffffff26;outline:2px solid #8ce5e6;outline-offset:2px}
.pipeline-list-scroll .sort-arrow{display:inline-block;margin-left:5px;color:#74e8e7;font-size:1.05em}
.pipeline-list-scroll .pipeline-sort-button[aria-pressed="false"] .sort-arrow{color:#a6c5d5}
@media(min-width:701px){.pipeline-list-scroll .pipeline-list-heading,.pipeline-list-scroll .pipeline-row{grid-template-columns:minmax(110px,.8fr) minmax(220px,2fr) minmax(150px,1fr) 56px}}
@media(max-width:700px){.pipeline-list-scroll .pipeline-list-heading{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:8px 12px}.pipeline-list-scroll .pipeline-sort-button{font-size:11px;line-height:1.2}}
.pill.followup{background:#e8f0ff;color:#244e96}
