:root{
  --HPO-sidebar:clamp(260px,28vw,360px);
  --HPO-header-h:84px;
  --HPO-nav:#102c43;
  --HPO-nav-active:#1f5d78;
  --HPO-nav-text:#dfeef5;
  --HPO-nav-muted:#9fc0d0;
}
html,body{max-width:100%;overflow-x:hidden!important}
body.HPO-shell{min-width:0}
.HPO-shell > header{position:sticky;top:0;z-index:1000;min-height:var(--HPO-header-h)}
.HPO-shell main{
  width:auto!important;
  max-width:none!important;
  min-width:0!important;
  margin:0 0 0 var(--HPO-sidebar)!important;
  padding:22px 24px 48px!important;
  overflow-x:hidden!important;
}
#HPONav{
  position:fixed;
  top:var(--HPO-header-h);
  bottom:0;
  left:0;
  width:var(--HPO-sidebar);
  min-width:0;
  padding:14px 12px 24px;
  overflow-y:auto;
  overflow-x:hidden;
  background:var(--HPO-nav);
  border-right:1px solid rgba(255,255,255,.08);
  z-index:900;
}
#HPONav .nav-title{padding:8px 12px 10px;color:#fff;font-weight:800;font-size:.82rem;letter-spacing:.04em;text-transform:uppercase}
#HPONav .nav-scope{margin:0 8px 12px;padding:10px;border-radius:8px;background:rgba(255,255,255,.07);color:var(--HPO-nav-muted);font-size:.78rem;line-height:1.45;overflow-wrap:anywhere}
#HPONav button{
  display:flex;
  align-items:center;
  gap:9px;
  width:100%;
  min-width:0;
  border:0;
  text-align:left;
  padding:11px 12px;
  margin:3px 0;
  border-radius:8px;
  color:var(--HPO-nav-text);
  background:transparent;
  font:inherit;
  cursor:pointer;
  white-space:normal;
  overflow-wrap:anywhere;
  transition:background .16s ease,color .16s ease,transform .16s ease;
}
#HPONav button:hover{background:rgba(255,255,255,.09);color:#fff}
#HPONav button[aria-current=page]{background:var(--HPO-nav-active);color:#fff;font-weight:750;box-shadow:inset 3px 0 0 #7dd3fc}
#HPONav button .nav-lock{margin-left:auto;font-size:.72rem;opacity:.8}
#HPOContext{
  width:100%;
  min-width:0;
  padding:12px 16px;
  margin:0 0 18px;
  background:#eaf3f7;
  border-left:4px solid #197b91;
  font-weight:650;
  border-radius:8px;
  overflow-wrap:anywhere;
}
#HPOPage[hidden]{display:none!important}
.HPO-shell .card,.HPO-shell section,.HPO-shell form,.HPO-shell details,.HPO-shell .step-content{min-width:0;max-width:100%}
.client-search-row{display:grid;gap:6px;margin:0 0 14px;max-width:720px}
.client-search-row>label{font-size:.84rem;font-weight:700;color:#334155}
.client-search-control{display:flex;align-items:center;gap:8px;min-width:0}
.client-search-control input{flex:1 1 320px;min-width:0}
.client-search-control button{flex:0 0 auto}
.client-search-empty{margin-top:10px}
@media(max-width:520px){.client-search-control{align-items:stretch;flex-direction:column}.client-search-control button{align-self:flex-start}}
.HPO-shell .table-responsive,
.HPO-shell #nativeOutput,
.HPO-shell #nativeIndividuals,
.HPO-shell #masterGrid{
  max-width:100%!important;
  overflow-x:hidden!important;
  overflow-y:auto;
}
.HPO-shell table{width:100%!important;max-width:100%!important;table-layout:fixed;border-collapse:collapse}
.HPO-shell th,.HPO-shell td{white-space:normal!important;overflow-wrap:anywhere;word-break:break-word;vertical-align:top}
.HPO-shell input,.HPO-shell select,.HPO-shell textarea,.HPO-shell button{max-width:100%}
.HPO-shell .btn-group{max-width:100%;flex-wrap:wrap}
.HPO-shell .option-grid,.HPO-shell .native-grid{max-width:100%;grid-template-columns:repeat(auto-fit,minmax(min(230px,100%),1fr))!important}
.HPO-shell .stepper-container{max-width:100%;overflow:hidden}
.HPO-shell .stepper{min-width:0!important;max-width:100%;gap:6px}
.HPO-shell .step-item{min-width:0}
.HPO-shell .step-label{white-space:normal;overflow-wrap:anywhere}

