:root{
  --brand-navy:#102a43;
  --brand-blue:#1665d8;
  --brand-green:#168a55;
  --brand-red:#df3f43;
  --surface:#ffffff;
  --surface-soft:#f5f8fb;
  --line:#dfe7ef;
  --page:#edf2f5;
}

body.dashboard-app{
  min-height:100vh;
  color:var(--brand-navy);
  background:
    radial-gradient(circle at 7% 0%,rgba(22,101,216,.09),transparent 25rem),
    radial-gradient(circle at 94% 16%,rgba(22,138,85,.08),transparent 24rem),
    linear-gradient(180deg,#f8fafb 0%,var(--page) 100%);
}

body.dashboard-app::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  opacity:.38;
  background-image:linear-gradient(rgba(16,42,67,.025) 1px,transparent 1px),linear-gradient(90deg,rgba(16,42,67,.025) 1px,transparent 1px);
  background-size:32px 32px;
}

.dashboard-app .shell{max-width:1480px;padding:14px 16px 34px;position:relative;z-index:1}
.dashboard-app .hero,.dashboard-app .panel{
  border:1px solid var(--line);
  background:rgba(255,255,255,.94);
  backdrop-filter:blur(16px);
  border-radius:20px;
  box-shadow:0 12px 34px rgba(22,41,61,.07);
}
.dashboard-app .hero{padding:14px 16px 15px;color:var(--brand-navy);overflow:visible}
.dashboard-app .hero::before{
  content:"";
  position:absolute;
  top:-1px;
  left:20px;
  right:20px;
  height:4px;
  border-radius:0 0 999px 999px;
  background:linear-gradient(90deg,var(--brand-red) 0 28%,var(--brand-blue) 28% 67%,var(--brand-green) 67%);
}
.dashboard-app .top{align-items:center;gap:12px}
.dashboard-app .brand-title{display:flex;align-items:center;gap:12px;min-width:260px}
.dashboard-app .brand-mark{width:38px;height:38px;display:grid;align-content:center;gap:4px;padding:8px;border-radius:12px;background:#f4f7fa;border:1px solid var(--line);box-shadow:0 6px 16px rgba(16,42,67,.07)}
.dashboard-app .brand-mark i{display:block;height:4px;border-radius:999px}
.dashboard-app .brand-mark i:nth-child(1){width:72%;background:var(--brand-red)}
.dashboard-app .brand-mark i:nth-child(2){width:100%;background:var(--brand-blue)}
.dashboard-app .brand-mark i:nth-child(3){width:84%;background:var(--brand-green)}
.dashboard-app .brand-mark.app-icon{padding:0;overflow:hidden;background:#eef4f6}
.dashboard-app .brand-mark.app-icon img{display:block;width:100%;height:100%;object-fit:cover}
.dashboard-app .brand-kicker{display:block;margin-bottom:3px;color:#708197;font-size:10px;font-weight:800;letter-spacing:.14em;text-transform:uppercase}
.dashboard-app h1{font-size:clamp(24px,2.2vw,32px);color:var(--brand-navy);letter-spacing:-.035em}
.dashboard-app .meta{gap:7px;justify-content:flex-end}
.dashboard-app .pill{
  min-height:36px;
  padding:8px 11px;
  border:1px solid var(--line);
  background:#f6f8fa;
  color:#29435e;
  border-radius:12px;
  font-size:12px;
  font-weight:650;
}
.dashboard-app .pill .dot{width:7px;height:7px;background:var(--brand-green);box-shadow:0 0 0 4px rgba(22,138,85,.12)}
.dashboard-app .meta-action{background:#fff;color:#24415f;border-color:#d8e3ed}
.dashboard-app .meta-action:hover{color:#0f57bd;border-color:#9fc0eb;background:#f5f9ff;transform:translateY(-1px)}

.dashboard-app .controls{margin-top:11px;gap:8px}
.dashboard-app .control{
  min-height:58px;
  padding:8px 10px;
  gap:5px;
  border:1px solid #e2e9f0;
  background:#f5f7f9;
  border-radius:13px;
}
.dashboard-app .control label,.dashboard-app label{color:#73849a;font-size:10px;font-weight:800;letter-spacing:.11em}
.dashboard-app .select-trigger,.dashboard-app .field,.dashboard-app .save-select,.dashboard-app .ghost,.dashboard-app .toggle button{
  min-height:37px;
  padding:8px 11px;
  border:1px solid #d8e2eb;
  background:#fff;
  color:#213a55;
  border-radius:10px;
  font-size:12px;
  font-weight:650;
}
.dashboard-app .toggle button.active{color:#fff;border-color:transparent;background:linear-gradient(135deg,#168a55,#20a96a)}
.dashboard-app .ghost:hover,.dashboard-app .select-trigger:hover{border-color:#9ab8da;background:#f8fbff}
.dashboard-app .ghost.danger{color:#b92f35;border-color:#f0c9cb;background:#fff7f7}
.dashboard-app .saved-control{grid-template-columns:minmax(165px,1fr) auto}
.dashboard-app .save-actions .ghost{padding:7px 10px}
.dashboard-app .save-status{font-size:10px;color:#7a8ba0}
.dashboard-app .select-menu{background:#fff;border-color:#dce5ee;box-shadow:0 18px 46px rgba(20,41,62,.18)}
.dashboard-app .select-search{background:#f5f8fb;border-color:#dce5ee;color:#203a55}
.dashboard-app .select-option{color:#203a55}
.dashboard-app .select-option:hover,.dashboard-app .select-option.active{background:#eaf3ff;color:#1359ba}
.dashboard-app .select-trigger::after{border-color:#60758d}
.dashboard-app .save-select option{background:#fff;color:#203a55}

.dashboard-app .panel{margin-top:12px;color:var(--brand-navy);overflow:hidden}
.dashboard-app .panel-head{padding:14px 16px 0}
.dashboard-app .panel-head h2{font-size:19px;color:var(--brand-navy)}
.dashboard-app .panel-head p{font-size:12px;line-height:1.45;margin-top:4px;color:#66798f}
.dashboard-app .body{padding:12px 14px 14px}
.dashboard-app .cards{gap:9px;margin-bottom:10px}
.dashboard-app .card{
  min-height:86px;
  padding:13px 14px;
  border-radius:14px;
  border-color:#e1e8ef;
  box-shadow:0 7px 20px rgba(22,41,61,.045);
  position:relative;
  overflow:hidden;
}
.dashboard-app .card::after{content:"";position:absolute;right:-20px;bottom:-28px;width:76px;height:76px;border-radius:50%;background:rgba(22,101,216,.035)}
.dashboard-app .accent-blue,.dashboard-app .accent-teal,.dashboard-app .accent-green,.dashboard-app .accent-amber,.dashboard-app .accent-profit,.dashboard-app .accent-loss{border-top-width:3px}
.dashboard-app .k{font-size:10px;letter-spacing:.1em;color:#65788f}
.dashboard-app .v{font-size:clamp(22px,2.5vw,30px);margin-top:6px;color:#102a43}
.dashboard-app .s{font-size:11px;line-height:1.35;margin-top:6px;color:#718198}

.dashboard-app .table-card,.dashboard-app .detail-card,.dashboard-app .subtable,.dashboard-app .cluster{
  border-radius:14px;
  border-color:#e1e8ef;
  box-shadow:0 7px 20px rgba(22,41,61,.04);
}
.dashboard-app .table-head{padding:11px 13px}
.dashboard-app .table-head h3,.dashboard-app .detail-head h3{font-size:14px;color:var(--brand-navy)}
.dashboard-app .table-head small,.dashboard-app .detail-head p{font-size:11px;color:#718198}
.dashboard-app table{font-size:12px}
.dashboard-app th,.dashboard-app td{padding:9px 11px}
.dashboard-app th{background:#f3f7fa;color:#5d7189;font-size:10px;letter-spacing:.09em}
.dashboard-app .subtable th .sortable-head-btn{
  width:100%;
  min-width:max-content;
  justify-content:space-between;
  gap:8px;
  color:#4f657d;
  transition:color .15s ease;
}
.dashboard-app .subtable th .sortable-head-btn:hover{color:#145dbb}
.dashboard-app .subtable th .sort-mark{
  display:inline-grid;
  place-items:center;
  width:18px;
  height:18px;
  flex:0 0 18px;
  border-radius:6px;
  background:#e4ebf2;
  color:#536a82;
  font-size:11px;
  font-weight:900;
  letter-spacing:0;
}
.dashboard-app .subtable th .sortable-head-btn[aria-sort="ascending"] .sort-mark,
.dashboard-app .subtable th .sortable-head-btn[aria-sort="descending"] .sort-mark{
  color:#fff;
  background:var(--brand-blue);
  box-shadow:0 4px 10px rgba(22,101,216,.2);
}
.dashboard-app tr:hover td{background:#f7fafc}
.dashboard-app .status{padding:6px 9px;font-size:11px}
.dashboard-app .signal-pill{padding:8px 12px;font-size:13px}
.dashboard-app .signal-bar{height:13px}
.dashboard-app .detail-head{padding:12px 14px}
.dashboard-app .detail-kpis{gap:9px;padding:12px 12px 0}
.dashboard-app .mini-stat{padding:11px;border-radius:12px}
.dashboard-app .mini-stat .n{font-size:19px}
.dashboard-app .detail-grid{gap:9px;padding:12px}

.dashboard-app .audit-summary{margin:12px 0 0;padding:11px 14px;border-radius:14px;border-color:#dfe7ef;background:rgba(255,255,255,.94);box-shadow:0 8px 24px rgba(22,41,61,.05)}
.dashboard-app .audit-summary .title{font-size:10px}
.dashboard-app .audit-summary .value{font-size:18px;margin-top:4px}
.dashboard-app .audit-summary .desc{font-size:11px;margin-top:4px}

.page-loader{
  position:fixed;
  right:18px;
  top:18px;
  z-index:2500;
  display:flex;
  align-items:center;
  gap:10px;
  max-width:min(340px,calc(100vw - 32px));
  padding:10px 13px;
  color:#17344f;
  background:rgba(255,255,255,.96);
  border:1px solid #dbe5ee;
  border-radius:13px;
  box-shadow:0 16px 40px rgba(15,38,61,.16);
  opacity:0;
  visibility:hidden;
  transform:translateY(-10px);
  transition:.2s ease;
}
body.is-loading .page-loader{opacity:1;visibility:visible;transform:translateY(0)}
.page-loader strong{display:block;font-size:12px}
.page-loader small{display:block;margin-top:2px;color:#708197;font-size:10px}
.loader-spinner{width:18px;height:18px;flex:0 0 auto;border-radius:50%;border:2px solid #dce7f2;border-top-color:var(--brand-blue);animation:loader-spin .7s linear infinite}
body.is-loading .card .v{animation:loading-pulse 1.1s ease-in-out infinite alternate}
@keyframes loader-spin{to{transform:rotate(360deg)}}
@keyframes loading-pulse{to{opacity:.45}}

.dashboard-app .watermark{color:rgba(16,42,67,.46);text-shadow:none;font-size:9px;background:rgba(255,255,255,.65);padding:3px 8px;border-radius:999px}

@media (max-width:1100px){
  .dashboard-app .top{align-items:flex-start}
  .dashboard-app .meta{justify-content:flex-start}
}
@media (max-width:760px){
  .dashboard-app .shell{padding:8px 8px 28px}
  .dashboard-app .hero{padding:12px;border-radius:16px}
  .dashboard-app .hero::before{left:14px;right:14px}
  .dashboard-app .brand-mark{width:34px;height:34px;border-radius:10px}
  .dashboard-app h1{font-size:22px}
  .dashboard-app .brand-kicker{font-size:9px}
  .dashboard-app .meta{width:100%;flex-wrap:nowrap;overflow-x:auto;justify-content:flex-start}
  .dashboard-app .pill{min-height:34px;padding:7px 10px}
  .dashboard-app .controls{grid-template-columns:1fr!important}
  .dashboard-app .control{min-height:56px}
  .dashboard-app .panel{border-radius:16px}
  .dashboard-app .panel-head{padding:12px 12px 0}
  .dashboard-app .body{padding:10px}
  .dashboard-app .cards{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .dashboard-app .card{min-height:82px;padding:11px}
  .dashboard-app .v{font-size:22px}
  .dashboard-app .s{display:block;font-size:12px;line-height:1.45;color:#5f748c}
  .dashboard-app .panel-head h2{font-size:20px;line-height:1.25}
  .dashboard-app .panel-head p{font-size:13px;line-height:1.55}
  .dashboard-app .table-head h3,.dashboard-app .detail-head h3{font-size:16px;line-height:1.35}
  .dashboard-app .table-head small,.dashboard-app .detail-head p{font-size:12px;line-height:1.5}
  .dashboard-app table{font-size:13px}
  .dashboard-app .meta-action,.dashboard-app button{font-size:13px}
  .dashboard-app .card{min-height:104px}
  .page-loader{top:auto;right:10px;left:10px;bottom:12px;max-width:none}
}
@media (max-width:430px){.dashboard-app .cards{grid-template-columns:1fr!important}}
.unit-mobile-card-list{display:none}
@media (max-width:760px){
  .dashboard-app{overflow-x:hidden}
  .dashboard-app .unit-mobile-card-list{display:grid;gap:12px;min-width:0}
  .dashboard-app #auditPanel .table-card{display:none}
  .dashboard-app .recommendation-panel .table-scroll{display:none}
  .dashboard-app .recommendation-mobile-list{padding:4px 10px 12px}
  .dashboard-app .audit-mobile-list{padding:2px 0 8px}
  .unit-mobile-card{position:relative;min-width:0;border:1px solid #dce5ef;border-radius:18px;background:#fff;box-shadow:0 8px 24px rgba(20,45,75,.08);overflow:hidden}
  .unit-mobile-card::before{content:"";display:block;height:4px;background:#8296ad}
  .unit-mobile-card.is-buy::before,.unit-mobile-card.is-patuh::before{background:linear-gradient(90deg,#1b9a70,#42c293)}
  .unit-mobile-card.is-hold::before{background:linear-gradient(90deg,#536b8e,#8da0ba)}
  .unit-mobile-card.is-tidak::before{background:linear-gradient(90deg,#dc4a4a,#ef7a69)}
  .unit-mobile-card.is-pending::before{background:linear-gradient(90deg,#d3952e,#edbd62)}
  .mobile-empty-state{padding:20px 16px;border:1px dashed #ccd8e5;border-radius:16px;background:#f8fafc;color:#657992;text-align:center;font-size:13px;line-height:1.5}
  .mobile-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;padding:15px 15px 11px}
  .mobile-card-product{display:flex;align-items:center;gap:9px;min-width:0;color:#122a45;font-size:17px;font-weight:850;line-height:1.25;overflow-wrap:anywhere}
  .mobile-card-product .route-dot{flex:0 0 auto}
  .mobile-card-updated{margin-top:5px;color:#708197;font-size:11px;line-height:1.35}
  .mobile-card-head .signal-pill,.mobile-card-head .status{flex:0 0 auto;min-height:34px;padding:7px 10px;font-size:12px}
  .mobile-primary{margin:0 15px;padding:13px 14px;border-radius:15px;background:linear-gradient(135deg,#eef7ff,#f8fbff);border:1px solid #dbe8f5}
  .is-buy .mobile-primary{background:linear-gradient(135deg,#eaf9f3,#f7fcfa);border-color:#cdeadd}
  .mobile-primary-label{color:#657992;font-size:10px;font-weight:850;letter-spacing:.08em;text-transform:uppercase}
  .mobile-primary-value{margin-top:4px;color:#122a45;font-size:27px;font-weight:900;line-height:1.15;overflow-wrap:anywhere}
  .mobile-primary-note{margin-top:4px;color:#657992;font-size:11px;line-height:1.4}
  .mobile-quick-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;padding:11px 15px 0}
  .mobile-quick{min-width:0;padding:10px 11px;border:1px solid #e1e8f0;border-radius:13px;background:#f9fbfd}
  .mobile-quick span,.mobile-detail-item span,.mobile-stock-box span{display:block;color:#708197;font-size:10px;font-weight:800;letter-spacing:.05em;text-transform:uppercase}
  .mobile-quick strong,.mobile-detail-item strong,.mobile-stock-box strong{display:block;margin-top:4px;color:#18314f;font-size:15px;line-height:1.3;overflow-wrap:anywhere}
  .mobile-timeline{display:grid;grid-template-columns:minmax(0,1fr) 32px minmax(0,1fr);align-items:center;gap:5px;margin:11px 15px 0;padding:12px;border-radius:14px;background:#f7f9fc;border:1px solid #e2e9f1}
  .mobile-time{min-width:0}.mobile-time span{display:block;color:#708197;font-size:10px;font-weight:800;text-transform:uppercase}.mobile-time strong{display:block;margin-top:5px;color:#17314e;font-size:14px;line-height:1.3;overflow-wrap:anywhere}.mobile-time.after{text-align:right}.mobile-arrow{text-align:center;color:#2f6bff;font-size:20px;font-weight:900}
  .mobile-card-details{margin:10px 15px 0;border-top:1px solid #edf1f5}
  .mobile-card-details summary{min-height:44px;display:flex;align-items:center;justify-content:space-between;gap:8px;color:#37536f;font-size:13px;font-weight:800;cursor:pointer;list-style:none}.mobile-card-details summary::-webkit-details-marker{display:none}.mobile-card-details summary::after{content:"+";font-size:20px;color:#2f6bff}.mobile-card-details[open] summary::after{content:"−"}
  .mobile-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:0 0 11px}.mobile-detail-item{min-width:0;padding:9px 10px;border-radius:11px;background:#f8fafc}.mobile-detail-item.wide{grid-column:1/-1}
  .mobile-card-actions{display:grid;grid-template-columns:1fr;gap:8px;padding:11px 15px 15px}.mobile-card-btn{min-height:46px;border:1px solid #cbdaf0;border-radius:13px;background:#eef4ff;color:#2458c8;font:inherit;font-size:13px;font-weight:850;cursor:pointer}.mobile-card-btn.primary{border-color:#2f6bff;background:#2f6bff;color:#fff;box-shadow:0 8px 18px rgba(47,107,255,.2)}
  .mobile-audit-flow{display:grid;grid-template-columns:minmax(0,1fr) 34px minmax(0,1fr);align-items:center;gap:5px;margin:0 15px;padding:12px;border-radius:14px;background:#faf8ff;border:1px solid #e6def2}.mobile-stock-box{min-width:0}.mobile-stock-box:last-child{text-align:right}.mobile-flow-arrow{text-align:center;color:#77579d;font-size:20px;font-weight:900}
  .mobile-audit-conclusion{margin:10px 15px 0;padding:11px 12px;border-radius:13px;background:#f5f8fc;color:#425b76;font-size:12px;line-height:1.5;overflow-wrap:anywhere}
  .mobile-verification{margin:11px 15px 15px;padding-top:11px;border-top:1px solid #e8edf3}.mobile-verification-label{margin-bottom:8px;color:#60748d;font-size:10px;font-weight:850;letter-spacing:.07em;text-transform:uppercase}.mobile-verification .verif-toggle{display:grid;grid-template-columns:1fr 1fr;width:100%;gap:8px}.mobile-verification .verif-btn{width:100%;min-height:46px}.mobile-verification .verif-note{margin-top:9px;width:100%;min-height:46px}.mobile-verification .verif-hint{margin-top:7px;white-space:normal}
  .dashboard-app .audit-actions{width:100%;display:grid;grid-template-columns:1fr;align-items:stretch}.dashboard-app .audit-actions .ghost{width:100%;background:#2f6bff;color:#fff;border-color:#2f6bff}.dashboard-app .audit-actions .save-status{text-align:left}
}
@media (prefers-reduced-motion:reduce){.loader-spinner,.dashboard-app .card .v{animation:none!important}.page-loader{transition:none}}

/* Login and registration use the same bright operational identity. */
body.auth-app{
  color:var(--brand-navy);
  background:radial-gradient(circle at 8% 8%,rgba(22,101,216,.11),transparent 28rem),radial-gradient(circle at 92% 88%,rgba(22,138,85,.09),transparent 28rem),#eef3f6;
}
.auth-app .page{max-width:1120px;padding:22px;gap:14px;align-items:center}
.auth-app .brand,.auth-app .login{background:rgba(255,255,255,.94);border:1px solid #dce5ed;box-shadow:0 18px 50px rgba(21,44,66,.09);border-radius:22px}
.auth-app .brand{min-height:620px;padding:34px;justify-content:center;gap:40px}
.auth-app .brand::before{content:"";position:absolute;left:28px;right:28px;top:0;height:5px;border-radius:0 0 999px 999px;background:linear-gradient(90deg,var(--brand-red) 0 28%,var(--brand-blue) 28% 67%,var(--brand-green) 67%)}
.auth-app .brand::after{width:260px;height:260px;opacity:.45;background:linear-gradient(135deg,rgba(22,101,216,.13),rgba(22,138,85,.1))}
.auth-app .eyebrow{color:#637a92;font-size:10px;margin-bottom:12px}
.auth-app .brand h1{font-size:clamp(38px,4.8vw,60px);line-height:.98;color:var(--brand-navy);max-width:520px}
.auth-app .brand p{color:#61768d;max-width:460px}
.auth-app .security span{color:#496179;background:#f5f8fa;border-color:#dce5ed}
.auth-app .login{padding:24px}
.auth-app .login-head h2{color:var(--brand-navy);font-size:23px}
.auth-app .login-head p{color:#708197}
.auth-app .app-choice{gap:9px;margin:17px 0}
.auth-app .app-card{padding:13px;color:var(--brand-navy);background:#f6f8fa;border-color:#dce5ed;border-radius:14px}
.auth-app .app-card:hover{border-color:#9dbde3}
.auth-app .app-card.active{border-color:#68a0e8;background:#eef5ff;box-shadow:0 0 0 3px rgba(22,101,216,.08)}
.auth-app .app-card.unit.active{border-color:#75ba98;background:#edf8f2;box-shadow:0 0 0 3px rgba(22,138,85,.08)}
.auth-app .app-icon{width:36px;height:36px;margin-bottom:9px;border-radius:10px;font-size:16px}
.auth-app .app-card strong{font-size:14px}
.auth-app .app-card small{color:#718198;font-size:11px}
.auth-app .auth-tabs{margin-bottom:15px;background:#f1f4f7;border-color:#dce5ed;border-radius:12px}
.auth-app .auth-tab{color:#6d8095}
.auth-app .auth-tab.active{background:#fff;color:#173a5c;box-shadow:0 4px 12px rgba(20,42,63,.08)}
.auth-app .field label{color:#657990;font-size:10px}
.auth-app .input{padding:11px 13px;background:#f8fafb;border-color:#d9e3ec;color:#17344f;border-radius:12px}
.auth-app .input:focus{background:#fff;border-color:#72a2e1}
.auth-app .show-pass{background:#eaf0f5;color:#38536e}
.auth-app .scope-all{color:#536a82}
.auth-app .otp-btn{border-color:#bdd2ec;background:#eef5ff;color:#1857a8}
.auth-app .notice{background:#fff8e8;border-color:#f1deb0;color:#78571b}
.auth-app .message{color:#c43d43}.auth-app .message.ok{color:#168a55}
.auth-app .foot,.auth-app .field-help{color:#7a8ca0}
.auth-app>.watermark{color:rgba(16,42,67,.48)}

/* Historical keeps its analytical structure but shares the compact light shell. */
.page-history .hero-top{align-items:center}
.page-history .hero-controls{margin-top:11px;gap:8px}
.page-history .hero-controls .control{min-height:58px;padding:8px 10px}
.page-history .select,.page-history .field{min-height:37px;padding:8px 11px;background:#fff;color:#213a55;border:1px solid #d8e2eb;border-radius:10px;font-size:12px}
.page-history .btn{padding:8px 11px;border-radius:10px;font-size:12px}
.page-history .btn.link,.page-history .btn.ghost{background:#fff;color:#24415f;border-color:#d8e3ed}
.page-history .cards{gap:9px}
.page-history .grid2{gap:9px;margin-top:9px}
.page-history .chart-card,.page-history .stats-card{border-radius:14px;box-shadow:0 7px 20px rgba(22,41,61,.04)}

@media(max-width:820px){
  .auth-app .page{padding:10px;gap:10px}
  .auth-app .brand{min-height:180px;padding:24px;gap:14px}
  .auth-app .brand h1{font-size:38px}
  .auth-app .brand p{font-size:12px;margin-bottom:0}
  .auth-app .login{padding:17px}
}