/* Master-detail master editor: intentionally vertical; no spreadsheet-style horizontal scrolling. */
#browserMasterMenu{margin:0!important;padding:0!important;max-width:100%;min-width:0}
.master-shell{display:grid;grid-template-columns:minmax(190px,26%) minmax(0,74%);gap:16px;align-items:start;max-width:100%}
.master-local-nav{position:sticky;top:calc(var(--HPO-header-h) + 16px);background:#f7fafc;border:1px solid #dbe5eb;border-radius:10px;padding:10px;max-height:calc(100vh - var(--HPO-header-h) - 34px);overflow-y:auto;overflow-x:hidden}
.master-local-nav button{width:100%;border:0;background:transparent;text-align:left;padding:10px;border-radius:7px;margin:2px 0;cursor:pointer;color:#244454;white-space:normal}
.master-local-nav button.active{background:#dceef5;color:#0f4d64;font-weight:750}
.master-content{min-width:0;max-width:100%}
.master-toolbar{display:flex;gap:8px;flex-wrap:wrap;align-items:end;margin:10px 0 14px}
.master-toolbar>div{min-width:min(210px,100%);flex:1}
.master-toolbar .btn{flex:0 0 auto}
.master-help{font-size:.83rem;color:#526b78;background:#f8fbfc;border:1px solid #e1e9ed;border-radius:8px;padding:10px 12px;margin:8px 0 14px}
.master-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(230px,100%),1fr));gap:10px;margin:10px 0}
.master-list-card{border:1px solid #d9e4e9;background:#fff;border-radius:9px;padding:12px;min-width:0}
.master-list-card strong,.master-list-card small{display:block;overflow-wrap:anywhere}
.master-table{width:100%;table-layout:fixed}
.master-table th,.master-table td{padding:6px;border-bottom:1px solid #e5ecef}
.master-table input{width:100%!important;min-width:0!important;padding:6px 7px;border:1px solid #cbd8df;border-radius:5px}
.master-actions{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}
.master-badge{display:inline-block;padding:4px 8px;border-radius:999px;background:#e8f4f8;color:#13566e;font-size:.76rem;font-weight:700}
.master-readonly{background:#fff8e6;border:1px solid #f4d28a;padding:9px 11px;border-radius:8px;color:#76520a;margin:10px 0}
.master-message{min-height:20px;margin-top:8px;font-weight:650}
.permission-table td,.permission-table th{text-align:left;font-size:.82rem}
.permission-yes{font-weight:800;color:#137333}.permission-no{color:#9aa7ad}.permission-limited{font-weight:750;color:#8a5a00}
.review-checks{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(240px,100%),1fr));gap:10px;margin:14px 0}
.review-check{border:1px solid #dfe7eb;border-radius:8px;padding:10px;background:#fff}
.review-check strong{display:block;margin-bottom:4px}

@media(max-width:900px){
  :root{--HPO-sidebar:250px}
  .HPO-shell main{padding:16px!important}
  .master-shell{grid-template-columns:1fr}
  .master-local-nav{position:static;max-height:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}
}
@media(max-width:700px){
  :root{--HPO-header-h:136px}
  .HPO-shell > header{align-items:flex-start;flex-wrap:wrap;padding:10px 12px;gap:8px}
  .HPO-shell .header-controls{width:100%;justify-content:space-between;gap:8px;flex-wrap:wrap}
  #HPONav{position:static;width:100%;max-height:none;padding:8px 10px;display:grid;grid-template-columns:1fr 1fr;gap:4px}
  #HPONav .nav-title,#HPONav .nav-scope{grid-column:1/-1}
  #HPONav button{margin:0}
  .HPO-shell main{margin-left:0!important;padding:12px!important}
  .master-local-nav{grid-template-columns:1fr}
}
@media print{
  #HPONav,#HPOContext,.role-badge{display:none!important}
  .HPO-shell main{margin-left:0!important;padding:0!important}
  .HPO-shell > header{position:static}
}


/* Full package dashboard/review/detail components */
#HPOContext{display:flex;gap:8px 16px;align-items:center;flex-wrap:wrap}
#HPOContext span{font-size:.82rem;font-weight:600;color:#506a78;padding-left:12px;border-left:1px solid #bfd2dc}
.HPO-dynamic-page{min-height:280px}
.page-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;margin-bottom:16px}
.page-head h2{margin:0;color:#173f54}.page-head p{margin:.35rem 0 0;color:#607783}
.dashboard-grid,.review-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(210px,100%),1fr));gap:12px;margin:12px 0 18px}
.summary-card,.review-card,.detail-card{min-width:0;border:1px solid #dce7ec;border-radius:10px;background:#fff;padding:14px}
.summary-card span,.review-card span{display:block;color:#687f8b;font-size:.78rem;text-transform:uppercase;letter-spacing:.03em}
.summary-card strong,.review-card strong{display:block;margin:6px 0;font-size:1.15rem;color:#173f54;overflow-wrap:anywhere}
.summary-card small,.review-card small{display:block;color:#69808c;overflow-wrap:anywhere}
.action-row{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0}
.key-values{display:grid;grid-template-columns:minmax(130px,28%) minmax(0,72%);gap:8px 14px;margin:0}
.key-values dt{font-weight:750;color:#425e6d}.key-values dd{margin:0;overflow-wrap:anywhere}
.status-chip{display:inline-block;padding:4px 9px;border-radius:999px;font-size:.72rem;font-weight:800;letter-spacing:.03em}
.status-final{background:#e5f5ea;color:#176532}.status-draft{background:#fff2d7;color:#825b08}
.security-note{padding:11px 13px;border-radius:8px;background:#fff8e8;border:1px solid #f2d99a;color:#72520b;font-size:.84rem}
.help-flow{padding-left:22px}.help-flow li{margin:8px 0}
@media(max-width:700px){#HPOContext span{border-left:0;padding-left:0;width:100%}.key-values{grid-template-columns:1fr}.key-values dd{margin-bottom:8px}}

/* ================= HPO v4 shell ================= */
:root{--HPO-sidebar-expanded:292px;--HPO-sidebar-collapsed:76px;--HPO-sidebar:var(--HPO-sidebar-expanded)}
body.sidebar-collapsed{--HPO-sidebar:var(--HPO-sidebar-collapsed)}
#HPONav{display:flex!important;flex-direction:column;padding:10px 8px 10px;transition:width .18s ease;overflow:hidden!important}
.sidebar-top{flex:0 0 auto;padding:2px 0 8px;border-bottom:1px solid rgba(255,255,255,.08)}
.sidebar-toggle{display:flex!important;align-items:center!important;gap:10px!important;font-weight:800!important;margin:0!important}
.sidebar-scroll{flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;padding:8px 0;scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.25) transparent}
.sidebar-scroll::-webkit-scrollbar{width:6px}.sidebar-scroll::-webkit-scrollbar-thumb{background:rgba(255,255,255,.22);border-radius:10px}
.sidebar-foot{flex:0 0 auto;border-top:1px solid rgba(255,255,255,.09);padding-top:8px}
.sidebar-foot button{align-items:flex-start!important}.sidebar-foot small{display:block;color:var(--HPO-nav-muted);font-size:.72rem;margin-top:2px}.sidebar-foot strong{display:block;max-width:190px;overflow:hidden;text-overflow:ellipsis}
.nav-icon{flex:0 0 28px;width:28px;text-align:center;font-size:1.05rem}.nav-label{min-width:0;overflow:hidden;text-overflow:ellipsis}.nav-badge{margin-left:auto;min-width:20px;height:20px;border-radius:999px;background:#ef4444;color:#fff;display:inline-flex;align-items:center;justify-content:center;font-size:.7rem;font-weight:800;padding:0 5px}
body.sidebar-collapsed #HPONav .nav-label,body.sidebar-collapsed #HPONav .nav-badge{display:none!important}
body.sidebar-collapsed #HPONav button{justify-content:center!important;padding-left:8px!important;padding-right:8px!important}body.sidebar-collapsed #HPONav .nav-icon{flex-basis:auto}
.HPO-shell main{transition:margin-left .18s ease}
.status-waiting{background:#e9efff;color:#3446a7}.btn-danger{background:#b42318!important;color:#fff!important;border-color:#b42318!important}.btn-danger:hover{background:#912018!important}
.empty-state{padding:44px 24px;border:1px dashed #bfd0d9;border-radius:12px;text-align:center;background:#fbfdfe;color:#5a7280}.empty-state strong{display:block;font-size:1.08rem;color:#284c5d;margin-bottom:6px}.empty-state p{margin:0}
.section-title-row{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:12px}.section-title-row h3{margin:0}.section-title-row p{margin:.25rem 0 0;color:#6b7f89}
.detail-card{margin:14px 0}.detail-card h3,.detail-card h4{color:#244b5d;margin:0 0 10px}.detail-card h4{margin-top:18px}
.history-list,.review-queue{display:grid;gap:10px}.history-card,.review-queue-card{display:flex;align-items:center;justify-content:space-between;gap:16px;border:1px solid #dce7ec;border-radius:10px;background:#fff;padding:14px}.history-card>div:first-child,.review-queue-card>div:first-child{display:grid;gap:4px;min-width:0}.history-card strong,.review-queue-card strong{color:#173f54}.history-card small,.review-queue-card small{color:#6c818c}.history-date{font-size:.78rem;color:#56717e;font-weight:750}.history-actions,.review-queue-card>div:last-child{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}.history-detail{margin-top:16px}
#nativeFiles .service-payment-hint{flex-basis:100%;margin:.25rem 0 0;color:#536b78}
.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.form-grid label,.review-note{display:grid;gap:5px;font-size:.82rem;font-weight:700;color:#496573}.form-grid .span-2{grid-column:1/-1}.inline-actions{display:flex;gap:5px;flex-wrap:wrap}.client-form input,.client-form textarea{font-weight:500}
.workflow-steps{padding-left:22px}.workflow-steps li{margin:8px 0}.upload-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:14px}.upload-card{display:grid;gap:6px;padding:14px;border:1px dashed #aac2ce;border-radius:10px;background:#f9fcfd;cursor:pointer}.upload-card strong{color:#285369}.upload-card span{font-size:.82rem;color:#647a85}.upload-card input{max-width:100%}.waiting-box,.approved-box,.notification-bar,.analysis-box{padding:12px 14px;border-radius:9px;margin:12px 0}.waiting-box{background:#eef2ff;border:1px solid #c7d2fe;color:#3741a0}.approved-box{background:#ecfdf3;border:1px solid #b7ebc8;color:#166534}.notification-bar{background:#fff7df;border:1px solid #f4d58b;color:#725211;font-weight:750}.analysis-box{background:#f5f9fb;border:1px solid #d7e5eb;color:#45606d}.analysis-box p{margin:.4rem 0 0}.threshold-chip{display:inline-block;padding:6px 9px;border-radius:999px;font-size:.76rem;font-weight:800}.threshold-chip.ok{background:#e8f7ed;color:#176635}.threshold-chip.bad{background:#fdecec;color:#a42323}.validation-error{color:#b42318;font-weight:700;font-size:.82rem}
#movementDrill{margin-top:14px;padding-top:4px;border-top:1px solid #e5ecef}
.HPO-shell .table-responsive{overflow-x:hidden!important}.HPO-shell table{table-layout:fixed!important}.HPO-shell td .btn{white-space:normal}
.auth-card #forgotForm{display:none}.auth-link-row{text-align:right;margin:-.35rem 0 .9rem}.auth-link-row a{font-size:.8rem;color:var(--primary);font-weight:700;text-decoration:none}
@media(max-width:900px){:root{--HPO-sidebar-expanded:260px}.form-grid{grid-template-columns:1fr}.form-grid .span-2{grid-column:auto}}
@media(max-width:700px){
 :root{--HPO-header-h:126px;--HPO-sidebar-expanded:260px;--HPO-sidebar-collapsed:62px;--HPO-sidebar:var(--HPO-sidebar-collapsed)}
 #HPONav{position:fixed!important;top:var(--HPO-header-h)!important;bottom:0!important;left:0!important;width:var(--HPO-sidebar)!important;max-height:none!important;display:flex!important;grid-template-columns:none!important;padding:8px 6px!important}
 .HPO-shell main{margin-left:var(--HPO-sidebar)!important;padding:12px!important}.sidebar-scroll{display:block!important}.sidebar-top,.sidebar-foot{display:block!important}.upload-grid{grid-template-columns:1fr}.history-card,.review-queue-card{align-items:flex-start;flex-direction:column}.history-actions,.review-queue-card>div:last-child{justify-content:flex-start}.page-head{flex-direction:column}
}

/* ================= HPO v5 refinements ================= */
.HPO-shell > header{
  position:fixed!important;
  top:0;left:0;right:0;
  z-index:1200!important;
  min-height:var(--HPO-header-h);
  width:100%;
}
.HPO-shell main{margin-top:var(--HPO-header-h)!important;}
.header-user-menu{position:relative;min-width:0}
.header-user-button{display:flex;align-items:center;gap:10px;border:0;background:transparent;padding:6px 8px;border-radius:10px;cursor:pointer;text-align:left;color:inherit}
.header-user-button:hover,.header-user-button[aria-expanded="true"]{background:#f2f6fa}
.header-user-button .user-info{min-width:0}.header-user-chevron{font-size:.75rem;color:#6b7d89;transition:transform .15s ease}.header-user-button[aria-expanded="true"] .header-user-chevron{transform:rotate(180deg)}
.header-profile-menu{position:absolute;right:0;top:calc(100% + 8px);width:220px;padding:7px;background:#fff;border:1px solid #dbe5eb;border-radius:10px;box-shadow:0 14px 34px rgba(15,23,42,.16);z-index:1300}
.header-profile-menu[hidden]{display:none!important}.header-profile-menu button{display:flex;align-items:center;gap:10px;width:100%;border:0;background:transparent;padding:10px 11px;border-radius:7px;cursor:pointer;text-align:left;color:#294a5a;font:inherit}.header-profile-menu button:hover{background:#edf4f7}.header-profile-menu .header-logout{color:#b42318}.header-menu-separator{height:1px;background:#e5ecef;margin:5px 3px}
.password-wrap{position:relative;display:flex;align-items:center}.password-wrap .form-control{padding-right:42px!important;width:100%}.password-eye{position:absolute;right:7px;border:0;background:transparent;color:#5c7180;cursor:pointer;padding:6px;border-radius:6px}.password-eye:hover{background:#edf3f6;color:#244b5d}
.client-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 12px}.client-list-scroll{max-height:58vh;overflow-y:auto;overflow-x:hidden;border:1px solid #e3ebef;border-radius:8px}.client-list-scroll .table-responsive{margin:0!important}.client-list-scroll table{margin:0!important}.client-list-scroll thead{position:sticky;top:0;z-index:2;background:#f5f8fa}
.client-modal .modal-content{max-width:820px}.client-modal-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px}.modal-close{border:0;background:transparent;font-size:1.2rem;cursor:pointer;color:#647784}
.field-hint{display:block;color:#6c7f89;font-size:.72rem;font-weight:500;margin-top:3px}.locked-field{background:#f1f5f7!important;color:#5f7079!important;cursor:not-allowed}.conditional-hidden{display:none!important}.required-note{color:#b42318;font-weight:750}.settings-lock-note{padding:9px 11px;background:#f3f7fa;border:1px solid #dbe7ed;border-radius:8px;color:#526c78;margin:8px 0}.result-table1{margin:14px 0;border:1px solid #dce7ec;border-radius:10px;padding:12px;background:#fff}.result-table1 h3{margin-top:0}
@media(max-width:700px){.HPO-shell main{margin-top:var(--HPO-header-h)!important}.header-user-button .user-info{display:none}.header-profile-menu{right:0;width:210px}}
@media print{.HPO-shell main{margin-top:0!important}}

/* v6 - individual calculation drill-down */
.HPO-shell .individual-result-table tbody tr{cursor:pointer}
.HPO-shell .individual-result-table tbody tr:hover{background:#f5f8fc}
.HPO-shell .native-individual-detail{margin-top:14px}
.HPO-shell .individual-empty{padding:14px 16px;border:1px dashed #cbd5e1;border-radius:12px;background:#f8fafc;color:#64748b}
.HPO-shell .individual-detail-card{padding:16px;border:1px solid #dbe4ef;border-radius:14px;background:#fff}
.HPO-shell .individual-detail-card h4,.HPO-shell .individual-detail-card h5{margin:0 0 8px}
.HPO-shell .individual-detail-card p{margin:2px 0;color:#64748b}
.HPO-shell .individual-kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(145px,1fr));gap:10px;margin:14px 0}
.HPO-shell .individual-kpi-grid>div{padding:12px;border:1px solid #e2e8f0;border-radius:10px;background:#f8fafc}
.HPO-shell .individual-kpi-grid span{display:block;font-size:.72rem;text-transform:uppercase;color:#64748b;font-weight:700}
.HPO-shell .individual-kpi-grid strong{display:block;margin-top:4px;font-size:.95rem;color:#173d50}
.HPO-shell .individual-all-values{max-height:420px;overflow:auto;margin-top:10px}
@media(max-width:900px){.HPO-shell .individual-kpi-grid{grid-template-columns:repeat(2,minmax(130px,1fr))}}

/* ================= HPO v7 ================= */
.action-row.compact{margin:0;gap:5px}
.color-input-row{display:grid;grid-template-columns:54px minmax(0,1fr);gap:8px;align-items:center}.color-input-row input[type="color"]{width:54px;height:38px;padding:2px;border:1px solid #cfdce3;border-radius:8px;background:#fff}
.kka-logo-preview{min-height:74px;display:flex;align-items:center;justify-content:center;border:1px dashed #c9d7de;border-radius:10px;background:#f8fbfc;margin:8px 0 12px;color:#71838d}.kka-logo-preview img{max-width:220px;max-height:72px;object-fit:contain}
.individual-series-note{margin-bottom:10px!important}.individual-detail-card h5{margin-top:18px!important}
#nativeGivenAssumptionRow td{padding:10px!important;background:#fbfdff}#nativeGivenAssumptionRow details{margin:0!important}

/* ================= HPO v8 commercial workflow ================= */
.eng-progress{display:grid;grid-template-columns:repeat(11,minmax(76px,1fr));gap:6px;margin:14px 0 18px;overflow-x:auto;padding-bottom:4px}.eng-step{min-width:76px;text-align:center;color:#8698a3}.eng-step span{display:flex;align-items:center;justify-content:center;width:28px;height:28px;margin:0 auto 6px;border-radius:50%;background:#e9eef2;color:#667985;font-weight:800;font-size:.78rem}.eng-step small{display:block;font-size:.68rem;line-height:1.15}.eng-step.done span{background:#dff4e7;color:#176635}.eng-step.done{color:#2d6a44}.eng-step.active span{background:var(--primary);color:#fff;box-shadow:0 0 0 4px rgba(59,130,246,.13)}.eng-step.active{color:var(--primary);font-weight:800}.eng-step.locked{opacity:.65}
.order-card{border:1px solid #dce7ec;border-radius:12px;padding:14px;background:#fff;margin:10px 0}.order-card.active-order{border-color:#93c5fd;box-shadow:0 0 0 2px rgba(59,130,246,.08)}.order-meta{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:10px 0}.order-meta>div{padding:9px 10px;border-radius:8px;background:#f8fafc;border:1px solid #e7eef2}.order-meta span{display:block;font-size:.68rem;color:#6c818c;text-transform:uppercase;font-weight:800}.order-meta strong{display:block;margin-top:3px;color:#203f50;font-size:.83rem;word-break:break-word}.workflow-status{display:inline-flex;align-items:center;padding:5px 9px;border-radius:999px;background:#edf3ff;color:#27499a;font-size:.72rem;font-weight:800}.workflow-status.final{background:#e6f6eb;color:#176635}.workflow-status.warn{background:#fff4dc;color:#865c08}.migration-balance{padding:12px;border-radius:9px;margin:12px 0}.migration-balance.ok{background:#ecfdf3;border:1px solid #b7ebc8;color:#166534}.migration-balance.bad{background:#fff7ed;border:1px solid #fed7aa;color:#9a3412}.row-diff{background:#fff1f2!important;color:#9f1239!important;font-weight:700}.document-repo{max-height:360px;overflow:auto}.doc-chip{display:inline-block;padding:3px 7px;border-radius:999px;background:#f1f5f9;color:#475569;font-size:.68rem;font-weight:700}.role-check-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.role-check{display:flex;align-items:center;gap:8px;padding:10px;border:1px solid #dbe5eb;border-radius:9px;background:#fbfdfe}.role-check input{width:18px;height:18px}.role-list{display:flex;gap:5px;flex-wrap:wrap}.role-pill{display:inline-block;padding:3px 7px;border-radius:999px;background:#edf3ff;color:#27499a;font-size:.7rem;font-weight:800}.payment-gate{padding:13px;border-radius:10px;border:1px solid #dbe5eb;background:#f8fafc;margin:12px 0}.payment-gate strong{color:#173f54}.payment-gate.pending{background:#fff8e8;border-color:#f2d99a}.payment-gate.verified{background:#ecfdf3;border-color:#b7ebc8}.final-lock-list{display:grid;gap:5px;margin:8px 0}.final-lock-list span{font-size:.8rem}.final-lock-list .ok{color:#166534}.final-lock-list .bad{color:#b42318}.quote-upload{display:grid;gap:8px;padding:12px;border:1px dashed #9db8c6;border-radius:10px;background:#f9fcfd}
@media(max-width:1000px){.order-meta{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:700px){.order-meta,.role-check-grid{grid-template-columns:1fr}.eng-progress{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* ================= HPO v8.1 compact UX + pricing ================= */
.HPO-shell{
  --HPO-compact-gap:8px;
}
.HPO-shell main{padding:14px 16px!important;overflow-x:hidden!important}
.HPO-shell .card{padding:12px!important;margin-bottom:10px!important}
.HPO-shell .card-header{padding-bottom:8px!important;margin-bottom:8px!important;gap:10px!important}
.HPO-shell .page-head{margin-bottom:10px!important;gap:10px!important}
.HPO-shell .page-head h2,.HPO-shell .card-title{line-height:1.2}
.HPO-shell .detail-card,.HPO-shell .summary-card,.HPO-shell .review-card,.HPO-shell .order-card{padding:11px!important;border-radius:9px!important}
.HPO-shell .dashboard-grid,.HPO-shell .review-grid{gap:8px!important;margin:8px 0 12px!important}
.HPO-shell .form-group{margin-bottom:8px!important}
.HPO-shell .form-label{margin-bottom:3px!important;font-size:.78rem!important}
.HPO-shell .form-control{min-height:34px!important;padding:6px 9px!important;font-size:.86rem!important}
.HPO-shell textarea.form-control{min-height:72px!important}
.HPO-shell .btn{min-height:34px;padding:6px 11px!important;font-size:.82rem!important;border-radius:7px!important}
.HPO-shell .btn-sm{min-height:29px!important;padding:4px 8px!important;font-size:.75rem!important}
.HPO-shell .action-row,.HPO-shell .master-actions,.HPO-shell .btn-group{margin:9px 0!important;gap:6px!important}
.HPO-shell .native-grid,.HPO-shell .compact-form-grid,.HPO-shell .form-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px 12px!important;margin:8px 0!important}
.HPO-shell .native-grid>*,.HPO-shell .compact-form-grid>*,.HPO-shell .form-grid>*{min-width:0!important}
.HPO-shell .table-responsive{max-height:62vh;overflow-y:auto!important;overflow-x:hidden!important;border-radius:7px}
.HPO-shell .table{margin:0!important;font-size:.82rem!important}
.HPO-shell .table th,.HPO-shell .table td{padding:5px 7px!important;line-height:1.28!important}
.HPO-shell .table thead th{position:sticky;top:0;z-index:3;background:#f5f8fa}
.HPO-shell .table td.num,.HPO-shell .table th.num,.HPO-shell input.num{text-align:right!important;font-variant-numeric:tabular-nums}
.HPO-shell .status-badge{display:inline-flex;align-items:center;padding:2px 6px;border-radius:999px;background:#eef3f6;color:#4f6571;font-size:.68rem;font-weight:800}
.HPO-shell .stage-actions .btn-primary,.HPO-shell .btn-primary{background:#2563eb!important;border-color:#2563eb!important;color:#fff!important}
.HPO-shell .stage-actions .btn-secondary,.HPO-shell .btn-secondary{background:#eef1f4!important;border-color:#d7dee4!important;color:#38505e!important}
.HPO-shell button:disabled,.HPO-shell .btn:disabled,.HPO-shell button[aria-disabled="true"]{background:#e7ebee!important;border-color:#d9e0e4!important;color:#8b989f!important;cursor:not-allowed!important;box-shadow:none!important;opacity:.8!important;pointer-events:auto}
.HPO-shell button:disabled:hover,.HPO-shell .btn:disabled:hover{transform:none!important;filter:none!important}
.HPO-shell .order-meta{gap:7px!important;margin:8px 0!important;grid-template-columns:repeat(4,minmax(0,1fr))}
.HPO-shell .order-meta>div{padding:7px 8px!important}
.HPO-shell .eng-progress{grid-template-columns:repeat(auto-fit,minmax(76px,1fr))!important;overflow-x:hidden!important;gap:5px!important;margin:10px 0 13px!important}
.HPO-shell .eng-step{min-width:0!important}.HPO-shell .eng-step small{font-size:.65rem!important}
#HPONav{padding:8px 7px 8px!important}
#HPONav button{padding:8px 10px!important;margin:2px 0!important}
.sidebar-scroll{padding:5px 0!important}
.master-shell{gap:10px!important}.master-local-nav{padding:7px!important}.master-local-nav button{padding:8px!important}
.master-help{padding:8px 10px!important;margin:6px 0 10px!important}.master-toolbar{margin:7px 0 10px!important;gap:6px!important}
.price-master-form{padding:9px;border:1px solid #e0e8ed;border-radius:8px;background:#fafcfd}
.price-range{display:grid;grid-template-columns:minmax(0,1fr) 16px minmax(0,1fr);align-items:center;gap:3px}.price-range span{text-align:center;color:#71828c}
.master-price-table td,.master-price-table th{font-size:.76rem!important}.master-price-table .form-control{font-size:.76rem!important;padding:4px 5px!important;min-height:30px!important}.action-cell{white-space:normal!important}
.technical-workspace{order:9999;margin-top:18px!important;opacity:.82;border-style:dashed!important;background:#f8fafc!important}.technical-workspace .card-header{margin-bottom:4px!important}.technical-workspace .card-title{font-size:.9rem!important}.technical-workspace .card-subtitle{font-size:.72rem!important}.technical-workspace #nativeStatus{font-size:.74rem!important}.technical-workspace .btn{font-size:.72rem!important;min-height:29px!important}
@media(max-width:900px){.HPO-shell .native-grid,.HPO-shell .compact-form-grid,.HPO-shell .form-grid{grid-template-columns:1fr!important}.HPO-shell .order-meta{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:700px){.HPO-shell main{padding:10px!important}.HPO-shell .order-meta{grid-template-columns:1fr!important}.HPO-shell .eng-progress{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(min-width:701px){:root{--HPO-header-h:72px}.HPO-shell > header{padding-top:8px!important;padding-bottom:8px!important}.HPO-shell .app-logo{max-height:46px!important}}

/* HPO v8.2 — participant range quotation & revision workflow */
.offer-summary-card,.revision-offer-card{margin:10px 0;padding:12px;border:1px solid #dbe7ee;border-radius:10px;background:#fbfdff}
.offer-summary-card h4,.revision-offer-card h3{margin:0 0 8px;color:#173f54}
.offer-confirm{display:flex;align-items:flex-start;gap:8px;margin:10px 0;padding:9px 10px;border:1px solid #e2e8f0;border-radius:8px;background:#f8fafc;font-size:.8rem;color:#425b67}
.offer-confirm input{margin-top:2px}
.participant-badge{display:inline-flex;align-items:center;padding:3px 7px;border-radius:999px;font-size:.69rem;font-weight:800;white-space:nowrap}
.participant-badge.ok{background:#e8f7ed;color:#176635}.participant-badge.bad{background:#fdecec;color:#a42323}.participant-badge.pending{background:#fff4dc;color:#865c08}
.validation-success{margin:10px 0;padding:10px 12px;border:1px solid #b7ebc8;border-radius:8px;background:#ecfdf3;color:#166534;font-size:.8rem;font-weight:700}
.waiting-box.danger{background:#fff1f2;border-color:#fecdd3;color:#9f1239}
.quotation-history{margin-top:12px;padding-top:10px;border-top:1px solid #e2e8f0}.quotation-history h4{margin:0 0 7px}
.order-meta.compact>div{padding:6px 8px!important}
@media(max-width:1000px){.eng-progress{grid-template-columns:repeat(auto-fit,minmax(76px,1fr))}}

/* v8.3 Role & CRUD Permission Matrix */
.permission-layout{display:grid;grid-template-columns:minmax(190px,24%) minmax(0,1fr);gap:14px;align-items:start}
.role-list{display:flex;flex-direction:column;gap:6px;max-height:640px;overflow:auto;position:sticky;top:82px}
.role-list-item{border:1px solid var(--border,#dbe3ef);background:#fff;border-radius:8px;padding:9px 10px;text-align:left;cursor:pointer;display:flex;flex-direction:column;gap:2px}
.role-list-item strong{font-size:13px}.role-list-item small{font-size:10px;color:#6b7280}.role-list-item.active{border-color:#2563eb;background:#eff6ff}
.permission-editor{min-width:0}.permission-table-wrap{max-height:640px;overflow:auto}.permission-table{font-size:12px}.permission-table thead th{position:sticky;top:0;z-index:3;background:#f8fafc}.permission-table th:not(:first-child),.permission-table td:not(:first-child){text-align:center;width:72px}.permission-table td:first-child small{display:block;color:#94a3b8;font-size:10px;font-weight:400}.permission-group-row td{background:#eef2f7;font-weight:700;color:#334155;position:sticky;top:35px;z-index:2}.permission-table input[type="checkbox"]{width:16px;height:16px;accent-color:#2563eb}
@media(max-width:800px){.permission-layout{grid-template-columns:1fr}.role-list{position:static;max-height:180px}.permission-table-wrap{max-height:none}}

/* v8.3 permission-aware controls */
.permission-disabled{opacity:.55!important;cursor:not-allowed!important;pointer-events:none!important;filter:grayscale(.15)}

/* v8.4: satu workflow progress utama */
.HPO-shell .stepper-container{display:none!important}

/* HPO v8.6 — employee staging/detail validation */
.employee-quality-summary{margin:0 0 12px;padding:12px;border:1px solid #dbe3ec;border-radius:10px;background:#fff}.employee-quality-summary h4{margin:0 0 9px;font-size:.92rem;color:#173d50}.compact-quality{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.compact-quality .summary-card{padding:10px;min-height:auto}.compact-quality .summary-value{font-size:1.05rem}.quality-valid{color:#15803d!important}.quality-error{color:#b91c1c!important}.employee-field-error{position:relative;background:#fff1f2!important;box-shadow:inset 0 0 0 1px #fecaca}.employee-field-warning{position:relative;background:#fffbeb!important;box-shadow:inset 0 0 0 1px #fde68a}.field-error-dot,.field-warning-dot{display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;margin-left:6px;border-radius:50%;font-size:10px;font-weight:800}.field-error-dot{background:#dc2626;color:#fff}.field-warning-dot{background:#f59e0b;color:#fff}.employee-error-details summary{cursor:pointer;list-style:none}.employee-error-details summary::-webkit-details-marker{display:none}.employee-error-details ul{margin:7px 0 0;padding-left:18px;font-size:.75rem;line-height:1.45;color:#7f1d1d}.employee-error-details li+li{margin-top:4px}.invalid-row>td:first-child{border-left:3px solid #dc2626}.warning-row>td:first-child{border-left:3px solid #f59e0b}.valid-row>td:first-child{border-left:3px solid #16a34a}@media(max-width:900px){.compact-quality{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* HPO v8.8 Partner Template Designer */
.template-designer-modal{z-index:1200;padding:1.5vh 1.5vw;align-items:stretch;justify-content:stretch;background:rgba(15,23,42,.64)}
.template-designer-shell{background:#f8fafc;border-radius:14px;width:97vw;height:96vh;display:flex;flex-direction:column;overflow:hidden;box-shadow:0 25px 80px rgba(15,23,42,.35)}
.template-designer-head{display:flex;justify-content:space-between;gap:1rem;align-items:center;padding:.8rem 1rem;background:white;border-bottom:1px solid var(--border)}
.template-designer-head>div:first-child{display:grid;gap:.15rem}.template-designer-head span,.template-designer-head small{font-size:.78rem;color:var(--text-muted)}
.tpl-main{display:grid;grid-template-columns:260px minmax(0,1fr);min-height:0;flex:1}.tpl-sidebar{background:white;border-right:1px solid var(--border);padding:.8rem;overflow:auto}.tpl-sidebar h4{font-size:.82rem;margin:.8rem 0 .35rem;color:#334155}.tpl-sidebar label{display:grid;gap:.25rem;font-size:.75rem;margin-bottom:.55rem}.tpl-sidebar .full{width:100%;margin-top:.35rem}.tpl-sidebar .compact{display:grid;grid-template-columns:1fr 1fr;gap:.3rem}.tpl-logo-preview{min-height:64px;border:1px dashed #cbd5e1;border-radius:8px;display:grid;place-items:center;padding:.35rem;font-size:.72rem;color:#64748b}.tpl-logo-preview img{max-width:100%;max-height:80px}.tpl-compat{font-size:.72rem;color:#92400e;background:#fffbeb;padding:.5rem;border-radius:8px}
.tpl-work{display:flex;flex-direction:column;min-width:0;min-height:0}.tpl-toolbar{display:flex;align-items:center;gap:.35rem;flex-wrap:wrap;padding:.45rem .55rem;background:#eef2f7;border-bottom:1px solid #cbd5e1}.tpl-toolbar .tpl-formula{min-width:240px;flex:1}.tpl-toolbar .mini{width:105px}.tpl-toolbar .tiny{width:62px}.tpl-tool{border:1px solid #cbd5e1;background:white;border-radius:6px;min-width:32px;height:32px;cursor:pointer}.tpl-tool.active{background:#dbeafe;border-color:#2563eb}.tpl-grid-wrap{flex:1;overflow:auto;background:#dbe2ea;padding:0}.tpl-grid{border-collapse:separate;border-spacing:0;background:white;table-layout:fixed;min-width:max-content}.tpl-grid th,.tpl-grid td{border-right:1px solid #d1d5db;border-bottom:1px solid #d1d5db;padding:0;overflow:hidden;white-space:nowrap;max-width:220px}.tpl-grid th{position:sticky;background:#f1f5f9;z-index:3;font:600 11px system-ui;text-align:center;height:24px;min-width:34px}.tpl-grid thead th{top:0}.tpl-grid tbody th{left:0;position:sticky}.tpl-grid td>div{padding:3px 5px;overflow:hidden;text-overflow:ellipsis}.tpl-grid td.selected{outline:2px solid #2563eb;outline-offset:-2px;z-index:2;position:relative}.tpl-variable-cell{background:#dbeafe!important;color:#1d4ed8!important}.tpl-section-cell{background:#fef3c7!important;color:#92400e!important;font-weight:700}.tpl-sheet-tabs{display:flex;gap:.2rem;background:#e2e8f0;padding:.35rem .55rem;overflow:auto}.tpl-sheet-tab{border:1px solid #cbd5e1;background:#f8fafc;border-radius:5px 5px 0 0;padding:.3rem .65rem;font-size:.75rem;white-space:nowrap;cursor:pointer}.tpl-sheet-tab.active{background:white;color:#1d4ed8;border-bottom-color:white;font-weight:700}.partner-config-actions{display:flex;gap:.4rem;flex-wrap:wrap;margin-top:.6rem}.partner-logo-preview{width:80px;height:54px;object-fit:contain;border:1px solid #e2e8f0;border-radius:6px;background:white}
.demo-account-box{margin-top:.7rem;padding:.7rem;border:1px solid #bfdbfe;background:#eff6ff;border-radius:10px;font-size:.78rem}.demo-account-box strong{display:block;color:#1e3a8a;margin-bottom:.3rem}.demo-account-row{display:grid;grid-template-columns:110px 1fr 1fr;gap:.35rem;padding:.2rem 0;border-top:1px dashed #dbeafe}.demo-account-row:first-of-type{border-top:0}
.payment-document-meta{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:.4rem;font-size:.8rem;margin:.5rem 0}.payment-document-meta>div{background:#f8fafc;border:1px solid #e2e8f0;border-radius:7px;padding:.45rem}.payment-viewer-modal .modal-content{max-width:1000px;width:94vw;height:88vh;display:flex;flex-direction:column}.payment-viewer-frame{border:0;width:100%;flex:1;background:#f1f5f9}
@media(max-width:900px){.tpl-main{grid-template-columns:1fr}.tpl-sidebar{max-height:230px;border-right:0;border-bottom:1px solid var(--border)}.template-designer-head{align-items:flex-start;flex-direction:column}.demo-account-row{grid-template-columns:1fr}}
.tpl-2col{display:grid;grid-template-columns:1fr 1fr;gap:.35rem}.tpl-2col label{margin:0}.tpl-size-field{display:flex!important;align-items:center;gap:.25rem;margin:0!important;font-size:.68rem!important;white-space:nowrap}.tpl-size-field .tiny{width:64px}.tpl-grid td[rowspan],.tpl-grid td[colspan]{position:relative}.tpl-grid td[style*="white-space:normal"]>div{white-space:normal;overflow:visible;text-overflow:clip;line-height:1.25}.tpl-sidebar input[type="checkbox"]{accent-color:#2563eb}

/* v8.9: editor owns its layout; application header never overlays modal controls. */
#templateDesignerModal{z-index:3000;position:fixed;inset:0;overflow:hidden}
#templateDesignerModal .template-designer-head{position:static!important;inset:auto!important;width:auto!important;margin:0!important;min-height:0!important;flex-shrink:0;z-index:auto!important}
#templateDesignerModal .template-designer-shell{max-height:97dvh}
#templateDesignerModal .tpl-toolbar{max-height:30vh;overflow-y:auto;flex-shrink:0}
#templateDesignerModal .tpl-sheet-tabs{flex-shrink:0;flex-wrap:wrap}

/* v8.9.1 editor-only controls */
.tpl-cell-editor{display:block;width:100%;min-height:42px;height:100%;border:2px solid #2563eb;background:#fff;color:#111;font:inherit;resize:vertical;box-sizing:border-box}
.tpl-preview-modal{position:fixed;inset:2vh 2vw;z-index:4000;background:#fff;display:flex;flex-direction:column;box-shadow:0 0 0 100vmax #102030aa;border-radius:10px;overflow:hidden}
.tpl-preview-head{display:flex;align-items:center;flex-wrap:wrap;gap:12px;padding:12px;background:#eef2ff}
.tpl-preview-modal iframe{flex:1;min-height:0;width:100%;border:0}

/* HPO v8.9.2 — Master Laporan output worksheet + Excel-like number/formula editing */
.tpl-output-note{margin:.55rem 0 .7rem;padding:.55rem .65rem;border:1px solid #bfdbfe;border-radius:8px;background:#eff6ff;color:#1e3a8a;font-size:.72rem;line-height:1.4}
.tpl-output-note code{font-size:.68rem;background:#dbeafe;padding:.08rem .22rem;border-radius:4px;word-break:break-all}
.tpl-toolbar .tpl-number-format{min-width:118px;max-width:145px}
.tpl-grid td[title^="="]{position:relative}
.tpl-grid td[title^="="]::after{content:"ƒx";position:absolute;right:2px;top:1px;font:600 8px/1 system-ui;color:#2563eb;opacity:.72;pointer-events:none}

/* ================= HPO v8.9.5 default compact UI ================= */
@media screen{
  body.HPO-shell{zoom:.80;}
}
@media print{
  body.HPO-shell{zoom:1;}
}

/* ================= HPO v8.9.9 UI/workflow refinements ================= */
/* Matriks manfaat: shell table styling must not wash out the navy header. */
.HPO-shell .matrix-table thead th{
  background:#0f2747!important;
  color:#fff!important;
  border-color:#274566!important;
  font-weight:800!important;
  text-align:center!important;
}

/* Repository/payment document viewer.  v8.9.8 created the DOM but had no
   positioning styles, so the viewer could be appended outside the visible area. */
.payment-doc-overlay{
  position:fixed;
  inset:0;
  z-index:9000;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:2vh 2vw;
  background:rgba(15,23,42,.72);
  box-sizing:border-box;
}
.payment-doc-modal{
  width:min(1180px,96vw);
  height:min(900px,94vh);
  display:flex;
  flex-direction:column;
  overflow:hidden;
  background:#fff;
  border-radius:12px;
  box-shadow:0 24px 70px rgba(0,0,0,.28);
}
.payment-doc-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:12px 14px;
  border-bottom:1px solid #dbe5ef;
  background:#f8fafc;
}
.payment-doc-head>div:first-child{min-width:0;display:grid;gap:3px}
.payment-doc-head strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#173d50}
.payment-doc-head small{color:#64748b}
.payment-doc-body{flex:1;min-height:0;background:#e9eef3;overflow:auto}
.payment-doc-body iframe{display:block;width:100%;height:100%;min-height:70vh;border:0;background:#fff}
.payment-image-stage{min-height:100%;display:grid;place-items:center;gap:12px;padding:18px;overflow:auto}
.payment-image-stage img{display:block;max-width:100%;height:auto;box-shadow:0 2px 14px rgba(15,23,42,.18)}
.payment-image-stage input[type="range"]{position:sticky;top:0;z-index:2;width:min(420px,80%)}

/* Simplified Step 4: hidden technical/report identity controls remain in DOM
   for engine compatibility but are intentionally not exposed to end users. */
.HPO-ui-hidden{display:none!important}
#nativeRealization.native-realization-simplified{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:8px}
#nativeRealization.native-realization-simplified>div{display:none!important}
#nativeRealization.native-realization-simplified>div:has(#real_terminationBenefit){display:block!important}

/* Progress bars belong immediately below the Run Engine action row. */
#nativeProgressWrap{margin-top:10px!important;margin-bottom:12px!important;width:min(300%,calc(100vw - 48px))!important;max-width:calc(100vw - 48px)!important;position:relative;left:50%;transform:translateX(-50%);box-sizing:border-box}
#nativeProgressWrap progress{display:block;width:100%!important;min-width:0;height:54px;min-height:54px;border-radius:12px;overflow:hidden}
@media(max-width:700px){#nativeProgressWrap{width:calc(100vw - 32px)!important;max-width:calc(100vw - 32px)!important}}

/* ================= HPO v8.9.10 dashboard history chart ================= */
.table1-history-card{overflow:hidden}
.table1-history-card .section-title-row{align-items:flex-end;gap:16px}
.table1-metric-control{display:grid;gap:4px;min-width:min(420px,100%);font-size:.76rem;color:#475569}
.table1-metric-control .form-control{min-width:260px}
.table1-chart-wrap{width:100%;overflow-x:auto;padding:8px 0 0}
.table1-chart-wrap svg{display:block;width:100%;min-width:720px;height:auto;background:linear-gradient(180deg,#fbfdff 0%,#fff 100%);border:1px solid #e2e8f0;border-radius:10px}
.table1-grid{stroke:#e2e8f0;stroke-width:1}
.table1-zero{stroke:#94a3b8;stroke-width:1.2;stroke-dasharray:4 4}
.table1-line{display:none}
.table1-bar{fill:#64748b;stroke:#475569;stroke-width:1;transition:opacity .15s ease}
.table1-bar:hover{opacity:.82}
.table1-bar.final{fill:#1e3a5f;stroke:#172f4d;stroke-width:1.4}
.table1-axis-label{font:12px system-ui,sans-serif;fill:#64748b}
.table1-value-label{font:700 11px system-ui,sans-serif;fill:#173d50}
@media(max-width:760px){.table1-history-card .section-title-row{align-items:stretch;flex-direction:column}.table1-metric-control{min-width:0;width:100%}.table1-metric-control .form-control{min-width:0;width:100%}}

.step-item.quotation-locked{opacity:.45;cursor:not-allowed;pointer-events:none}

/* v8.9.12 — nominal inputs */
.rupiah-input{text-align:right;font-variant-numeric:tabular-nums;}

/* HPO v8.9.14 — Unified Workbook Designer (Excel-like) */
#templateDesignerModal .workbook-designer{background:#f3f6fa}
#templateDesignerModal .tpl-doc-title{min-width:300px}
#templateDesignerModal .tpl-ribbon-tabs{display:flex;gap:0;background:#17365d;padding:0 .65rem;min-height:34px;align-items:end;flex-shrink:0}
#templateDesignerModal .tpl-ribbon-tabs button{border:0;background:transparent;color:#dbeafe;padding:.5rem .9rem .42rem;border-radius:6px 6px 0 0;font:600 12px/1 system-ui;cursor:pointer}
#templateDesignerModal .tpl-ribbon-tabs button:hover{background:#244b79;color:white}
#templateDesignerModal .tpl-ribbon-tabs button.active{background:#fff;color:#17365d}
#templateDesignerModal .tpl-ribbon{background:white;border-bottom:1px solid #cbd5e1;flex-shrink:0;min-height:86px;box-shadow:0 1px 0 rgba(15,23,42,.04)}
#templateDesignerModal .tpl-ribbon-pane{display:none;align-items:stretch;gap:.45rem;padding:.45rem .65rem;min-height:76px;overflow-x:auto}
#templateDesignerModal .tpl-ribbon-pane.active{display:flex}
#templateDesignerModal .tpl-ribbon-group{display:flex;align-items:center;align-content:center;gap:.32rem;flex-wrap:wrap;padding:.2rem .65rem .9rem .2rem;border-right:1px solid #e2e8f0;position:relative;min-width:max-content}
#templateDesignerModal .tpl-ribbon-group>b{position:absolute;left:.2rem;bottom:.12rem;color:#64748b;font:600 10px system-ui;letter-spacing:.02em}
#templateDesignerModal .tpl-ribbon-group label{display:flex;align-items:center;gap:.25rem;font-size:.7rem;margin:0}
#templateDesignerModal .tpl-ribbon-group.grow{flex:1;min-width:340px}
#templateDesignerModal .tpl-ribbon-group.grow input{min-width:220px;flex:1}
#templateDesignerModal .tpl-data-group{min-width:520px}
#templateDesignerModal .tpl-data-group #tplVarSearch{width:210px}
#templateDesignerModal .tpl-data-group #templateVariableSelect{width:260px}
#templateDesignerModal .tpl-ribbon-note{display:grid;align-content:center;gap:.2rem;min-width:280px;max-width:440px;padding:.25rem .5rem;color:#475569;font-size:.72rem;line-height:1.35}
#templateDesignerModal .tpl-ribbon-note strong{color:#17365d;font-size:.76rem}
#templateDesignerModal .tpl-ribbon-note small{color:#92400e}
#templateDesignerModal.tpl-workpaper-restricted .tpl-workpaper-lock-note{display:block;padding:.55rem .85rem;background:#eff6ff;border-bottom:1px solid #bfdbfe;color:#1e3a5f;font-size:.82rem;line-height:1.4}
#templateDesignerModal.tpl-workpaper-restricted [hidden]{display:none!important}
#templateDesignerModal .tpl-formula-bar{display:grid;grid-template-columns:105px 32px 32px minmax(240px,1fr) 36px auto;gap:.3rem;align-items:center;padding:.3rem .55rem;background:#f8fafc;border-bottom:1px solid #cbd5e1;flex-shrink:0}
#templateDesignerModal .tpl-name-box{font-weight:700;text-align:center}
#templateDesignerModal .tpl-fx{font:italic 700 14px Georgia,serif;color:#475569;text-align:center}
#templateDesignerModal .tpl-selection-label{font:600 11px system-ui;color:#64748b;min-width:76px;text-align:right}
#templateDesignerModal .workbook-main{grid-template-columns:minmax(0,1fr) 260px!important;min-height:0;flex:1}
#templateDesignerModal .tpl-properties{background:#fff;border-left:1px solid #cbd5e1;padding:.55rem;overflow:auto;min-width:0}
#templateDesignerModal .tpl-property-card{border:1px solid #e2e8f0;border-radius:8px;padding:.55rem;margin-bottom:.5rem;background:#fff}
#templateDesignerModal .tpl-property-card h4{margin:0 0 .45rem;color:#17365d;font-size:.78rem}
#templateDesignerModal .tpl-property-card p{font-size:.72rem;line-height:1.35;color:#475569;margin:.25rem 0}
#templateDesignerModal .tpl-property-card small{display:block;color:#64748b;font-size:.68rem;line-height:1.4;margin-top:.35rem}
#templateDesignerModal .tpl-binding-info{min-height:28px;display:flex;align-items:center;margin-bottom:.25rem}
#templateDesignerModal .tpl-selection-info{font:600 11px system-ui;color:#64748b;margin:.2rem 0 .5rem}
#templateDesignerModal .tpl-bind-badge,#templateDesignerModal .tpl-fx-badge,#templateDesignerModal .tpl-lock-badge{display:inline-flex;align-items:center;border-radius:999px;padding:.22rem .48rem;font:600 10px system-ui}
#templateDesignerModal .tpl-bind-badge{background:#dbeafe;color:#1d4ed8}
#templateDesignerModal .tpl-fx-badge{background:#ede9fe;color:#6d28d9}
#templateDesignerModal .tpl-lock-badge{background:#f1f5f9;color:#334155}
#templateDesignerModal .tpl-grid td.selected-range{background-image:linear-gradient(rgba(37,99,235,.06),rgba(37,99,235,.06));box-shadow:inset 0 0 0 1px rgba(37,99,235,.24)}
#templateDesignerModal .tpl-grid td.selected{outline:2px solid #2563eb!important;outline-offset:-2px!important}
#templateDesignerModal .tpl-grid td.tpl-source-cell{position:relative;background-image:repeating-linear-gradient(135deg,rgba(148,163,184,.08) 0 5px,transparent 5px 10px)}
#templateDesignerModal .tpl-grid td.tpl-source-cell::before{content:"🔒";position:absolute;left:2px;top:1px;font-size:7px;opacity:.55;pointer-events:none}
#templateDesignerModal .tpl-logo-preview.compact{width:76px;min-height:44px;max-height:48px;padding:.15rem}
#templateDesignerModal .tpl-logo-preview.compact img{max-height:42px}
#templateDesignerModal .tpl-sheet-tabs{align-items:center;flex-wrap:nowrap!important}
#templateDesignerModal .tpl-sheet-tools{display:flex;gap:.2rem;margin-left:auto;position:sticky;right:0;background:#e2e8f0;padding-left:.35rem}
#templateDesignerModal .tpl-sheet-tools .tpl-sheet-tab{font-size:.68rem;padding:.28rem .5rem}
#templateDesignerModal .tpl-toolbar{display:none!important}
#templateDesignerModal .tpl-grid-wrap{background:#cbd5e1}
#templateDesignerModal .tpl-grid td,#templateDesignerModal .tpl-grid th{user-select:none}
#templateDesignerModal .tpl-grid .tpl-cell-editor{user-select:text}
@media(max-width:1050px){#templateDesignerModal .workbook-main{grid-template-columns:minmax(0,1fr) 220px!important}#templateDesignerModal .tpl-properties{font-size:.9em}#templateDesignerModal .tpl-ribbon-pane{overflow-x:auto}#templateDesignerModal .tpl-formula-bar{grid-template-columns:90px 30px 28px minmax(180px,1fr) 34px}}
@media(max-width:800px){#templateDesignerModal .workbook-main{grid-template-columns:1fr!important}#templateDesignerModal .tpl-properties{display:none}#templateDesignerModal .tpl-formula-bar{grid-template-columns:80px 28px minmax(150px,1fr) 34px}#templateDesignerModal .tpl-fx,#templateDesignerModal .tpl-selection-label{display:none}}

/* HPO v8.9.15 — unified Step 5 calculation result + Report (Bill). */
.valuation-report-integrated{margin-top:22px;padding-top:18px;border-top:2px solid #d7e3ea;display:grid;gap:14px}
.valuation-report-integrated:empty{display:none}
.integrated-report-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;padding:14px 16px;border:1px solid #d7e3ea;border-radius:12px;background:#f7fafc}
.integrated-report-heading h3{margin:0 0 4px;color:#173f54}.integrated-report-heading p{margin:0;color:#607784}
.valuation-sequential-nav{margin-top:18px!important;padding-top:14px;border-top:1px solid #e2eaee}
.account-company-profile .form-grid{margin-top:12px}
.page-head{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.page-head-actions{display:flex;gap:8px;align-items:center;margin-left:auto}
.client-profile-heading-row{align-items:flex-start;gap:16px}
.client-profile-status-head{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-left:auto}
.profile-status-progress{min-width:180px;font-size:.8rem}
.profile-status-progress .profile-completion-meter{width:100%;margin:5px 0 0}
.client-company-profile #accountCompanyForm .profile-field-locked{background:#eef1f4!important;color:#475569!important;border-color:#d3dae2!important;cursor:not-allowed}
.client-company-profile #accountCompanyForm .profile-field-editable{background:#fff!important;color:#172033!important;border-color:#94a3b8!important;cursor:text}
.historical-calculation-table-card .table-responsive{overflow-x:auto;max-width:100%}
.historical-calculation-table-card table th:first-child,.historical-calculation-table-card table td:first-child{position:sticky;left:0;background:#fff;z-index:1;min-width:250px}
.historical-calculation-table-card td{white-space:nowrap}
.historical-value{display:inline-block;min-width:105px;text-align:right;font-variant-numeric:tabular-nums}
.historical-open{margin-left:6px}
@media(max-width:620px){.page-head-actions{width:100%;margin-left:0}.client-profile-status-head{margin-left:0}.profile-status-progress{min-width:150px}}
@media(max-width:720px){.integrated-report-heading{flex-direction:column}.integrated-report-heading .btn{width:100%}}


/* HPO v8.9.17 — Flexible Workbook Designer viewport, zoom & mouse sizing */
#templateDesignerModal .template-designer-head .action-row{flex-wrap:wrap;justify-content:flex-end}
#templateDesignerModal.tpl-window-maximized{padding:0!important;align-items:stretch!important;justify-content:stretch!important}
#templateDesignerModal.tpl-window-maximized .template-designer-shell{width:100vw!important;height:100dvh!important;max-height:100dvh!important;border-radius:0!important}
#templateDesignerModal.tpl-window-minimized{padding:14px!important;align-items:flex-end!important;justify-content:flex-end!important;background:transparent!important;pointer-events:none}
#templateDesignerModal.tpl-window-minimized .template-designer-shell{width:min(760px,96vw)!important;height:auto!important;max-height:none!important;border-radius:12px!important;pointer-events:auto;box-shadow:0 18px 55px rgba(15,23,42,.34)}
#templateDesignerModal.tpl-window-minimized .template-designer-shell>:not(.template-designer-head){display:none!important}
#templateDesignerModal.tpl-window-minimized .template-designer-head{border-radius:12px!important;border-bottom:0!important;padding:.55rem .75rem}
#templateDesignerModal.tpl-window-minimized .tpl-doc-title span,#templateDesignerModal.tpl-window-minimized .tpl-doc-title small{display:none!important}
#templateDesignerModal.tpl-window-minimized .action-row>*:not(#tplMinimize):not(#tplClose){display:none!important}
#templateDesignerModal .tpl-bottom-bar{display:flex;align-items:stretch;min-height:34px;background:#e2e8f0;border-top:1px solid #cbd5e1;flex-shrink:0}
#templateDesignerModal .tpl-bottom-bar .tpl-sheet-tabs{flex:1;min-width:0;border-top:0;padding-top:.25rem;padding-bottom:.25rem}
#templateDesignerModal .tpl-zoom-controls{display:flex;align-items:center;gap:.28rem;padding:.25rem .55rem;border-left:1px solid #cbd5e1;background:#f8fafc;position:sticky;right:0;z-index:6}
#templateDesignerModal .tpl-zoom-controls input[type="range"]{width:120px;accent-color:#2563eb;cursor:pointer}
#templateDesignerModal .tpl-zoom-btn,#templateDesignerModal .tpl-zoom-value{border:1px solid #cbd5e1;background:#fff;border-radius:5px;height:24px;min-width:26px;padding:0 .35rem;font:600 11px system-ui;color:#334155;cursor:pointer}
#templateDesignerModal .tpl-zoom-value{min-width:52px;font-variant-numeric:tabular-nums}
#templateDesignerModal .tpl-zoom-btn:hover,#templateDesignerModal .tpl-zoom-value:hover{background:#eff6ff;border-color:#93c5fd}
#templateDesignerModal .tpl-grid{table-layout:fixed!important}
#templateDesignerModal .tpl-grid th,#templateDesignerModal .tpl-grid td{max-width:none!important;box-sizing:border-box}
#templateDesignerModal .tpl-grid .tpl-col-head,#templateDesignerModal .tpl-grid .tpl-row-head{position:sticky;overflow:visible!important}
#templateDesignerModal .tpl-grid .tpl-col-head{top:0}
#templateDesignerModal .tpl-grid .tpl-row-head{left:0}
#templateDesignerModal .tpl-grid .tpl-col-head span,#templateDesignerModal .tpl-grid .tpl-row-head span{pointer-events:none}
#templateDesignerModal .tpl-col-resizer{position:absolute;top:0;right:-4px;width:8px;height:100%;cursor:col-resize;z-index:12}
#templateDesignerModal .tpl-row-resizer{position:absolute;left:0;bottom:-4px;width:100%;height:8px;cursor:row-resize;z-index:12}
#templateDesignerModal .tpl-col-resizer:hover{background:rgba(37,99,235,.28)}
#templateDesignerModal .tpl-row-resizer:hover{background:rgba(37,99,235,.28)}
#templateDesignerModal .tpl-grid-wrap{position:relative}
#templateDesignerModal .tpl-resize-guide{position:absolute;z-index:30;pointer-events:none;background:#2563eb;opacity:.75}
#templateDesignerModal .tpl-resize-guide.vertical{width:2px}
#templateDesignerModal .tpl-resize-guide.horizontal{height:2px}
body.tpl-resizing,body.tpl-resizing *{user-select:none!important}
#templateDesignerModal .tpl-cell-editor{font:inherit;line-height:1.25;box-sizing:border-box;width:100%;height:100%;min-height:100%;resize:none;padding:3px 5px;border:2px solid #2563eb;outline:0;background:#fff;color:#111}
@media(max-width:900px){#templateDesignerModal .tpl-zoom-controls input[type="range"]{width:80px}}


/* HPO v8.9.18 — True Full Screen + Compact Ribbon / Maximum Worksheet */
#templateDesignerModal .template-designer-shell{width:98.5vw;height:98vh;max-height:98dvh}
#templateDesignerModal .template-designer-head{padding:.34rem .55rem!important;gap:.45rem!important;min-height:38px!important}
#templateDesignerModal .tpl-doc-title{min-width:220px!important;gap:0!important}
#templateDesignerModal .tpl-doc-title strong{font-size:.78rem;line-height:1.1}
#templateDesignerModal .tpl-doc-title span,#templateDesignerModal .tpl-doc-title small{font-size:.62rem!important;line-height:1.12}
#templateDesignerModal .template-designer-head .action-row{gap:.25rem!important;flex-wrap:nowrap!important;align-items:center}
#templateDesignerModal .template-designer-head .action-row .btn,
#templateDesignerModal .template-designer-head .action-row .form-control{height:27px!important;min-height:27px!important;padding:.18rem .42rem!important;font-size:.66rem!important;line-height:1!important}
#templateDesignerModal #tplPreviewMode{width:132px!important;min-width:132px!important}
#templateDesignerModal .tpl-ribbon-tabs{min-height:27px!important;height:27px!important;padding:0 .35rem!important;align-items:end}
#templateDesignerModal .tpl-ribbon-tabs button{padding:.34rem .62rem .28rem!important;font-size:10.5px!important;line-height:1!important}
#templateDesignerModal .tpl-ribbon{min-height:50px!important}
#templateDesignerModal .tpl-ribbon-pane{min-height:48px!important;padding:.22rem .4rem!important;gap:.28rem!important;align-items:center!important}
#templateDesignerModal .tpl-ribbon-group{gap:.22rem!important;padding:.08rem .42rem!important;min-height:38px!important;align-content:center!important}
#templateDesignerModal .tpl-ribbon-group>b{display:none!important}
#templateDesignerModal .tpl-ribbon-group label{font-size:.62rem!important;gap:.15rem!important}
#templateDesignerModal .tpl-ribbon-pane .btn-sm,
#templateDesignerModal .tpl-ribbon-pane .tpl-tool,
#templateDesignerModal .tpl-ribbon-pane .form-control{min-height:25px!important;height:25px!important;padding:.12rem .36rem!important;font-size:.64rem!important;line-height:1!important}
#templateDesignerModal .tpl-ribbon-pane .tpl-tool{min-width:25px!important}
#templateDesignerModal .tpl-ribbon-pane input[type="color"]{width:27px!important;height:25px!important;padding:1px!important}
#templateDesignerModal .tpl-ribbon-note{display:none!important}
#templateDesignerModal .tpl-ribbon-group.grow{min-width:260px!important}
#templateDesignerModal .tpl-data-group{min-width:430px!important}
#templateDesignerModal .tpl-data-group #tplVarSearch{width:175px!important}
#templateDesignerModal .tpl-data-group #templateVariableSelect{width:220px!important}
#templateDesignerModal .tpl-formula-bar{grid-template-columns:90px 28px 25px minmax(260px,1fr) 30px auto!important;min-height:31px!important;padding:.18rem .4rem!important;gap:.22rem!important}
#templateDesignerModal .tpl-formula-bar .form-control,#templateDesignerModal .tpl-formula-bar .btn{height:26px!important;min-height:26px!important;padding:.12rem .35rem!important;font-size:.68rem!important}
#templateDesignerModal .workbook-main{grid-template-columns:minmax(0,1fr) 225px!important}
#templateDesignerModal .tpl-properties{padding:.38rem!important}
#templateDesignerModal .tpl-property-card{padding:.4rem!important;margin-bottom:.34rem!important;border-radius:6px!important}
#templateDesignerModal .tpl-property-card h4{font-size:.7rem!important;margin-bottom:.3rem!important}
#templateDesignerModal .tpl-property-card p,#templateDesignerModal .tpl-property-card small{font-size:.62rem!important;line-height:1.25!important}
#templateDesignerModal .tpl-bottom-bar{min-height:29px!important}
#templateDesignerModal .tpl-bottom-bar .tpl-sheet-tabs{padding:.16rem .35rem!important}
#templateDesignerModal .tpl-sheet-tab{padding:.22rem .5rem!important;font-size:.68rem!important}
#templateDesignerModal .tpl-zoom-controls{padding:.15rem .4rem!important}

/* Ribbon dapat di-collapse seperti Excel untuk memberikan area sheet maksimum. */
#templateDesignerModal.tpl-ribbon-collapsed .tpl-ribbon{display:none!important}
#templateDesignerModal.tpl-ribbon-collapsed .tpl-ribbon-tabs{border-bottom:1px solid #cbd5e1}

/* Cell Properties dapat disembunyikan tanpa mengubah workbook. */
#templateDesignerModal.tpl-properties-collapsed .workbook-main{grid-template-columns:minmax(0,1fr)!important}
#templateDesignerModal.tpl-properties-collapsed .tpl-properties{display:none!important}

/* Full viewport fallback + native Browser Fullscreen API. */
#templateDesignerModal.tpl-window-maximized,
#templateDesignerModal:fullscreen,
#templateDesignerModal:-webkit-full-screen{padding:0!important;margin:0!important;width:100vw!important;height:100vh!important;max-width:none!important;max-height:none!important;inset:0!important;background:#f3f6fa!important;align-items:stretch!important;justify-content:stretch!important}
#templateDesignerModal.tpl-window-maximized .template-designer-shell,
#templateDesignerModal:fullscreen .template-designer-shell,
#templateDesignerModal:-webkit-full-screen .template-designer-shell{width:100vw!important;height:100vh!important;max-width:none!important;max-height:none!important;border-radius:0!important;box-shadow:none!important}
#templateDesignerModal.tpl-window-maximized .template-designer-head,
#templateDesignerModal:fullscreen .template-designer-head{padding:.24rem .42rem!important;min-height:34px!important}
#templateDesignerModal.tpl-window-maximized .tpl-doc-title span,
#templateDesignerModal:fullscreen .tpl-doc-title span{display:none!important}
#templateDesignerModal.tpl-window-maximized .tpl-doc-title strong,
#templateDesignerModal:fullscreen .tpl-doc-title strong{font-size:.72rem!important}
#templateDesignerModal.tpl-window-maximized .tpl-ribbon-tabs,
#templateDesignerModal:fullscreen .tpl-ribbon-tabs{height:25px!important;min-height:25px!important}
#templateDesignerModal.tpl-window-maximized .tpl-ribbon,
#templateDesignerModal:fullscreen .tpl-ribbon{min-height:46px!important}
#templateDesignerModal.tpl-window-maximized .tpl-ribbon-pane,
#templateDesignerModal:fullscreen .tpl-ribbon-pane{min-height:44px!important;padding:.15rem .3rem!important}
#templateDesignerModal.tpl-window-maximized .tpl-ribbon-group,
#templateDesignerModal:fullscreen .tpl-ribbon-group{min-height:34px!important;padding:.04rem .3rem!important}
#templateDesignerModal.tpl-window-maximized .workbook-main,
#templateDesignerModal:fullscreen .workbook-main{grid-template-columns:minmax(0,1fr) 210px!important}
#templateDesignerModal.tpl-window-maximized.tpl-properties-collapsed .workbook-main,
#templateDesignerModal:fullscreen.tpl-properties-collapsed .workbook-main{grid-template-columns:minmax(0,1fr)!important}

/* Minimized benar-benar menjadi dock kecil dan tidak menutup sheet/aplikasi. */
#templateDesignerModal.tpl-window-minimized{padding:8px!important}
#templateDesignerModal.tpl-window-minimized .template-designer-shell{width:min(620px,92vw)!important}
#templateDesignerModal.tpl-window-minimized .template-designer-head{min-height:34px!important;padding:.3rem .45rem!important}
#templateDesignerModal.tpl-window-minimized .tpl-doc-title strong{font-size:.7rem!important}

@media(max-width:1200px){
 #templateDesignerModal .tpl-doc-title span{display:none}
 #templateDesignerModal .template-designer-head .action-row{overflow-x:auto;max-width:72vw}
 #templateDesignerModal .workbook-main{grid-template-columns:minmax(0,1fr) 200px!important}
}

/* HPO v8.10.0 — Native Spreadsheet Workspace
   A dedicated 100% viewport editing surface. HPO chrome sits underneath; the workbook
   becomes the application while editing, with properties/context tools available on demand. */
body.HPO-workbook-open{overflow:hidden!important}
#templateDesignerModal.native-sheet-workspace{position:fixed!important;inset:0!important;width:100vw!important;height:100dvh!important;max-width:none!important;max-height:none!important;margin:0!important;padding:0!important;display:block!important;background:#eef2f6!important;z-index:100000!important;overflow:hidden!important}
#templateDesignerModal.native-sheet-workspace .template-designer-shell{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;margin:0!important;border-radius:0!important;box-shadow:none!important;background:#f5f6f8!important}
#templateDesignerModal.native-sheet-workspace .template-designer-head{height:31px!important;min-height:31px!important;padding:2px 6px!important;background:#17365d!important;color:white!important;border:0!important;gap:6px!important;flex:0 0 31px!important}
#templateDesignerModal.native-sheet-workspace .tpl-doc-title{min-width:160px!important;max-width:360px!important;display:flex!important;align-items:center!important;gap:7px!important;white-space:nowrap!important;overflow:hidden!important}
#templateDesignerModal.native-sheet-workspace .tpl-doc-title strong{color:white!important;font-size:11px!important;overflow:hidden;text-overflow:ellipsis}
#templateDesignerModal.native-sheet-workspace .tpl-doc-title span{display:none!important}
#templateDesignerModal.native-sheet-workspace .tpl-doc-title small{font-size:9px!important;color:#bfdbfe!important;overflow:hidden;text-overflow:ellipsis}
#templateDesignerModal.native-sheet-workspace .template-designer-head .action-row{margin-left:auto!important;gap:3px!important;overflow-x:auto!important;overflow-y:hidden!important;max-width:76vw!important;flex-wrap:nowrap!important;scrollbar-width:thin}
#templateDesignerModal.native-sheet-workspace .template-designer-head .action-row>*{height:24px!important;min-height:24px!important;font-size:10px!important;padding:2px 7px!important;white-space:nowrap!important}
#templateDesignerModal.native-sheet-workspace #tplMinimize{display:none!important}
#templateDesignerModal.native-sheet-workspace #tplPropertiesToggle{display:inline-flex!important}
#templateDesignerModal.native-sheet-workspace .tpl-ribbon-tabs{height:24px!important;min-height:24px!important;flex:0 0 24px!important;padding:0 5px!important;background:#f8fafc!important;border-bottom:1px solid #cbd5e1!important;align-items:stretch!important}
#templateDesignerModal.native-sheet-workspace .tpl-ribbon-tabs button{color:#334155!important;background:transparent!important;border-radius:0!important;padding:3px 10px!important;font-size:10px!important;border-bottom:2px solid transparent!important}
#templateDesignerModal.native-sheet-workspace .tpl-ribbon-tabs button.active{color:#17365d!important;background:white!important;border-bottom-color:#2563eb!important}
#templateDesignerModal.native-sheet-workspace .tpl-ribbon-tabs button:hover{background:#eaf2fb!important;color:#17365d!important}
#templateDesignerModal.native-sheet-workspace .tpl-ribbon{min-height:37px!important;height:auto!important;flex:0 0 auto!important;background:white!important}
#templateDesignerModal.native-sheet-workspace .tpl-ribbon-pane{min-height:36px!important;height:auto!important;padding:3px 6px!important;gap:4px!important;align-items:center!important;overflow-x:auto!important;overflow-y:hidden!important}
#templateDesignerModal.native-sheet-workspace .tpl-ribbon-group{min-height:30px!important;padding:1px 6px!important;gap:3px!important;flex-wrap:nowrap!important;border-right:1px solid #e2e8f0!important}
#templateDesignerModal.native-sheet-workspace .tpl-ribbon-group>b,#templateDesignerModal.native-sheet-workspace .tpl-ribbon-note{display:none!important}
#templateDesignerModal.native-sheet-workspace .tpl-ribbon-pane .btn-sm,#templateDesignerModal.native-sheet-workspace .tpl-ribbon-pane .tpl-tool,#templateDesignerModal.native-sheet-workspace .tpl-ribbon-pane .form-control{height:24px!important;min-height:24px!important;font-size:10px!important;padding:2px 6px!important}
#templateDesignerModal.native-sheet-workspace .tpl-ribbon-pane .tpl-tool{min-width:25px!important}
#templateDesignerModal.native-sheet-workspace .tpl-ribbon-group label{font-size:10px!important;white-space:nowrap!important}
#templateDesignerModal.native-sheet-workspace .tpl-data-group{min-width:0!important}
#templateDesignerModal.native-sheet-workspace .tpl-data-group #tplVarSearch{width:180px!important}
#templateDesignerModal.native-sheet-workspace .tpl-data-group #templateVariableSelect{width:230px!important}
#templateDesignerModal.native-sheet-workspace .tpl-formula-bar{height:29px!important;min-height:29px!important;flex:0 0 29px!important;grid-template-columns:82px 25px 22px minmax(180px,1fr) 28px 72px!important;padding:2px 5px!important;gap:3px!important;background:white!important}
#templateDesignerModal.native-sheet-workspace .tpl-formula-bar .form-control,#templateDesignerModal.native-sheet-workspace .tpl-formula-bar .btn{height:24px!important;min-height:24px!important;font-size:10px!important;padding:2px 5px!important}
#templateDesignerModal.native-sheet-workspace .tpl-main.workbook-main{position:relative!important;display:grid!important;grid-template-columns:minmax(0,1fr)!important;min-height:0!important;flex:1 1 auto!important;overflow:hidden!important}
#templateDesignerModal.native-sheet-workspace .tpl-work{position:absolute!important;inset:0!important;display:flex!important;min-height:0!important;min-width:0!important;background:#dfe5ec!important}
#templateDesignerModal.native-sheet-workspace .tpl-grid-wrap{flex:1 1 auto!important;min-height:0!important;min-width:0!important;overflow:auto!important;background:#e5e7eb!important;padding:0!important;overscroll-behavior:contain!important}
#templateDesignerModal.native-sheet-workspace .tpl-grid{min-width:max-content!important;background:white!important}
#templateDesignerModal.native-sheet-workspace .tpl-grid th{height:22px!important;font-size:10px!important;background:#f3f4f6!important;color:#475569!important}
#templateDesignerModal.native-sheet-workspace .tpl-grid .tpl-col-head{z-index:8!important}
#templateDesignerModal.native-sheet-workspace .tpl-grid .tpl-row-head{z-index:7!important}
#templateDesignerModal.native-sheet-workspace .tpl-corner{left:0!important;z-index:10!important}
#templateDesignerModal.native-sheet-workspace .tpl-bottom-bar{height:29px!important;min-height:29px!important;flex:0 0 29px!important;background:#eef2f7!important}
#templateDesignerModal.native-sheet-workspace .tpl-bottom-bar .tpl-sheet-tabs{padding:2px 4px!important;gap:2px!important}
#templateDesignerModal.native-sheet-workspace .tpl-sheet-tab{height:24px!important;padding:2px 8px!important;font-size:10px!important;border-radius:4px 4px 0 0!important}
#templateDesignerModal.native-sheet-workspace .tpl-sheet-tools{padding-left:3px!important;gap:2px!important;background:#eef2f7!important}
#templateDesignerModal.native-sheet-workspace .tpl-zoom-controls{height:29px!important;padding:2px 5px!important;background:#f8fafc!important}
#templateDesignerModal.native-sheet-workspace .tpl-zoom-controls input[type=range]{width:92px!important}
#templateDesignerModal.native-sheet-workspace .tpl-zoom-btn,#templateDesignerModal.native-sheet-workspace .tpl-zoom-value{height:22px!important;font-size:10px!important}
/* Properties is now a floating on-demand drawer, never a permanent worksheet column. */
#templateDesignerModal.native-sheet-workspace .tpl-properties{display:none!important;position:absolute!important;right:8px!important;top:6px!important;bottom:7px!important;width:300px!important;z-index:45!important;border:1px solid #cbd5e1!important;border-radius:8px!important;box-shadow:0 12px 35px rgba(15,23,42,.22)!important;background:white!important;overflow:auto!important;padding:7px!important}
#templateDesignerModal.native-sheet-workspace:not(.tpl-properties-collapsed) .tpl-properties{display:block!important}
#templateDesignerModal.native-sheet-workspace .tpl-property-card{padding:6px!important;margin-bottom:5px!important}
#templateDesignerModal.native-sheet-workspace .tpl-property-card h4{font-size:11px!important}
/* Keep native browser fullscreen optional; the workspace already fills the viewport. */
#templateDesignerModal.native-sheet-workspace:fullscreen,#templateDesignerModal.native-sheet-workspace:-webkit-full-screen{width:100vw!important;height:100vh!important;background:#eef2f6!important}
/* Excel-like context menu and Find palette. */
.HPO-sheet-context{position:fixed;z-index:100500;width:200px;padding:4px;background:#fff;border:1px solid #cbd5e1;border-radius:7px;box-shadow:0 12px 35px rgba(15,23,42,.24);display:grid;gap:1px;font:11px system-ui}
.HPO-sheet-context button{border:0;background:#fff;text-align:left;padding:6px 9px;border-radius:4px;color:#1f2937;cursor:pointer}
.HPO-sheet-context button:hover{background:#eaf2fb;color:#17365d}
.HPO-sheet-context .sep{height:1px;background:#e2e8f0;margin:3px 2px}
.HPO-sheet-find{position:fixed;z-index:100510;right:14px;top:38px;background:#fff;border:1px solid #cbd5e1;border-radius:8px;box-shadow:0 10px 30px rgba(15,23,42,.2);padding:6px;display:flex;gap:4px;align-items:center}
.HPO-sheet-find input{width:250px;height:28px;border:1px solid #cbd5e1;border-radius:5px;padding:4px 8px;font:11px system-ui;outline:none}
.HPO-sheet-find input:focus{border-color:#2563eb;box-shadow:0 0 0 2px rgba(37,99,235,.12)}
.HPO-sheet-find button{height:28px;border:1px solid #cbd5e1;background:#f8fafc;border-radius:5px;font:10px system-ui;padding:0 8px;cursor:pointer}
.HPO-sheet-find .close{font-size:16px;width:28px;padding:0}
@media(max-width:900px){#templateDesignerModal.native-sheet-workspace .tpl-doc-title small{display:none!important}#templateDesignerModal.native-sheet-workspace .tpl-doc-title{max-width:180px!important}#templateDesignerModal.native-sheet-workspace .template-designer-head .action-row{max-width:78vw!important}#templateDesignerModal.native-sheet-workspace #tplPreviewMode{display:none!important}}

/* HPO v8.10.2 — non-destructive split Preview for Native Spreadsheet Workspace. */
#templateDesignerModal.native-sheet-workspace.preview-docked{--tpl-preview-width:min(48vw,860px);position:fixed!important;inset:0!important;overflow:hidden!important}
#templateDesignerModal.native-sheet-workspace.preview-docked .template-designer-shell{width:calc(100% - var(--tpl-preview-width))!important;max-width:none!important;transition:width .16s ease;min-width:420px}
#templateDesignerModal.native-sheet-workspace .tpl-preview-modal{position:absolute!important;right:0!important;top:0!important;bottom:0!important;left:auto!important;width:var(--tpl-preview-width,min(48vw,860px))!important;z-index:12000!important;background:#fff!important;display:flex!important;flex-direction:column!important;border-left:1px solid #94a3b8!important;border-radius:0!important;box-shadow:-10px 0 28px rgba(15,23,42,.18)!important;overflow:hidden!important}
#templateDesignerModal.native-sheet-workspace .tpl-preview-head{min-height:48px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;padding:7px 10px!important;background:#f8fafc!important;border-bottom:1px solid #cbd5e1!important;flex:0 0 auto!important}
#templateDesignerModal.native-sheet-workspace .tpl-preview-title{display:flex;flex-direction:column;min-width:0;line-height:1.15}
#templateDesignerModal.native-sheet-workspace .tpl-preview-title strong{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#templateDesignerModal.native-sheet-workspace .tpl-preview-title span{font-size:10px;color:#64748b;margin-top:2px}
#templateDesignerModal.native-sheet-workspace .tpl-preview-actions{display:flex;gap:5px;flex-wrap:nowrap;align-items:center}
#templateDesignerModal.native-sheet-workspace .tpl-preview-modal iframe{flex:1 1 auto!important;min-height:0!important;width:100%!important;border:0!important;background:#e5e7eb!important}
#templateDesignerModal.native-sheet-workspace.preview-full .template-designer-shell{width:0!important;min-width:0!important;overflow:hidden!important;visibility:hidden!important}
#templateDesignerModal.native-sheet-workspace.preview-full .tpl-preview-modal{width:100%!important;left:0!important;border-left:0!important;box-shadow:none!important}
@media(max-width:1000px){#templateDesignerModal.native-sheet-workspace.preview-docked{--tpl-preview-width:min(52vw,720px)}#templateDesignerModal.native-sheet-workspace.preview-docked .template-designer-shell{min-width:340px}}


/* HPO v8.10.4 — clickable valuation timeline for reached stages */
.eng-step.timeline-clickable{appearance:none;border:0;font:inherit;background:transparent;padding:0;cursor:pointer;border-radius:8px}
.eng-step.timeline-clickable:hover{background:#f8fafc;box-shadow:0 0 0 1px #dbe3ef}
.eng-step.timeline-clickable:focus-visible{outline:2px solid var(--primary);outline-offset:2px}
.eng-step.locked:not(.timeline-clickable){cursor:not-allowed}
.report-process-actions{margin:8px 0 12px}

/* HPO v8.10.5 — frozen valuation timeline while the valuation page scrolls. */
.valuation-timeline-dock{position:fixed;z-index:890;display:none;box-sizing:border-box;padding:6px 0;background:rgba(255,255,255,.98);border-bottom:1px solid #cbd5e1;box-shadow:0 5px 16px rgba(15,23,42,.14);backdrop-filter:blur(6px)}
.valuation-timeline-dock.visible{display:block}
.valuation-timeline-dock-inner{max-width:100%;overflow:hidden}
.valuation-timeline-dock .eng-progress{margin:0!important;padding:2px 0 4px!important;background:transparent!important}
.valuation-timeline-dock .eng-step small{font-size:.64rem!important;line-height:1.05!important}
.valuation-timeline-dock .eng-step span{width:24px!important;height:24px!important;margin-bottom:3px!important}
@media(max-width:700px){.valuation-timeline-dock{padding:5px 0}.valuation-timeline-dock .eng-progress{grid-template-columns:repeat(11,minmax(72px,1fr))!important;overflow-x:auto!important}}

/* HPO v8.10.6 — light-green cue when a reached timeline stage is opened for review. */
.eng-step.timeline-clickable.timeline-viewed-previous{background:#f0fdf4!important;box-shadow:inset 0 0 0 1px #bbf7d0!important;color:#166534!important}
.eng-step.timeline-clickable.timeline-viewed-previous:hover{background:#ecfdf3!important;box-shadow:inset 0 0 0 1px #86efac!important}
.eng-step.timeline-clickable.timeline-viewed-previous span{background:#dcfce7!important;color:#166534!important;box-shadow:0 0 0 3px rgba(34,197,94,.10)!important}
.eng-step.timeline-clickable.timeline-viewed-previous small{color:#166534!important;font-weight:700}

/* v8.10.8 — exact frozen-timeline alignment + forward commercial/final page */
.valuation-timeline-dock{overflow:visible}
.valuation-timeline-dock-inner{width:100%;overflow:hidden}
.valuation-timeline-dock .eng-progress{box-sizing:border-box}
.valuation-post-report-page{margin-top:0}
.post-report-header{align-items:flex-start}
.post-stage-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:14px 0 18px}
.post-stage-card{display:flex;align-items:center;gap:10px;padding:12px 14px;border:1px solid #dbe5ea;border-radius:12px;background:#f8fafc;color:#64748b}
.post-stage-card.done{background:#f0fdf4;border-color:#bbf7d0;color:#166534}
.post-stage-card.active{background:#eff6ff;border-color:#bfdbfe;color:#1d4ed8;box-shadow:inset 0 0 0 1px #93c5fd}
.post-stage-card.locked{opacity:.72}
.post-stage-card.selected{box-shadow:0 0 0 2px rgba(59,130,246,.12)}
.post-stage-number{display:flex;align-items:center;justify-content:center;flex:0 0 32px;width:32px;height:32px;border-radius:50%;background:#e2e8f0;color:#475569;font-weight:800}
.post-stage-card.done .post-stage-number{background:#dcfce7;color:#166534}
.post-stage-card.active .post-stage-number{background:#2563eb;color:#fff}
.post-stage-card strong,.post-stage-card small{display:block}.post-stage-card small{margin-top:2px;line-height:1.25}
.post-report-nav{margin-bottom:12px}
.post-process-section{scroll-margin-top:150px}
.report-next-stage{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-top:16px;padding:14px 16px;border:1px solid #bfdbfe;border-radius:12px;background:#eff6ff}
.report-next-stage p{margin:4px 0 0;color:#475569}
@media(max-width:800px){.post-stage-strip{grid-template-columns:1fr}.report-next-stage{align-items:flex-start;flex-direction:column}.report-next-stage .btn{width:100%}}

/* v8.10.11 — Tahap 9–11 is a standalone valuation page, never part of Step 1–8 wizard. */
.valuation-standalone-page{display:block;width:100%;box-sizing:border-box;margin:0;padding:0;background:transparent}
.valuation-standalone-page[hidden]{display:none!important}
.valuation-post-page-head{margin:0 0 14px}
.valuation-post-page-head .eng-progress{margin:10px 16px 14px}
.valuation-standalone-page .post-stage-strip,.valuation-standalone-page .post-report-nav,.valuation-standalone-page .post-process-section{margin-left:0;margin-right:0}

/* v8.10.12 — direct payment review inside Review & Approval */
.review-section{margin-top:16px;padding-top:2px}.review-section+.review-section{margin-top:22px;padding-top:18px;border-top:1px solid #dce7ec}
.notification-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.notification-bar span{font-weight:600;font-size:.82rem;color:#87651e}
.payment-review-card{border-left:4px solid #f3c95d}
.payment-review-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
@media(max-width:760px){.payment-review-actions{justify-content:flex-start}}

/* v8.10.14 — frozen timeline is an exact full-width replica of the source timeline. */
.valuation-timeline-dock{box-sizing:border-box}
.valuation-timeline-dock-inner{width:100%!important;max-width:none!important;overflow:hidden}
.valuation-timeline-dock .eng-progress{width:100%!important;max-width:none!important}

/* v8.10.33 — individual sampling search + final-history audit access */
.HPO-shell .individual-search-toolbar{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin:0 0 12px;padding:12px 14px;border:1px solid #dbe4ef;border-radius:12px;background:#f8fafc}
.HPO-shell .individual-search-toolbar label{display:flex;flex-direction:column;gap:2px;min-width:180px;color:#173d50}
.HPO-shell .individual-search-toolbar label span{font-size:.74rem;font-weight:400;color:#64748b}
.HPO-shell .individual-search-toolbar input{min-width:280px;max-width:460px;flex:1}
.HPO-shell .individual-search-count{font-size:.8rem;color:#64748b;font-weight:700;white-space:nowrap;padding-bottom:9px}
.HPO-shell .individual-result-list{overflow:auto;max-height:520px;border-radius:10px}
.HPO-shell .history-individual-audit{margin-top:18px;padding:14px;border:1px solid #dbe4ef;border-radius:14px;background:#fff}
.HPO-shell .history-individual-audit>summary{cursor:pointer;color:#173d50;margin-bottom:10px}
@media(max-width:760px){.HPO-shell .individual-search-toolbar input{min-width:100%;max-width:100%}.HPO-shell .individual-search-count{padding-bottom:0}}


/* v8.10.44 — compact valuation document archive */
.HPO-shell .history-document-wrap{margin:0!important;border:1px solid #e3ebef;border-radius:7px;max-height:58vh}
.HPO-shell .history-document-table{table-layout:fixed!important;width:100%!important;font-size:.78rem!important}
.HPO-shell .history-document-table col.history-col-no{width:46px}
.HPO-shell .history-document-table col.history-col-doc{width:245px}
.HPO-shell .history-document-table col.history-col-file{width:auto}
.HPO-shell .history-document-table col.history-col-action{width:112px}
.HPO-shell .history-document-table th,.HPO-shell .history-document-table td{padding:4px 6px!important;vertical-align:middle!important;line-height:1.2!important}
.HPO-shell .history-document-table th:first-child,.HPO-shell .history-document-table td:first-child{text-align:center!important}
.HPO-shell .history-document-table td:nth-child(2){font-weight:700}
.HPO-shell .history-doc-file{display:flex;align-items:center;gap:4px;flex-wrap:wrap;margin:0!important;min-height:22px}
.HPO-shell .history-doc-file+ .history-doc-file{margin-top:3px!important;padding-top:3px;border-top:1px dashed #e7edf1}
.HPO-shell .history-doc-file small{white-space:nowrap;color:#71838d}
.HPO-shell .history-doc-actions{display:flex!important;flex-wrap:nowrap!important;gap:4px!important;margin:0!important;align-items:center}
.HPO-shell .history-doc-actions .btn{padding:4px 7px!important;min-width:46px;font-size:.72rem!important;white-space:nowrap!important}
.HPO-shell .history-document-hint{margin:4px 0 0!important}
@media(max-width:900px){.HPO-shell .history-document-table col.history-col-doc{width:200px}.HPO-shell .history-document-table col.history-col-action{width:108px}}


/* HPO v8.10.45 — Word-like Document Designer (same template data model / PDF renderer). */
#templateDesignerModal.native-document-workspace{padding:0!important;background:#cfd4da!important;align-items:stretch!important;justify-content:stretch!important}
#templateDesignerModal.native-document-workspace .template-designer-shell{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;border-radius:0!important;background:#f3f4f6!important}
#templateDesignerModal.native-document-workspace .template-designer-head{background:#fff!important;border-bottom:1px solid #d8dee8!important;padding:.42rem .65rem!important;min-height:42px!important}
#templateDesignerModal.native-document-workspace .tpl-doc-title strong{font-size:.84rem!important;color:#17365d!important}
#templateDesignerModal.native-document-workspace .tpl-formula-bar{display:none!important}
#templateDesignerModal.native-document-workspace .tpl-main{min-height:0!important;flex:1 1 auto!important}
#templateDesignerModal.native-document-workspace .tpl-grid-wrap{background:#dfe3e8!important;padding:26px 34px 42px!important;overflow:auto!important;display:block!important}
#templateDesignerModal.native-document-workspace .tpl-grid{margin:0 auto 28px!important;background:#fff!important;box-shadow:0 4px 18px rgba(15,23,42,.18)!important;border:1px solid #cfd6df!important;min-height:1040px!important;min-width:760px!important}
#templateDesignerModal.native-document-workspace .tpl-grid thead{display:none!important}
#templateDesignerModal.native-document-workspace .tpl-grid tbody>tr>th.tpl-row-head{display:none!important}
#templateDesignerModal.native-document-workspace .tpl-grid td{border-right-color:transparent!important;border-bottom-color:transparent!important;user-select:text!important;cursor:text!important}
#templateDesignerModal.native-document-workspace .tpl-grid td>div{padding:4px 6px!important;text-overflow:clip!important}
#templateDesignerModal.native-document-workspace .tpl-grid td.selected{outline:2px solid #2b579a!important;background-image:linear-gradient(rgba(43,87,154,.05),rgba(43,87,154,.05))!important}
#templateDesignerModal.native-document-workspace .tpl-grid td.selected-range{box-shadow:inset 0 0 0 1px rgba(43,87,154,.22)!important}
#templateDesignerModal.native-document-workspace .tpl-bottom-bar{background:#f7f8fa!important;border-top:1px solid #d7dce3!important}
#templateDesignerModal.native-document-workspace .tpl-sheet-tabs{background:#f7f8fa!important;padding:.28rem .55rem!important}
#templateDesignerModal.native-document-workspace .tpl-sheet-tab{border-radius:3px!important;background:#fff!important}
#templateDesignerModal.native-document-workspace .tpl-sheet-tab.active{border-color:#2b579a!important;color:#2b579a!important}
#templateDesignerModal.native-document-workspace .tpl-properties{background:#fff!important;border-left:1px solid #d8dee8!important}
#templateDesignerModal.native-document-workspace .tpl-ribbon-tabs{background:#fff!important}
#templateDesignerModal.native-document-workspace .tpl-ribbon{background:#f8f9fb!important}
#templateDesignerModal.native-document-workspace.preview-docked{--tpl-preview-width:min(48vw,760px)}
#templateDesignerModal.native-document-workspace.preview-docked .template-designer-shell{width:calc(100% - var(--tpl-preview-width))!important;min-width:420px!important}
#templateDesignerModal.native-document-workspace.preview-full .template-designer-shell{width:0!important;min-width:0!important;overflow:hidden!important;visibility:hidden!important}
.assumption-restricted{background:#f8fafc;border:1px dashed #cbd5e1;border-radius:6px;padding:.35rem .5rem}.assumption-restricted small{display:block;color:#64748b;margin-top:.15rem}.assumption-permission-note{display:block;color:#64748b;margin-top:.35rem}


/* HPO v8.10.46 — native paged Word canvas. The spreadsheet grid is no longer the work surface. */
#templateDesignerModal.native-document-workspace .tpl-grid-wrap{background:#d7dadd!important;padding:0!important;overflow:auto!important;position:relative!important}
#templateDesignerModal.native-document-workspace .word-workspace{min-width:max-content;min-height:100%;padding:30px 58px 70px;position:relative;display:flex;flex-direction:column;align-items:center;gap:28px;font-family:Calibri,Arial,sans-serif}
#templateDesignerModal.native-document-workspace .word-horizontal-ruler{position:sticky;top:0;z-index:8;width:794px;max-width:calc(100vw - 140px);height:22px;margin-bottom:-14px;background:linear-gradient(#fff,#f7f7f7);border:1px solid #bcc4ce;box-shadow:0 1px 3px rgba(15,23,42,.12);display:flex;justify-content:space-between;align-items:flex-end;padding:0 16px 3px;color:#5d6672;font:10px Segoe UI,Arial,sans-serif;pointer-events:none}
#templateDesignerModal.native-document-workspace .HPO-word-page{position:relative;flex:0 0 auto;background:#fff;box-shadow:0 4px 18px rgba(15,23,42,.22);border:1px solid #c8cdd4;overflow:hidden;transform-origin:top center}
#templateDesignerModal.native-document-workspace .HPO-word-page.landscape+.HPO-word-page.landscape{margin-top:2px}
#templateDesignerModal.native-document-workspace .word-margin-guide{position:absolute;border:1px dashed rgba(43,87,154,.13);pointer-events:none;z-index:0}
#templateDesignerModal.native-document-workspace .word-page-number{position:absolute;right:8px;top:6px;color:#9aa3ad;font:10px Segoe UI,Arial,sans-serif;z-index:1;pointer-events:none}
#templateDesignerModal.native-document-workspace .word-header,#templateDesignerModal.native-document-workspace .word-footer{position:absolute;color:#667085;font:10px Calibri,Arial,sans-serif;min-height:16px;border-bottom:1px dotted transparent;z-index:2;white-space:pre-wrap}
#templateDesignerModal.native-document-workspace .word-footer{border-bottom:0;border-top:1px dotted transparent;padding-top:3px}
#templateDesignerModal.native-document-workspace .word-footer-page{float:right;margin-left:12px}
#templateDesignerModal.native-document-workspace .word-block{position:absolute;box-sizing:border-box;padding:2px 4px;line-height:1.18;outline:none;overflow:hidden;z-index:3;cursor:text;border-radius:1px;caret-color:#111;transition:box-shadow .08s,background-color .08s}
#templateDesignerModal.native-document-workspace .word-block.word-editable:hover{box-shadow:inset 0 0 0 1px rgba(43,87,154,.22)}
#templateDesignerModal.native-document-workspace .word-block.word-empty:not(:hover):not(.selected){background:transparent!important;box-shadow:none!important}
#templateDesignerModal.native-document-workspace .word-block.selected{box-shadow:inset 0 0 0 2px #2b579a!important;background-image:linear-gradient(rgba(43,87,154,.035),rgba(43,87,154,.035))}
#templateDesignerModal.native-document-workspace .word-block.selected-range:not(.selected){box-shadow:inset 0 0 0 1px rgba(43,87,154,.22)}
#templateDesignerModal.native-document-workspace .word-block.word-locked{cursor:default;background-image:linear-gradient(rgba(148,163,184,.045),rgba(148,163,184,.045))}
#templateDesignerModal.native-document-workspace .word-block.tpl-variable-cell{background-color:#fff1f2!important;color:#c1121f!important;font-weight:700}
#templateDesignerModal.native-document-workspace .word-block.tpl-section-cell{background-color:#fff8dc!important;color:#92400e!important;font-weight:700}
#templateDesignerModal.native-document-workspace .tpl-cell-editor{font:inherit!important;color:inherit!important;background:#fff!important;line-height:1.2!important;resize:none!important}
#templateDesignerModal.native-document-workspace .tpl-sheet-tabs:before{content:'Bagian Dokumen:';align-self:center;margin-right:.25rem;color:#475569;font:600 11px Segoe UI,Arial,sans-serif}
#templateDesignerModal.native-document-workspace .tpl-sheet-tab[title="Tambah worksheet"]{font-size:0}
#templateDesignerModal.native-document-workspace .tpl-sheet-tab[title="Tambah worksheet"]:after{content:'＋ Bagian';font-size:.75rem}

/* v8.10.51 — free-position text box controls in Document Designer */
#templateDesignerModal.native-document-workspace .word-box-move,#templateDesignerModal.native-document-workspace .word-box-resize{display:none;position:absolute;width:10px;height:10px;background:#2b579a;border:1px solid #fff;z-index:20;box-shadow:0 0 0 1px #2b579a}
#templateDesignerModal.native-document-workspace .word-block.selected .word-box-move,#templateDesignerModal.native-document-workspace .word-block.selected .word-box-resize{display:block}
#templateDesignerModal.native-document-workspace .word-box-move{left:-6px;top:-6px;cursor:move;border-radius:50%}
#templateDesignerModal.native-document-workspace .word-box-resize{right:-6px;bottom:-6px;cursor:nwse-resize}
#templateDesignerModal.native-document-workspace .word-block.tpl-variable-cell:before{content:'VAR';position:absolute;right:2px;top:1px;font:700 7px Segoe UI;color:#c1121f;opacity:.75}

/* HPO v8.11.21 — compact Setup Awal, drag/drop affordance, and status disclosure. */
#step1>input[type="date"],#step1 #nativePriorDate,#step1 label:has(#nativePriorDate){display:none!important}
.asset-movement-grid{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(245px,1fr));gap:10px!important;margin-top:10px}
#assetInputBox{display:none}
#assetInputBox.HPO-funded-visible{display:block!important}
.HPO-run-details{margin-top:8px;border:1px solid #dbe2ea;border-radius:9px;background:#fff}
.HPO-run-details>summary{cursor:pointer;padding:8px 10px;font-size:.78rem;font-weight:700;color:#334155;list-style:none}
.HPO-run-details>summary::-webkit-details-marker{display:none}
.HPO-run-details>summary:before{content:'▸';display:inline-block;margin-right:6px;transition:.15s}
.HPO-run-details[open]>summary:before{transform:rotate(90deg)}
.HPO-run-details .order-meta,.HPO-run-details .validation-success,.HPO-run-details .waiting-box,.HPO-run-details .action-row{margin:0 10px 9px}
.appendix-action-stack{display:grid!important;grid-template-columns:1fr;gap:7px;max-width:270px;align-items:stretch}
.appendix-action-stack .btn{justify-content:flex-start;display:flex;gap:7px;align-items:center;width:100%}
.appendix-action-stack .appendix-download{background:#2563eb!important;color:#fff!important;border-color:#2563eb!important}
.appendix-action-stack .appendix-preview{background:#fff!important;color:#334155!important;border-color:#cbd5e1!important}
.HPO-drop-hint{display:flex;align-items:center;gap:6px;margin-top:6px;padding:6px 9px;border:1px dashed #93c5fd;border-radius:8px;background:#f8fbff;color:#475569;font-size:.72rem;line-height:1.3}
.HPO-drop-hint:before{content:'⇩';font-weight:900;color:#2563eb}
.HPO-detail-toggle{white-space:nowrap}
.order-detail-collapsed{display:none!important}

/* HPO v8.11.22 — Setup Awal hotfix. */
#step1 #valuationDate,#step1 input#valuationDate{display:none!important;width:0!important;height:0!important;position:absolute!important;pointer-events:none!important;opacity:0!important}
#assetInputBox.HPO-funded-visible{display:block!important;visibility:visible!important;opacity:1!important}
#assetInputBox.HPO-funded-visible .asset-movement-grid{display:grid!important}

/* Profile Akun navigation sections */
.HPO-shell .partner-profile-tabs{display:flex;flex-wrap:wrap;gap:8px;padding:8px 0 12px;border-bottom:1px solid #dce7ec;margin-bottom:12px;min-width:0}
.HPO-shell .partner-profile-tabs [data-profile-section]{white-space:normal;max-width:100%}
.HPO-shell .partner-profile-card{min-width:0;overflow:hidden}
.HPO-shell #partnerProfileSectionContent{min-width:0;overflow-x:hidden}

/* Partner Profile Akun: compact master/detail navigation with one section visible at a time. */
.HPO-shell .partner-profile-layout{display:grid;grid-template-columns:minmax(150px,210px) minmax(0,1fr);gap:16px;align-items:start;min-width:0}
.HPO-shell .partner-profile-tabs{display:flex;flex-direction:column;align-items:stretch;gap:6px;padding:6px;border:1px solid #dce7ec;border-radius:12px;background:#f7fafc;position:sticky;top:12px;min-width:0}
.HPO-shell .partner-profile-tabs [data-profile-section]{text-align:left;white-space:normal;max-width:100%;justify-content:flex-start}
.HPO-shell .partner-profile-section{min-width:0;overflow:hidden}
.HPO-shell .partner-billing-settings{margin-top:12px}
.HPO-shell .partner-billing-settings>label{display:flex;flex-direction:column;gap:6px;min-width:0}
.HPO-shell .partner-billing-settings .inline-check{display:flex;align-items:center;gap:8px}
@media(max-width:760px){.HPO-shell .partner-profile-layout{grid-template-columns:minmax(0,1fr)}.HPO-shell .partner-profile-tabs{position:static;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));max-height:34vh;overflow:auto}.HPO-shell .partner-profile-section{min-width:0}}
.partner-master-table-wrap{max-width:100%;overflow-x:auto}.partner-master-table{width:100%;min-width:680px}.partner-master-table th,.partner-master-table td{vertical-align:top}.partner-master-table td:last-child{min-width:150px}.partner-directory-detail[hidden]{display:none}.partner-directory-detail>td{padding:8px 12px 16px;background:#f8fafc}.partner-directory-detail .detail-card{margin:0}.partner-directory-search{display:flex;align-items:center;gap:12px;max-width:520px;margin:12px 0;font-weight:600}.partner-directory-search input{font-weight:400}.partner-directory-row[hidden]{display:none}@media(max-width:720px){.partner-master-table-wrap{overflow-x:hidden}.partner-master-table{min-width:0;table-layout:fixed}.partner-master-table th,.partner-master-table td{padding:7px 5px;font-size:12px;overflow-wrap:anywhere}.partner-master-table th:nth-child(4),.partner-master-table td:nth-child(4){display:none}.partner-master-table td:last-child{min-width:0}.partner-directory-search{align-items:flex-start;flex-direction:column;max-width:none}.partner-directory-search input{width:100%}}
.partner-master-split{display:grid;grid-template-columns:minmax(210px,260px) minmax(0,1fr);gap:16px;align-items:start;width:100%;max-width:100%;min-width:0;overflow-x:hidden}.partner-master-picker,.partner-master-selected{min-width:0;max-width:100%;border:1px solid #dce5eb;border-radius:12px;background:#fff;padding:14px;box-shadow:0 3px 14px rgba(18,43,62,.05)}.partner-master-picker{position:sticky;top:12px}.partner-master-picker h4{margin:0 0 10px;color:#17324d}.partner-master-search{display:grid;gap:6px;font-size:12px;font-weight:700;margin-bottom:10px}.partner-master-partner-list{display:flex;flex-direction:column;gap:6px;max-height:min(68vh,720px);overflow-y:auto;overflow-x:hidden}.partner-master-choice{display:flex;flex-direction:column;align-items:flex-start;gap:3px;width:100%;min-width:0;padding:10px 11px;border:1px solid #d7e1e8;border-radius:9px;background:#f8fafc;color:#18334b;text-align:left;cursor:pointer;overflow-wrap:anywhere}.partner-master-choice:hover,.partner-master-choice.active{border-color:#2876b8;background:#eaf4fc}.partner-master-choice.active{box-shadow:inset 3px 0 #2876b8}.partner-master-choice span{font-size:12px;color:#64748b}.partner-master-choice[hidden]{display:none}.partner-master-selected{min-height:240px;overflow-x:hidden}.partner-master-detail-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:14px}.partner-master-detail-head h3{margin:0 0 5px;overflow-wrap:anywhere}.partner-master-meta{display:flex;align-items:center;gap:8px;color:#64748b;font-size:13px}.partner-master-detail-tabs{display:flex;flex-wrap:wrap;gap:6px;padding:8px 0 12px;border-bottom:1px solid #e5edf2}.partner-master-section-content{min-width:0;max-width:100%;overflow-x:hidden;padding-top:12px}.partner-master-section-content .compact-form-grid{min-width:0}.partner-master-editor-entry{margin-top:14px}.partner-master-empty{padding:30px 14px;color:#64748b;text-align:center;background:#f8fafc;border-radius:9px}.partner-master-add-panel{max-width:100%;overflow:hidden}@media(max-width:760px){.partner-master-split{grid-template-columns:minmax(0,1fr)}.partner-master-picker{position:static}.partner-master-partner-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));max-height:36vh}.partner-master-detail-head{align-items:flex-start}.partner-master-detail-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.partner-master-choice{font-size:12px;padding:8px}}


/* v8.11.35: make the document editor close control visible in the upper-right corner. */
#templateDesignerModal .template-designer-head{position:relative!important;padding-right:96px!important}
#templateDesignerModal .template-designer-head #tplClose{position:absolute!important;top:6px!important;right:8px!important;z-index:120!important;background:#dc2626!important;border-color:#b91c1c!important;color:#fff!important;font-weight:800!important;box-shadow:0 2px 6px rgba(127,29,29,.25)}
#templateDesignerModal.tpl-archive-readonly #templateDirty{color:#9a3412!important;font-weight:800}

/* v8.11.36: clearly identify required Partner registration inputs. */
.required-asterisk{color:#dc2626!important;font-weight:800;margin-left:2px}

/* HPO v8.11.37 — Partner list lives under its master menu; detail gets the full workspace width. */
.master-local-nav .partner-master-sidebar-section{display:grid;gap:7px;margin:9px 2px 2px;padding:9px 3px 2px;border-top:1px solid #d5e1e8;min-width:0}
.master-local-nav .partner-master-sidebar-section[hidden]{display:none!important}
.master-local-nav .partner-master-add-btn{width:100%;border:0;border-radius:8px;background:#1769aa;color:#fff;text-align:center;font-weight:800;padding:9px 10px;margin:0;cursor:pointer}
.master-local-nav .partner-master-add-btn:hover{background:#12578d}
.partner-master-sidebar-section .partner-master-search{display:grid;gap:5px;font-size:11px;font-weight:750;margin:0;min-width:0}
.partner-master-sidebar-section .partner-master-search input{min-width:0;width:100%;font-size:12px;padding:7px}
.partner-master-sidebar-section .partner-master-partner-list{display:flex;flex-direction:column;gap:5px;max-height:min(40vh,400px);overflow-y:auto;overflow-x:hidden;min-width:0}
.partner-master-sidebar-section .partner-master-choice{margin:0;padding:8px 9px;border:1px solid #d7e1e8;background:#fff;line-height:1.25}
.partner-master-sidebar-section .partner-master-choice strong{font-size:12px;font-weight:750}
.partner-master-sidebar-section .partner-master-choice span{font-size:10px;color:#64748b}
.partner-master-sidebar-section .partner-master-choice.active{border-color:#2876b8;background:#eaf4fc;box-shadow:inset 3px 0 #2876b8}
.partner-master-archived{display:grid;gap:7px;padding:8px;border:1px solid #e0e7ed;border-radius:9px;background:#f8fafc}.partner-master-archived[hidden]{display:none!important}.partner-master-archived-row{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px;border:1px solid #e1e8ee;border-radius:8px;background:#fff}.partner-master-archived-row>span{display:grid;gap:3px;min-width:0;overflow-wrap:anywhere}.partner-master-archived-row strong{font-size:11px}.partner-master-archived-row small{font-size:10px;color:#64748b}
.partner-master-detail-full{width:100%;max-width:100%;min-width:0}
.partner-master-detail-full .partner-master-section-content{width:100%;max-width:100%;min-width:0}
.partner-master-add-panel{width:100%;margin:0 0 14px}
.partner-master-add-panel[hidden]{display:none!important}
.HPO-toast-region{position:fixed;top:50%;left:50%;right:auto;transform:translate(-50%,-50%);z-index:60000;display:grid;gap:9px;width:min(520px,calc(100vw - 28px));max-height:75vh;overflow:auto;pointer-events:none}
.HPO-toast{display:flex;align-items:flex-start;gap:12px;padding:13px 14px;border:1px solid #86efac;border-left:5px solid #16a34a;border-radius:10px;background:#f0fdf4;color:#14532d;box-shadow:0 10px 30px rgba(15,23,42,.2);font-size:14px;line-height:1.4;pointer-events:auto;animation:HPO-toast-in .18s ease-out}
.HPO-toast-error{background:#fff1f2;border-color:#fda4af;border-left-color:#e11d48;color:#881337}
.HPO-toast-warning{background:#fff1f2;border-color:#fda4af;border-left-color:#e11d48;color:#881337}
.HPO-toast-success{background:#ecfdf3;border-color:#a7f3d0;border-left-color:#16a34a;color:#14532d}
.HPO-toast-close{flex:0 0 24px;margin:-4px -5px 0 auto;border:0;border-radius:6px;background:transparent;color:inherit;font-size:21px;line-height:1;cursor:pointer}
.HPO-toast-close:hover{background:rgba(15,23,42,.08)}
.HPO-toast.is-leaving{opacity:0;transform:translateY(-5px);transition:opacity .18s,transform .18s}
@keyframes HPO-toast-in{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:900px){.master-local-nav .partner-master-sidebar-section{grid-column:1/-1}.master-local-nav .partner-master-partner-list{max-height:30vh}.partner-master-selected{padding:10px}}
@media(max-width:560px){.HPO-toast-region{width:calc(100vw - 20px);max-height:70vh}.partner-master-sidebar-section .partner-master-partner-list{display:flex;max-height:28vh}}

/* v8.11.50 — approval status and checklist visibility. */
.approval-waiting-message{display:inline-block;color:#1769aa;font-size:1.7rem;font-weight:800;line-height:1.35}
.gate-check.satisfied,.gate-status.satisfied{color:#15803d!important;font-weight:800}
.gate-check.unsatisfied,.gate-status.unsatisfied{color:#dc2626!important;font-weight:800}
.gate-row .gate-check{font-size:1.05rem}
.workpaper-output-checklist{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:.55rem;margin:.75rem 0}
.workpaper-output-checklist label{display:flex;align-items:center;gap:.55rem;padding:.55rem .7rem;border:1px solid #d8e1e8;border-radius:8px;background:#fff;cursor:pointer}
.workpaper-output-checklist input{accent-color:#1769aa}
.participant-detail-toggle{display:flex;align-items:center;gap:.65rem;margin:0 0 .75rem}
#participantDetailsContent[hidden]{display:none!important}
@media(max-width:640px){.approval-waiting-message{font-size:1.5rem}}
/* Editable workflow email preview */
.HPO-email-dialog{width:min(760px,calc(100vw - 24px));max-width:none;max-height:calc(100vh - 28px);padding:0;border:0;border-radius:16px;background:transparent;color:inherit;overflow:visible}
.HPO-email-dialog::backdrop{background:rgba(15,23,42,.58);backdrop-filter:blur(2px)}
.HPO-email-card{max-height:calc(100vh - 28px);overflow:auto;background:var(--surface,#fff);border:1px solid var(--border,#dbe2ea);border-radius:16px;padding:22px;box-shadow:0 24px 70px rgba(15,23,42,.26);display:grid;gap:14px}
.HPO-email-card>header,.HPO-email-card>footer{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex-wrap:wrap}
.HPO-email-card h2{margin:0;font-size:1.2rem}.HPO-email-card header p{margin:4px 0 0;color:var(--text-muted,#64748b)}
.HPO-email-card>label{display:grid;gap:6px;font-weight:600}.HPO-email-card label small,.HPO-email-attachments small{font-weight:400;color:var(--text-muted,#64748b)}
.HPO-email-card textarea{min-height:180px;resize:vertical;line-height:1.5;white-space:pre-wrap}
.HPO-email-attachments{background:#f8fafc;border:1px solid #dbe2ea;border-radius:10px;padding:12px}.HPO-email-attachments ul{margin:8px 0;padding-left:22px}.HPO-email-save-template{display:flex!important;align-items:center;gap:8px;font-weight:400!important}.HPO-email-message{margin:0;color:#b42318;min-height:1.2em}
@media(max-width:560px){.HPO-email-card{padding:15px}.HPO-email-card>footer{justify-content:stretch}.HPO-email-card>footer .btn{flex:1}}
.font-master-card,.font-master-list,.font-master-upload,.partner-font-defaults{margin:.8rem 0;padding:1rem;border:1px solid var(--border,#dbe3ea);border-radius:10px;background:#fff}.font-family-list{display:flex;flex-wrap:wrap;gap:.45rem}.font-family-list span{padding:.3rem .55rem;border:1px solid #dbe3ea;border-radius:6px;background:#f8fafc}.font-master-upload{display:flex;align-items:end;gap:.75rem;flex-wrap:wrap}.font-master-upload label{flex:1 1 260px}.font-master-row{display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding:.65rem 0;border-top:1px solid #e5eaf0}.font-master-row small{display:block;color:#64748b;margin-top:.2rem}.partner-font-defaults .native-grid{grid-template-columns:repeat(auto-fit,minmax(190px,1fr))}

/* Shared fixed overlay guarantees HPO popups are centered in the viewport,
   independent of browser native dialog placement, zoom, or page scroll. */
.HPO-popup-overlay{position:fixed!important;inset:0!important;z-index:70000!important;display:grid!important;place-items:center!important;box-sizing:border-box!important;padding:20px!important;background:rgba(25,35,48,.48);backdrop-filter:blur(2px)}
.HPO-popup-card{box-sizing:border-box;width:min(520px,calc(100vw - 32px));max-height:min(80vh,640px);overflow:auto;margin:0;padding:22px 24px 18px;border:2px solid #93c5fd;border-radius:16px;background:#eff6ff;color:#1e3a8a;box-shadow:0 24px 80px rgba(15,23,42,.3);outline:none}
.HPO-popup-header{display:flex;align-items:center;gap:12px;margin-bottom:12px}.HPO-popup-header h2{font-size:1.12rem;margin:0;color:#1d4ed8}
.HPO-popup-mark{display:inline-grid;place-items:center;flex:0 0 34px;width:34px;height:34px;border-radius:50%;background:#dbeafe;color:#1d4ed8;font-weight:900;font-size:1.15rem}
.HPO-popup-message{margin:0;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere}.HPO-popup-input{margin-top:14px;min-height:42px}.HPO-popup-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:9px;margin-top:20px}
.HPO-popup-password-wrap{margin-top:14px}.HPO-popup-password-wrap .HPO-popup-input{margin-top:0}
.HPO-popup-success .HPO-popup-card{border-color:#86efac;background:#ecfdf3;color:#14532d}.HPO-popup-success .HPO-popup-header h2{color:#166534}.HPO-popup-success .HPO-popup-mark{background:#bbf7d0;color:#166534}
.HPO-popup-warning .HPO-popup-card{border-color:#fda4af;background:#fff1f2;color:#881337}.HPO-popup-warning .HPO-popup-header h2{color:#9f1239}.HPO-popup-warning .HPO-popup-mark{background:#fbcfe8;color:#9d174d}
.HPO-popup-info .HPO-popup-card{border-color:#93c5fd;background:#eff6ff;color:#1e3a8a}
@media(max-width:520px){.HPO-popup-overlay{padding:12px!important}.HPO-popup-card{padding:18px}.HPO-popup-actions{display:grid;grid-template-columns:1fr 1fr}.HPO-popup-actions .btn{width:100%}}
.workflow-rejection-notice{display:flex;flex-direction:column;gap:5px;margin:10px 0;padding:12px 14px;border:1px solid #f2a7b5;border-left:5px solid #dc3545;border-radius:8px;background:#fff1f2;color:#7f1d1d}.workflow-rejection-notice>strong{color:#991b1b}.workflow-rejection-notice>span,.workflow-rejection-notice>small{color:#7f1d1d}.workflow-rejection-notice p{margin:2px 0 0}.workflow-rejection-reason{color:#c1121f;font-weight:700;white-space:pre-wrap;overflow-wrap:anywhere}.client-workflow-notices .status-chip.rejected{background:#fff1f2;color:#b42332;border-color:#f2a7b5}
.eng-step.rejected{border-color:#dc3545!important;background:#fff1f2!important;color:#991b1b!important}.eng-step.rejected small{color:#b42332!important;font-weight:700}

/* Review Aktuaria: explicit feedback while detail data is loading or unavailable. */
.review-loading{min-height:72px;display:flex;align-items:center;color:#365a6b;background:#f4f8fa}
.review-load-error{border-color:#e5a2ad!important;background:#fff1f3!important;color:#722b38}
.review-load-error h3{color:#8b2635!important}
.review-queue-card [data-action="review-actuarial"][aria-busy="true"]{opacity:.75;cursor:wait}

/* Delayed loading feedback; the process shield locks the page once an action takes over one second. */
.HPO-global-loading{position:fixed;z-index:3000;inset:0;display:grid;grid-template-columns:24px minmax(0,min(360px,calc(100vw - 88px)));grid-template-rows:auto 3px;align-content:center;justify-content:center;gap:10px 12px;padding:24px;background:rgba(241,246,250,.72);backdrop-filter:blur(2px);-webkit-backdrop-filter:blur(2px);color:#163d52;pointer-events:none}
.HPO-global-loading::before{content:"";position:absolute;top:50%;left:50%;width:min(420px,calc(100vw - 32px));height:96px;transform:translate(-50%,-50%);border:1px solid rgba(198,217,229,.9);border-left:4px solid #147b9a;border-radius:14px;background:rgba(255,255,255,.94);box-shadow:0 14px 40px rgba(15,45,65,.16)}
.HPO-process-shield{position:fixed;inset:0;z-index:2998;background:transparent;cursor:progress}.HPO-process-shield[hidden]{display:none!important}
body.HPO-processing{overflow:hidden!important}
.payment-proof-upload-control{position:relative;display:inline-flex;align-items:center;gap:7px;max-width:100%;flex-wrap:wrap}.payment-proof-file-picker{position:relative!important;display:inline-flex!important;align-items:center;overflow:hidden;cursor:pointer}.payment-proof-file-picker[aria-disabled="true"]{cursor:progress;pointer-events:none;opacity:.75}.payment-proof-file-input{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;margin:0!important;padding:0!important;opacity:0!important;cursor:pointer!important;z-index:2!important}.payment-proof-file-picker:focus-within{outline:3px solid rgba(37,99,235,.3);outline-offset:2px}.payment-proof-upload-status{color:#52616b;font-size:.75rem}.payment-proof-upload-control.is-uploading .btn{cursor:progress}
.HPO-global-loading[hidden]{display:none!important}
.HPO-global-loading-copy{position:relative;z-index:1;align-self:center;font-size:.92rem;font-weight:700;line-height:1.35;overflow-wrap:anywhere}
.HPO-global-loading-spinner{position:relative;z-index:1;width:22px;height:22px;border:3px solid #cfe2eb;border-top-color:#117693;border-radius:50%;animation:HPO-loading-spin .72s linear infinite}
.HPO-global-loading-track{position:relative;z-index:1;grid-column:1/-1;display:block;height:3px;overflow:hidden;border-radius:3px;background:#e8f0f4}
.HPO-global-loading-track i{display:block;width:35%;height:100%;border-radius:3px;background:#1686a5;animation:HPO-loading-progress 1.2s ease-in-out infinite}
@keyframes HPO-loading-spin{to{transform:rotate(360deg)}}
@keyframes HPO-loading-progress{0%{transform:translateX(-110%)}100%{transform:translateX(320%)}}
@media(prefers-reduced-motion:reduce){.HPO-global-loading-spinner,.HPO-global-loading-track i{animation-duration:2s}}
@media(max-width:520px){.HPO-global-loading{grid-template-columns:22px minmax(0,calc(100vw - 76px));gap:9px 10px;padding:18px}.HPO-global-loading::before{height:92px}}
.HPO-draft-state{margin:0 0 .65rem;padding:.35rem .6rem;border-radius:6px;font-size:.78rem;color:#2563eb;background:#eff6ff}.HPO-draft-state[data-state="saved"]{color:#166534;background:#ecfdf3}.HPO-draft-state[data-state="error"]{color:#9f1239;background:#fff1f2}.HPO-draft-state[data-state="saving"]{color:#1d4ed8;background:#eff6ff}
.HPO-draft-recovery{display:flex;align-items:center;justify-content:space-between;gap:.7rem;flex-wrap:wrap;margin:0 0 .65rem;padding:.65rem .8rem;border:1px solid #93c5fd;border-radius:8px;background:#eff6ff;color:#1e3a8a}.HPO-draft-recovery>div{display:flex;gap:.45rem;align-items:center}.HPO-draft-recovery .btn-link{border:0;background:transparent;color:#475569;text-decoration:underline}

/* Partner workspace branding */
.partner-brand-mark{display:inline-grid;place-items:center;min-width:52px;height:52px;padding:0 8px;border-radius:12px;background:var(--primary,#1F4E78);color:#fff;font-weight:800;letter-spacing:.04em}
.workspace-brand-card{border-top:3px solid var(--primary,#1F4E78)}
.workspace-brand-card-layout{display:grid;grid-template-columns:minmax(230px,.9fr) minmax(0,1.7fr);gap:22px;align-items:start}
.workspace-brand-people h4{margin:0 0 10px;color:#334155;font-size:.92rem}
.workspace-signatory-list{display:grid;grid-template-columns:1fr;gap:8px}
.workspace-signatory-card{display:grid;grid-template-columns:60px minmax(0,1fr);gap:10px;align-items:center;min-width:0;padding:9px;border:1px solid #e1e8f0;border-radius:10px;background:#f8fafc}
.workspace-signatory-card>img,.workspace-signatory-card>.workspace-signatory-placeholder{width:60px;height:60px;border-radius:9px;object-fit:cover;background:#e8edf4}
.workspace-signatory-card>.workspace-signatory-placeholder{display:grid;place-items:center;color:#617188;font-size:.9rem;font-weight:700}
.workspace-signatory-copy{display:flex;min-width:0;flex-direction:column;gap:3px}
.workspace-signatory-copy strong,.workspace-signatory-copy span,.workspace-signatory-copy small{overflow-wrap:anywhere}
.workspace-signatory-copy strong{font-size:.88rem}.workspace-signatory-copy span,.workspace-signatory-copy small{color:#506076;font-size:.78rem}
.workspace-brand-card-head{display:flex;align-items:center;gap:14px;min-width:0}
.workspace-brand-card-head h3{margin:0 0 5px}.workspace-brand-card-head p{margin:0;color:#46566b}.workspace-brand-card-head small{display:block;margin-top:4px;color:#66758a}
.workspace-brand-summary{margin-top:12px;padding:11px 13px;border:1px solid #e1e8f0;border-left:3px solid var(--primary,#1F4E78);border-radius:9px;background:#f8fafc}
.workspace-brand-summary h4{margin:0 0 4px;color:var(--primary,#1F4E78);font-size:.9rem}
.workspace-brand-summary p{margin:0;color:#46566b;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere}
.workspace-brand-empty{margin:0;padding:10px;color:#66758a;font-size:.84rem;border:1px dashed #d1d9e3;border-radius:9px}
.partner-profile-summary-field{grid-column:1/-1}
.partner-profile-summary-field textarea{min-height:92px;resize:vertical}
.partner-profile-summary-field small{display:block;margin-top:5px;color:#66758a}
.workspace-brand-card-logo{max-width:110px;max-height:64px;object-fit:contain;flex:none}
@media(max-width:760px){.workspace-brand-card-layout{grid-template-columns:1fr;gap:16px}.workspace-signatory-list{grid-template-columns:repeat(auto-fit,minmax(210px,1fr))}}
.partner-signatory-card{display:grid;grid-template-columns:130px minmax(0,1fr);gap:16px;align-items:start;padding:16px;margin:12px 0;border:1px solid #dbe3ec;border-radius:12px;background:#fff}
.partner-signatory-photo{width:120px;height:120px;border-radius:12px;background:#f1f5f9;display:grid;place-items:center;overflow:hidden;color:#64748b;text-align:center;font-size:.85rem}
.partner-signatory-photo img{width:100%;height:100%;object-fit:cover}
.partner-signatory-card .master-actions{grid-column:1/-1}
@media(max-width:700px){.partner-signatory-card{grid-template-columns:1fr}.partner-signatory-photo{width:100%;height:180px}}
