:root {
  --ink: #17211b;
  --ink-soft: #4e5a52;
  --paper: #f4f5ef;
  --surface: #ffffff;
  --surface-soft: #f7f7f2;
  --line: #dde1d8;
  --lime: #d9ef6f;
  --lime-strong: #bddb3f;
  --yellow: #ffd85c;
  --yellow-soft: #fff4bd;
  --mint: #d8f2df;
  --red: #d95555;
  --red-soft: #fee8e5;
  --blue: #4576c5;
  --blue-soft: #e7effd;
  --shadow: 0 24px 70px rgba(31, 39, 32, .14);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #aeb5bf;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 19px;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 3px solid rgba(69, 118, 197, .35); outline-offset: 2px; }
.skip-link {
  position: fixed; z-index: 100; top: 8px; left: 8px; padding: 10px 14px;
  background: #fff; border-radius: 10px; transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.hidden { display: none !important; }

.loading-screen {
  min-height: 100vh; display: grid; place-items: center; color: #fff;
}
.loading-mark { display: grid; gap: 12px; justify-items: center; font-weight: 750; letter-spacing: .16em; }
.spinner { width: 38px; height: 38px; border-radius: 50%; border: 3px solid rgba(255,255,255,.35); border-top-color: #fff; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.login-page {
  min-height: 100vh; padding: 28px; display: grid; place-items: center;
  background:
    radial-gradient(circle at 72% 18%, rgba(255, 236, 145, .9), transparent 30%),
    linear-gradient(135deg, #edf0ec 0%, #c9d0d5 100%);
}
.login-shell {
  width: min(1080px, 100%); min-height: 670px; display: grid; grid-template-columns: .86fr 1.14fr;
  overflow: hidden; border: 1px solid rgba(255,255,255,.65); border-radius: 34px;
  box-shadow: var(--shadow); background: rgba(255,255,255,.68); backdrop-filter: blur(18px);
}
.login-form-panel {
  padding: 58px clamp(32px, 5vw, 68px); background: rgba(255,255,255,.9);
  display: flex; flex-direction: column; justify-content: center;
}
.brand-lockup { display: flex; align-items: center; gap: 12px; font-weight: 850; letter-spacing: .08em; }
.brand-lockup img { width: 132px; height: 48px; object-fit: contain; object-position: left center; }
.login-copy { margin: 64px 0 34px; }
.eyebrow { margin: 0 0 10px; color: #657067; font-size: 15px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.login-copy h1 { max-width: 470px; margin: 0; font-size: clamp(41px, 5vw, 69px); line-height: 1.02; letter-spacing: -.055em; font-weight: 520; }
.login-copy p { max-width: 430px; margin: 18px 0 0; color: var(--ink-soft); line-height: 1.65; }
.form-field { display: grid; gap: 7px; margin-bottom: 15px; }
.form-field label { color: #465149; font-size: 15px; font-weight: 760; }
.input {
  width: 100%; min-height: 48px; padding: 0 15px; color: var(--ink); background: #f7f8f4;
  border: 1px solid var(--line); border-radius: 13px; transition: .2s ease;
}
textarea.input { min-height: 92px; padding-top: 13px; resize: vertical; }
.input:focus { border-color: #9db545; box-shadow: 0 0 0 4px rgba(189,219,63,.17); outline: 0; background: #fff; }
.btn {
  min-height: 42px; padding: 0 16px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 12px; color: var(--ink); background: #ecefe8; font-weight: 760; transition: transform .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-1px); background: #e2e6dc; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #29372e; }
.btn-accent { background: var(--lime); color: #25301f; }
.btn-accent:hover { background: var(--lime-strong); }
.btn-small { min-height: 34px; padding: 0 12px; font-size: 15px; border-radius: 10px; }
.btn-ghost { background: transparent; border: 1px solid var(--line); }
.btn-danger { color: #9b3030; background: var(--red-soft); }
.login-submit { width: 100%; min-height: 50px; margin-top: 7px; }
.form-error { margin: 0 0 14px; padding: 11px 13px; color: #8e2727; background: var(--red-soft); border-radius: 12px; font-size: 16px; }
.login-note { margin: 17px 0 0; color: #7a847d; font-size: 13px; text-align: center; }
.login-visual {
  position: relative; overflow: hidden; padding: 58px;
  background:
    radial-gradient(circle at 76% 25%, rgba(255, 255, 255, .68), transparent 26%),
    linear-gradient(145deg, #e8f4c4, #fff0a9 58%, #f3c95f);
}
.login-visual::before {
  content: ""; position: absolute; inset: 0; opacity: .28;
  background-image: linear-gradient(rgba(23,33,27,.09) 1px, transparent 1px), linear-gradient(90deg, rgba(23,33,27,.09) 1px, transparent 1px);
  background-size: 34px 34px;
}
.visual-content { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: space-between; }
.visual-badge { align-self: flex-start; padding: 9px 13px; border: 1px solid rgba(23,33,27,.24); border-radius: 999px; font-size: 15px; font-weight: 760; }
.visual-stage { display: grid; gap: 14px; transform: rotate(-2deg); }
.mock-metric {
  max-width: 360px; padding: 24px; border-radius: 22px; background: rgba(255,255,255,.87);
  box-shadow: 0 25px 60px rgba(70,60,25,.16); backdrop-filter: blur(14px);
}
.mock-metric:nth-child(2) { margin-left: 80px; color: #fff; background: rgba(23,33,27,.93); }
.mock-label { color: inherit; opacity: .65; font-size: 15px; font-weight: 700; }
.mock-value { margin-top: 8px; font-size: 52px; letter-spacing: -.04em; }
.mock-bar { height: 7px; margin-top: 18px; overflow: hidden; border-radius: 999px; background: rgba(127,137,126,.2); }
.mock-bar span { display: block; height: 100%; width: 78%; border-radius: inherit; background: var(--yellow); }
.mock-metric:nth-child(2) .mock-bar span { width: 45%; background: var(--lime); }
.visual-content h2 { max-width: 460px; margin: 0; font-size: clamp(37px, 4vw, 62px); line-height: 1.05; letter-spacing: -.05em; font-weight: 520; }

.app-viewport { min-height: 100vh; padding: clamp(12px, 2vw, 26px); }
.app-shell {
  width: min(1500px, 100%); min-height: calc(100vh - 52px); margin: 0 auto; overflow: hidden;
  border: 1px solid rgba(255,255,255,.72); border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 86% 4%, rgba(255, 239, 146, .58), transparent 28%),
    linear-gradient(145deg, #f0f2ef 0%, #f7f5df 100%);
  box-shadow: var(--shadow);
}
.topbar {
  min-height: 82px; padding: 17px 20px; display: grid; grid-template-columns: 210px 1fr auto; gap: 18px; align-items: center;
}
.brand-button { border: 0; background: transparent; padding: 0; justify-self: start; }
.brand-button img { display: block; width: 125px; height: 44px; object-fit: contain; object-position: left; }
.topnav {
  min-width: 0; padding: 5px; display: flex; gap: 3px; overflow-x: auto; scrollbar-width: none;
  background: rgba(255,255,255,.62); border: 1px solid rgba(255,255,255,.72); border-radius: 999px;
}
.topnav::-webkit-scrollbar { display: none; }
.nav-button {
  min-height: 36px; padding: 0 14px; flex: 0 0 auto; border: 0; border-radius: 999px;
  color: #4f5952; background: transparent; font-size: 15px; font-weight: 700;
}
.nav-button:hover { color: var(--ink); background: rgba(255,255,255,.75); }
.nav-button.active { color: #fff; background: var(--ink); box-shadow: 0 4px 12px rgba(23,33,27,.18); }
.account-menu { display: flex; align-items: center; gap: 9px; }
.icon-button {
  width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.8);
  border-radius: 50%; background: rgba(255,255,255,.7); color: var(--ink);
}
.profile-chip {
  min-height: 45px; padding: 5px 11px 5px 5px; display: flex; gap: 9px; align-items: center; border: 0;
  border-radius: 999px; background: rgba(255,255,255,.76); color: var(--ink); text-align: left;
}
.avatar {
  width: 35px; height: 35px; display: grid; place-items: center; flex: 0 0 auto;
  border-radius: 50%; color: #fff; background: var(--ink); font-weight: 800; font-size: 15px;
}
.profile-copy { display: grid; line-height: 1.2; }
.profile-copy strong { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.profile-copy span { color: #707a72; font-size: 12px; }

.main-content { padding: 12px clamp(16px, 3vw, 34px) 34px; }
.page-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; margin: 14px 0 24px; }
.page-intro h1 { margin: 0; font-size: clamp(39px, 4vw, 72px); line-height: 1; letter-spacing: -.055em; font-weight: 500; }
.page-intro p { max-width: 680px; margin: 12px 0 0; color: var(--ink-soft); line-height: 1.55; }
.freshness { display: flex; align-items: center; gap: 8px; color: #657067; font-size: 13px; font-weight: 700; white-space: nowrap; }
.freshness-dot { width: 8px; height: 8px; border-radius: 50%; background: #71b775; box-shadow: 0 0 0 5px rgba(113,183,117,.12); }
.filter-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.segmented { display: flex; padding: 4px; gap: 3px; border-radius: 999px; background: rgba(255,255,255,.64); }
.segment { min-height: 33px; padding: 0 13px; border: 0; border-radius: 999px; color: #606b63; background: transparent; font-size: 13px; font-weight: 760; }
.segment.active { color: var(--ink); background: var(--yellow); }
.select-inline {
  min-height: 40px; padding: 0 36px 0 13px; border: 1px solid rgba(255,255,255,.85);
  border-radius: 12px; color: var(--ink); background: rgba(255,255,255,.72);
}
.filters-right { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.hero-panel {
  position: relative; overflow: hidden; margin-bottom: 14px; padding: 24px;
  display: grid; grid-template-columns: 1.5fr .9fr; gap: 22px;
  border-radius: var(--radius-lg); background:
    radial-gradient(circle at 85% 25%, rgba(255,255,255,.75), transparent 28%),
    linear-gradient(120deg, rgba(255,255,255,.75), rgba(255,241,171,.82));
  border: 1px solid rgba(255,255,255,.82);
}
.hero-panel::after {
  content: ""; position: absolute; width: 280px; height: 280px; right: -100px; bottom: -170px;
  border: 45px solid rgba(189,219,63,.28); border-radius: 50%;
}
.hero-title { margin: 0; font-size: clamp(27px, 3vw, 45px); letter-spacing: -.035em; font-weight: 540; }
.hero-copy { max-width: 650px; margin: 8px 0 22px; color: var(--ink-soft); line-height: 1.55; font-size: 16px; }
.control-flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; }
.flow-step { min-width: 0; }
.flow-track { height: 8px; border-radius: 999px; background: repeating-linear-gradient(135deg, rgba(23,33,27,.18) 0 3px, transparent 3px 7px); }
.flow-step.done .flow-track { background: var(--ink); }
.flow-step.current .flow-track { background: var(--yellow); }
.flow-step span { display: block; margin-top: 6px; color: #657067; font-size: 11px; font-weight: 760; text-transform: uppercase; letter-spacing: .07em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-stats { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: center; gap: 12px; }
.hero-stat { padding: 18px; border: 1px solid rgba(23,33,27,.1); border-radius: 18px; background: rgba(255,255,255,.55); }
.hero-stat strong { display: block; font-size: clamp(37px, 3vw, 57px); font-weight: 480; letter-spacing: -.05em; }
.hero-stat span { color: #657067; font-size: 13px; font-weight: 700; }

.kpi-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.kpi-card {
  min-width: 0; padding: 17px; border: 1px solid rgba(255,255,255,.85); border-radius: 18px;
  background: rgba(255,255,255,.72); transition: transform .2s ease, box-shadow .2s ease;
}
.kpi-card:hover { transform: translateY(-2px); box-shadow: 0 13px 28px rgba(31,39,32,.08); }
.kpi-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.kpi-label { min-width: 0; color: #5d685f; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.status-mark { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 auto; }
.status-green { background: #5faf68; }
.status-yellow { background: #eebf35; }
.status-red { background: var(--red); }
.status-blue { background: var(--blue); }
.kpi-value { margin-top: 13px; font-size: clamp(32px, 2.4vw, 49px); line-height: 1; letter-spacing: -.05em; font-weight: 510; }
.kpi-value small { margin-left: 3px; color: #727c74; font-size: 12px; font-weight: 700; letter-spacing: 0; }
.kpi-meta { margin-top: 12px; color: #818a83; font-size: 11px; line-height: 1.4; }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(300px, .75fr); gap: 14px; }
.dashboard-main { display: grid; gap: 14px; min-width: 0; }
.panel {
  min-width: 0; padding: 20px; border: 1px solid rgba(255,255,255,.86); border-radius: var(--radius-lg);
  background: rgba(255,255,255,.76);
}
.panel-dark { color: #fff; background: #242826; border-color: #242826; }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 17px; }
.panel-head h2, .panel-head h3 { margin: 0; font-size: 21px; font-weight: 650; letter-spacing: -.02em; }
.panel-head p { margin: 5px 0 0; color: #7a847d; font-size: 12px; line-height: 1.45; }
.panel-dark .panel-head p { color: rgba(255,255,255,.55); }
.panel-link { border: 0; color: inherit; background: transparent; font-size: 13px; font-weight: 760; }
.trend-chart {
  min-height: 230px; padding-top: 10px; display: flex; align-items: stretch; gap: 8px;
  border-bottom: 1px solid var(--line);
}
.trend-column { min-width: 20px; flex: 1; display: grid; grid-template-rows: 1fr 22px; align-items: end; gap: 7px; }
.bar-pair { height: 185px; display: flex; align-items: flex-end; justify-content: center; gap: 3px; border-bottom: 1px dashed #d8ddd3; }
.trend-bar { width: min(12px, 42%); min-height: 4px; border-radius: 7px 7px 2px 2px; transition: height .25s ease; }
.trend-bar.wt { background: var(--yellow); }
.trend-bar.wl { background: var(--ink); }
.trend-date { color: #7c857e; font-size: 10px; text-align: center; white-space: nowrap; }
.chart-legend { display: flex; gap: 16px; color: #68726a; font-size: 12px; font-weight: 700; }
.legend-item { display: flex; align-items: center; gap: 6px; }
.legend-dot { width: 8px; height: 8px; border-radius: 3px; }
.legend-dot.wt { background: var(--yellow); }
.legend-dot.wl { background: var(--ink); }
.mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.heatmap { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 7px; }
.heat-cell { aspect-ratio: 1 / .82; display: grid; place-items: center; border-radius: 11px; color: #344036; background: rgba(217,239,111,var(--heat)); font-size: 12px; font-weight: 800; }
.heat-cell span { display: block; font-size: 10px; opacity: .65; }
.unit-list { display: grid; gap: 13px; }
.unit-row { display: grid; grid-template-columns: minmax(110px, .9fr) 1.5fr auto; gap: 12px; align-items: center; }
.unit-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 760; }
.unit-track { height: 8px; overflow: hidden; border-radius: 999px; background: #e9ece5; }
.unit-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--lime), var(--yellow)); }
.unit-score { font-size: 12px; font-weight: 760; }

.risk-list { display: grid; gap: 9px; }
.risk-item {
  padding: 14px; display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 11px;
  border: 1px solid rgba(255,255,255,.08); border-radius: 16px; background: rgba(255,255,255,.045);
}
.risk-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.1); font-size: 17px; }
.risk-item.red .risk-icon { color: #ffaaa3; background: rgba(217,85,85,.18); }
.risk-item.yellow .risk-icon { color: #ffdf70; background: rgba(255,216,92,.14); }
.risk-copy { min-width: 0; }
.risk-copy strong { display: block; font-size: 13px; line-height: 1.4; }
.risk-copy p { margin: 4px 0 8px; color: rgba(255,255,255,.58); font-size: 11px; line-height: 1.5; }
.risk-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: rgba(255,255,255,.48); font-size: 10px; }
.risk-action { border: 0; padding: 0; color: var(--lime); background: transparent; font-size: 11px; font-weight: 800; }
.priority-list { display: grid; gap: 10px; }
.priority-item { padding: 12px 0; display: grid; grid-template-columns: 1fr auto; gap: 12px; border-bottom: 1px dashed var(--line); }
.priority-item:last-child { border-bottom: 0; }
.priority-item strong { display: block; font-size: 13px; }
.priority-item p { margin: 4px 0 0; color: #778179; font-size: 11px; }
.progress-ring { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(var(--lime-strong) var(--progress), #e5e9df 0); }
.progress-ring::before { content: attr(data-value); width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: #fff; font-size: 10px; font-weight: 800; }
.empty-state { padding: 34px 18px; color: #78827a; text-align: center; font-size: 15px; }
.panel-dark .empty-state { color: rgba(255,255,255,.55); }

.page-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin: 17px 0 22px; }
.page-header h1 { margin: 0; font-size: clamp(37px, 4vw, 59px); font-weight: 520; letter-spacing: -.05em; }
.page-header p { max-width: 690px; margin: 9px 0 0; color: var(--ink-soft); line-height: 1.55; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, .38fr); gap: 14px; }
.stack { display: grid; gap: 14px; }
.table-wrap { overflow-x: auto; border-radius: 16px; border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; background: rgba(255,255,255,.7); }
th, td { padding: 13px 14px; border-bottom: 1px solid #e8ebe5; text-align: left; vertical-align: top; font-size: 13px; }
th { color: #657067; background: #f4f6f1; font-size: 11px; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
tr:last-child td { border-bottom: 0; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border-radius: 999px; font-size: 11px; font-weight: 800; }
.badge-green { color: #2f6f3a; background: var(--mint); }
.badge-yellow { color: #7c5c00; background: var(--yellow-soft); }
.badge-red { color: #963c3c; background: var(--red-soft); }
.badge-blue { color: #345e9f; background: var(--blue-soft); }
.badge-neutral { color: #566158; background: #e9ece6; }
.upload-zone {
  padding: 32px; border: 1px dashed #aeb7ac; border-radius: 18px; background: #f8f9f5; text-align: center;
}
.upload-zone strong { display: block; font-size: 17px; }
.upload-zone p { margin: 8px auto 18px; max-width: 480px; color: #737e75; font-size: 13px; line-height: 1.5; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.form-grid .full { grid-column: 1 / -1; }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.quality-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.quality-stat { padding: 13px; border-radius: 14px; background: #f2f4ee; }
.quality-stat strong { display: block; font-size: 28px; letter-spacing: -.04em; }
.quality-stat span { color: #727c74; font-size: 11px; font-weight: 760; }
.alert-card, .action-card {
  padding: 16px; display: grid; gap: 11px; border: 1px solid rgba(255,255,255,.86);
  border-radius: 18px; background: rgba(255,255,255,.75);
}
.alert-card { grid-template-columns: 11px minmax(0, 1fr) auto; }
.severity-rail { border-radius: 999px; background: var(--blue); }
.severity-rail.red { background: var(--red); }
.severity-rail.yellow { background: #e7b82c; }
.card-copy h3 { margin: 0; font-size: 17px; }
.card-copy p { margin: 6px 0 0; color: #657067; font-size: 13px; line-height: 1.55; }
.card-meta { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; margin-top: 10px; color: #7b857d; font-size: 11px; }
.action-card { grid-template-columns: minmax(0, 1fr) auto; }
.action-progress { min-width: 150px; text-align: right; }
.progress-track { height: 7px; margin-top: 8px; overflow: hidden; border-radius: 999px; background: #e7eae3; }
.progress-track span { display: block; height: 100%; border-radius: inherit; background: var(--lime-strong); }
.button-row { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 12px; }
.audit-line { display: grid; grid-template-columns: 140px 1fr auto; gap: 13px; padding: 13px 0; border-bottom: 1px dashed var(--line); }
.audit-line:last-child { border-bottom: 0; }
.audit-line strong { font-size: 13px; }
.audit-line p { margin: 3px 0 0; color: #727c74; font-size: 12px; }
.audit-time { color: #879088; font-size: 11px; white-space: nowrap; }
.toast {
  position: fixed; z-index: 80; right: 22px; bottom: 22px; max-width: 380px; padding: 13px 15px;
  border-radius: 14px; color: #fff; background: var(--ink); box-shadow: 0 18px 45px rgba(23,33,27,.25);
  font-size: 15px; font-weight: 650; animation: toast-in .25s ease;
}
.toast.error { background: #9e3f3f; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }
.busy-overlay { position: fixed; z-index: 70; inset: 0; display: grid; place-items: center; background: rgba(238,241,236,.48); backdrop-filter: blur(3px); }

dialog {
  width: min(680px, calc(100vw - 28px)); max-height: calc(100vh - 40px); overflow: auto;
  padding: 0; border: 0; border-radius: 24px; color: var(--ink); background: #fbfcf8; box-shadow: 0 35px 90px rgba(23,33,27,.25);
}
dialog::backdrop { background: rgba(20,27,22,.48); backdrop-filter: blur(5px); }
.dialog-inner { padding: 24px; }
.dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.dialog-head h2 { margin: 0; font-size: 28px; letter-spacing: -.03em; }
.dialog-head p { margin: 6px 0 0; color: #6f7a71; font-size: 13px; }
.dialog-close { width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 50%; background: #ecefe8; }

@media (max-width: 1180px) {
  .topbar { grid-template-columns: 150px 1fr auto; }
  .kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dashboard-grid { grid-template-columns: minmax(0, 1.5fr) minmax(280px, .7fr); }
  .profile-copy { display: none; }
}
@media (max-width: 900px) {
  .login-shell { grid-template-columns: 1fr; }
  .login-visual { display: none; }
  .topbar { grid-template-columns: auto 1fr auto; gap: 10px; }
  .brand-button img { width: 100px; }
  .topnav { grid-row: 2; grid-column: 1 / -1; }
  .dashboard-grid, .content-grid { grid-template-columns: 1fr; }
  .hero-panel { grid-template-columns: 1fr; }
  .mini-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .app-viewport { padding: 0; }
  .app-shell { min-height: 100vh; border: 0; border-radius: 0; }
  .topbar { padding: 12px; }
  .main-content { padding: 8px 12px 28px; }
  .page-intro, .page-header { align-items: flex-start; flex-direction: column; }
  .page-intro h1 { font-size: 45px; }
  .freshness { white-space: normal; }
  .hero-panel { padding: 18px; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .control-flow { overflow-x: auto; grid-template-columns: repeat(5, 90px); }
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi-card { padding: 14px; }
  .kpi-value { font-size: 37px; }
  .panel { padding: 16px; border-radius: 18px; }
  .trend-chart { gap: 4px; }
  .trend-date { font-size: 9px; }
  .heatmap { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: auto; }
  .quality-summary { grid-template-columns: 1fr; }
  /* .alert-card punya kolom rail severity 9px di depan; .action-card tidak.
     Menyamakan keduanya membuat .card-copy pada .action-card jatuh ke kolom
     9px sehingga judul dan deskripsi rencana aksi terhimpit jadi satu kolom
     selebar 9px di layar ponsel. */
  .alert-card { grid-template-columns: 9px minmax(0, 1fr); }
  .alert-card > .btn { grid-column: 2; justify-self: stretch; }
  .action-card { grid-template-columns: minmax(0, 1fr); }
  .action-progress { grid-column: 1; justify-self: stretch; min-width: 0; text-align: left; }
  .audit-line { grid-template-columns: 1fr; gap: 3px; }
}

/* Generated dashboard reference implementation */
:root {
  --gen-navy: #073a5a;
  --gen-navy-deep: #052f4b;
  --gen-teal: #0b8584;
  --gen-lime: #a9d824;
  --gen-lime-bright: #b8e72f;
  --gen-ink: #102638;
  --gen-muted: #70808d;
  --gen-line: #e7ecef;
  --gen-bg: #f5f7f8;
}

.generated-shell {
  width: 100%;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 254px minmax(0, 1fr);
  color: var(--gen-ink);
  background: var(--gen-bg);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

.generated-sidebar {
  position: sticky;
  top: 14px;
  z-index: 20;
  width: calc(100% - 28px);
  height: calc(100vh - 28px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin: 14px;
  padding: 14px 10px 16px;
  background: #fff;
  border: 1px solid #e8edef;
  border-radius: 20px;
  box-shadow: 0 12px 34px rgba(10, 45, 65, .06);
}

.generated-brand {
  height: 78px;
  display: grid;
  place-items: center;
  padding: 5px 8px 10px;
  color: var(--gen-navy);
  background: transparent;
  border: 0;
  cursor: pointer;
  overflow: hidden;
}

.generated-brand-logo-frame {
  position: relative;
  width: 100%;
  height: 66px;
  display: block;
  overflow: hidden;
}

.generated-brand-logo-frame img {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 175px;
  max-width: none;
  height: auto;
  transform: translate(-50%, -50%);
}

.generated-nav {
  flex: 1;
  overflow-x: hidden;
  overflow-y: scroll;
  padding: 5px 5px 5px 0;
  scrollbar-color: #8d8f91 transparent;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
}

.generated-nav::-webkit-scrollbar {
  width: 7px;
}

.generated-nav::-webkit-scrollbar-track {
  background: transparent;
}

.generated-nav::-webkit-scrollbar-thumb {
  background: #8d8f91;
  border: 1px solid #fff;
  border-radius: 8px;
}

.generated-nav::after {
  content: "";
  display: block;
  height: 48px;
}

.gen-nav-group {
  display: block;
  padding: 22px 27px 8px;
  color: #7f8d98;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .035em;
}

.gen-nav-section {
  display: block;
}

.gen-nav-section-header {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 27px 8px;
  color: #7f8d98;
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: color .18s;
}

.gen-nav-section-header:hover {
  color: #5a697a;
}

.gen-nav-section-label {
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .05em;
}

.gen-nav-section-rule {
  flex: 1 1 auto;
  height: 1px;
  background: #e4e9ec;
  align-self: center;
}

.gen-nav-section-header:hover .gen-nav-section-rule {
  background: #d5dce2;
}

.gen-nav-section-chevron {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  color: #8a98a3;
  transition: color .18s, transform .2s ease;
}

.gen-nav-section-header:hover .gen-nav-section-chevron {
  color: #5a697a;
}

.gen-nav-section.collapsed .gen-nav-section-chevron {
  transform: rotate(-90deg);
}

.gen-nav-section-body {
  display: grid;
  grid-template-rows: 1fr;
  opacity: 1;
  overflow: hidden;
  transition: grid-template-rows .22s ease, opacity .18s ease;
}

.gen-nav-section-links {
  min-height: 0;
  overflow: hidden;
}

.gen-nav-section.collapsed .gen-nav-section-body {
  grid-template-rows: 0fr;
  opacity: 0;
}

.gen-nav-link {
  width: 100%;
  min-height: 47px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 1px 0;
  padding: 10px 27px;
  color: #455969;
  background: transparent;
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  font: inherit;
  font-size: 16px;
  text-align: left;
  transition: color .18s, background .18s, transform .18s;
}

.gen-nav-link:hover {
  color: var(--gen-navy);
  background: #f2f6f7;
  transform: translateX(1px);
}

.gen-nav-link.active {
  min-height: 48px;
  color: #fff;
  background: linear-gradient(90deg, #073b5c, #045172);
  border-radius: 16px;
  box-shadow: 0 10px 22px rgba(7, 58, 90, .16);
}

.gen-nav-link.restricted {
  cursor: default;
}

.gen-nav-link svg {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  stroke-width: 1.8;
}

.gen-nav-link.active svg {
  width: 18px;
  height: 18px;
}

.gen-nav-link.subitem {
  min-height: 40px;
  font-size: 15px;
}

.generated-sidebar-bottom {
  padding-top: 8px;
  border-top: 1px solid #edf0f2;
}

.generated-sidebar-bottom .gen-nav-link {
  min-height: 41px;
}

.generated-main {
  min-width: 0;
  min-height: 100vh;
}

.generated-topbar {
  height: 96px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 20px 16px 24px;
  background: #fff;
}

.generated-search {
  position: relative;
  width: min(558px, 48%);
  height: 52px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 0 21px;
  color: #71818d;
  background: #fff;
  border: 1px solid #e3e9ec;
  border-radius: 26px;
  box-shadow: 0 7px 19px rgba(20, 55, 72, .035);
}

.generated-search svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.generated-search input {
  width: 100%;
  color: var(--gen-ink);
  background: transparent;
  border: 0;
  outline: 0;
  font: inherit;
  font-size: 16px;
}

.generated-search input::placeholder {
  color: #6f7f8c;
  opacity: 1;
}

.generated-account {
  display: flex;
  align-items: center;
  gap: 10px;
}

.generated-round-button,
.generated-profile {
  height: 51px;
  display: grid;
  place-items: center;
  color: #62717d;
  background: #fff;
  border: 1px solid #e5eaed;
  border-radius: 26px;
  cursor: pointer;
  box-shadow: 0 5px 14px rgba(20, 55, 72, .025);
}

.generated-round-button {
  width: 51px;
}

.generated-round-button svg {
  width: 20px;
  height: 20px;
}

.generated-profile {
  width: 93px;
  grid-template-columns: 51px 20px;
  padding: 0 8px 0 2px;
}

.generated-profile span {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  color: #fff;
  background: #a9aaac;
  border-radius: 50%;
}

.generated-profile span svg {
  width: 25px;
  height: 25px;
}

.generated-profile > svg {
  width: 15px;
  height: 15px;
}

.global-search-results {
  position: absolute;
  z-index: 80;
  top: 61px;
  left: 0;
  width: min(558px, calc(100vw - 32px));
  max-height: min(510px, calc(100vh - 125px));
  padding: 8px;
  overflow: auto;
  background: #fff;
  border: 1px solid #dfe7ea;
  border-radius: 18px;
  box-shadow: 0 22px 55px rgba(11, 49, 70, .18);
}

.global-search-results[hidden] {
  display: none;
}

.global-search-results button {
  width: 100%;
  min-height: 56px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 11px;
  padding: 8px 11px;
  color: #24465a;
  background: transparent;
  border: 0;
  border-radius: 12px;
  text-align: left;
  cursor: pointer;
}

.global-search-results button:hover,
.global-search-results button:focus-visible {
  background: #eef7f4;
  outline: 0;
}

.global-search-results button > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #087b7d;
  background: #e8f5f2;
  border-radius: 11px;
}

.global-search-results button > span svg,
.global-search-results button > svg {
  width: 17px;
  height: 17px;
}

.global-search-results button > svg {
  color: #9aa6ac;
}

.global-search-results p {
  min-width: 0;
  display: grid;
  gap: 2px;
  margin: 0;
}

.global-search-results strong {
  overflow: hidden;
  color: #173b52;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.global-search-results small {
  color: #85939b;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
}

.global-search-empty,
.header-menu-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-height: 90px;
  padding: 18px;
  color: #77909a;
  text-align: left;
}

.global-search-empty > svg,
.header-menu-empty > svg {
  width: 23px;
  height: 23px;
  color: #0d8a85;
}

.global-search-empty span,
.header-menu-empty {
  font-size: 11px;
}

.global-search-empty span,
.header-menu-empty span {
  display: grid;
  gap: 3px;
}

.global-search-empty strong,
.header-menu-empty strong {
  color: #24475a;
  font-size: 13px;
}

.generated-round-button {
  position: relative;
}

.header-notification-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  padding: 0 4px;
  color: #fff;
  background: #dc4f4f;
  border: 2px solid #fff;
  border-radius: 10px;
  font-size: 9px;
  font-weight: 800;
}

.header-menu-dialog {
  width: min(430px, calc(100vw - 28px));
  max-height: calc(100vh - 122px);
  margin: 88px 20px auto auto;
  padding: 0;
  overflow: hidden;
  color: #24475a;
  background: #fff;
  border: 1px solid #dfe7ea;
  border-radius: 20px;
  box-shadow: 0 28px 70px rgba(8, 45, 65, .24);
}

.header-menu-dialog::backdrop {
  background: rgba(6, 37, 54, .16);
  backdrop-filter: blur(1px);
}

.header-menu-shell {
  display: grid;
  max-height: calc(100vh - 122px);
}

.header-menu-shell > header {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 32px;
  align-items: center;
  gap: 11px;
  padding: 17px 18px;
  border-bottom: 1px solid #edf1f3;
}

.header-menu-shell > header > span:first-child {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #073b58, #0a8881);
  border-radius: 12px;
}

.header-menu-shell > header svg {
  width: 19px;
  height: 19px;
}

.header-menu-shell > header div {
  min-width: 0;
}

.header-menu-shell h2 {
  margin: 0;
  color: #0a3651;
  font-size: 18px;
}

.header-menu-shell > header p {
  margin: 3px 0 0;
  color: #819099;
  font-size: 11px;
}

.header-menu-shell > header button {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: #77858d;
  background: #f3f6f7;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
}

.header-notification-list {
  max-height: min(430px, calc(100vh - 255px));
  padding: 6px 17px;
  overflow: auto;
}

.header-notification-list article {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 11px;
  padding: 13px 2px;
  border-bottom: 1px solid #edf1f2;
}

.header-notification-list article > span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: #9b711d;
  background: #fff4d9;
  border-radius: 11px;
}

.header-notification-list article > span.severity-red {
  color: #ae4545;
  background: #ffeded;
}

.header-notification-list article svg {
  width: 17px;
}

.header-notification-list article div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.header-notification-list strong {
  color: #23475b;
  font-size: 12px;
  line-height: 1.45;
}

.header-notification-list small,
.header-notification-list time {
  color: #84929a;
  font-size: 10px;
}

.header-menu-shell > footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 17px;
  background: #f8faf9;
  border-top: 1px solid #edf1f2;
}

.header-menu-shell > footer button {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 13px;
  color: #426070;
  background: #fff;
  border: 1px solid #dce5e7;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
}

.header-menu-shell > footer button.primary {
  color: #fff;
  background: #087a7d;
  border-color: #087a7d;
}

.header-menu-shell > footer button.danger {
  color: #a54242;
  background: #fff1f0;
  border-color: #f0cfcc;
}

.header-menu-shell > footer svg {
  width: 15px;
}

.header-help-grid {
  display: grid;
  gap: 7px;
  padding: 13px 15px;
}

.header-help-grid button {
  min-height: 68px;
  display: grid;
  grid-template-columns: 35px minmax(0, 1fr) 17px;
  align-items: center;
  gap: 10px;
  padding: 10px 11px;
  color: #087c7d;
  background: #fff;
  border: 1px solid #e3e9eb;
  border-radius: 13px;
  text-align: left;
  cursor: pointer;
}

.header-help-grid button:hover {
  background: #f1f8f5;
  border-color: #bcded5;
}

.header-help-grid button > svg {
  width: 20px;
}

.header-help-grid button > svg:last-child {
  width: 15px;
  color: #a2adb2;
}

.header-help-grid span {
  display: grid;
  gap: 3px;
}

.header-help-grid strong {
  color: #23475b;
  font-size: 12px;
}

.header-help-grid small {
  color: #829099;
  font-size: 10px;
  line-height: 1.45;
}

.header-help-tip {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 15px 15px;
  padding: 10px 12px;
  color: #5f747e;
  background: #eef7f4;
  border-radius: 11px;
  font-size: 10px;
}

.header-help-tip svg {
  width: 16px;
  color: #0d8a84;
}

.profile-menu-dialog {
  width: min(390px, calc(100vw - 28px));
}

.header-menu-shell > header .header-profile-avatar {
  color: #fff;
  background: linear-gradient(145deg, #087b7d, #0a526c);
  font-size: 13px;
  font-weight: 800;
}

.header-profile-details {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 8px 18px 14px;
}

.header-profile-details div {
  display: grid;
  grid-template-columns: 95px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 2px;
  border-bottom: 1px solid #edf1f2;
}

.header-profile-details div:last-child {
  border-bottom: 0;
}

.header-profile-details dt {
  color: #84929a;
  font-size: 10px;
}

.header-profile-details dd {
  margin: 0;
  overflow: hidden;
  color: #23475b;
  font-size: 11px;
  font-weight: 700;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.generated-content {
  min-width: 0;
  padding: 0 18px 23px 24px;
}

.generated-controls {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding-bottom: 4px;
}

.generated-controls h1 {
  margin: 0;
  color: var(--gen-navy);
  font-size: 25px;
}

.generated-control-filters {
  display: flex;
  align-items: center;
  gap: 10px;
}

.generated-greeting {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
}

.generated-greeting-mark {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  flex: 0 0 50px;
  color: #fff;
  background: linear-gradient(145deg, #0b7f82, #72b533);
  border-radius: 16px;
  box-shadow: 0 7px 16px rgba(14, 122, 123, .13);
}

.generated-greeting-mark svg {
  width: 22px;
  height: 22px;
}

.generated-greeting-copy {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, auto) auto;
  gap: 3px 10px;
  line-height: 1.15;
}

.generated-greeting-copy small {
  grid-column: 1 / 3;
  color: #769041;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .035em;
  text-transform: uppercase;
}

.generated-greeting-copy strong {
  max-width: 300px;
  overflow: hidden;
  color: #0b3954;
  font-size: 22px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.generated-greeting-copy > span {
  align-self: center;
  color: #84939c;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.generated-weather {
  min-width: 155px;
  display: flex;
  align-items: center;
  gap: 11px;
  margin-left: 8px;
  padding-left: 18px;
  border-left: 1px solid #dde5e8;
}

.generated-weather > svg {
  width: 29px;
  height: 29px;
  flex: 0 0 29px;
  color: #e0a22e;
}

.generated-weather p {
  display: grid;
  gap: 3px;
  margin: 0;
}

.generated-weather b {
  color: #173c52;
  font-size: 21px;
  line-height: 1;
}

.generated-weather p span {
  color: #7d8d97;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.generated-date,
.generated-period,
.generated-filter,
.generated-export {
  height: 46px;
  display: flex;
  align-items: center;
  color: #263c4c;
  background: #fff;
  border: 1px solid #e0e6e9;
  font-size: 15px;
}

.generated-date {
  gap: 10px;
  padding: 0 17px;
  border-radius: 14px 0 0 14px;
}

.generated-date svg {
  width: 16px;
  height: 16px;
  color: #627584;
}

.generated-period {
  position: relative;
  gap: 8px;
  margin-left: -11px;
  padding: 0 10px 0 14px;
  border-radius: 0 14px 14px 0;
}

.generated-period select,
.generated-filter select {
  height: 100%;
  appearance: none;
  color: inherit;
  background: transparent;
  border: 0;
  outline: 0;
  font: inherit;
  cursor: pointer;
}

.generated-period select {
  min-width: 115px;
}

.generated-period svg {
  width: 14px;
  height: 14px;
  pointer-events: none;
}

.generated-custom-range {
  height: 46px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  color: #263c4c;
  background: #fff;
  border: 1px solid #e0e6e9;
  border-radius: 14px;
  font-size: 13px;
}

.generated-custom-range input[type="date"] {
  height: 100%;
  color: inherit;
  background: transparent;
  border: 0;
  outline: 0;
  font: inherit;
  cursor: pointer;
}

.generated-custom-range span {
  color: #a3aeb5;
}

.generated-filter {
  gap: 9px;
  padding: 0 14px;
  border-radius: 14px;
}

.generated-filter svg {
  width: 18px;
  height: 18px;
}

.generated-filter select {
  max-width: 125px;
  font-weight: 600;
}

.generated-export {
  gap: 9px;
  padding: 0 20px;
  color: #fff;
  background: var(--gen-navy);
  border-color: var(--gen-navy);
  border-radius: 14px;
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
}

.generated-export svg {
  width: 17px;
  height: 17px;
}

.generated-dashboard {
  display: grid;
  grid-template-columns: minmax(0, .94fr) minmax(0, 1.12fr) minmax(0, .94fr);
  grid-template-rows: auto auto auto;
  gap: 14px;
}

.generated-card,
.generated-assistant {
  min-width: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e5ebee;
  border-radius: 17px;
  box-shadow: 0 8px 25px rgba(16, 50, 69, .035);
}

.generated-card {
  padding: 18px 17px;
}

.generated-kpi-card {
  grid-column: 1 / 3;
  grid-row: 1;
}

.generated-status-card {
  grid-column: 3;
  grid-row: 1 / 3;
}

.generated-quality-card {
  grid-column: 1;
  grid-row: 2;
  display: flex;
  flex-direction: column;
}

.generated-quality-card .generated-card-head {
  flex: 0 0 auto;
}

.generated-snapshot-card {
  grid-column: 2;
  grid-row: 2;
}

.generated-overview-card {
  grid-column: 1;
  grid-row: 3;
}

.generated-usage-card {
  grid-column: 2;
  grid-row: 3;
}

.generated-assistant {
  grid-column: 3;
  grid-row: 3;
}

.generated-card-head {
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.generated-card-head h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--gen-navy-deep);
  font-size: 20px;
  font-weight: 750;
  letter-spacing: -.01em;
}

.generated-card-head h2 > span {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--gen-navy);
  border-radius: 7px;
}

.generated-card-head h2 svg {
  width: 15px;
  height: 15px;
  stroke-width: 2;
}

.generated-card-head button {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 0;
  color: var(--gen-navy);
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
}

.generated-card-head button svg {
  width: 16px;
  height: 16px;
}

.generated-card-head > small {
  padding: 7px 11px;
  color: var(--gen-navy);
  background: #f1f5f6;
  border-radius: 13px;
  font-size: 12px;
}

.generated-kpi-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  padding-top: 9px;
}

.generated-kpi-row > div {
  min-width: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: end;
  row-gap: 5px;
  padding: 1px 18px;
  border-left: 1px solid #e5eaed;
}

.generated-kpi-row > div:first-child {
  padding-left: 4px;
  border-left: 0;
}

.generated-kpi-row p {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  margin: 0;
  color: #5e707d;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.generated-kpi-row p svg {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  color: var(--gen-navy);
  stroke-width: 1.9;
}

.generated-kpi-row strong {
  color: #101e2a;
  font-size: clamp(18px, 2vw, 27px);
  line-height: 1;
  letter-spacing: -.035em;
  overflow-wrap: break-word;
  word-break: break-all;
}

.generated-kpi-row strong small {
  font-size: 13px;
  letter-spacing: 0;
}

.generated-kpi-row em {
  display: flex;
  align-items: center;
  gap: 3px;
  padding-left: 5px;
  font-size: 11px;
  font-style: normal;
  font-weight: 650;
  white-space: nowrap;
}

.generated-kpi-row em svg {
  width: 11px;
  height: 11px;
}

.generated-kpi-row em.positive {
  color: #6fa90d;
}

.generated-kpi-row em.negative {
  color: #d56f80;
}

.generated-status-list {
  display: grid;
  gap: 19px;
  padding: 14px 3px 0;
}

.generated-status-item {
  display: grid;
  gap: 7px;
}

.generated-status-copy {
  display: grid;
  grid-template-columns: 22px 1fr auto auto;
  align-items: center;
  gap: 8px;
  color: var(--gen-navy);
}

.generated-status-copy > svg {
  width: 19px;
  height: 19px;
}

.generated-status-copy span {
  overflow: hidden;
  color: #425766;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.generated-status-copy strong {
  color: #162431;
  font-size: 12px;
}

.generated-status-copy small {
  min-width: 48px;
  color: #8a969f;
  font-size: 11px;
  text-align: right;
}

.generated-progress {
  height: 8px;
  margin-left: 31px;
  overflow: hidden;
  background: #edf0f2;
  border-radius: 8px;
}

.generated-progress i {
  display: block;
  height: 100%;
  background: var(--gen-teal);
  border-radius: inherit;
}

.generated-progress .bar-0,
.generated-progress .bar-5 {
  background: #88c613;
}

.generated-progress .bar-3 {
  background: #174fe0;
}

.generated-progress .bar-4 {
  background: var(--gen-teal);
}

.generated-donut-triangle {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.generated-donut-row {
  width: 100%;
  height: 42%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.generated-donut-mini {
  height: 100%;
  width: auto;
  min-width: 0;
  min-height: 0;
  flex: 0 0 auto;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--donut-color) calc(var(--value) * 1%), #edf1f3 0);
  border-radius: 50%;
}

.generated-donut-mini.top {
  height: 42%;
  flex: 0 0 auto;
}

.generated-donut-mini::before {
  content: "";
  grid-area: 1 / 1;
  width: 76%;
  height: 76%;
  background: #fff;
  border-radius: 50%;
}

.generated-donut-mini.lime { --donut-color: var(--gen-lime); }
.generated-donut-mini.navy { --donut-color: var(--gen-navy); }
.generated-donut-mini.teal { --donut-color: var(--gen-teal); }

.generated-donut-mini span {
  z-index: 1;
  grid-area: 1 / 1;
  display: grid;
  gap: 2px;
  color: #647580;
  font-size: 11px;
  text-align: center;
}

.generated-donut-mini strong {
  color: #101e2a;
  font-size: 20px;
}

.generated-donut-mini small {
  color: #8a969f;
  font-size: 9px;
}

.generated-snapshot-summary {
  display: flex;
  gap: 38px;
  padding: 13px 7px 4px;
}

.generated-snapshot-summary span {
  display: grid;
  grid-template-columns: 8px auto;
  align-items: center;
  gap: 4px 7px;
  color: #657580;
  font-size: 12px;
}

.generated-snapshot-summary i,
.generated-usage-legend i,
.generated-overview-legend i {
  width: 7px;
  height: 7px;
  display: inline-block;
  border-radius: 50%;
}

.generated-snapshot-summary i.navy,
.generated-usage-legend i.navy,
.generated-overview-legend i.navy {
  background: var(--gen-navy);
}

.generated-snapshot-summary i.lime,
.generated-usage-legend i.lime,
.generated-overview-legend i.lime {
  background: var(--gen-lime);
}

.generated-snapshot-summary strong {
  grid-column: 1 / -1;
  color: #142330;
  font-size: 22px;
  font-weight: 650;
}

.generated-bar-chart {
  height: 188px;
  display: flex;
  gap: 10px;
  padding: 26px 10px 0 36px;
  background: repeating-linear-gradient(to bottom, transparent 0, transparent 42px, #e8edf0 43px);
}

.generated-bar-column {
  min-width: 0;
  flex: 1;
  display: grid;
  grid-template-rows: 1fr 16px;
  gap: 5px;
}

.generated-bar-column > div {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 7px;
}

.generated-bar-column i {
  width: min(17px, 38%);
  border-radius: 5px 5px 0 0;
}

.generated-bar-column i.lime {
  background: var(--gen-lime-bright);
}

.generated-bar-column i.navy {
  background: var(--gen-navy);
}

.generated-bar-column span {
  overflow: hidden;
  color: #7b8993;
  font-size: 11px;
  text-align: center;
  white-space: nowrap;
}

.generated-snapshot-empty {
  min-height: 174px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  margin: 8px 6px 0;
  color: #66808e;
  background:
    repeating-linear-gradient(to bottom, transparent 0, transparent 42px, #e8edf0 43px),
    #fbfcfc;
  border-radius: 11px;
}

.generated-snapshot-empty > svg {
  width: 25px;
  height: 25px;
  color: var(--gen-teal);
}

.generated-snapshot-empty > span {
  display: grid;
  gap: 3px;
}

.generated-snapshot-empty strong {
  color: #274d61;
  font-size: 12px;
}

.generated-snapshot-empty small {
  color: #84949c;
  font-size: 10px;
}

.generated-overview-body {
  height: calc(100% - 34px);
  display: grid;
  grid-template-columns: 57% 43%;
  align-items: center;
  gap: 5px;
  padding-top: 8px;
}

.generated-multi-donut {
  width: min(196px, 100%);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  justify-self: center;
  background: conic-gradient(
    var(--gen-navy) 0 52%,
    var(--gen-teal) 52% 78%,
    var(--gen-lime) 78% 92%,
    #d8ef9e 92% 100%
  );
  border-radius: 50%;
  transform: rotate(-1deg);
}

.generated-multi-donut::before {
  content: "";
  grid-area: 1 / 1;
  width: 67%;
  height: 67%;
  background: #fff;
  border-radius: 50%;
}

.generated-multi-donut span {
  z-index: 1;
  grid-area: 1 / 1;
  display: grid;
  gap: 5px;
  color: #798690;
  font-size: 16px;
  text-align: center;
  transform: rotate(1deg);
}

.generated-multi-donut strong {
  color: #142431;
  font-size: 27px;
}

.generated-overview-legend {
  display: grid;
  gap: 19px;
}

.generated-overview-legend span {
  display: grid;
  grid-template-columns: 8px 1fr auto;
  align-items: center;
  gap: 8px;
  color: #596b77;
  font-size: 12px;
}

.generated-overview-legend i.teal {
  background: var(--gen-teal);
}

.generated-overview-legend i.pale {
  background: #d8ef9e;
}

.generated-overview-legend strong {
  color: #172532;
  font-size: 15px;
}

.generated-usage-legend {
  display: flex;
  gap: 25px;
  padding: 13px 8px 0;
  color: #667681;
  font-size: 12px;
}

.generated-usage-legend span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.generated-line-wrap {
  height: 230px;
  padding-top: 7px;
}

#generated-line-chart {
  width: 100%;
  height: 100%;
  display: block;
}

.generated-assistant {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  background:
    radial-gradient(circle at 51% 26%, rgba(77, 183, 171, .42), transparent 23%),
    repeating-radial-gradient(ellipse at 50% 57%, transparent 0 28px, rgba(44, 139, 158, .17) 29px 30px),
    linear-gradient(145deg, #073c5c, #032f4c);
  border-color: rgba(5, 47, 75, .5);
}

.generated-assistant > .generated-assistant-expand {
  position: absolute;
  right: 17px;
  top: 17px;
  color: #fff;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.generated-assistant > .generated-assistant-expand svg {
  width: 18px;
  height: 18px;
}

.generated-assistant-orb {
  width: 71px;
  height: 71px;
  display: grid;
  place-items: center;
  margin-bottom: 17px;
  color: #fff;
  background: radial-gradient(circle at 40% 35%, #43a99d, #126d76 60%, #075069);
  border: 2px solid rgba(178, 230, 209, .26);
  border-radius: 50%;
  box-shadow: 0 0 34px rgba(61, 181, 165, .24);
}

.generated-assistant-orb svg {
  width: 30px;
  height: 30px;
  stroke-width: 2.2;
}

.generated-assistant h2 {
  margin: 0 0 8px;
  font-size: 21px;
}

.generated-assistant p {
  margin: 0 0 56px;
  color: rgba(255,255,255,.84);
  font-size: 13px;
}

.generated-assistant-action {
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: 15px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #fff;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.17);
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
  font-size: 16px;
  font-weight: 650;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.generated-assistant-action:hover {
  background: rgba(255,255,255,.15);
  border-color: rgba(255,255,255,.28);
  transform: translateY(-1px);
}

.generated-assistant-action svg {
  width: 19px;
  height: 19px;
}

/* Assistant analysis experience */
.assistant-dialog {
  width: min(1080px, calc(100vw - 34px));
  max-height: calc(100vh - 34px);
  overflow: hidden;
  color: #fff;
  background: #073a58;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 28px;
  box-shadow: 0 42px 110px rgba(2, 26, 42, .46);
}

.assistant-dialog::backdrop {
  background: rgba(4, 24, 37, .68);
  backdrop-filter: blur(9px);
}

.assistant-dialog-shell {
  position: relative;
  min-height: 660px;
  display: grid;
  grid-template-columns: .82fr 1.45fr;
  background:
    radial-gradient(circle at 16% 23%, rgba(96, 198, 165, .23), transparent 31%),
    linear-gradient(135deg, #073c5c 0 36%, #f7faf9 36% 100%);
}

.assistant-dialog-close {
  position: absolute;
  z-index: 3;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: #294456;
  background: #fff;
  border: 1px solid #dfe8ea;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(8, 38, 55, .1);
}

.assistant-dialog-close svg { width: 18px; height: 18px; }

.assistant-dialog-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 64px 42px;
}

.assistant-dialog-hero::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  left: -145px;
  bottom: -245px;
  border: 1px solid rgba(135, 219, 199, .17);
  border-radius: 50%;
  box-shadow: 0 0 0 48px rgba(135, 219, 199, .05), 0 0 0 95px rgba(135, 219, 199, .025);
}

.assistant-dialog-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 34px;
  color: #b9e9dd;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
}

.assistant-dialog-eyebrow svg { width: 16px; height: 16px; }

.assistant-dialog-orb {
  position: relative;
  width: 112px;
  height: 112px;
  display: grid;
  place-items: center;
  margin-bottom: 32px;
  color: #fff;
  background: radial-gradient(circle at 38% 32%, #57cab0, #168a88 53%, #075269 78%);
  border: 2px solid rgba(195, 246, 225, .31);
  border-radius: 50%;
  box-shadow: 0 0 0 12px rgba(111, 216, 185, .06), 0 0 55px rgba(69, 207, 177, .28);
}

.assistant-dialog-orb span svg { width: 43px; height: 43px; stroke-width: 2; }
.assistant-dialog-orb i {
  position: absolute;
  width: 140px;
  height: 140px;
  border: 1px solid rgba(166, 236, 216, .14);
  border-radius: 50%;
}
.assistant-dialog-orb i:nth-child(3) { width: 164px; height: 164px; }
.assistant-dialog-orb i:nth-child(4) { width: 190px; height: 190px; }

.assistant-dialog-hero h2 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: clamp(34px, 2.7vw, 48px);
  line-height: 1.08;
  letter-spacing: -.045em;
}

.assistant-dialog-hero > p {
  position: relative;
  z-index: 1;
  margin: 20px 0 28px;
  color: #ffffff;
  font-size: 15px;
  line-height: 1.75;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.assistant-dialog-trust {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.assistant-dialog-trust span { display: flex; align-items: center; gap: 8px; }
.assistant-dialog-trust svg { width: 15px; height: 15px; color: #a7de40; }

.assistant-dialog-workspace {
  display: flex;
  flex-direction: column;
  padding: 58px 48px 36px;
  color: #15344a;
}

.assistant-dialog-workspace > header { padding-right: 38px; }
.assistant-preview-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  color: #16766f;
  background: #e6f5f1;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.assistant-preview-badge i { width: 6px; height: 6px; background: #27aa8f; border-radius: 50%; box-shadow: 0 0 0 4px rgba(39,170,143,.12); }
.assistant-header-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.assistant-model-select {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px; border-radius: 999px; background: #f0f4f7; border: 1px solid #dde6ec;
}
.assistant-model-select span { display: inline-flex; color: #5c727f; }
.assistant-model-select select {
  border: none; background: transparent; font-size: 12px; font-weight: 700; color: #24475b;
  cursor: pointer; outline: none;
}
.assistant-model-select-chat { padding: 4px 8px; }
.assistant-model-select-chat select { font-size: 11px; }
.assistant-dialog-workspace h3 { margin: 18px 0 7px; color: #082f4a; font-size: 34px; letter-spacing: -.035em; }
.assistant-dialog-workspace header p { margin: 0; color: #70818b; font-size: 13px; line-height: 1.6; }

.assistant-context {
  display: grid;
  grid-template-columns: 1fr 1.18fr .8fr;
  gap: 8px;
  margin: 22px 0 18px;
}
.assistant-context > span {
  min-width: 0;
  display: grid;
  grid-template-columns: 25px 1fr;
  column-gap: 6px;
  padding: 11px 12px;
  background: #fff;
  border: 1px solid #e1e9eb;
  border-radius: 12px;
}
.assistant-context svg { grid-row: 1 / 3; align-self: center; width: 18px; height: 18px; color: #118c86; }
.assistant-context small { color: #8a9aa2; font-size: 10px; }
.assistant-context strong { overflow: hidden; color: #29465a; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }

.assistant-analysis-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.assistant-analysis-grid button {
  position: relative;
  min-height: 84px;
  display: grid;
  grid-template-columns: 35px 1fr 18px;
  align-items: center;
  gap: 11px;
  padding: 14px;
  text-align: left;
  color: #345165;
  background: #fff;
  border: 1px solid #e1e8ea;
  border-radius: 15px;
  cursor: pointer;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.assistant-analysis-grid button:hover { transform: translateY(-1px); border-color: #80c9b9; }
.assistant-analysis-grid button.active { border-color: #269b8b; box-shadow: 0 9px 25px rgba(23, 119, 111, .1); }
.assistant-analysis-grid button > svg:first-child { width: 22px; height: 22px; color: #078082; }
.assistant-analysis-grid button > svg:last-child { width: 16px; height: 16px; color: transparent; }
.assistant-analysis-grid button.active > svg:last-child { color: #7fc52e; }
.assistant-analysis-grid span { display: grid; gap: 4px; }
.assistant-analysis-grid strong { color: #173d54; font-size: 13px; }
.assistant-analysis-grid small { color: #82919a; font-size: 11px; line-height: 1.4; }

.assistant-dialog-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 18px;
  margin-top: auto;
  padding-top: 24px;
}
.assistant-dialog-footer p { display: flex; align-items: center; gap: 10px; margin: 0; color: #5c727f; }
.assistant-dialog-footer p > svg { width: 23px; height: 23px; color: #138d89; }
.assistant-dialog-footer p span { display: grid; gap: 2px; }
.assistant-dialog-footer p strong { color: #24475b; font-size: 12px; }
.assistant-dialog-footer p small { font-size: 10px; }
.assistant-dialog-footer p.waiting strong { color: #137b73; }
.assistant-dialog-footer > button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  color: #fff;
  background: linear-gradient(135deg, #0a7d7f, #07506f);
  border: 0;
  border-radius: 13px;
  box-shadow: 0 10px 24px rgba(8, 86, 102, .18);
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}
.assistant-dialog-footer > button svg { width: 16px; height: 16px; }
.assistant-dialog-footer > button:disabled { opacity: 0.5; cursor: not-allowed; }

.assistant-report-dialog { border: none; padding: 0; background: transparent; width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; }
.assistant-report-dialog::backdrop { background: rgba(7, 60, 92, 0.7); backdrop-filter: blur(6px); }
.assistant-report-shell { display: flex; flex-direction: column; width: 100%; height: 100%; background: #fff; }
.assistant-report-toolbar { display: flex; align-items: center; justify-content: space-between; padding: 12px 28px; border-bottom: 1px solid #e2eaef; background: #f7faf9; flex-shrink: 0; }
.assistant-report-toolbar-left { display: flex; align-items: center; gap: 16px; }
.assistant-report-badge { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: #138d89; }
.assistant-report-badge svg { width: 16px; height: 16px; }
.assistant-report-meta { font-size: 12px; color: #8a9ba6; }
.assistant-report-toolbar-right { display: flex; align-items: center; gap: 10px; }
.assistant-report-download { display: flex; align-items: center; gap: 6px; padding: 7px 16px; border: 1px solid #138d89; border-radius: 8px; background: #fff; color: #138d89; font-size: 12.5px; font-weight: 600; cursor: pointer; transition: all 0.15s; }
.assistant-report-download:hover { background: #138d89; color: #fff; }
.assistant-report-download svg { width: 15px; height: 15px; }
.assistant-report-close { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border: 1px solid #d0dce4; border-radius: 8px; background: #fff; color: #5c727f; cursor: pointer; transition: all 0.15s; }
.assistant-report-close:hover { background: #f0f5f7; color: #24475b; }
.assistant-report-close svg { width: 16px; height: 16px; }
.assistant-report-content { flex: 1; overflow-y: auto; padding: 40px; max-width: 860px; margin: 0 auto; width: 100%; }
.assistant-report-content h1 { color: #073c5c; font-size: 26px; letter-spacing: -0.02em; margin: 0 0 28px; padding-bottom: 16px; border-bottom: 2px solid #138d89; }

/* Ringkasan angka real (bukan hasil AI) + grafik tren — muncul di atas narasi. */
.report-stat-strip { display: flex; gap: 12px; flex-wrap: wrap; margin: 0 0 24px; }
.report-stat { display: flex; align-items: center; gap: 12px; flex: 1 1 160px; padding: 14px 16px; border: 1px solid #e2eaef; border-radius: 14px; background: linear-gradient(180deg, #f7faf9, #fff); }
.report-stat > span { display: grid; place-items: center; width: 36px; height: 36px; flex: 0 0 36px; border-radius: 10px; background: #e3f2f0; color: #138d89; }
.report-stat > span svg { width: 18px; height: 18px; }
.report-stat strong { display: block; color: #073c5c; font-size: 19px; font-weight: 700; line-height: 1.2; }
.report-stat small { color: #5c727f; font-size: 11.5px; }
.report-chart-card { margin: 0 0 28px; padding: 18px 20px; border: 1px solid #e2eaef; border-radius: 14px; background: #fff; }
.report-chart-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.report-chart-head h3 { display: flex; align-items: center; gap: 8px; margin: 0; color: #073c5c; font-size: 14.5px; font-weight: 700; }
.report-chart-head h3 svg { width: 17px; height: 17px; color: #138d89; }
.report-chart-head h3 small { color: #8a9ba6; font-size: 11.5px; font-weight: 500; }
.report-chart-legend { display: flex; gap: 14px; font-size: 11.5px; color: #5c727f; }
.report-chart-legend span { display: flex; align-items: center; gap: 6px; }
.report-chart-legend i { width: 9px; height: 9px; border-radius: 999px; }
.report-chart-legend i.navy { background: #083b5c; }
.report-chart-legend i.lime { background: #a9d823; }
.report-chart-wrap { position: relative; height: 220px; }
.report-chart-wrap canvas { width: 100%; height: 100%; }
@media (max-width: 640px) {
  .report-stat { flex: 1 1 45%; }
}
.assistant-report-body { font-size: 14.5px; line-height: 1.8; color: #24475b; }
.assistant-report-body h2 { font-size: 19px; color: #073c5c; margin: 28px 0 12px; }
.assistant-report-body h3 { font-size: 16px; color: #073c5c; margin: 22px 0 10px; }
.assistant-report-body h4 { font-size: 14.5px; color: #073c5c; margin: 18px 0 8px; }
.assistant-report-body ul, .assistant-report-body ol { padding-left: 24px; margin: 10px 0; }
.assistant-report-body li { margin: 6px 0; }
.assistant-report-body strong { color: #073c5c; }
.assistant-report-body code { background: #e8f0f5; padding: 2px 6px; border-radius: 4px; font-size: 13px; }
.assistant-report-body p { margin: 10px 0; }
.assistant-report-body .md-table-wrap { overflow-x: auto; margin: 18px 0; border: 1px solid #e2eaef; border-radius: 12px; box-shadow: 0 2px 10px rgba(8, 60, 92, .05); }
.assistant-report-body table { width: 100%; border-collapse: collapse; margin: 0; font-size: 13px; }
.assistant-report-body th, .assistant-report-body td { padding: 11px 16px; border-bottom: 1px solid #eef3f5; text-align: left; white-space: nowrap; }
.assistant-report-body th { background: linear-gradient(135deg, #073c5c, #0a5a72); color: #fff; font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .03em; }
.assistant-report-body th:first-child { border-top-left-radius: 12px; }
.assistant-report-body th:last-child { border-top-right-radius: 12px; }
.assistant-report-body tbody tr:nth-child(even) { background: #f7fafb; }
.assistant-report-body tbody tr:hover { background: #eef8f6; }
.assistant-report-body tbody tr:last-child td { border-bottom: none; }
.assistant-report-body hr { border: none; border-top: 1.5px dashed #d5e2e6; margin: 26px 0; }
.md-icon-bad { color: #d64545; font-weight: 700; }
.md-icon-good { color: #1f9d64; font-weight: 700; }
.md-icon-warn { color: #d9910a; font-weight: 700; }
@media (max-width: 820px) {
  .assistant-report-content { padding: 24px 16px; }
  .assistant-report-toolbar { padding: 10px 16px; }
  .assistant-report-content h1 { font-size: 20px; }
}
@media print {
  .assistant-report-toolbar { display: none; }
  .assistant-report-dialog, .assistant-report-shell { height: auto; }
  .assistant-report-content { padding: 0; max-width: none; }
}

/* Chat dialog footer buttons */
.assistant-dialog-footer-buttons { display: flex; gap: 10px; }
.assistant-chat-btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  color: #0a7d7f;
  background: #fff;
  border: 1.5px solid #0a7d7f;
  border-radius: 13px;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
  transition: all .2s;
}
.assistant-chat-btn:hover { background: #0a7d7f; color: #fff; }
.assistant-chat-btn svg { width: 16px; height: 16px; }

/* Chat dialog */
.assistant-chat-dialog {
  width: min(680px, calc(100vw - 34px));
  height: min(780px, calc(100vh - 34px));
  border: none;
  padding: 0;
  background: transparent;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 42px 110px rgba(2, 26, 42, .46);
}
.assistant-chat-dialog::backdrop { background: rgba(4, 24, 37, .68); backdrop-filter: blur(9px); }
.assistant-chat-shell {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #f7faf9;
}
.assistant-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  background: #073c5c;
  color: #fff;
  flex-shrink: 0;
}
.assistant-chat-header-left { display: flex; align-items: center; gap: 12px; }
.assistant-chat-header-left strong { font-size: 14px; display: block; }
.assistant-chat-header-left small { font-size: 11px; color: #a2cfc4; display: block; margin-top: 2px; }
.assistant-chat-avatar {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #57cab0, #168a88);
  border-radius: 12px;
}
.assistant-chat-avatar svg { width: 20px; height: 20px; color: #fff; }
.assistant-chat-header-right { display: flex; align-items: center; gap: 12px; }
.assistant-chat-context-pill {
  display: flex; align-items: center; gap: 6px;
  padding: 5px 12px;
  background: rgba(255,255,255,.12);
  border-radius: 999px;
  font-size: 11px; font-weight: 600;
}
.assistant-chat-context-pill svg { width: 13px; height: 13px; }
.assistant-chat-close {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.1);
  border: none; border-radius: 10px;
  color: #fff; cursor: pointer;
  transition: background .2s;
}
.assistant-chat-close:hover { background: rgba(255,255,255,.2); }
.assistant-chat-close svg { width: 16px; height: 16px; }

/* Messages area */
.assistant-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.assistant-chat-welcome {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 48px 24px 32px;
  gap: 12px;
}
.assistant-chat-welcome-orb {
  width: 64px; height: 64px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #57cab0, #168a88);
  border-radius: 50%;
  color: #fff;
  box-shadow: 0 0 0 10px rgba(111, 216, 185, .08), 0 0 40px rgba(69, 207, 177, .2);
}
.assistant-chat-welcome-orb svg { width: 28px; height: 28px; }
.assistant-chat-welcome h3 { margin: 8px 0 0; color: #073c5c; font-size: 20px; }
.assistant-chat-welcome > p { margin: 0; color: #5c727f; font-size: 13px; line-height: 1.6; max-width: 380px; }
.assistant-chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}
.assistant-chat-suggest {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  background: #fff;
  border: 1px solid #dfe8ea;
  border-radius: 999px;
  color: #24475b;
  font-size: 12px; font-weight: 600;
  cursor: pointer;
  transition: all .2s;
}
.assistant-chat-suggest:hover { border-color: #138d89; color: #138d89; background: #f0faf8; }
.assistant-chat-suggest svg { width: 14px; height: 14px; color: #138d89; }

/* Bubbles */
.assistant-chat-bubble {
  display: flex;
  gap: 10px;
  max-width: 88%;
  animation: chatFadeIn .25s ease;
}
@keyframes chatFadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.assistant-chat-user { align-self: flex-end; flex-direction: row-reverse; }
.assistant-chat-model { align-self: flex-start; }
.assistant-chat-bubble-avatar {
  flex-shrink: 0;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #57cab0, #168a88);
  border-radius: 10px;
  color: #fff;
  margin-top: 2px;
}
.assistant-chat-bubble-avatar svg { width: 15px; height: 15px; }
.assistant-chat-user .assistant-chat-bubble-content {
  background: #073c5c;
  color: #fff;
  border-radius: 18px 18px 4px 18px;
  padding: 12px 16px;
  font-size: 13.5px;
  line-height: 1.6;
  white-space: pre-wrap;
}
.assistant-chat-model .assistant-chat-bubble-content {
  background: #fff;
  color: #24475b;
  border: 1px solid #e4ecee;
  border-radius: 18px 18px 18px 4px;
  padding: 14px 18px;
  font-size: 13.5px;
  line-height: 1.75;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.assistant-chat-model .assistant-chat-bubble-content h2 { font-size: 15px; color: #073c5c; margin: 14px 0 6px; }
.assistant-chat-model .assistant-chat-bubble-content h3 { font-size: 14px; color: #073c5c; margin: 12px 0 4px; }
.assistant-chat-model .assistant-chat-bubble-content p { margin: 6px 0; }
.assistant-chat-model .assistant-chat-bubble-content ul, .assistant-chat-model .assistant-chat-bubble-content ol { padding-left: 18px; margin: 6px 0; }
.assistant-chat-model .assistant-chat-bubble-content li { margin: 3px 0; }
.assistant-chat-model .assistant-chat-bubble-content strong { color: #073c5c; }
.assistant-chat-model .assistant-chat-bubble-content code { background: #e8f0f5; padding: 1px 5px; border-radius: 4px; font-size: 12px; }
.assistant-chat-model .assistant-chat-bubble-content .md-table-wrap { overflow-x: auto; margin: 12px 0; border: 1px solid #e4ecee; border-radius: 10px; }
.assistant-chat-model .assistant-chat-bubble-content table { width: 100%; border-collapse: collapse; margin: 0; font-size: 12.5px; }
.assistant-chat-model .assistant-chat-bubble-content th, .assistant-chat-model .assistant-chat-bubble-content td { padding: 8px 12px; border-bottom: 1px solid #eef3f5; text-align: left; white-space: nowrap; }
.assistant-chat-model .assistant-chat-bubble-content th { background: linear-gradient(135deg, #073c5c, #0a5a72); color: #fff; font-weight: 700; font-size: 11px; text-transform: uppercase; }
.assistant-chat-model .assistant-chat-bubble-content th:first-child { border-top-left-radius: 10px; }
.assistant-chat-model .assistant-chat-bubble-content th:last-child { border-top-right-radius: 10px; }
.assistant-chat-model .assistant-chat-bubble-content tbody tr:nth-child(even) { background: #f7fafb; }
.assistant-chat-model .assistant-chat-bubble-content tbody tr:last-child td { border-bottom: none; }
.assistant-chat-model .assistant-chat-bubble-content hr { border: none; border-top: 1.5px dashed #dde6e9; margin: 16px 0; }

.assistant-chat-loading .assistant-chat-bubble-content { color: #8a9ba6; animation: chatPulse 1.2s ease infinite; }
@keyframes chatPulse { 0%, 100% { opacity: .4; } 50% { opacity: 1; } }

/* Input area */
.assistant-chat-input-area {
  padding: 12px 22px 16px;
  background: #fff;
  border-top: 1px solid #e4ecee;
  flex-shrink: 0;
}
.assistant-chat-input-wrap {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 8px 8px 8px 16px;
  background: #f4f8f9;
  border: 1.5px solid #dfe8ea;
  border-radius: 16px;
  transition: border-color .2s;
}
.assistant-chat-input-wrap:focus-within { border-color: #138d89; }
#assistant-chat-input {
  flex: 1;
  border: none;
  background: transparent;
  resize: none;
  font-size: 14px;
  line-height: 1.5;
  color: #24475b;
  font-family: inherit;
  padding: 4px 0;
  outline: none;
  max-height: 120px;
}
#assistant-chat-input::placeholder { color: #9ab0b9; }
#assistant-chat-send {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #0a7d7f, #07506f);
  color: #fff;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  flex-shrink: 0;
  transition: opacity .2s, transform .15s;
}
#assistant-chat-send:disabled { opacity: .3; cursor: default; }
#assistant-chat-send:not(:disabled):hover { transform: scale(1.06); }
#assistant-chat-send svg { width: 16px; height: 16px; }
.assistant-chat-disclaimer { display: block; text-align: center; color: #9ab0b9; margin-top: 8px; font-size: 11px; }

@media (max-width: 680px) {
  .assistant-chat-dialog { width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; border-radius: 0; }
  .assistant-chat-suggestions { flex-direction: column; }
  .assistant-chat-bubble { max-width: 94%; }
  .assistant-dialog-footer-buttons { flex-direction: column; }
}

@media (max-width: 820px) {
  .assistant-dialog { overflow: auto; }
  .assistant-dialog-shell { grid-template-columns: 1fr; background: linear-gradient(180deg, #073c5c 0 39%, #f7faf9 39% 100%); }
  .assistant-dialog-hero { min-height: 430px; padding: 52px 30px; }
  .assistant-dialog-workspace { padding: 42px 24px 30px; }
  .assistant-context, .assistant-analysis-grid { grid-template-columns: 1fr; }
  .assistant-dialog-footer { grid-template-columns: 1fr; }
  .assistant-dialog-footer > button { justify-content: center; }
}

@media (max-width: 1320px) {
  .generated-shell {
    grid-template-columns: 235px minmax(0, 1fr);
  }
  .generated-sidebar {
    padding-inline: 12px;
  }
  .generated-brand {
    padding-inline: 4px;
  }
  .generated-brand-logo-frame img {
    width: 165px;
  }
  .generated-brand strong {
    font-size: 26px;
  }
  .gen-nav-link {
    padding-inline: 19px;
  }
  .generated-dashboard {
    grid-template-columns: minmax(0, .94fr) minmax(0, 1.12fr) minmax(0, .94fr);
    grid-template-rows: auto auto auto;
  }
  .generated-kpi-row > div {
    padding-inline: 10px;
  }
  .generated-kpi-row p {
    font-size: 11px;
  }
  .generated-kpi-row strong {
    font-size: 24px;
  }
  .generated-status-list {
    gap: 14px;
  }
  .generated-bar-chart {
    height: 162px;
  }
  .generated-multi-donut {
    width: 172px;
  }
  .generated-line-wrap {
    height: 196px;
  }
}

@media (max-height: 900px) and (min-width: 781px) {
  .generated-sidebar {
    padding-top: 10px;
    padding-bottom: 11px;
  }
  .generated-brand {
    height: 73px;
    padding-top: 4px;
    padding-bottom: 9px;
  }
  .generated-brand-logo-frame {
    height: 60px;
  }
  .generated-nav {
    padding-top: 1px;
  }
  .gen-nav-group {
    padding-top: 12px;
    padding-bottom: 4px;
  }
  .gen-nav-link {
    min-height: 37px;
    padding-top: 6px;
    padding-bottom: 6px;
  }
  .gen-nav-link.active {
    min-height: 42px;
  }
  .generated-sidebar-bottom {
    padding-top: 4px;
  }
  .generated-sidebar-bottom .gen-nav-link {
    min-height: 35px;
  }
}

@media (max-width: 1240px) and (min-width: 781px) {
  .generated-controls {
    height: auto;
    min-height: 110px;
    align-items: flex-start;
    flex-direction: column;
    padding: 8px 0;
  }

  .generated-control-filters {
    width: 100%;
    justify-content: flex-end;
  }
}

@media (max-width: 1060px) {
  .generated-dashboard {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    grid-template-rows: auto auto auto auto;
  }
  .generated-kpi-card {
    grid-column: 1 / 3;
  }
  .generated-quality-card {
    grid-column: 1;
    grid-row: 2;
  }
  .generated-snapshot-card {
    grid-column: 2;
    grid-row: 2;
  }
  .generated-overview-card {
    grid-column: 1;
    grid-row: 3;
  }
  .generated-usage-card {
    grid-column: 2;
    grid-row: 3;
  }
  .generated-status-card {
    grid-column: 1;
    grid-row: 4;
  }
  .generated-assistant {
    grid-column: 2;
    grid-row: 4;
  }
  .generated-status-list {
    grid-template-columns: 1fr 1fr;
  }
  .generated-controls {
    height: auto;
    min-height: 68px;
    align-items: flex-start;
    flex-direction: column;
    padding: 8px 0;
  }
  .generated-control-filters {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 3px;
  }
}

@media (max-width: 780px) {
  .generated-shell {
    display: block;
  }
  .generated-sidebar {
    position: relative;
    top: 0;
    width: calc(100% - 20px);
    height: auto;
    margin: 10px;
    padding: 8px 10px;
    border-radius: 16px;
  }
  .generated-brand {
    height: 58px;
    justify-content: center;
    padding: 5px;
  }
  .generated-brand-logo-frame {
    height: 48px;
  }
  .generated-brand-logo-frame img {
    width: 176px;
  }
  .generated-nav {
    display: flex;
    gap: 5px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 0;
    scrollbar-gutter: auto;
  }
  .gen-nav-group {
    display: none;
  }
  .gen-nav-section {
    display: contents;
  }
  .gen-nav-section-header {
    display: none;
  }
  .gen-nav-section-body {
    display: contents;
  }
  .gen-nav-link {
    width: auto;
    min-width: max-content;
    min-height: 39px;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 13px;
  }
  .gen-nav-link.active {
    min-height: 39px;
    border-radius: 20px;
  }
  .gen-nav-link svg {
    width: 15px;
    height: 15px;
    flex-basis: 15px;
  }
  .generated-sidebar-bottom {
    display: none;
  }
  .generated-topbar {
    height: 66px;
    align-items: center;
    padding: 8px 12px;
  }
  .generated-search {
    width: calc(100% - 110px);
    height: 44px;
  }
  /* Tombol Bantuan disembunyikan karena sudah tersedia di drawer menu mobile.
     Lonceng notifikasi TIDAK disembunyikan: itu satu-satunya jalan masuk ke
     dialog peringatan (berikut badge jumlah) di layar kecil — menyembunyikannya
     membuat notifikasi tidak bisa dibuka sama sekali di tablet dan ponsel. */
  .generated-round-button:not(#header-notifications) {
    display: none;
  }
  #header-notifications {
    width: 44px;
    height: 44px;
  }
  .generated-profile {
    width: 54px;
    height: 44px;
    grid-template-columns: 36px 10px;
  }
  .generated-profile span {
    width: 34px;
    height: 34px;
  }
  .generated-content {
    padding: 0 10px 18px;
  }
  .generated-control-filters {
    gap: 7px;
  }
  .generated-date {
    display: none;
  }
  .generated-period {
    margin-left: 0;
    border-radius: 14px;
  }
  .generated-dashboard {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }
  .generated-kpi-card,
  .generated-status-card,
  .generated-quality-card,
  .generated-snapshot-card,
  .generated-overview-card,
  .generated-usage-card,
  .generated-assistant {
    grid-column: 1;
    grid-row: auto;
  }
  .generated-kpi-card {
    min-height: 250px;
  }
  .generated-kpi-row {
    grid-template-columns: 1fr 1fr;
  }
  .generated-kpi-row > div:nth-child(3) {
    padding-left: 4px;
    border-left: 0;
  }
  .generated-status-card {
    min-height: 500px;
  }
  .generated-status-list {
    grid-template-columns: 1fr;
  }
  .generated-quality-card,
  .generated-snapshot-card,
  .generated-overview-card,
  .generated-usage-card,
  .generated-assistant {
    min-height: 310px;
  }
}

/* 4DX Command Center */
.fourdx-page {
  --fourdx-navy: #073b59;
  --fourdx-teal: #0c8f8b;
  --fourdx-lime: #a8db24;
  --fourdx-ink: #123247;
  display: grid;
  gap: 16px;
  padding: 2px 0 28px;
}

.fourdx-hero {
  position: relative;
  overflow: hidden;
  min-height: 174px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 30px 34px;
  color: #fff;
  background:
    radial-gradient(circle at 83% -20%, rgba(168, 219, 36, .33), transparent 37%),
    radial-gradient(circle at 22% 170%, rgba(33, 178, 164, .33), transparent 46%),
    linear-gradient(125deg, #06344f 0%, #07556a 100%);
  border-radius: 23px;
  box-shadow: 0 16px 35px rgba(7, 59, 89, .12);
}

.fourdx-hero::after {
  content: "4";
  position: absolute;
  right: 32%;
  top: -67px;
  color: rgba(255,255,255,.045);
  font-size: 290px;
  font-weight: 900;
  line-height: 1;
}

.fourdx-hero-copy,
.fourdx-hero-score { position: relative; z-index: 1; }
.fourdx-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #c8ef68;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .14em;
}
.fourdx-kicker svg { width: 16px; height: 16px; }
.fourdx-hero h1 { margin: 10px 0 7px; font-size: clamp(38px, 3vw, 54px); letter-spacing: -.05em; }
.fourdx-hero p { max-width: 610px; margin: 0; color: rgba(255,255,255,.72); font-size: 13px; line-height: 1.6; }
.fourdx-hero-score {
  min-width: 385px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 17px;
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 17px;
  backdrop-filter: blur(8px);
}
.fourdx-hero-score span { display: grid; gap: 5px; padding: 5px 17px; border-right: 1px solid rgba(255,255,255,.13); }
.fourdx-hero-score span:last-child { border-right: 0; }
.fourdx-hero-score small { color: rgba(255,255,255,.62); font-size: 10px; }
.fourdx-hero-score strong { font-size: 28px; letter-spacing: -.04em; }

.fourdx-disciplines {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 11px;
}
.fourdx-disciplines article {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 11px;
  padding: 15px;
  background: #fff;
  border: 1px solid #e2e9ec;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(18, 57, 78, .04);
}
.fourdx-disciplines article > b {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #5a7821;
  background: #eff8d8;
  border-radius: 10px;
  font-size: 11px;
}
.fourdx-disciplines article > span { min-width: 0; display: grid; grid-template-columns: 16px 1fr; column-gap: 7px; }
.fourdx-disciplines svg { width: 15px; height: 15px; color: var(--fourdx-teal); }
.fourdx-disciplines strong { color: var(--fourdx-ink); font-size: 12px; }
.fourdx-disciplines small { grid-column: 1 / 3; margin-top: 5px; color: #7c8d96; font-size: 10px; line-height: 1.45; }

.fourdx-builder {
  display: grid;
  grid-template-columns: minmax(500px, 1.05fr) minmax(470px, .95fr);
  align-items: stretch;
  gap: 16px;
}
.fourdx-form-card,
.fourdx-scoreboard,
.fourdx-goals-section {
  background: #fff;
  border: 1px solid #e1e9ec;
  border-radius: 21px;
  box-shadow: 0 11px 30px rgba(17, 53, 74, .05);
}
.fourdx-form-card { padding: 21px; }
.fourdx-card-head { display: flex; align-items: center; gap: 11px; padding-bottom: 16px; border-bottom: 1px solid #e9eef0; }
.fourdx-card-head > span {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #0f9b92, #07536a);
  border-radius: 13px;
  box-shadow: 0 9px 20px rgba(10, 127, 126, .2);
}
.fourdx-card-head svg { width: 20px; height: 20px; }
.fourdx-card-head p,
.fourdx-section-head p { margin: 0 0 3px; color: #729429; font-size: 10px; font-weight: 900; letter-spacing: .13em; }
.fourdx-card-head h2,
.fourdx-section-head h2 { margin: 0; color: var(--fourdx-ink); font-size: 22px; letter-spacing: -.025em; }
.fourdx-form-card form,
.fourdx-checkin-form { display: grid; gap: 11px; padding-top: 16px; }
.fourdx-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.fourdx-field { min-width: 0; display: grid; gap: 6px; }
.fourdx-field > span:first-child { color: #496476; font-size: 10px; font-weight: 800; }
.fourdx-field b { color: #80ae1d; }
.fourdx-input {
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  background: #f7f9fa;
  border: 1px solid #dfe7ea;
  border-radius: 10px;
}
.fourdx-input:focus-within,
.fourdx-field textarea:focus {
  background: #fff;
  border-color: #4aaea1;
  box-shadow: 0 0 0 3px rgba(12, 143, 139, .1);
}
.fourdx-input svg { flex: 0 0 auto; width: 15px; height: 15px; color: #68818f; }
.fourdx-input input {
  min-width: 0;
  width: 100%;
  padding: 0;
  color: #183b50;
  background: transparent;
  border: 0;
  outline: 0;
  font: inherit;
  font-size: 11px;
}
.fourdx-field textarea {
  width: 100%;
  resize: vertical;
  padding: 10px 11px;
  color: #183b50;
  background: #f7f9fa;
  border: 1px solid #dfe7ea;
  border-radius: 10px;
  outline: 0;
  font: inherit;
  font-size: 11px;
  line-height: 1.5;
}
.fourdx-primary,
.fourdx-secondary {
  min-height: 43px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff;
  background: linear-gradient(125deg, #0d918c, #073d5c);
  border: 0;
  border-radius: 11px;
  box-shadow: 0 10px 22px rgba(7, 79, 96, .16);
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}
.fourdx-primary:hover,
.fourdx-secondary:hover { transform: translateY(-1px); box-shadow: 0 13px 25px rgba(7, 79, 96, .22); }
.fourdx-primary svg,
.fourdx-secondary svg { width: 15px; height: 15px; }

.fourdx-scoreboard {
  position: relative;
  overflow: hidden;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 22px;
  color: #fff;
  background:
    radial-gradient(circle at 95% 0, rgba(168,219,36,.28), transparent 33%),
    linear-gradient(150deg, #082d46, #075568);
  border-color: transparent;
}
.fourdx-scoreboard::after {
  content: "";
  position: absolute;
  right: -85px;
  bottom: -85px;
  width: 230px;
  height: 230px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 50%;
  box-shadow: 0 0 0 34px rgba(255,255,255,.025), 0 0 0 68px rgba(255,255,255,.018);
}
.fourdx-scoreboard > * { position: relative; z-index: 1; }
.fourdx-scoreboard-top { display: flex; align-items: flex-start; justify-content: space-between; }
.fourdx-scoreboard-top > span { display: grid; gap: 4px; }
.fourdx-scoreboard-top small { color: #bfe965; font-size: 10px; font-weight: 900; letter-spacing: .13em; }
.fourdx-scoreboard-top strong { color: rgba(255,255,255,.7); font-size: 11px; }
.fourdx-live-dot {
  width: 9px;
  height: 9px;
  background: #a9dd27;
  border: 2px solid rgba(255,255,255,.3);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(169,221,39,.11);
}
.fourdx-featured { display: grid; grid-template-columns: 116px 1fr; align-items: center; gap: 18px; margin-top: 27px; }
.fourdx-progress-ring {
  width: 116px;
  height: 116px;
  display: grid;
  place-items: center;
  background: conic-gradient(#a8db24 calc(var(--progress) * 1%), rgba(255,255,255,.1) 0);
  border-radius: 50%;
}
.fourdx-progress-ring::before {
  content: "";
  grid-area: 1 / 1;
  width: 88px;
  height: 88px;
  background: #0a435a;
  border-radius: 50%;
}
.fourdx-progress-ring span { z-index: 1; grid-area: 1 / 1; display: grid; text-align: center; }
.fourdx-progress-ring strong { font-size: 28px; letter-spacing: -.04em; }
.fourdx-progress-ring small { color: rgba(255,255,255,.6); font-size: 9px; }
.fourdx-featured-copy { min-width: 0; }
.fourdx-featured-copy h2 {
  display: -webkit-box;
  overflow: hidden;
  margin: 10px 0 8px;
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -.025em;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.fourdx-featured-copy p { margin: 0; color: rgba(255,255,255,.59); font-size: 10px; }
.fourdx-status {
  display: inline-flex;
  width: max-content;
  padding: 5px 8px;
  color: #16605b;
  background: #e8f7ef;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 900;
}
.fourdx-status.achieved { color: #4e6e12; background: #eff8d8; }
.fourdx-status.watch { color: #8b6513; background: #fff4d9; }
.fourdx-status.overdue { color: #963f3d; background: #ffebe8; }
.fourdx-score-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 22px; }
.fourdx-score-pair > span {
  display: grid;
  gap: 4px;
  padding: 13px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
}
.fourdx-score-pair small { color: #9fdad1; font-size: 9px; }
.fourdx-score-pair strong { font-size: 21px; }
.fourdx-score-pair em { color: rgba(255,255,255,.67); font-size: 10px; font-style: normal; font-weight: 500; }
.fourdx-score-pair p { margin: 0; color: rgba(255,255,255,.52); font-size: 9px; }
.fourdx-score-track { height: 7px; overflow: hidden; margin-top: 13px; background: rgba(255,255,255,.1); border-radius: 999px; }
.fourdx-score-track i { display: block; height: 100%; background: linear-gradient(90deg, #19b2a4, #a8db24); border-radius: inherit; }
.fourdx-next-commitment { display: flex; align-items: flex-start; gap: 9px; margin-top: 16px; padding: 12px; background: rgba(255,255,255,.07); border-radius: 12px; }
.fourdx-next-commitment > svg { width: 15px; height: 15px; color: #b4e538; }
.fourdx-next-commitment span { display: grid; gap: 4px; }
.fourdx-next-commitment small { color: #a9d9d2; font-size: 9px; }
.fourdx-next-commitment strong { font-size: 10px; line-height: 1.45; }
.fourdx-scoreboard-list { display: grid; gap: 7px; margin-top: auto; padding-top: 19px; }
.fourdx-scoreboard-list > span { display: grid; grid-template-columns: 25px 1fr; gap: 8px; padding-top: 8px; border-top: 1px solid rgba(255,255,255,.08); }
.fourdx-scoreboard-list > span > b { color: #a8db24; font-size: 10px; }
.fourdx-scoreboard-list i { min-width: 0; display: grid; gap: 2px; font-style: normal; }
.fourdx-scoreboard-list strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.fourdx-scoreboard-list small { color: rgba(255,255,255,.5); font-size: 9px; }
.fourdx-empty-score { display: grid; place-items: center; margin: auto; padding: 36px; text-align: center; }
.fourdx-empty-score svg { width: 50px; height: 50px; color: #a8db24; }
.fourdx-empty-score h2 { margin: 17px 0 7px; font-size: 25px; }
.fourdx-empty-score p { max-width: 340px; margin: 0; color: rgba(255,255,255,.62); font-size: 11px; line-height: 1.6; }

.fourdx-goals-section { padding: 21px; }
.fourdx-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 15px; }
.fourdx-section-head > span { padding: 7px 10px; color: #547083; background: #f2f5f6; border-radius: 999px; font-size: 10px; }
.fourdx-goal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.fourdx-goal-card {
  min-width: 0;
  overflow: hidden;
  background: #fbfcfc;
  border: 1px solid #e3e9eb;
  border-radius: 16px;
}
.fourdx-goal-card-head {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 28px;
  align-items: flex-start;
  gap: 10px;
  padding: 15px;
}
.fourdx-goal-index { width: 38px; height: 38px; display: grid; place-items: center; color: #fff; background: var(--fourdx-navy); border-radius: 11px; }
.fourdx-goal-index svg { width: 17px; height: 17px; }
.fourdx-goal-card-head > div { min-width: 0; }
.fourdx-goal-card-head h3 { margin: 7px 0 4px; color: var(--fourdx-ink); font-size: 15px; line-height: 1.4; }
.fourdx-goal-card-head p { margin: 0; color: #80919a; font-size: 9px; }
.fourdx-goal-card-head > button {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: #a54c49;
  background: #fff3f1;
  border: 1px solid #efd8d5;
  border-radius: 8px;
  cursor: pointer;
}
.fourdx-goal-card-head > button svg { width: 13px; height: 13px; }
.fourdx-goal-progress { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 8px; padding: 0 15px 14px; }
.fourdx-goal-progress > span { display: grid; gap: 3px; }
.fourdx-goal-progress > span strong { color: var(--fourdx-ink); font-size: 17px; }
.fourdx-goal-progress > span small { color: #85949b; font-size: 9px; }
.fourdx-goal-progress > b { color: #1b756f; font-size: 16px; }
.fourdx-goal-progress > div { grid-column: 1 / 3; height: 7px; overflow: hidden; background: #e6ecee; border-radius: 999px; }
.fourdx-goal-progress > div i { display: block; height: 100%; background: linear-gradient(90deg, #0b9990, #a6d926); border-radius: inherit; }
.fourdx-measures { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid #e6ecee; border-bottom: 1px solid #e6ecee; }
.fourdx-measures > span { min-width: 0; display: grid; gap: 4px; padding: 12px 15px; border-right: 1px solid #e6ecee; }
.fourdx-measures > span:last-child { border-right: 0; }
.fourdx-measures small { color: #819198; font-size: 9px; }
.fourdx-measures strong { overflow: hidden; color: #284c60; font-size: 10px; line-height: 1.45; text-overflow: ellipsis; }
.fourdx-measures em { color: #6d9422; font-size: 9px; font-style: normal; font-weight: 800; }
.fourdx-checkin summary {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 15px;
  color: #1c566e;
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
  list-style: none;
}
.fourdx-checkin summary::-webkit-details-marker { display: none; }
.fourdx-checkin summary svg { width: 14px; height: 14px; color: var(--fourdx-teal); }
.fourdx-checkin summary span { margin-left: auto; color: #819199; font-size: 9px; font-weight: 600; }
.fourdx-checkin[open] summary { background: #f2f8f7; }
.fourdx-checkin-form { padding: 14px 15px; background: #fff; border-top: 1px solid #e6ecee; }
.fourdx-checkin-form .fourdx-form-grid { grid-template-columns: repeat(3, 1fr); }
.fourdx-secondary { justify-self: end; min-width: 145px; min-height: 38px; }
.fourdx-history { display: grid; padding: 3px 15px 13px; background: #fff; }
.fourdx-history > span { display: grid; grid-template-columns: 60px 8px 1fr; gap: 7px; padding-top: 9px; }
.fourdx-history time { color: #7f9098; font-size: 9px; }
.fourdx-history > span > i { position: relative; width: 6px; height: 6px; margin-top: 2px; background: #8fc826; border-radius: 50%; }
.fourdx-history > span > i::after { content: ""; position: absolute; left: 2px; top: 8px; width: 1px; height: 24px; background: #dce5e8; }
.fourdx-history > span:last-child > i::after { display: none; }
.fourdx-history p { display: grid; gap: 2px; margin: 0; }
.fourdx-history strong { color: #31566a; font-size: 10px; line-height: 1.45; }
.fourdx-history small { color: #83939a; font-size: 9px; }
.fourdx-no-history { padding: 12px 0 3px; color: #8c9aa0; font-size: 10px; text-align: center; }
.fourdx-empty-portfolio { grid-column: 1 / -1; display: grid; place-items: center; padding: 45px 20px; text-align: center; background: #f8faf9; border: 1px dashed #cfdadd; border-radius: 15px; }
.fourdx-empty-portfolio svg { width: 32px; height: 32px; color: #7cae1c; }
.fourdx-empty-portfolio h3 { margin: 12px 0 5px; color: var(--fourdx-ink); font-size: 17px; }
.fourdx-empty-portfolio p { margin: 0; color: #829198; font-size: 11px; }

/* ---- Bagian yang sebelumnya tanpa gaya sama sekali ----
   42 kelas di halaman 4DX dipakai render tetapi tidak pernah punya aturan CSS,
   sehingga kartu, daftar, dan grafiknya tampil sebagai elemen bawaan peramban:
   list bertitik, tabel tanpa jarak, bilah grafik tanpa tinggi. Semua memakai
   palet --fourdx-* yang sudah ada supaya menyatu dengan bagian yang sudah rapi. */

/* Tata letak dua kolom: papan skor jadi fokus, kartu pendamping di sisinya. */
.fourdx-board-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.fourdx-board-side { display: grid; gap: 14px; align-content: start; }
.fourdx-cadence-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.fourdx-analytics-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; }

/* Permukaan kartu dipakai bersama oleh sisi, grafik, linimasa, dan tabel unit. */
.fourdx-side-card,
.fourdx-chart-card,
.fourdx-timeline-card,
.fourdx-unit-card { display: flex; flex-direction: column; gap: 12px; padding: 16px; background: #fff; border: 1px solid #e2eaec; border-radius: 15px; }
.fourdx-timeline-card,
.fourdx-unit-card { margin-top: 14px; }

.fourdx-side-note { margin: auto 0 0; color: #7f9098; font-size: 11px; line-height: 1.5; }
.fourdx-side-empty,
.fourdx-chart-empty { margin: 0; padding: 18px 4px; color: #86969d; font-size: 11.5px; line-height: 1.55; text-align: center; }
.fourdx-scoreboard-empty { color: rgba(255, 255, 255, 0.78); font-size: 11.5px; }

/* ---- Bilah alat portofolio ---- */
.fourdx-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.fourdx-toolbar-filters { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.fourdx-search { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 13px; background: #fff; border: 1px solid #dbe5e8; border-radius: 999px; }
.fourdx-search svg { width: 15px; height: 15px; flex: 0 0 15px; color: #7f9098; }
.fourdx-search input { width: min(280px, 46vw); border: 0; outline: none; background: transparent; color: var(--fourdx-ink); font: inherit; font-size: 13px; }
.fourdx-select { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 13px; background: #fff; border: 1px solid #dbe5e8; border-radius: 999px; }
.fourdx-select > span { color: #7f9098; font-size: 11px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.fourdx-select select { border: 0; outline: none; background: transparent; color: var(--fourdx-ink); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.fourdx-search:focus-within,
.fourdx-select:focus-within { border-color: var(--fourdx-teal); box-shadow: 0 0 0 3px rgba(12, 143, 139, 0.14); }

/* ---- Disiplin ke-4: ritme mingguan ---- */
.fourdx-cadence-figure { display: grid; gap: 3px; }
.fourdx-cadence-figure strong { color: var(--fourdx-ink); font-size: 30px; line-height: 1.05; font-variant-numeric: tabular-nums; }
.fourdx-cadence-figure small { color: #7f9098; font-size: 11px; line-height: 1.5; }
.fourdx-cadence-track,
.fourdx-cell-track { height: 6px; background: #e8eef0; border-radius: 999px; overflow: hidden; }
.fourdx-cadence-track > i,
.fourdx-cell-track > i { display: block; height: 100%; background: linear-gradient(90deg, var(--fourdx-teal), var(--fourdx-lime)); border-radius: 999px; transition: width 0.3s ease; }
.fourdx-cell-track { width: 108px; height: 5px; margin-bottom: 3px; }

/* ---- Daftar: butuh intervensi, agenda, streak, peringkat ---- */
.fourdx-attention-list,
.fourdx-cadence-list,
.fourdx-streak-list,
.fourdx-leaderboard { list-style: none; display: grid; gap: 8px; margin: 0; padding: 0; }

.fourdx-attention-list li { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 10px; padding: 9px 11px; background: #f8fafb; border: 1px solid #e8eef0; border-radius: 11px; }
.fourdx-attention-list strong { display: block; color: var(--fourdx-ink); font-size: 12.5px; line-height: 1.4; }
.fourdx-attention-list small { color: #83939a; font-size: 10.5px; }

.fourdx-cadence-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; background: #f8fafb; border: 1px solid #e8eef0; border-radius: 11px; }
.fourdx-cadence-list strong { display: block; color: var(--fourdx-ink); font-size: 12.5px; line-height: 1.4; }
.fourdx-cadence-list small { color: #83939a; font-size: 10.5px; }
.fourdx-cadence-list .fourdx-secondary { flex: 0 0 auto; justify-self: auto; }

.fourdx-streak-list li { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 11px; }
.fourdx-streak-list > li > span { display: grid; place-items: center; width: 42px; height: 42px; background: var(--fourdx-navy); color: #fff; border-radius: 12px; font-size: 16px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.fourdx-streak-list > li > span small { color: rgba(255, 255, 255, 0.75); font-size: 8.5px; font-weight: 700; }
.fourdx-streak-list strong { display: block; color: var(--fourdx-ink); font-size: 12.5px; line-height: 1.4; }
.fourdx-streak-list small { color: #83939a; font-size: 10.5px; }

.fourdx-leaderboard li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 11px; padding: 9px 0; border-bottom: 1px solid #eef3f4; }
.fourdx-leaderboard li:last-child { border-bottom: 0; }
.fourdx-leaderboard > li > b { color: #a8b6bc; font-size: 13px; font-variant-numeric: tabular-nums; }
.fourdx-leaderboard strong { display: block; color: var(--fourdx-ink); font-size: 12.5px; line-height: 1.4; }
.fourdx-leaderboard small { color: #83939a; font-size: 10.5px; }

/* ---- Linimasa akuntabilitas ---- */
.fourdx-timeline { list-style: none; display: grid; gap: 2px; margin: 0; padding: 0; }
.fourdx-timeline li { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 12px; padding: 11px 0; border-top: 1px solid #eef3f4; }
.fourdx-timeline li:first-child { border-top: 0; }
.fourdx-timeline time { color: #7f9098; font-size: 10.5px; font-weight: 700; padding-top: 2px; }
.fourdx-timeline strong { display: block; color: var(--fourdx-ink); font-size: 12.5px; line-height: 1.45; }
.fourdx-timeline small { display: block; margin-top: 2px; color: #83939a; font-size: 10.5px; }
.fourdx-timeline em { display: block; margin-top: 4px; color: var(--fourdx-teal); font-style: normal; font-size: 10.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.fourdx-timeline p { margin: 6px 0 0; padding: 8px 10px; background: #f8fafb; border-radius: 9px; color: #6f8188; font-size: 11px; line-height: 1.55; }

/* ---- Grafik batang 12 minggu ---- */
.fourdx-bars { display: flex; align-items: flex-end; gap: 5px; height: 132px; padding-top: 4px; }
.fourdx-bars > span { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; height: 100%; min-width: 0; }
.fourdx-bars i { display: block; width: 100%; max-width: 26px; background: linear-gradient(180deg, var(--fourdx-lime), var(--fourdx-teal)); border-radius: 5px 5px 2px 2px; }
.fourdx-bars small { color: #8c9aa0; font-size: 9px; white-space: nowrap; }

/* ---- Tren garis ---- */
.fourdx-trend-block { display: grid; gap: 6px; }
.fourdx-trend-label { color: #7f9098; font-size: 11px; font-weight: 700; }
.fourdx-trend-line { height: 46px; padding: 4px 0; }
.fourdx-sparkline { width: 100%; height: 100%; overflow: visible; }
.fourdx-trend-line.progress .fourdx-sparkline { color: var(--fourdx-teal); }
.fourdx-trend-line.lead .fourdx-sparkline { color: #7cae1c; }

/* ---- Sebaran laju ---- */
.fourdx-pace-dist { list-style: none; display: grid; gap: 10px; margin: 0; padding: 0; }
.fourdx-pace-dist li { display: grid; grid-template-columns: minmax(120px, auto) minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.fourdx-pace-dist b { color: var(--fourdx-ink); font-size: 13px; font-variant-numeric: tabular-nums; }
.fourdx-pace-bar { height: 8px; background: #eef3f4; border-radius: 999px; overflow: hidden; }
.fourdx-pace-bar > i { display: block; height: 100%; border-radius: 999px; background: #9fb0b6; transition: width 0.3s ease; }
.fourdx-pace-bar > i.ahead { background: #2f9e5f; }
.fourdx-pace-bar > i.on-track { background: var(--fourdx-teal); }
.fourdx-pace-bar > i.behind { background: #d69412; }
.fourdx-pace-bar > i.overdue { background: #c8452f; }
.fourdx-pace-bar > i.achieved { background: var(--fourdx-lime); }

/* Lencana laju. Warna tidak berdiri sendiri — selalu bersama ikon dan teks,
   supaya tetap terbaca oleh yang sulit membedakan warna. */
.fourdx-pace { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: 10.5px; font-weight: 800; white-space: nowrap; background: #eef3f4; color: #5d6f76; }
.fourdx-pace svg { width: 12px; height: 12px; flex: 0 0 12px; }
.fourdx-pace.ahead { background: #ddf3e5; color: #1c7040; }
.fourdx-pace.on-track { background: #d8f0ef; color: #0a5f5c; }
.fourdx-pace.behind { background: #fbeed3; color: #7d5100; }
.fourdx-pace.overdue { background: #fbe0dc; color: #8f1d17; }
.fourdx-pace.achieved { background: #edf7cf; color: #465f0a; }

.fourdx-chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; background: #eef3f4; color: #5d6f76; border-radius: 999px; font-size: 10.5px; font-weight: 700; }
.fourdx-chip svg { width: 12px; height: 12px; }
.fourdx-nudge { display: flex; align-items: flex-start; gap: 7px; margin: 0; padding: 9px 11px; background: #fbeed3; color: #7d5100; border-radius: 10px; font-size: 11px; line-height: 1.5; }
.fourdx-nudge svg { width: 14px; height: 14px; flex: 0 0 14px; margin-top: 1px; }

/* ---- Kartu WIG: aksi, meta, jejak ganda ---- */
.fourdx-goal-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.fourdx-goal-card-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 15px 13px; }
.fourdx-ghost { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 6px 12px; border: 1px solid #dbe5e8; border-radius: 999px; background: transparent; color: #5d6f76; font: inherit; font-size: 11.5px; font-weight: 700; cursor: pointer; transition: background 0.15s, color 0.15s, border-color 0.15s; }
.fourdx-ghost:hover { background: #f2f7f8; color: var(--fourdx-ink); border-color: #c6d5da; }
.fourdx-ghost svg { width: 13px; height: 13px; }
.fourdx-dual-track { display: grid; gap: 5px; }
.fourdx-track-legend { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #83939a; font-size: 10px; font-weight: 700; }

/* ---- Formulir ubah WIG ---- */
.fourdx-edit-form { display: grid; gap: 11px; padding: 13px 15px 15px; background: #f8fafb; border-top: 1px solid #e6ecee; }
.fourdx-edit-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }

/* ---- Tabel per unit ---- */
.fourdx-unit-table td small { display: block; color: #83939a; font-size: 10px; font-variant-numeric: tabular-nums; }
.fourdx-unit-table td { vertical-align: middle; }

@media (max-width: 1180px) {
  .fourdx-board-layout,
  .fourdx-cadence-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .fourdx-toolbar { align-items: stretch; }
  .fourdx-toolbar-filters { width: 100%; }
  .fourdx-search { flex: 1 1 100%; }
  .fourdx-search input { width: 100%; }
  .fourdx-select { flex: 1 1 calc(50% - 5px); justify-content: space-between; }
  .fourdx-timeline li { grid-template-columns: 1fr; gap: 4px; }
  /* Label dan angkanya tetap sebaris; hanya bilahnya yang turun ke bawah,
     supaya angka tidak terlepas sendirian di baris berikutnya. */
  .fourdx-pace-dist li { grid-template-columns: minmax(0, 1fr) auto; row-gap: 6px; }
  .fourdx-pace-dist li > span { grid-row: 1; grid-column: 1; }
  .fourdx-pace-dist li > b { grid-row: 1; grid-column: 2; }
  .fourdx-pace-dist .fourdx-pace-bar { grid-row: 2; grid-column: 1 / -1; }
  .fourdx-bars { height: 108px; }
  .fourdx-cadence-list li { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  .fourdx-cadence-track > i,
  .fourdx-cell-track > i,
  .fourdx-pace-bar > i,
  .fourdx-ghost { transition: none; }
}

@media (max-width: 1180px) {
  .fourdx-hero { align-items: flex-start; flex-direction: column; }
  .fourdx-hero-score { min-width: min(100%, 500px); }
  .fourdx-disciplines { grid-template-columns: repeat(2, 1fr); }
  .fourdx-builder { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .fourdx-hero { padding: 24px 20px; }
  .fourdx-hero-score { min-width: 0; width: 100%; grid-template-columns: 1fr; }
  .fourdx-hero-score span { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.13); }
  .fourdx-hero-score span:last-child { border-bottom: 0; }
  .fourdx-disciplines,
  .fourdx-goal-grid,
  .fourdx-form-grid,
  .fourdx-checkin-form .fourdx-form-grid { grid-template-columns: 1fr; }
  .fourdx-featured { grid-template-columns: 1fr; }
  .fourdx-score-pair,
  .fourdx-measures { grid-template-columns: 1fr; }
  .fourdx-measures > span { border-right: 0; border-bottom: 1px solid #e6ecee; }
  .fourdx-measures > span:last-child { border-bottom: 0; }
  .fourdx-section-head { align-items: flex-start; flex-direction: column; }
}

/* Pengaturan Target LANURI */
.settings-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 18px;
  padding: 5px;
  background: #e9eef1;
  border-radius: 13px;
  width: fit-content;
}

.settings-tabs button {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 37px;
  padding: 0 15px;
  color: #627885;
  background: transparent;
  border: 0;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.settings-tabs button svg { width: 15px; height: 15px; }
.settings-tabs button.active {
  color: #fff;
  background: linear-gradient(135deg, #0b8584, #074664);
  box-shadow: 0 7px 17px rgba(7, 70, 100, .15);
}

.lanuri-target-page { display: grid; gap: 18px; }
.lanuri-target-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
}
.lanuri-target-eyebrow,
.lanuri-dialog-eyebrow {
  margin: 0 0 5px;
  color: #0c8786;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
}
.lanuri-target-head h1 { margin: 0; color: #073a5a; font-size: clamp(34px, 3vw, 49px); letter-spacing: -.045em; }
.lanuri-target-head > div:first-child > p:last-child { max-width: 670px; margin: 7px 0 0; color: #70838e; font-size: 12px; }
.lanuri-target-actions { display: flex; align-items: flex-end; gap: 10px; }
.lanuri-target-actions label { display: grid; gap: 5px; color: #577080; font-size: 10px; font-weight: 700; }
.lanuri-target-actions input {
  height: 43px;
  padding: 0 12px;
  color: #123b53;
  background: #fff;
  border: 1px solid #dce5e8;
  border-radius: 11px;
  font: inherit;
  font-size: 12px;
}

.lanuri-target-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.lanuri-target-summary article {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 17px;
  background: #fff;
  border: 1px solid #e0e8eb;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(15, 53, 72, .04);
}
.lanuri-target-summary article > span {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #0a8e88, #07516b);
  border-radius: 12px;
}
.lanuri-target-summary article.attention > span { background: linear-gradient(145deg, #d68a27, #b45c2c); }
.lanuri-target-summary svg { width: 18px; height: 18px; }
.lanuri-target-summary small { display: block; color: #809099; font-size: 10px; }
.lanuri-target-summary strong { display: block; margin-top: 2px; color: #073a5a; font-size: 25px; }

.lanuri-target-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}
.lanuri-target-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid #dfe8eb;
  border-radius: 19px;
  box-shadow: 0 11px 30px rgba(12, 52, 73, .05);
}
.lanuri-target-card > header {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 16px 18px;
  border-bottom: 1px solid #edf1f2;
}
.lanuri-target-service-icon {
  width: 41px;
  height: 41px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #0c918c, #07506a);
  border-radius: 13px;
  box-shadow: 0 8px 19px rgba(10, 124, 126, .16);
}
.lanuri-target-card.viola .lanuri-target-service-icon { background: linear-gradient(145deg, #7665e7, #3c388a); box-shadow: 0 8px 19px rgba(76, 63, 166, .19); }
.lanuri-target-service-icon svg { width: 20px; height: 20px; }
.lanuri-target-card > header > div { min-width: 0; flex: 1; }
.lanuri-target-card > header small { display: block; color: #82929b; font-size: 9px; }
.lanuri-target-card > header h2 { margin: 2px 0 0; color: #073a5a; font-size: 19px; }
.lanuri-target-card.viola > header h2 { color: #302c76; }
.lanuri-target-status { padding: 6px 9px; border-radius: 999px; font-size: 9px; font-weight: 800; }
.lanuri-target-status.success { color: #26733d; background: #e7f5e9; }
.lanuri-target-status.warning { color: #9b5a16; background: #fff1da; }
.lanuri-target-status.danger { color: #a6403a; background: #fbe8e6; }
.lanuri-target-status.info { color: #176b7b; background: #e6f3f4; }
.lanuri-target-status.neutral { color: #66757c; background: #edf1f2; }

.lanuri-target-numbers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 16px 18px 8px;
}
.lanuri-target-numbers > div { padding: 12px 13px; background: #f7f9fa; border-radius: 12px; }
.lanuri-target-card.viola .lanuri-target-numbers > div { background: #f8f7fe; }
.lanuri-target-numbers small { display: block; color: #82929a; font-size: 9px; }
.lanuri-target-numbers strong { color: #073a5a; font-size: 27px; }
.lanuri-target-card.viola .lanuri-target-numbers strong { color: #3e378e; }
.lanuri-target-numbers span { margin-left: 5px; color: #748892; font-size: 10px; }

.lanuri-target-progress,
.lanuri-target-checkpoint { display: grid; gap: 7px; padding: 9px 18px; }
.lanuri-target-progress > div:first-child,
.lanuri-target-checkpoint > div:first-child { display: flex; align-items: center; justify-content: space-between; color: #5f7784; font-size: 10px; }
.lanuri-target-progress strong,
.lanuri-target-checkpoint strong { color: #073a5a; font-size: 11px; }
.lanuri-target-track { height: 7px; overflow: hidden; background: #e8edef; border-radius: 999px; }
.lanuri-target-track i { display: block; height: 100%; background: linear-gradient(90deg, #0b9690, #9bd522); border-radius: inherit; }
.lanuri-target-card.viola .lanuri-target-track i { background: linear-gradient(90deg, #6454d7, #45d1ca); }
.lanuri-target-track.checkpoint { height: 5px; }
.lanuri-target-checkpoint p { margin: 0; color: #71858f; font-size: 9px; line-height: 1.5; }

.lanuri-target-rules { display: grid; gap: 0; margin: 8px 18px 12px; border-top: 1px solid #edf1f2; }
.lanuri-target-rules > div { display: grid; grid-template-columns: 105px minmax(0, 1fr); gap: 9px; padding: 8px 0; border-bottom: 1px solid #f0f3f4; }
.lanuri-target-rules dt { display: flex; align-items: center; gap: 6px; color: #667d89; font-size: 9px; }
.lanuri-target-rules dt svg { width: 12px; height: 12px; color: #0b8987; }
.lanuri-target-card.viola .lanuri-target-rules dt svg { color: #6657d8; }
.lanuri-target-rules dd { margin: 0; color: #294c60; font-size: 9px; font-weight: 700; text-align: right; }
.lanuri-target-card > footer { display: flex; justify-content: flex-end; gap: 7px; padding: 11px 18px; background: #f8fafb; }
.lanuri-target-card > footer button {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 10px;
  color: #31566a;
  background: #fff;
  border: 1px solid #dce5e8;
  border-radius: 8px;
  font-size: 9px;
  font-weight: 700;
  cursor: pointer;
}
.lanuri-target-card > footer button.danger { color: #a24742; }
.lanuri-target-card > footer svg { width: 12px; height: 12px; }
.lanuri-target-empty {
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  min-height: 310px;
  padding: 35px;
  text-align: center;
  background: #fff;
  border: 1px dashed #cddadd;
  border-radius: 20px;
}
.lanuri-target-empty > svg { width: 40px; height: 40px; color: #0a8987; }
.lanuri-target-empty h2 { margin: 12px 0 0; color: #073a5a; font-size: 21px; }
.lanuri-target-empty p { max-width: 390px; margin: 6px 0 17px; color: #798b94; font-size: 11px; }

.lanuri-dialog .dialog-inner { width: min(780px, calc(100vw - 34px)); }
.lanuri-target-form { max-height: min(820px, calc(100vh - 40px)); overflow-y: auto; }
.lanuri-dialog-eyebrow { margin-bottom: 3px; }
.lanuri-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}
.lanuri-form-field { display: grid; gap: 6px; min-width: 0; }
.lanuri-form-field.full { grid-column: 1 / -1; }
.lanuri-form-field > span:first-child { color: #36596d; font-size: 11px; font-weight: 700; }
.lanuri-form-field b { color: #72b82d; }
.lanuri-form-field small { color: #86969e; font-size: 9px; }
.lanuri-multi-select { min-height: 112px; padding-block: 7px; }
.lanuri-multi-select option { padding: 6px; border-radius: 6px; }
.lanuri-percent-input,
.lanuri-unit-input { position: relative; display: block; }
.lanuri-percent-input .input,
.lanuri-unit-input .input { padding-right: 46px; }
.lanuri-percent-input i,
.lanuri-unit-input i {
  position: absolute;
  right: 12px;
  top: 50%;
  color: #6e828d;
  font-size: 11px;
  font-style: normal;
  transform: translateY(-50%);
}
.lanuri-target-preview {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 15px;
  padding: 12px 14px;
  color: #1e5f66;
  background: #ecf7f2;
  border: 1px solid #d1eadd;
  border-radius: 12px;
}
.lanuri-target-preview > span { width: 31px; height: 31px; display: grid; place-items: center; color: #fff; background: #0b8987; border-radius: 9px; }
.lanuri-target-preview svg { width: 15px; height: 15px; }
.lanuri-target-preview small { display: block; font-size: 9px; }
.lanuri-target-preview strong { display: block; margin-top: 2px; font-size: 11px; }

/* Status pelaksanaan agenda LANURI */
.bpjs-agenda-item { grid-template-columns: 39px minmax(0, 1fr) 60px; }
.bpjs-agenda-actions { display: flex; justify-content: flex-end; gap: 5px; }
.bpjs-agenda-actions > button {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  color: #19746d;
  background: #edf8f4;
  border: 1px solid #d4ebe3;
  border-radius: 8px;
  cursor: pointer;
}
.bpjs-agenda-actions > button.danger { color: #a6534e; background: #fff5f3; border-color: #f1d9d6; }
.bpjs-agenda-actions svg { width: 13px; height: 13px; }
.schedule-status {
  width: fit-content;
  display: block;
  margin-top: 5px;
  padding: 3px 6px;
  border-radius: 999px;
  font-size: 8px;
  font-weight: 800;
}
.schedule-status.scheduled { color: #17697a; background: #e6f3f4; }
.schedule-status.completed { color: #287541; background: #e7f5e9; }
.schedule-status.cancelled { color: #a24742; background: #fbe8e6; }
.schedule-status-form { width: min(680px, calc(100vw - 34px)) !important; }
.schedule-status-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.schedule-status-options label {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 12px;
  background: #f7f9fa;
  border: 1px solid #e0e7e9;
  border-radius: 12px;
  cursor: pointer;
}
.schedule-status-options label.selected { background: #edf8f4; border-color: #62b8a7; box-shadow: inset 0 0 0 1px #62b8a7; }
.schedule-status-options input { position: absolute; opacity: 0; pointer-events: none; }
.schedule-status-options label > span { width: 30px; height: 30px; display: grid; place-items: center; color: #0b8584; background: #e5f3f0; border-radius: 9px; }
.schedule-status-options svg { width: 15px; height: 15px; }
.schedule-status-options strong { display: block; color: #163f55; font-size: 10px; }
.schedule-status-options small { display: block; margin-top: 3px; color: #7a8d96; font-size: 8px; line-height: 1.4; }
.schedule-completion-fields { display: none; grid-template-columns: 1fr 1fr; gap: 13px; margin-top: 15px; padding-top: 15px; border-top: 1px solid #e7edef; }
.schedule-completion-fields.visible { display: grid; }

@media (max-width: 900px) {
  .lanuri-target-head { align-items: stretch; flex-direction: column; }
  .lanuri-target-actions { align-items: stretch; }
  .lanuri-target-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .settings-tabs,
  .lanuri-target-actions { width: 100%; }
  .settings-tabs button,
  .lanuri-target-actions > * { flex: 1; }
  .lanuri-target-summary,
  .lanuri-form-grid,
  .schedule-status-options,
  .schedule-completion-fields { grid-template-columns: 1fr; }
  .lanuri-form-field.full { grid-column: auto; }
  .lanuri-target-actions { flex-direction: column; }
  .lanuri-target-rules > div { grid-template-columns: 1fr; }
  .lanuri-target-rules dd { text-align: left; }
}

/* User management */
.user-page {
  --user-navy: #073a5a;
  --user-teal: #0b8584;
  --user-lime: #a9d824;
  display: grid;
  gap: 16px;
  padding: 2px 0 28px;
}

.user-management-tabs { display:flex; gap:8px; padding:6px; margin:0 0 18px; width:max-content; max-width:100%; border:1px solid #dbe5e9; border-radius:14px; background:#fff; }
.user-management-tabs button { display:flex; align-items:center; gap:8px; border:0; border-radius:10px; padding:10px 16px; color:#5d7280; background:transparent; font:700 13px/1 inherit; cursor:pointer; }
.user-management-tabs button svg { width:17px; height:17px; }
.user-management-tabs button.active { color:#fff; background:#07506e; box-shadow:0 5px 14px rgba(7,80,110,.18); }
.region-table .region-unmapped { display:inline-flex; padding:5px 9px; border-radius:999px; background:#fff0e4; color:#a8550b; font-weight:800; font-size:12px; }
.user-office-code.csti { color:#087f78; background:#e5f7f3; border-color:#b9e6dc; }

.user-page-head {
  min-height: 92px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.user-page-head h1 {
  margin: 3px 0 5px;
  color: var(--gen-ink);
  font-size: clamp(31px, 2.2vw, 41px);
  font-weight: 650;
  letter-spacing: -.035em;
}

.user-page-head p:not(.user-eyebrow) {
  max-width: 670px;
  margin: 0;
  color: #70808d;
  font-size: 15px;
  line-height: 1.55;
}

.user-eyebrow,
.dialog-kicker {
  margin: 0;
  color: var(--user-teal);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
}

.user-primary-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 17px;
  color: #fff;
  background: linear-gradient(100deg, #073a5a, #045675);
  border: 0;
  border-radius: 13px;
  box-shadow: 0 9px 20px rgba(7, 58, 90, .16);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
}

.user-primary-button:hover { background: linear-gradient(100deg, #052f4b, #087073); }
.user-primary-button svg { width: 17px; height: 17px; }

.user-scope-banner {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin: 0 0 18px;
  padding: 14px 17px;
  color: #173e50;
  background: linear-gradient(105deg, #eaf7f2, #f4f9fb);
  border: 1px solid #d5e9e3;
  border-radius: 15px;
}
.user-scope-banner > span { display: grid; flex: 0 0 36px; height: 36px; place-items: center; color: #087e7d; background: #fff; border-radius: 10px; }
.user-scope-banner svg { width: 18px; height: 18px; }
.user-scope-banner strong { font-size: 12px; }
.user-scope-banner p { margin: 4px 0 0; color: #627985; font-size: 11px; line-height: 1.55; }
.user-scope-banner b { color: #08716f; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }

.user-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.user-summary article {
  min-height: 90px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 17px;
  background: #fff;
  border: 1px solid #e7ecef;
  border-radius: 17px;
  box-shadow: 0 7px 22px rgba(13, 48, 67, .035);
}

.user-summary-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  color: #fff;
  background: var(--user-navy);
  border-radius: 13px;
}

.user-summary-icon.lime { color: #456500; background: #e9f7be; }
.user-summary-icon.teal { background: var(--user-teal); }
.user-summary-icon.soft { color: var(--user-navy); background: #e9f0f4; }
.user-summary-icon svg { width: 20px; height: 20px; }
.user-summary article small,
.user-summary article em { display: block; color: #7a8994; font-size: 11px; font-style: normal; }
.user-summary article strong { display: inline-block; margin: 2px 6px 0 0; color: #102638; font-size: 28px; line-height: 1; }

.user-directory-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid #e5eaed;
  border-radius: 19px;
  box-shadow: 0 10px 30px rgba(11, 46, 66, .045);
}

.user-directory-toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1.25fr) repeat(3, minmax(135px, .55fr));
  gap: 10px;
  padding: 15px;
  background: #fbfcfc;
  border-bottom: 1px solid #edf1f3;
}

.user-directory-toolbar label:not(.user-search-field) {
  position: relative;
  min-width: 0;
}

.user-directory-toolbar label > span {
  position: absolute;
  z-index: 1;
  left: 13px;
  top: 6px;
  color: #8a98a2;
  font-size: 10px;
  pointer-events: none;
}

.user-directory-toolbar select,
.user-search-field {
  width: 100%;
  height: 45px;
  color: #324b5d;
  background: #fff;
  border: 1px solid #dfe6ea;
  border-radius: 12px;
  outline: none;
  font: inherit;
  font-size: 12px;
}

.user-directory-toolbar select {
  padding: 15px 32px 3px 12px;
}

.user-search-field {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 13px;
}

.user-search-field svg { width: 16px; height: 16px; color: #72828e; }
.user-search-field input { width: 100%; border: 0; outline: 0; background: transparent; font: inherit; font-size: 13px; }

.user-result-meta {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 15px 17px 8px;
}

.user-result-meta strong { font-size: 15px; }
.user-result-meta span { color: #83909a; font-size: 11px; }
.user-table-wrap { overflow: auto; }

.user-table {
  min-width: 1000px;
  background: #fff;
}

.user-table th {
  padding: 11px 16px;
  color: #7d8b96;
  background: #fff;
  border-top: 1px solid #eff2f4;
  font-size: 10px;
}

.user-table td {
  padding: 14px 16px;
  color: #415767;
  border-color: #eef2f4;
  font-size: 12px;
  vertical-align: middle;
}

.user-table td > strong,
.user-table td > small { display: block; }
.user-table td > strong { color: #263e4f; font-size: 12px; }
.user-table td > small { max-width: 210px; margin-top: 4px; overflow: hidden; color: #82909b; text-overflow: ellipsis; white-space: nowrap; }

.user-identity {
  min-width: 190px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-identity > span {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  flex: 0 0 35px;
  color: #fff;
  background: linear-gradient(145deg, #0a8685, #073a5a);
  border-radius: 11px;
  font-size: 12px;
  font-weight: 800;
}

.user-identity strong,
.user-identity small { display: block; }
.user-identity strong { color: #173246; font-size: 12px; }
.user-identity small { margin-top: 3px; color: #82909a; font-size: 10px; }

.access-pill,
.user-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 8px;
  border-radius: 999px;
  white-space: nowrap;
  font-size: 10px;
  font-weight: 750;
}

.access-pill svg { width: 12px; height: 12px; }
.access-pill.staff { color: #426170; background: #edf2f4; }
.access-pill.admin { color: #08706f; background: #dcf2ec; }
.access-pill.super_admin { color: #5a6900; background: #edf7ca; }
.user-status { color: #567078; background: #f0f3f4; }
.user-status i { width: 6px; height: 6px; background: #8d9aa3; border-radius: 50%; }
.user-status.active { color: #397423; background: #edf7e7; }
.user-status.active i { background: #70b63c; }

.user-row-actions { display: flex; gap: 5px; justify-content: flex-end; }
.user-row-actions button {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: #607482;
  background: #f7f9fa;
  border: 1px solid #e7ecef;
  border-radius: 9px;
  cursor: pointer;
}
.user-row-actions button:hover { color: #fff; background: var(--user-navy); border-color: var(--user-navy); }
.user-row-actions button.danger { color: #a5423d; background: #fff7f6; border-color: #f1d7d4; }
.user-row-actions button.danger:hover { color: #fff; background: #b44741; border-color: #b44741; }
.user-row-actions svg { width: 14px; height: 14px; }
.user-protected-account { display: inline-flex; align-items: center; gap: 5px; padding: 6px 8px; color: #7b8790; background: #f1f4f5; border-radius: 8px; font-size: 10px; font-weight: 700; white-space: nowrap; }
.user-protected-account svg { width: 12px; height: 12px; }

.user-dialog { width: min(880px, calc(100vw - 28px)); }
.password-dialog { width: min(510px, calc(100vw - 28px)); }
.user-form { padding: 25px 28px; }
.user-form .dialog-head { padding-bottom: 17px; border-bottom: 1px solid #e8edef; }
.user-form-section { padding: 5px 0 18px; border-bottom: 1px solid #e8edef; }
.user-form-section:last-of-type { border-bottom: 0; }
.user-form-section h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 15px 0 12px;
  color: #17394e;
  font-size: 13px;
}
.user-form-section h3 svg { width: 16px; height: 16px; color: var(--user-teal); }
.user-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 15px; }
.user-form .form-field label,
.password-dialog .form-field label { color: #4e6473; font-size: 11px; font-weight: 700; }
.user-form .form-field label b,
.password-dialog .form-field label b { color: #c84e4e; }
.user-form .form-field small { margin-top: 4px; color: #8a969e; font-size: 10px; line-height: 1.4; }
.user-form .input,
.password-dialog .input { min-height: 43px; color: #223d4e; background: #f9fbfb; border-color: #dfe6ea; border-radius: 11px; font-size: 12px; }
.user-form textarea.input { resize: vertical; }
.user-office-code {
  display: inline-flex !important;
  width: fit-content;
  padding: 4px 8px;
  color: #075f70 !important;
  background: #e7f5f1;
  border: 1px solid #cce9df;
  border-radius: 7px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: .03em;
}
.user-placement-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 10px 14px;
  color: #183b4d;
  background: linear-gradient(100deg, #edf8f4, #f5f9fb);
  border: 1px solid #d7e9e4;
  border-radius: 12px;
}
.user-placement-preview > span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: #087e7d;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 5px 14px rgba(7, 58, 90, .08);
}
.user-placement-preview svg { width: 18px; height: 18px; }
.user-placement-preview div { display: grid; gap: 2px; }
.user-placement-preview strong { font: 800 15px/1 ui-monospace, SFMono-Regular, Consolas, monospace; }
.user-placement-preview small { color: #70828d; font-size: 10px; }
.user-form-actions { position: sticky; bottom: -25px; margin: 0 -28px -25px; padding: 15px 28px; background: rgba(251,252,248,.97); border-top: 1px solid #e8edef; }

@media (max-width: 1150px) {
  .user-summary { grid-template-columns: repeat(2, 1fr); }
  .user-directory-toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .user-page-head { align-items: flex-start; flex-direction: column; }
  .user-primary-button { width: 100%; }
  .user-summary { grid-template-columns: 1fr; }
  .user-directory-toolbar,
  .user-form-grid { grid-template-columns: 1fr; }
  .user-form-grid .full { grid-column: auto; }
  .user-form { padding: 20px; }
  .user-form-actions { margin: 0 -20px -20px; padding: 14px 20px; }
}

/* BPJS Keliling scheduling */
.bpjs-page {
  --bpjs-navy: #063b5a;
  --bpjs-deep: #052f4b;
  --bpjs-teal: #0b8f8a;
  --bpjs-lime: #9bd91d;
  min-height: 100%;
  color: #17384e;
}

.bpjs-page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.bpjs-eyebrow {
  margin: 0 0 7px;
  color: #19857e;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
}

.bpjs-page-head h1 {
  margin: 0;
  color: var(--bpjs-deep);
  font-size: clamp(37px, 3vw, 53px);
  letter-spacing: -.045em;
}

.bpjs-page-head > div:first-child > p:last-child {
  margin: 8px 0 0;
  color: #6e818c;
  font-size: 13px;
}

.bpjs-summary {
  display: flex;
  gap: 9px;
}

.bpjs-summary > span {
  min-width: 155px;
  display: grid;
  grid-template-columns: 32px 1fr;
  column-gap: 8px;
  padding: 12px 15px;
  background: #fff;
  border: 1px solid #e0e9ec;
  border-radius: 15px;
  box-shadow: 0 8px 22px rgba(18, 55, 75, .04);
}

.bpjs-summary svg {
  grid-row: 1 / 3;
  align-self: center;
  width: 24px;
  height: 24px;
  color: var(--bpjs-teal);
}

.bpjs-summary small { color: #80919a; font-size: 10px; }
.bpjs-summary strong { color: var(--bpjs-deep); font-size: 21px; }

.bpjs-layout {
  display: grid;
  grid-template-columns: minmax(400px, .82fr) minmax(620px, 1.38fr);
  align-items: start;
  gap: 17px;
}

.bpjs-form-column { display: grid; gap: 15px; }

.bpjs-form-card,
.bpjs-agenda-card,
.bpjs-calendar-card {
  background: #fff;
  border: 1px solid #e2e9ec;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(16, 54, 73, .045);
}

.bpjs-form-card { padding: 20px; }

.bpjs-form-title {
  display: flex;
  align-items: center;
  gap: 11px;
  padding-bottom: 17px;
  border-bottom: 1px solid #edf1f2;
}

.bpjs-form-title > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, var(--bpjs-teal), #086676);
  border-radius: 13px;
  box-shadow: 0 8px 20px rgba(10, 135, 132, .18);
}

.bpjs-form-title svg { width: 20px; height: 20px; }
.bpjs-form-title h2 { margin: 0; color: var(--bpjs-deep); font-size: 21px; letter-spacing: -.02em; }
.bpjs-form-title p { margin: 3px 0 0; color: #84939b; font-size: 11px; }
.bpjs-form-card form { display: grid; gap: 13px; padding-top: 17px; }
.bpjs-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.bpjs-field { display: grid; gap: 6px; min-width: 0; }
.bpjs-field > span:first-child { color: #415e70; font-size: 11px; font-weight: 700; }
.bpjs-field b { color: #79bd29; }

.bpjs-input-wrap {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
  background: #f7f9fa;
  border: 1px solid #dfe7ea;
  border-radius: 11px;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.bpjs-input-wrap:focus-within {
  background: #fff;
  border-color: #4eb5a5;
  box-shadow: 0 0 0 3px rgba(41, 157, 144, .1);
}

.bpjs-input-wrap svg { flex: 0 0 auto; width: 16px; height: 16px; color: #678090; }
.bpjs-input-wrap input {
  min-width: 0;
  width: 100%;
  padding: 0;
  color: #173b50;
  background: transparent;
  border: 0;
  outline: 0;
  font: inherit;
  font-size: 12px;
}

.bpjs-field textarea {
  width: 100%;
  min-height: 76px;
  resize: vertical;
  padding: 11px 12px;
  color: #173b50;
  background: #f7f9fa;
  border: 1px solid #dfe7ea;
  border-radius: 11px;
  outline: 0;
  font: inherit;
  font-size: 12px;
  line-height: 1.5;
}

.bpjs-field textarea:focus {
  background: #fff;
  border-color: #4eb5a5;
  box-shadow: 0 0 0 3px rgba(41, 157, 144, .1);
}

.bpjs-save-button {
  height: 47px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #fff;
  background: linear-gradient(135deg, #0b8f8a, #07516e);
  border: 0;
  border-radius: 12px;
  box-shadow: 0 12px 24px rgba(7, 93, 107, .16);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}

.bpjs-save-button:hover { transform: translateY(-1px); box-shadow: 0 15px 28px rgba(7, 93, 107, .22); }
.bpjs-save-button svg { width: 17px; height: 17px; }

.bpjs-agenda-card { overflow: hidden; }
.bpjs-agenda-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px 13px;
  border-bottom: 1px solid #edf1f2;
}
.bpjs-agenda-head h3 { margin: 0; color: var(--bpjs-deep); font-size: 16px; }
.bpjs-agenda-head p { margin: 3px 0 0; color: #84939b; font-size: 10px; text-transform: capitalize; }
.bpjs-agenda-head > span {
  min-width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: #0d716f;
  background: #e9f6f2;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 800;
}
.bpjs-agenda-list { display: grid; }
.bpjs-agenda-item {
  display: grid;
  grid-template-columns: 39px minmax(0, 1fr) 27px;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid #eef2f3;
}
.bpjs-agenda-item:last-child { border-bottom: 0; }
.bpjs-agenda-item time {
  height: 43px;
  display: grid;
  place-items: center;
  align-content: center;
  color: #fff;
  background: var(--bpjs-navy);
  border-radius: 10px;
}
.bpjs-agenda-item time strong { font-size: 17px; line-height: 1; }
.bpjs-agenda-item time small { margin-top: 2px; color: #a8dfd4; font-size: 9px; text-transform: uppercase; }
.bpjs-agenda-item > div { min-width: 0; }
.bpjs-agenda-item > div > strong { display: block; overflow: hidden; color: #24495d; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.bpjs-agenda-item p { margin: 3px 0; color: #71858f; font-size: 10px; }
.bpjs-agenda-item > div > small { display: flex; align-items: center; gap: 4px; color: #8b9aa1; font-size: 9px; }
.bpjs-agenda-item > div > small svg { width: 11px; height: 11px; color: var(--bpjs-teal); }
.bpjs-agenda-item > button {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  color: #a6534e;
  background: #fff5f3;
  border: 1px solid #f1d9d6;
  border-radius: 8px;
  cursor: pointer;
}
.bpjs-agenda-item > button:hover { color: #fff; background: #af4943; border-color: #af4943; }
.bpjs-agenda-item > button svg { width: 13px; height: 13px; }
.bpjs-empty-agenda { display: grid; place-items: center; padding: 29px 15px; text-align: center; }
.bpjs-empty-agenda > svg { width: 26px; height: 26px; margin-bottom: 8px; color: #32a899; }
.bpjs-empty-agenda strong { color: #36566a; font-size: 12px; }
.bpjs-empty-agenda p { margin: 4px 0 0; color: #8b999f; font-size: 10px; }

.bpjs-calendar-card {
  overflow: hidden;
  min-width: 0;
}

.bpjs-calendar-head {
  position: relative;
  overflow: hidden;
  min-height: 108px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 23px 25px;
  color: #fff;
  background:
    radial-gradient(circle at 76% -25%, rgba(158, 222, 42, .34), transparent 38%),
    radial-gradient(circle at 24% 140%, rgba(43, 178, 162, .28), transparent 43%),
    linear-gradient(132deg, #073b59, #07516b);
}

.bpjs-calendar-head::after {
  content: "";
  position: absolute;
  right: 22%;
  top: -75px;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 50%;
  box-shadow: 0 0 0 34px rgba(255,255,255,.025), 0 0 0 68px rgba(255,255,255,.018);
}

.bpjs-calendar-head > div { position: relative; z-index: 1; }
.bpjs-calendar-kicker { display: flex; align-items: center; gap: 7px; color: #aae5d7; font-size: 10px; font-weight: 800; letter-spacing: .1em; }
.bpjs-calendar-kicker svg { width: 15px; height: 15px; }
.bpjs-calendar-head h2 { margin: 8px 0 3px; font-size: 31px; letter-spacing: -.035em; text-transform: capitalize; }
.bpjs-calendar-head p { margin: 0; color: rgba(255,255,255,.68); font-size: 11px; }
.bpjs-calendar-nav { display: flex; align-items: center; gap: 6px; }
.bpjs-calendar-nav button {
  height: 35px;
  min-width: 35px;
  display: grid;
  place-items: center;
  padding: 0 10px;
  white-space: nowrap;
  color: #fff;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 10px;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(4px);
}
.bpjs-calendar-nav button:hover { background: rgba(255,255,255,.16); }
.bpjs-calendar-nav svg { width: 15px; height: 15px; }

.bpjs-calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  padding: 13px 15px 10px;
  background: #f8fafb;
  border-bottom: 1px solid #e8edef;
}
.bpjs-calendar-weekdays span { color: #718793; font-size: 10px; font-weight: 800; text-align: center; text-transform: uppercase; }

.bpjs-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  padding: 0 15px;
  background: #fff;
}

.bpjs-calendar-day {
  position: relative;
  min-width: 0;
  min-height: 94px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 9px 8px;
  text-align: left;
  color: #294b5f;
  background: #fff;
  border: 0;
  border-right: 1px solid #edf1f2;
  border-bottom: 1px solid #edf1f2;
  cursor: pointer;
  transition: background .18s ease, box-shadow .18s ease;
}
.bpjs-calendar-day:nth-child(7n) { border-right: 0; }
.bpjs-calendar-day:hover { z-index: 1; background: #f5fbf9; box-shadow: inset 0 0 0 1px #8ed2c4; }
.bpjs-calendar-day.muted { cursor: default; background: #fafcfc; }
.bpjs-calendar-day.today { background: #f3faf8; }
.bpjs-calendar-day.selected { z-index: 1; background: #eff8f5; box-shadow: inset 0 0 0 2px #38a994; }
.bpjs-calendar-number {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
}
.bpjs-calendar-day.today .bpjs-calendar-number { color: #fff; background: var(--bpjs-navy); }
.bpjs-calendar-day.has-schedule:not(.today) .bpjs-calendar-number { color: #116b67; background: #e5f5ef; }
.bpjs-calendar-events { min-width: 0; display: grid; gap: 4px; }
.bpjs-calendar-event {
  min-width: 0;
  display: grid;
  gap: 1px;
  padding: 5px 6px;
  color: #fff;
  background: linear-gradient(100deg, #0c8c86, #0a6d7b);
  border-left: 3px solid var(--bpjs-lime);
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(11, 120, 122, .11);
}
.bpjs-calendar-event strong { font-size: 9px; }
.bpjs-calendar-event small { overflow: hidden; color: rgba(255,255,255,.81); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.bpjs-calendar-events em { padding-left: 3px; color: #63818e; font-size: 8px; font-style: normal; font-weight: 700; }

.bpjs-calendar-legend {
  min-height: 53px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 10px 20px;
  color: #71858f;
  background: #f8fafb;
  font-size: 10px;
}
.bpjs-calendar-legend span { display: flex; align-items: center; gap: 6px; }
.bpjs-calendar-legend i { width: 9px; height: 9px; border-radius: 3px; }
.bpjs-calendar-legend i.today { background: var(--bpjs-navy); }
.bpjs-calendar-legend i.scheduled { background: var(--bpjs-teal); border: 2px solid var(--bpjs-lime); }
.bpjs-calendar-legend strong { margin-left: auto; color: #31566a; font-size: 10px; }

/* VIOLA — identitas layanan virtual */
.viola-theme {
  --bpjs-deep: #25245f;
  --bpjs-navy: #343279;
  --bpjs-teal: #6657d8;
  --bpjs-lime: #42d5d0;
}

.viola-theme::before {
  content: "";
  position: fixed;
  right: 4%;
  top: 120px;
  width: 260px;
  height: 260px;
  pointer-events: none;
  background-image: radial-gradient(rgba(100, 87, 216, .13) 1px, transparent 1px);
  background-size: 13px 13px;
  mask-image: radial-gradient(circle, #000 20%, transparent 70%);
}

.viola-theme .bpjs-eyebrow { color: #6657d8; }
.viola-theme .bpjs-summary > span {
  background: linear-gradient(145deg, #fff, #f8f7ff);
  border-color: #e2dff7;
}
.viola-theme .bpjs-summary svg { color: #6657d8; }
.viola-theme .bpjs-form-card,
.viola-theme .bpjs-agenda-card,
.viola-theme .bpjs-calendar-card {
  border-color: #e3e0f2;
  box-shadow: 0 13px 34px rgba(48, 43, 111, .065);
}
.viola-theme .bpjs-form-title > span {
  background: linear-gradient(145deg, #7062e7, #3d398f);
  box-shadow: 0 9px 22px rgba(81, 68, 183, .22);
}
.viola-theme .bpjs-input-wrap,
.viola-theme .bpjs-field textarea {
  background: #f8f8fc;
  border-color: #e1dff0;
}
.viola-theme .bpjs-input-wrap:focus-within,
.viola-theme .bpjs-field textarea:focus {
  background: #fff;
  border-color: #8175e4;
  box-shadow: 0 0 0 3px rgba(102, 87, 216, .11);
}
.viola-theme .bpjs-field b { color: #6657d8; }
.viola-theme .bpjs-save-button {
  background: linear-gradient(135deg, #7665e7, #343279);
  box-shadow: 0 12px 25px rgba(60, 53, 139, .2);
}
.viola-theme .bpjs-save-button:hover { box-shadow: 0 16px 30px rgba(60, 53, 139, .27); }
.viola-theme .bpjs-agenda-head > span { color: #5044b6; background: #efedfc; }
.viola-theme .bpjs-agenda-item time {
  background: linear-gradient(145deg, #5d50cc, #31306e);
}
.viola-theme .bpjs-agenda-item time small { color: #d9d6ff; }
.viola-theme .bpjs-agenda-item > div > small svg,
.viola-theme .bpjs-empty-agenda > svg { color: #6657d8; }
.viola-theme .bpjs-calendar-head {
  background:
    radial-gradient(circle at 79% -20%, rgba(68, 220, 213, .3), transparent 38%),
    radial-gradient(circle at 17% 150%, rgba(133, 110, 246, .45), transparent 45%),
    linear-gradient(132deg, #27265f, #4942a3);
}
.viola-theme .bpjs-calendar-kicker { color: #bff8f4; }
.viola-theme .bpjs-calendar-day:hover {
  background: #f7f6ff;
  box-shadow: inset 0 0 0 1px #aea5ef;
}
.viola-theme .bpjs-calendar-day.today { background: #f5f3ff; }
.viola-theme .bpjs-calendar-day.selected {
  background: #f0edff;
  box-shadow: inset 0 0 0 2px #7667dd;
}
.viola-theme .bpjs-calendar-day.has-schedule:not(.today) .bpjs-calendar-number {
  color: #5246b2;
  background: #ece9ff;
}
.viola-theme .bpjs-calendar-event {
  background: linear-gradient(100deg, #6657d8, #41429a);
  border-left-color: #48d6d0;
  box-shadow: 0 4px 11px rgba(75, 63, 172, .15);
}
.viola-theme .bpjs-calendar-legend i.scheduled {
  background: #6657d8;
  border-color: #48d6d0;
}

@media (max-width: 1180px) {
  .bpjs-layout { grid-template-columns: 1fr; }
  .bpjs-form-column { grid-template-columns: minmax(330px, .8fr) minmax(340px, 1.2fr); }
}

@media (max-width: 760px) {
  .bpjs-page-head { align-items: stretch; flex-direction: column; }
  .bpjs-summary { display: grid; grid-template-columns: 1fr 1fr; }
  .bpjs-summary > span { min-width: 0; }
  .bpjs-form-column { grid-template-columns: 1fr; }
  .bpjs-form-grid { grid-template-columns: 1fr; }
  .bpjs-calendar-head { align-items: flex-start; flex-direction: column; }
  .bpjs-calendar-grid, .bpjs-calendar-weekdays { min-width: 650px; }
  .bpjs-calendar-card { overflow-x: auto; }
  .bpjs-calendar-legend { min-width: 650px; }
}

/* LANURI placeholders */
.lanuri-page {
  min-height: calc(100vh - 132px);
  display: grid;
  place-items: center;
  padding: 30px;
}

.lanuri-placeholder {
  width: min(560px, 100%);
  padding: 54px 40px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0, rgba(169, 216, 36, .13), transparent 43%),
    #fff;
  border: 1px solid #e4eaed;
  border-radius: 24px;
  box-shadow: 0 18px 50px rgba(7, 58, 90, .07);
}

.lanuri-placeholder-icon {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  color: #fff;
  background: linear-gradient(145deg, #0b8584, #073a5a);
  border-radius: 20px;
  box-shadow: 0 13px 28px rgba(7, 58, 90, .18);
}

.lanuri-placeholder-icon svg { width: 31px; height: 31px; }
.lanuri-kicker { margin: 0 0 5px; color: #0b8584; font-size: 12px; font-weight: 800; letter-spacing: .12em; }
.lanuri-placeholder h1 { margin: 0; color: #102638; font-size: clamp(37px, 4vw, 53px); letter-spacing: -.045em; }
.lanuri-placeholder > p:not(.lanuri-kicker) { max-width: 430px; margin: 12px auto 22px; color: #70808d; font-size: 15px; line-height: 1.65; }
.lanuri-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  color: #397423;
  background: #edf7e7;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 750;
}
.lanuri-status svg { width: 13px; height: 13px; }

@media (max-width: 600px) {
  .lanuri-page { min-height: calc(100vh - 110px); padding: 16px; }
  .lanuri-placeholder { padding: 40px 22px; }
}

@media (max-width: 480px) {
  .generated-filter {
    max-width: 130px;
  }
  .generated-export {
    padding-inline: 13px;
  }
  .generated-kpi-row strong {
    font-size: 22px;
  }
  .generated-overview-body {
    grid-template-columns: 1fr;
  }
  .generated-multi-donut {
    width: 165px;
  }
  .generated-overview-legend {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
}

/* Original PANTAU login retained */
.original-login {
  width: 100%;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(470px, .84fr) minmax(620px, 1.16fr);
  gap: 40px;
  padding: 42px max(42px, calc((100vw - 1540px) / 2));
  background: #f3f6f8;
}

.original-login-panel {
  min-height: calc(100vh - 84px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 42px clamp(52px, 5vw, 84px);
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 26px 56px rgba(16, 49, 78, .08);
}

.original-login-logo {
  width: min(100%, 420px);
  max-height: 120px;
  object-fit: contain;
  margin: 0 auto 4px;
}

.original-login-acronym {
  margin: 0 auto 34px;
  color: #32465f;
  font-size: clamp(19px, 1.15vw, 25px);
  font-weight: 650;
  line-height: 1.45;
  letter-spacing: .015em;
  text-align: center;
}

.original-login-panel h1 {
  margin: 0 0 42px;
  color: #082641;
  font-size: clamp(37px, 2.2vw, 49px);
  font-weight: 800;
  letter-spacing: -.025em;
  text-align: center;
}

.original-field {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
  color: #33465d;
  font-size: 21px;
  font-weight: 700;
}

.original-input-wrap {
  position: relative;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 0 19px;
  color: #91a6c1;
  background: #f6f8fa;
  border: 1px solid #d7e0e8;
  border-radius: 15px;
}

.original-input-wrap:focus-within {
  border-color: #78b83d;
  box-shadow: 0 0 0 4px rgba(120, 184, 61, .13);
}

.original-input-wrap > svg {
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
}

.original-input-wrap input {
  width: 100%;
  height: 100%;
  padding: 0;
  color: #082641;
  background: transparent;
  border: 0;
  outline: 0;
  font: inherit;
  font-size: 22px;
}

.original-input-wrap input::placeholder {
  color: #7c858b;
  opacity: 1;
}

.original-password-toggle {
  width: 28px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 0;
  color: #91a6c1;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.original-password-toggle svg {
  width: 21px;
  height: 21px;
}

.original-login-submit {
  width: 100%;
  height: 64px;
  color: #fff;
  background: #78b83d;
  border: 0;
  border-radius: 15px;
  box-shadow: 0 16px 28px rgba(120, 184, 61, .24);
  cursor: pointer;
  font-size: 22px;
  font-weight: 800;
}

.original-copyright {
  margin: 48px 0 0;
  color: #8ba0bd;
  font-size: 19px;
  text-align: center;
}

.original-showcase {
  position: relative;
  min-height: calc(100vh - 84px);
  overflow: hidden;
  padding: 62px;
  color: #fff;
  background:
    radial-gradient(circle at 79% 76%, rgba(120, 184, 61, .55), transparent 34%),
    linear-gradient(135deg, #163e35 0%, #0a3154 54%, #4e7f31 100%);
  border-radius: 28px;
}

.original-grid {
  position: absolute;
  inset: 0;
  opacity: .12;
  background-image:
    linear-gradient(rgba(255,255,255,.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.18) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at 40% 32%, #000, transparent 58%);
}

.original-showcase-card {
  position: absolute;
  z-index: 2;
  width: 38%;
  aspect-ratio: 1.08;
  padding: 42px 32px 28px;
  color: #314158;
  background: rgba(255,255,255,.96);
  border-radius: 20px;
  box-shadow: 0 28px 55px rgba(0, 18, 38, .2);
}

.original-showcase-card > span {
  display: block;
  font-size: clamp(16px, 1.1vw, 22px);
  line-height: 1.2;
}

.original-showcase-card > strong {
  position: absolute;
  left: 32px;
  bottom: 42px;
  color: #071f38;
  font-size: clamp(35px, 2.2vw, 53px);
}

.original-showcase-card > small {
  position: absolute;
  left: 34px;
  bottom: 23px;
  color: #70a933;
  font-size: clamp(12px, .8vw, 17px);
  font-weight: 700;
}

.original-performance-card {
  left: 8%;
  top: 8%;
  transform: rotate(-4deg);
}

.original-performance-card > svg {
  position: absolute;
  right: 13%;
  top: 20%;
  width: 45%;
  height: 45%;
  color: #43536b;
  stroke-width: 2.5;
}

.original-target-card {
  right: 7%;
  top: 30%;
  transform: rotate(3deg);
}

.original-target-rings {
  position: absolute;
  right: 14%;
  top: 14%;
  width: 46%;
  aspect-ratio: 1;
  border: 12px solid #43536b;
  border-radius: 50%;
  box-shadow:
    inset 0 0 0 12px #fff,
    inset 0 0 0 24px #43536b,
    inset 0 0 0 36px #fff,
    inset 0 0 0 48px #43536b;
}

.original-bars {
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 7%;
  height: 22%;
  display: flex;
  align-items: end;
  gap: 5%;
}

.original-bars i {
  flex: 1;
  height: 45%;
  background: #78b83d;
  border-radius: 4px 4px 0 0;
}

.original-bars i:nth-child(2) { height: 73%; }
.original-bars i:nth-child(3) { height: 58%; }
.original-bars i:nth-child(4) { height: 84%; }
.original-bars i:nth-child(5) { height: 61%; }
.original-bars i:nth-child(6) { height: 70%; }

.original-showcase h2 {
  position: absolute;
  z-index: 2;
  left: 8%;
  bottom: 12%;
  margin: 0;
  font-size: clamp(29px, 2vw, 47px);
  line-height: 1.35;
  letter-spacing: -.02em;
}

.original-dots {
  position: absolute;
  left: 8%;
  bottom: 7%;
  display: flex;
  gap: 10px;
}

.original-dots i {
  width: 32px;
  height: 6px;
  background: rgba(255,255,255,.35);
  border-radius: 6px;
}

.original-dots i:first-child {
  background: #78b83d;
}

/* WT-WL period import and monitoring */
.wtwl-page {
  display: grid;
  gap: 16px;
  padding-bottom: 24px;
}

.wtwl-page-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}

.wtwl-page-head .eyebrow {
  margin: 0 0 5px;
  color: #7b8b98;
  font-size: 13px;
  letter-spacing: .09em;
}

.wtwl-page-head h1 {
  margin: 0;
  color: var(--gen-navy);
  font-size: clamp(32px, 2.5vw, 45px);
  letter-spacing: -.04em;
}

.wtwl-page-head p:last-child {
  margin: 7px 0 0;
  color: #667684;
  font-size: 16px;
}

.wtwl-filter-row {
  display: flex;
  gap: 10px;
}

.wtwl-filter-row label,
.wtwl-period-field {
  display: grid;
  gap: 5px;
  color: #617181;
  font-size: 13px;
  font-weight: 600;
}

.wtwl-filter-row select,
.wtwl-period-field input {
  min-width: 165px;
  height: 43px;
  padding: 0 14px;
  color: #17364f;
  background: #fff;
  border: 1px solid #dce4e8;
  border-radius: 13px;
  font: inherit;
  font-size: 16px;
  outline: none;
}

.wtwl-summary-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(140px, 1fr));
  gap: 12px;
}

.wtwl-summary-grid article {
  min-height: 120px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 19px;
  background: #fff;
  border: 1px solid #e6ebee;
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(19, 48, 68, .045);
}

.wtwl-summary-grid article > span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #536878;
  font-size: 15px;
}

.wtwl-summary-grid article > span svg {
  width: 18px;
  color: #0b7780;
}

.wtwl-summary-grid strong {
  color: #082f4b;
  font-size: 34px;
  letter-spacing: -.03em;
}

.wtwl-summary-grid strong small {
  font-size: 15px;
}

.wtwl-summary-grid article > small {
  color: #8a98a3;
  font-size: 12px;
}

.wtwl-content-grid {
  display: grid;
  grid-template-columns: minmax(250px, .32fr) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.wtwl-office-card,
.wtwl-record-card,
.wtwl-upload-card,
.wtwl-rules-card,
.wtwl-history-card {
  padding: 20px;
}

.wtwl-office-list {
  display: grid;
  margin-top: 10px;
}

.wtwl-office-list > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 62px 62px;
  gap: 12px;
  align-items: center;
  padding: 13px 2px;
  border-bottom: 1px solid #edf1f2;
}

.wtwl-office-list span {
  display: grid;
  gap: 3px;
}

.wtwl-office-list b,
.wtwl-office-list strong {
  color: #163a53;
  font-size: 15px;
}

.wtwl-office-list small {
  color: #81909b;
  font-size: 12px;
}

.wtwl-table-wrap {
  width: 100%;
  margin-top: 10px;
  overflow: auto;
}

.wtwl-table {
  width: 100%;
  min-width: 850px;
  border-collapse: collapse;
  color: #435968;
  font-size: 13px;
}

.wtwl-table th {
  padding: 11px 10px;
  color: #81909c;
  background: #f7f9fa;
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
}

.wtwl-table td {
  padding: 12px 10px;
  border-bottom: 1px solid #edf1f3;
  vertical-align: top;
}

.wtwl-table td > small {
  display: block;
  margin-top: 3px;
  color: #8b98a1;
}

.wtwl-sla {
  display: block;
  width: max-content;
  margin-bottom: 4px;
  padding: 3px 7px;
  border-radius: 8px;
  font-size: 11px;
}

.wtwl-sla.ok {
  color: #377223;
  background: #eff8e8;
}

.wtwl-sla.late {
  color: #a6413e;
  background: #fff0ef;
}

.wtwl-upload-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
  gap: 14px;
}

.wtwl-upload-card form {
  display: grid;
  gap: 16px;
  margin-top: 14px;
}

.wtwl-period-field input {
  width: min(260px, 100%);
}

.wtwl-drop-zone {
  min-height: 190px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 25px;
  color: #526979;
  background: linear-gradient(145deg, #f8fbfb, #f5f9f3);
  border: 1.5px dashed #9fb7b6;
  border-radius: 18px;
  text-align: center;
  cursor: pointer;
}

.wtwl-drop-zone > svg {
  width: 32px;
  height: 32px;
  color: #0b7780;
}

.wtwl-drop-zone strong {
  color: #123b55;
  font-size: 19px;
}

.wtwl-drop-zone span {
  max-width: 510px;
  font-size: 13px;
  line-height: 1.6;
}

.wtwl-drop-zone input {
  max-width: 100%;
  margin-top: 7px;
  font-size: 13px;
}

.wtwl-upload-note {
  display: flex;
  gap: 9px;
  padding: 11px 13px;
  color: #42636c;
  background: #eef7f4;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.5;
}

.wtwl-upload-note svg {
  width: 17px;
  flex: 0 0 17px;
}

.wtwl-submit {
  justify-self: end;
}

.wtwl-rules-card ol {
  display: grid;
  gap: 12px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: rule;
}

.wtwl-rules-card li {
  position: relative;
  display: grid;
  gap: 3px;
  min-height: 54px;
  padding: 8px 8px 8px 48px;
  counter-increment: rule;
}

.wtwl-rules-card li::before {
  content: counter(rule);
  position: absolute;
  left: 4px;
  top: 6px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: #fff;
  background: #0b7780;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
}

.wtwl-rules-card li b {
  color: #163b53;
  font-size: 15px;
}

.wtwl-rules-card li span {
  color: #778791;
  font-size: 13px;
  line-height: 1.45;
}

.wtwl-upload-success {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  color: #2f652a;
  background: #eff8e9;
  border: 1px solid #d6eac9;
  border-radius: 15px;
  font-size: 15px;
}

.wtwl-upload-success > svg {
  width: 21px;
  flex: 0 0 21px;
}

.wtwl-upload-success span {
  flex: 1;
}

.wtwl-upload-success button {
  color: #205d50;
  background: transparent;
  border: 0;
  font-weight: 700;
  cursor: pointer;
}

.wtwl-upload-errors {
  display: grid;
  gap: 12px;
  padding: 15px 17px;
  color: #8b3936;
  background: #fff2f1;
  border: 1px solid #f0cfcc;
  border-radius: 15px;
}

.wtwl-upload-errors > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wtwl-upload-errors > div > svg {
  width: 21px;
  flex: 0 0 21px;
}

.wtwl-upload-errors > div span {
  display: grid;
  gap: 2px;
}

.wtwl-upload-errors strong {
  font-size: 15px;
}

.wtwl-upload-errors small {
  color: #a06562;
  font-size: 11px;
}

.wtwl-upload-errors ol {
  max-height: 190px;
  margin: 0;
  padding: 10px 12px 10px 33px;
  overflow: auto;
  background: rgba(255, 255, 255, .55);
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.7;
}

.complaint-duplicate-details {
  margin-top: 4px;
  font-size: 12px;
}

.complaint-duplicate-details summary {
  color: #a06a00;
  font-weight: 600;
  cursor: pointer;
}

.complaint-duplicate-details ul {
  max-height: 180px;
  margin: 6px 0 0;
  padding: 8px 10px 8px 24px;
  overflow: auto;
  background: rgba(160, 106, 0, .06);
  border-radius: 8px;
  line-height: 1.6;
}

.wtwl-batch-status {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
}

.wtwl-batch-status.active {
  color: #2d6a28;
  background: #eef8e8;
}

.wtwl-batch-status.replaced,
.wtwl-batch-status.partially_replaced {
  color: #7b6870;
  background: #f1eff0;
}

.wtwl-batch-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  color: #2f6f5e;
  border: 1px solid #d9e5e1;
  background: #fff;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.wtwl-batch-download:hover {
  background: #eef7f3;
  border-color: #2f6f5e;
}

.wtwl-batch-download.is-disabled {
  color: #b3aeb1;
  border-color: #ece9ea;
  background: #f7f6f6;
  cursor: not-allowed;
}

.wtwl-hero {
  min-height: 245px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 36px;
  padding: 30px 36px;
  color: #fff;
  background:
    radial-gradient(circle at 82% 25%, rgba(167, 218, 34, .2), transparent 25%),
    radial-gradient(circle at 22% 110%, rgba(21, 172, 159, .28), transparent 42%),
    linear-gradient(125deg, #062f4c 0%, #07566d 57%, #0b766c 100%);
  border-radius: 24px;
  box-shadow: 0 17px 38px rgba(8, 58, 82, .16);
  overflow: hidden;
}

.wtwl-hero-copy {
  position: relative;
  z-index: 1;
}

.wtwl-live {
  width: max-content;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  color: #dfffa1;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 20px;
  font-size: 12px;
}

.wtwl-live svg {
  width: 15px;
}

.wtwl-hero h2 {
  max-width: 620px;
  margin: 18px 0 8px;
  font-size: clamp(31px, 2.5vw, 47px);
  letter-spacing: -.04em;
}

.wtwl-hero-copy > p {
  max-width: 600px;
  margin: 0;
  color: rgba(255, 255, 255, .72);
  font-size: 15px;
}

.wtwl-hero-stats {
  display: flex;
  gap: 35px;
  margin-top: 26px;
}

.wtwl-hero-stats span {
  display: grid;
  gap: 2px;
}

.wtwl-hero-stats b {
  font-size: 28px;
}

.wtwl-hero-stats small {
  color: rgba(255, 255, 255, .62);
  font-size: 11px;
}

.wtwl-rings {
  display: flex;
  gap: 18px;
}

.wtwl-ring {
  --value: 0;
  --ring: #a8da22;
  position: relative;
  width: 132px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--ring) calc(var(--value) * 1%), rgba(255, 255, 255, .12) 0);
  border-radius: 50%;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .1);
}

.wtwl-ring::before {
  content: "";
  width: 101px;
  aspect-ratio: 1;
  background: #0a5063;
  border-radius: 50%;
}

.wtwl-ring span {
  position: absolute;
  display: grid;
  gap: 2px;
  text-align: center;
}

.wtwl-ring b {
  font-size: 29px;
}

.wtwl-ring small {
  color: rgba(255, 255, 255, .66);
  font-size: 11px;
}

.wtwl-summary-grid {
  grid-template-columns: repeat(4, minmax(150px, 1fr));
}

.wtwl-office-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 14px 18px;
  background: linear-gradient(100deg, #eef8f4 0%, #f6faf8 55%, #f3f7f8 100%);
  border: 1px solid #d7e8e2;
  border-left: 4px solid #96cf20;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(13, 72, 75, .05);
}

.wtwl-office-filter-copy {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wtwl-office-filter-copy > span {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  color: #fff;
  background: linear-gradient(145deg, #073b58, #087b82);
  border-radius: 12px;
}

.wtwl-office-filter-copy svg {
  width: 19px;
}

.wtwl-office-filter-copy div {
  display: grid;
  gap: 3px;
}

.wtwl-office-filter-copy strong {
  color: #073650;
  font-size: 17px;
}

.wtwl-office-filter-copy small {
  color: #687d88;
  font-size: 12px;
}

.wtwl-office-filter-bar > label {
  display: grid;
  gap: 4px;
  color: #5f747f;
  font-size: 11px;
  font-weight: 700;
}

.wtwl-office-filter-bar select {
  min-width: 290px;
  height: 42px;
  padding: 0 36px 0 13px;
  color: #123e55;
  background: #fff;
  border: 1px solid #ccdcdf;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(24, 71, 82, .05);
  font: inherit;
  font-size: 13px;
  outline: none;
}

.wtwl-office-filter-bar select:focus {
  border-color: #15958f;
  box-shadow: 0 0 0 3px rgba(21, 149, 143, .12);
}

.wtwl-content-grid {
  grid-template-columns: minmax(0, 1.25fr) minmax(330px, .75fr);
}

.wtwl-trend-card {
  position: relative;
  min-height: 395px;
  padding: 20px 22px;
  overflow: hidden;
}

.wtwl-metric-toggle {
  display: flex;
  padding: 3px;
  background: #eef3f4;
  border-radius: 10px;
}

.wtwl-metric-toggle button {
  min-width: 42px;
  height: 27px;
  color: #73838d;
  background: transparent;
  border: 0;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.wtwl-metric-toggle button.active {
  color: #fff;
  background: #08757d;
  box-shadow: 0 4px 9px rgba(8, 117, 125, .2);
}

.wtwl-chart-scale {
  position: absolute;
  top: 85px;
  bottom: 69px;
  left: 22px;
  width: 44px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #94a0a8;
  font-size: 11px;
}

.wtwl-daily-chart {
  height: 255px;
  display: flex;
  align-items: end;
  gap: clamp(4px, .8vw, 11px);
  margin: 30px 4px 0 53px;
  padding: 0 3px 24px;
  background: repeating-linear-gradient(to bottom, #edf1f2 0, #edf1f2 1px, transparent 1px, transparent 33.333%);
  border-bottom: 1px solid #dde4e7;
}

.wtwl-daily-column {
  position: relative;
  height: 100%;
  min-width: 8px;
  flex: 1;
  display: flex;
  align-items: end;
  justify-content: center;
}

.wtwl-daily-column i {
  width: min(20px, 72%);
  min-height: 4px;
  background: linear-gradient(180deg, #b9e32b, #83be29);
  border-radius: 6px 6px 2px 2px;
  box-shadow: 0 6px 12px rgba(137, 191, 41, .16);
  transition: filter .18s, transform .18s;
}

.wtwl-daily-column:nth-child(3n) i {
  background: linear-gradient(180deg, #22b8a9, #0a8584);
}

.wtwl-daily-column:hover i {
  filter: saturate(1.25);
  transform: scaleX(1.14);
}

.wtwl-daily-column small {
  position: absolute;
  bottom: -19px;
  color: #8997a0;
  font-size: 10px;
}

.wtwl-bar-value {
  position: absolute;
  z-index: 2;
  bottom: calc(var(--bar-height, 0%) + 4px);
  display: none;
  padding: 4px 6px;
  color: #fff;
  background: #073c58;
  border-radius: 6px;
  font-size: 10px;
}

.wtwl-daily-column:hover .wtwl-bar-value {
  display: block;
}

.wtwl-chart-caption {
  display: flex;
  justify-content: space-between;
  margin: 16px 6px 0 54px;
  color: #7c8b95;
  font-size: 11px;
}

.wtwl-chart-caption span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.wtwl-chart-caption i {
  width: 9px;
  height: 9px;
  background: #a7d527;
  border-radius: 3px;
}

.wtwl-office-ranking {
  display: grid;
  gap: 3px;
  margin-top: 12px;
}

.wtwl-office-rank {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 40px 40px;
  gap: 10px;
  align-items: center;
  padding: 12px 2px;
  border-bottom: 1px solid #eef1f3;
}

.wtwl-rank-number {
  color: #a8b2b9;
  font-size: 12px;
  font-weight: 700;
}

.wtwl-office-rank > div {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.wtwl-office-rank strong {
  overflow: hidden;
  color: #173b53;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wtwl-office-rank > div > span {
  height: 5px;
  background: #edf1f2;
  border-radius: 5px;
  overflow: hidden;
}

.wtwl-office-rank > div > span i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #13a49b, #9fd321);
  border-radius: inherit;
}

.wtwl-office-rank small {
  color: #91a0a9;
  font-size: 10px;
}

.wtwl-office-rank p {
  display: grid;
  gap: 2px;
  margin: 0;
  color: #174159;
  text-align: right;
}

.wtwl-office-rank p b {
  font-size: 13px;
}

.wtwl-visits-card {
  padding: 20px 22px;
}

.wtwl-visit-list {
  display: grid;
  gap: 2px;
  margin-top: 14px;
}

.wtwl-visit-row {
  display: grid;
  grid-template-columns: 30px minmax(220px, 1fr) 86px 76px 76px;
  gap: 14px;
  align-items: center;
  min-height: 66px;
  padding: 10px 3px;
  border-bottom: 1px solid #edf1f2;
}

.wtwl-visit-row:last-child {
  border-bottom: 0;
}

.wtwl-visit-index {
  color: #a7b2b9;
  font-size: 12px;
  font-weight: 700;
}

.wtwl-visit-copy {
  display: grid;
  gap: 5px;
}

.wtwl-visit-copy strong {
  color: #153b53;
  font-size: 13px;
}

.wtwl-visit-copy > div {
  height: 8px;
  background: #edf1f2;
  border-radius: 8px;
  overflow: hidden;
}

.wtwl-visit-copy > div i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #078a88, #a8d925);
  border-radius: inherit;
  box-shadow: 0 3px 9px rgba(29, 157, 116, .16);
}

.wtwl-visit-copy small,
.wtwl-visit-row p small {
  color: #8a98a1;
  font-size: 10px;
}

.wtwl-visit-row p {
  display: grid;
  gap: 3px;
  margin: 0;
  color: #153c54;
  text-align: right;
}

.wtwl-visit-row p b {
  font-size: 16px;
}

.wtwl-insight-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(270px, .72fr) minmax(300px, .8fr);
  gap: 14px;
}

.wtwl-service-card,
.wtwl-sla-card,
.wtwl-sla-officer-card {
  padding: 20px 22px;
}

.wtwl-service-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.wtwl-service-list > div {
  display: grid;
  grid-template-columns: 9px minmax(110px, .55fr) minmax(120px, 1fr) 35px 35px;
  gap: 9px;
  align-items: center;
  color: #536978;
  font-size: 12px;
}

.wtwl-service-list strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wtwl-service-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.wtwl-service-track {
  height: 7px;
  background: #eef1f2;
  border-radius: 7px;
  overflow: hidden;
}

.wtwl-service-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.dot-0 { background: #073f5c; }
.dot-1 { background: #0d8d8d; }
.dot-2 { background: #a7d527; }
.dot-3 { background: #60b855; }
.dot-4 { background: #3b6cc9; }

.wtwl-service-list small {
  color: #8e9aa2;
  text-align: right;
}

.wtwl-sla-visual {
  display: grid;
  gap: 28px;
  margin-top: 22px;
}

.wtwl-sla-visual > div {
  display: grid;
  grid-template-columns: 28px 48px minmax(100px, 1fr);
  gap: 10px;
  align-items: center;
}

.wtwl-sla-visual > div > span {
  color: #45606f;
  font-size: 13px;
  font-weight: 700;
}

.wtwl-sla-visual strong {
  color: #123b54;
  font-size: 19px;
}

.wtwl-sla-visual > div > div {
  height: 11px;
  background: #edf1f2;
  border-radius: 10px;
  overflow: hidden;
}

.wtwl-sla-visual i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #0a8988, #a8da22);
  border-radius: inherit;
}

.wtwl-sla-visual small {
  grid-column: 3;
  color: #8a979f;
  font-size: 11px;
}

.wtwl-sla-officer-list {
  display: grid;
  max-height: 290px;
  margin-top: 14px;
  overflow: auto;
}

.wtwl-sla-officer-row {
  display: grid;
  grid-template-columns: 34px minmax(90px, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  min-height: 54px;
  padding: 8px 1px;
  border-bottom: 1px solid #edf1f2;
}

.wtwl-officer-avatar {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #087b80, #0b4562);
  border-radius: 11px;
  font-size: 11px;
  font-weight: 700;
}

.wtwl-sla-officer-row > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.wtwl-sla-officer-row strong {
  overflow: hidden;
  color: #173c53;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wtwl-sla-officer-row small {
  color: #8a98a1;
  font-size: 10px;
}

.wtwl-breach-count {
  display: grid;
  place-items: center;
  gap: 1px;
  min-width: 34px;
  padding: 5px;
  border-radius: 8px;
  font-size: 9px;
}

.wtwl-breach-count b {
  font-size: 13px;
}

.wtwl-breach-count.wt {
  color: #a05b17;
  background: #fff4e5;
}

.wtwl-breach-count.wl {
  color: #a3403c;
  background: #fff0ef;
}

.wtwl-sla-clear {
  min-height: 190px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 7px;
  color: #5a7568;
  text-align: center;
}

.wtwl-sla-clear svg {
  width: 30px;
  height: 30px;
  color: #84bd27;
}

.wtwl-sla-clear strong {
  font-size: 13px;
}

.wtwl-sla-clear span {
  color: #8a989f;
  font-size: 10px;
}

/* Complaint monitoring */
.complaint-hero {
  min-height: 220px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 34px;
  padding: 30px 36px;
  color: #fff;
  background:
    radial-gradient(circle at 78% 22%, rgba(162, 218, 34, .23), transparent 25%),
    linear-gradient(125deg, #072f4a 0%, #07596a 54%, #118a80 100%);
  border-radius: 24px;
  box-shadow: 0 16px 34px rgba(6, 54, 75, .13);
  overflow: hidden;
}

.complaint-hero-copy {
  display: grid;
  gap: 12px;
}

.complaint-live {
  width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  color: #dff8f1;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
}

.complaint-live svg {
  width: 14px;
}

.complaint-hero h2 {
  margin: 0;
  font-size: clamp(31px, 3vw, 47px);
  letter-spacing: -.04em;
}

.complaint-hero-copy > p {
  max-width: 660px;
  margin: 0;
  color: rgba(255, 255, 255, .7);
  font-size: 13px;
  line-height: 1.6;
}

.complaint-kind-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.complaint-kind-pills span {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 11px;
  color: rgba(255, 255, 255, .78);
  background: rgba(255, 255, 255, .09);
  border-radius: 10px;
  font-size: 11px;
}

.complaint-kind-pills b {
  color: #fff;
  font-size: 15px;
}

.complaint-kind-pills i {
  width: 7px;
  height: 7px;
  background: #a8da22;
  border-radius: 50%;
}

.complaint-kind-pills i.complaint {
  background: #ffbb62;
}

.complaint-kind-pills i.request {
  background: #4bd1c3;
}

.complaint-hero-score {
  min-width: 235px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px;
  background: rgba(255, 255, 255, .09);
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 20px;
  backdrop-filter: blur(7px);
}

.complaint-hero-score .wtwl-ring {
  width: 104px;
  height: 104px;
}

.complaint-hero-score p {
  display: grid;
  gap: 3px;
  margin: 0;
}

.complaint-hero-score p strong {
  font-size: 28px;
}

.complaint-hero-score p span {
  max-width: 75px;
  color: rgba(255, 255, 255, .62);
  font-size: 10px;
  line-height: 1.45;
}

.complaint-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 12px;
}

.complaint-kpi-grid article {
  min-height: 112px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 18px;
  background: #fff;
  border: 1px solid #e4ebed;
  border-radius: 18px;
  box-shadow: 0 8px 22px rgba(18, 50, 70, .04);
}

.complaint-kpi-grid article > span {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  flex: 0 0 39px;
  color: #fff;
  background: linear-gradient(145deg, #073d59, #087c81);
  border-radius: 12px;
}

.complaint-kpi-grid article > span svg {
  width: 18px;
}

.complaint-kpi-grid p {
  min-width: 0;
  display: grid;
  gap: 3px;
  margin: 0;
}

.complaint-kpi-grid small,
.complaint-kpi-grid em {
  color: #7d8e98;
  font-size: 10px;
  font-style: normal;
}

.complaint-kpi-grid strong {
  color: #082f4b;
  font-size: 27px;
  letter-spacing: -.03em;
}

.complaint-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
  gap: 14px;
}

.complaint-trend-card,
.complaint-kind-card,
.complaint-list-card,
.complaint-officer-card {
  padding: 20px 22px;
}

.complaint-trend-card {
  min-height: 350px;
}

.complaint-daily-chart {
  height: 245px;
  display: flex;
  align-items: end;
  gap: clamp(5px, 1vw, 13px);
  margin: 22px 2px 0;
  padding: 15px 13px 0;
  background:
    repeating-linear-gradient(to bottom, transparent 0, transparent 80px, #e9eff0 81px),
    linear-gradient(#fff, #fff);
  border-bottom: 1px solid #dfe7e9;
  overflow-x: auto;
}

.complaint-daily-column {
  height: 100%;
  min-width: 25px;
  display: flex;
  flex: 1 0 25px;
  flex-direction: column;
  align-items: center;
  justify-content: end;
  gap: 5px;
}

.complaint-daily-column > span {
  color: #667d89;
  font-size: 10px;
  font-weight: 700;
  opacity: 0;
  transition: opacity .18s ease;
}

.complaint-daily-column:hover > span {
  opacity: 1;
}

.complaint-daily-column i {
  width: min(20px, 75%);
  min-height: 6px;
  background: linear-gradient(180deg, #b1e51b, #6fc334);
  border-radius: 7px 7px 3px 3px;
  box-shadow: 0 5px 12px rgba(135, 195, 34, .15);
}

.complaint-daily-column:nth-child(3n) i {
  background: linear-gradient(180deg, #27b9ad, #0b8f8d);
}

.complaint-daily-column small {
  color: #87959e;
  font-size: 10px;
}

.complaint-chart-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 4px 0;
  color: #7d8e97;
  font-size: 10px;
}

.complaint-chart-note span {
  display: flex;
  align-items: center;
  gap: 7px;
}

.complaint-chart-note i {
  width: 8px;
  height: 8px;
  background: #94cf28;
  border-radius: 3px;
}

.complaint-kind-list {
  display: grid;
  gap: 8px;
  margin-top: 17px;
}

.complaint-kind-list > div {
  display: grid;
  grid-template-columns: 39px minmax(80px, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid #edf1f2;
}

.complaint-kind-list > div:last-child {
  border-bottom: 0;
}

.complaint-kind-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: #fff;
  background: #0a8587;
  border-radius: 11px;
}

.complaint-kind-icon.kind-1 {
  background: #f0a23b;
}

.complaint-kind-icon.kind-2 {
  background: #6eac31;
}

.complaint-kind-icon svg {
  width: 16px;
}

.complaint-kind-list p {
  display: grid;
  gap: 4px;
  margin: 0;
}

.complaint-kind-list strong {
  color: #153b53;
  font-size: 12px;
}

.complaint-kind-list small {
  color: #89979f;
  font-size: 10px;
}

.complaint-kind-list b {
  color: #0a3550;
  font-size: 22px;
  text-align: right;
}

.complaint-kind-list em {
  grid-column: 3;
  color: #73912b;
  font-size: 10px;
  font-style: normal;
  text-align: right;
}

.complaint-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.complaint-bar-list {
  display: grid;
  gap: 13px;
  margin-top: 17px;
}

.complaint-bar-list > div {
  display: grid;
  grid-template-columns: 8px minmax(85px, .65fr) minmax(70px, 1fr) 28px;
  gap: 8px;
  align-items: center;
}

.complaint-bar-list .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.complaint-bar-list strong {
  overflow: hidden;
  color: #526978;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.complaint-bar-list p {
  height: 7px;
  margin: 0;
  background: #edf1f2;
  border-radius: 6px;
  overflow: hidden;
}

.complaint-bar-list p i {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.complaint-bar-list b {
  color: #163d54;
  font-size: 12px;
  text-align: right;
}

.complaint-office-list {
  display: grid;
  max-height: 240px;
  margin-top: 12px;
  overflow: auto;
}

.complaint-office-list > div {
  display: grid;
  grid-template-columns: minmax(100px, .8fr) minmax(70px, 1fr) 42px;
  gap: 9px;
  align-items: center;
  min-height: 52px;
  border-bottom: 1px solid #edf1f2;
}

.complaint-office-list p,
.complaint-office-list b {
  display: grid;
  gap: 2px;
  margin: 0;
}

.complaint-office-list strong {
  color: #183d53;
  font-size: 11px;
}

.complaint-office-list small {
  color: #8b99a1;
  font-size: 9px;
  font-weight: 400;
}

.complaint-office-list > div > span {
  height: 7px;
  background: #edf1f2;
  border-radius: 7px;
  overflow: hidden;
}

.complaint-office-list > div > span i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #0c9690, #a4d424);
  border-radius: inherit;
}

.complaint-office-list b {
  color: #0b435d;
  font-size: 12px;
  text-align: right;
}

.complaint-officer-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
  margin-top: 13px;
}

.complaint-officer-list > div {
  display: grid;
  grid-template-columns: 36px minmax(100px, 1fr) 48px minmax(180px, auto);
  gap: 9px;
  align-items: center;
  min-height: 58px;
  border-bottom: 1px solid #edf1f2;
}

.complaint-officer-list p,
.complaint-officer-list b {
  display: grid;
  gap: 3px;
  margin: 0;
}

.complaint-officer-list p strong {
  overflow: hidden;
  color: #173d53;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.complaint-officer-list p small,
.complaint-officer-list b small {
  color: #89979f;
  font-size: 9px;
  font-weight: 400;
}

.complaint-officer-list b {
  color: #123a53;
  font-size: 16px;
  text-align: right;
}

.complaint-officer-breaches {
  display: grid;
  grid-template-columns: repeat(3, minmax(52px, 1fr));
  gap: 5px;
}

.complaint-officer-breaches span {
  display: grid;
  gap: 2px;
  padding: 6px 7px;
  color: #4c7d65;
  background: #edf8f1;
  border-radius: 8px;
  text-align: center;
}

.complaint-officer-breaches small {
  color: inherit;
  font-size: 8px;
  font-weight: 500;
}

.complaint-officer-breaches strong {
  font-size: 12px;
}

.complaint-officer-breaches span.warning {
  color: #a44b43;
  background: #fff0ef;
}

.reference-tabs {
  display: flex;
  gap: 6px;
  padding: 6px;
  background: #fff;
  border: 1px solid #e5ebed;
  border-radius: 16px;
  box-shadow: 0 7px 22px rgba(18, 51, 72, .04);
}

.reference-tabs button {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  color: #5e7180;
  background: transparent;
  border: 0;
  border-radius: 11px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.reference-tabs button svg {
  width: 17px;
}

.reference-tabs button.active {
  color: #fff;
  background: linear-gradient(90deg, #073e5c, #08737b);
  box-shadow: 0 7px 16px rgba(8, 79, 99, .16);
}

.reference-tab-panel,
.reference-general {
  display: grid;
  gap: 14px;
}

.reference-overview {
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 25px;
  color: #fff;
  background: linear-gradient(120deg, #073c59, #0b7778);
  border-radius: 20px;
}

.reference-overview > div {
  display: flex;
  align-items: center;
  gap: 15px;
}

.reference-overview > div > span {
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .11);
  border-radius: 13px;
}

.reference-overview svg {
  width: 21px;
}

.reference-overview p {
  display: grid;
  gap: 4px;
  margin: 0;
}

.reference-overview b {
  font-size: 19px;
}

.reference-overview small {
  color: rgba(255, 255, 255, .66);
  font-size: 12px;
}

.reference-ready {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  color: #dcff9b;
  background: rgba(255, 255, 255, .1);
  border-radius: 14px;
  font-size: 11px;
}

.reference-card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.reference-card {
  min-height: 190px;
  display: grid;
  align-content: center;
  gap: 7px;
  padding: 22px;
}

.reference-card > span {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: #087a7d;
  background: #eaf6f2;
  border-radius: 12px;
}

.reference-card > span svg {
  width: 20px;
}

.reference-card > strong {
  margin-top: 8px;
  color: #0b3853;
  font-size: 34px;
}

.reference-card h2 {
  margin: 0;
  color: #294d63;
  font-size: 16px;
}

.reference-card p {
  margin: 0;
  color: #87949c;
  font-size: 11px;
  line-height: 1.5;
}

/* Survey Kepuasan Peserta */
.survey-page-head {
  align-items: center;
}

.survey-export {
  flex: 0 0 auto;
}

.survey-filter-panel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: end;
  gap: 22px;
  padding: 17px 19px;
  background: #fff;
  border: 1px solid #dfe8e9;
  border-radius: 19px;
  box-shadow: 0 8px 25px rgba(19, 48, 68, .045);
}

.survey-filter-intro {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 175px;
  padding-bottom: 2px;
}

.survey-filter-intro > span {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #073b58, #07817f);
  border-radius: 11px;
}

.survey-filter-intro svg {
  width: 18px;
}

.survey-filter-intro p {
  display: grid;
  gap: 2px;
  margin: 0;
}

.survey-filter-intro strong {
  color: #123b55;
  font-size: 15px;
}

.survey-filter-intro small {
  max-width: 180px;
  color: #84929a;
  font-size: 10px;
  line-height: 1.35;
}

.survey-filter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.survey-filter-grid label {
  min-width: 0;
  display: grid;
  gap: 5px;
  color: #617481;
  font-size: 11px;
  font-weight: 700;
}

.survey-filter-grid select {
  min-width: 0;
  width: 100%;
  height: 42px;
  padding: 0 31px 0 11px;
  color: #173c53;
  background: #f9fbfb;
  border: 1px solid #d6e1e3;
  border-radius: 11px;
  font: inherit;
  font-size: 12px;
  outline: none;
}

.survey-filter-grid select:focus {
  border-color: #15958f;
  box-shadow: 0 0 0 3px rgba(21, 149, 143, .11);
}

.survey-hero {
  min-height: 210px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 34px;
  padding: 28px 35px;
  color: #fff;
  background:
    radial-gradient(circle at 84% 10%, rgba(190, 225, 42, .26), transparent 28%),
    linear-gradient(123deg, #06334e 0%, #08626e 58%, #168571 100%);
  border-radius: 24px;
  box-shadow: 0 17px 38px rgba(8, 58, 82, .15);
}

.survey-hero h2 {
  margin: 16px 0 7px;
  font-size: clamp(29px, 2.25vw, 43px);
  letter-spacing: -.04em;
}

.survey-hero p {
  margin: 0;
  color: rgba(255, 255, 255, .72);
  font-size: 14px;
}

.survey-score {
  width: 170px;
  min-height: 150px;
  display: grid;
  place-content: center;
  text-align: center;
  background: rgba(255, 255, 255, .11);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 22px;
  backdrop-filter: blur(3px);
}

.survey-score span,
.survey-score small {
  color: rgba(255, 255, 255, .7);
  font-size: 11px;
}

.survey-score strong {
  margin: 4px 0;
  color: #efffa8;
  font-size: 45px;
  line-height: 1;
  letter-spacing: -.05em;
}

.survey-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.survey-kpi-grid article {
  min-height: 122px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 19px;
  background: #fff;
  border: 1px solid #e4eaed;
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(19, 48, 68, .04);
}

.survey-kpi-grid article > span {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  flex: 0 0 46px;
  color: #087c7c;
  background: #eaf6f2;
  border-radius: 13px;
}

.survey-kpi-grid article.danger > span {
  color: #bb4848;
  background: #fff0ef;
}

.survey-kpi-grid article.warning > span {
  color: #a96a17;
  background: #fff5df;
}

.survey-kpi-grid svg {
  width: 21px;
}

.survey-kpi-grid p {
  min-width: 0;
  display: grid;
  gap: 2px;
  margin: 0;
}

.survey-kpi-grid small,
.survey-kpi-grid em {
  color: #7d8d97;
  font-size: 11px;
  font-style: normal;
}

.survey-kpi-grid strong {
  color: #073650;
  font-size: 30px;
  line-height: 1.1;
}

.survey-insight-grid {
  display: grid;
  grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr);
  gap: 14px;
}

.survey-priority-card,
.survey-journey-card,
.survey-record-card {
  padding: 20px;
}

.survey-priority-list {
  display: grid;
  gap: 8px;
  margin-top: 13px;
}

.survey-priority-list > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 45px 82px;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #f7f9fa;
  border-left: 4px solid #7d9797;
  border-radius: 11px;
}

.survey-priority-list span,
.survey-priority-list span small {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.survey-priority-list b,
.survey-priority-list strong {
  color: #173c53;
  font-size: 15px;
}

.survey-priority-list small,
.survey-priority-list em {
  color: #819099;
  font-size: 10px;
  font-style: normal;
}

.survey-priority-list em {
  text-align: right;
}

.survey-priority-list .priority-hpi { border-color: #d84d4d; background: #fff5f4; }
.survey-priority-list .priority-pi { border-color: #f3a62f; background: #fff9ed; }
.survey-priority-list .priority-mo { border-color: #d6ce35; }
.survey-priority-list .priority-mt { border-color: #55a561; }
.survey-priority-list .priority-ra { border-color: #4b9ca3; }
.survey-priority-list .priority-scd { border-color: #7567bd; }

/* NAVIKEL Quick Insight rows: icon + free-flowing text + action button.
   Distinct from .survey-priority-list above (icon + short number + short
   label) — a fixed 45px/82px column template there would crush this
   longer text and overlap the button. */
.sv-insight-list {
  display: grid;
  gap: 8px;
  margin-top: 13px;
}
.sv-insight-list > div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: #f7f9fa;
  border-left: 4px solid #7d9797;
  border-radius: 11px;
}
.sv-insight-list > div > span {
  display: grid;
  place-items: center;
  color: #4b9ca3;
}
.sv-insight-list > div > strong {
  min-width: 0;
  color: #173c53;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}
.sv-insight-list > div > button {
  flex: 0 0 auto;
  white-space: nowrap;
  padding: 7px 14px;
  color: #075267;
  font-size: 12.5px;
  font-weight: 700;
  background: #fff;
  border: 1px solid #d7e2e5;
  border-radius: 999px;
  cursor: pointer;
}
.sv-insight-list > div > button:hover { background: #eef8f6; }

.survey-journey-list {
  display: grid;
  margin-top: 12px;
}

.survey-journey-list > div {
  display: grid;
  grid-template-columns: 28px minmax(160px, 1fr) 52px 60px;
  align-items: center;
  gap: 11px;
  padding: 11px 2px;
  border-bottom: 1px solid #edf1f3;
}

.survey-rank {
  color: #8b99a1;
  font-size: 11px;
  font-weight: 700;
}

.survey-journey-list p {
  min-width: 0;
  display: grid;
  gap: 5px;
  margin: 0;
}

.survey-journey-list p strong {
  overflow: hidden;
  color: #173c53;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.survey-journey-list p > span {
  height: 5px;
  overflow: hidden;
  background: #edf1f2;
  border-radius: 6px;
}

.survey-journey-list p i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #11a096, #a7d529);
  border-radius: inherit;
}

.survey-journey-list small {
  color: #84929a;
  font-size: 10px;
}

.survey-journey-list > div > b,
.survey-journey-list > div > em {
  display: grid;
  color: #173c53;
  font-size: 15px;
  font-style: normal;
  text-align: right;
}

.survey-priority-badge {
  display: inline-block;
  margin-bottom: 3px;
  padding: 4px 8px;
  color: #31505e;
  background: #edf2f3;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
}

.survey-priority-badge.priority-hpi { color: #a83c3c; background: #ffebea; }
.survey-priority-badge.priority-pi { color: #99601a; background: #fff0d1; }
.survey-priority-badge.priority-mo { color: #78721e; background: #f8f4cf; }
.survey-priority-badge.priority-mt { color: #34733d; background: #e8f5e9; }
.survey-priority-badge.priority-ra { color: #28727a; background: #e5f4f5; }
.survey-priority-badge.priority-scd { color: #5b50a0; background: #eeebfb; }

.survey-table {
  min-width: 980px;
}

.survey-table th:nth-child(1) { width: 145px; }
.survey-table th:nth-child(2) { width: 230px; }
.survey-table th:nth-child(5),
.survey-table th:nth-child(6) { width: 90px; }

.survey-module-tabs,
.fourdx-tabs {
  display: inline-flex;
  gap: 6px;
  margin: 4px 0 20px;
  padding: 5px;
  border: 1px solid #dbe5e8;
  border-radius: 14px;
  background: #f4f7f8;
}

.survey-module-tabs button,
.fourdx-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 17px;
  border: 0;
  border-radius: 10px;
  color: #536b76;
  background: transparent;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

.survey-module-tabs button.active,
.fourdx-tabs button.active {
  color: #fff;
  background: #07566b;
  box-shadow: 0 5px 14px rgba(7, 86, 107, .18);
}

/* Tab Pengaduan berjumlah 8 — dibungkus ke baris berikutnya agar tab kanan
   tidak terpotong pada layar sempit. */
.complaint-intel-tabs {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  row-gap: 6px;
  overflow: visible;
}

.survey-aoi-filter {
  display: grid;
  gap: 20px;
  margin-bottom: 18px;
  padding: 22px;
}

.survey-aoi-filter-main {
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  gap: 16px;
}

.survey-aoi-filter-main label,
.survey-aoi-form-grid label {
  display: grid;
  gap: 7px;
  color: #415e6a;
  font-size: 13px;
  font-weight: 750;
}

.survey-aoi-filter-main select,
.survey-aoi-filter-main input,
.survey-aoi-form-grid input,
.survey-aoi-form-grid select,
.survey-aoi-form-grid textarea {
  width: 100%;
  border: 1px solid #cfdbdf;
  border-radius: 11px;
  color: #073b55;
  background: #fff;
  font: inherit;
}

.survey-aoi-filter-main select,
.survey-aoi-filter-main input,
.survey-aoi-form-grid input,
.survey-aoi-form-grid select { min-height: 45px; padding: 0 13px; }
.survey-aoi-form-grid textarea { padding: 12px 13px; resize: vertical; }

.survey-status-filter {
  display: grid;
  grid-template-columns: minmax(180px, .55fr) minmax(300px, 1.8fr) auto;
  align-items: center;
  gap: 18px;
  padding-top: 18px;
  border-top: 1px solid #e1eaed;
}

.survey-status-filter > div:first-child { display: grid; gap: 3px; }
.survey-status-filter strong { color: #073b55; font-size: 14px; }
.survey-status-filter small { color: #728994; font-size: 12px; }

.survey-status-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.survey-status-options label {
  position: relative;
  cursor: pointer;
}

.survey-status-options input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.survey-status-options span {
  display: grid;
  place-items: center;
  min-width: 52px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid #cfdbdf;
  border-radius: 10px;
  color: #617780;
  background: #fff;
  font-size: 12px;
  font-weight: 850;
  transition: .15s ease;
}

.survey-status-options input:checked + span {
  border-color: #08738a;
  color: #fff;
  background: #08738a;
  box-shadow: 0 4px 10px rgba(8, 115, 138, .18);
}

.survey-status-options .status-hpi input:checked + span { border-color: #b94c4c; background: #b94c4c; }
.survey-status-options .status-pi input:checked + span { border-color: #c17a23; background: #c17a23; }

#survey-apply-improvement,
.survey-aoi-edit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 39px;
  padding: 0 14px;
  border: 1px solid #08738a;
  border-radius: 10px;
  color: #08738a;
  background: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

#survey-apply-improvement { color: #fff; background: #08738a; }

.reference-document-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 180px;
}

.reference-document-actions .survey-aoi-edit {
  min-height: 38px;
  padding: 0 13px;
  text-decoration: none;
}

.reference-document-actions .danger {
  border-color: #c84e53;
  color: #b83f46;
}

.reports-page {
  display: grid;
  gap: 18px;
}

.reports-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 28px;
  color: #fff;
  background: linear-gradient(120deg, #073a5a, #087e81);
  border-radius: 20px;
  box-shadow: 0 14px 28px rgba(6, 58, 90, .16);
}

.reports-hero h1 {
  margin: 4px 0 8px;
  color: #fff;
  font-size: clamp(26px, 3vw, 38px);
}

.reports-hero p:not(.eyebrow) {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, .84);
}

.reports-hero .eyebrow { color: #b8f1d9; }

.reports-download-all {
  flex: 0 0 auto;
  background: #fff;
  color: #075267;
}

.reports-notice {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 15px;
  color: #2d6671;
  background: #eef8f6;
  border: 1px solid #d7ebe7;
  border-radius: 12px;
  font-size: 13px;
}

.reports-notice svg { width: 17px; color: #087e81; }

.reports-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.reports-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  padding: 18px;
  background: #fff;
  border: 1px solid #dfebee;
  border-radius: 16px;
  box-shadow: 0 7px 18px rgba(9, 54, 73, .04);
}

.reports-card-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: #087e81;
  background: #e6f7f5;
  border-radius: 12px;
}

.reports-card-icon svg { width: 20px; }
.reports-card-content h2 { margin: 1px 0 6px; color: #073a5a; font-size: 17px; }
.reports-card-content p { min-height: 38px; margin: 0 0 8px; color: #617b87; font-size: 13px; line-height: 1.45; }
.reports-card-content small { color: #7b929b; font-size: 11px; }

.reports-download {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 39px;
  border: 1px solid #0c7890;
  border-radius: 10px;
  color: #07647a;
  background: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.reports-download:hover { color: #fff; background: #08758b; }
.reports-download svg { width: 17px; }

@media (max-width: 1050px) {
  .reports-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .reports-hero { align-items: flex-start; flex-direction: column; padding: 21px; }
  .reports-download-all { width: 100%; }
  .reports-grid { grid-template-columns: 1fr; }
}

.survey-aoi-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.survey-aoi-summary article {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 92px;
  padding: 17px;
  border: 1px solid #dce7ea;
  border-radius: 16px;
  background: #fff;
}

.survey-aoi-summary article > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: #617780;
  background: #edf3f5;
}

.survey-aoi-summary article.process > span { color: #a76510; background: #fff0d6; }
.survey-aoi-summary article.complete > span { color: #167354; background: #e3f5ed; }
.survey-aoi-summary p { display: grid; gap: 2px; margin: 0; }
.survey-aoi-summary small { color: #6f8791; font-size: 12px; }
.survey-aoi-summary strong { color: #073b55; font-size: 25px; line-height: 1; }

.survey-aoi-table { min-width: 1280px; }
.survey-aoi-table th:nth-child(1) { width: 170px; }
.survey-aoi-table th:nth-child(2) { width: 135px; }
.survey-aoi-table th:nth-child(3) { width: 185px; }
.survey-aoi-table th:nth-child(4) { width: 255px; }
.survey-aoi-table th:nth-child(5) { width: 260px; }
.survey-aoi-table th:nth-child(6) { width: 105px; }
.survey-aoi-table th:nth-child(7) { width: 135px; }
.survey-aoi-table th:nth-child(8) { width: 120px; }

.survey-code-list { display: flex; flex-wrap: wrap; gap: 5px; }
.survey-code-list span {
  padding: 4px 7px;
  border-radius: 7px;
  color: #07566b;
  background: #e3f2f5;
  font-size: 11px;
  font-weight: 850;
}

.survey-aoi-empty { color: #8ca0a8; font-style: italic; }
.survey-workflow-status {
  display: inline-flex;
  padding: 6px 9px;
  border-radius: 999px;
  color: #687f89;
  background: #edf2f4;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}
.survey-workflow-status.process { color: #9a5e0d; background: #fff0d6; }
.survey-workflow-status.completed { color: #146c50; background: #e3f5ed; }

.survey-aoi-dialog {
  width: min(780px, calc(100vw - 32px));
  padding: 0;
  border: 0;
  border-radius: 20px;
  color: #073b55;
  background: #fff;
  box-shadow: 0 24px 70px rgba(2, 38, 52, .28);
}

.survey-aoi-dialog::backdrop { background: rgba(4, 31, 43, .55); backdrop-filter: blur(3px); }
.survey-aoi-dialog-shell > header,
.survey-aoi-dialog-shell > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 21px 24px;
}
.survey-aoi-dialog-shell > header { border-bottom: 1px solid #e0e9ec; }
.survey-aoi-dialog-shell > header h2 { margin: 3px 0; font-size: 21px; }
.survey-aoi-dialog-shell > header p { margin: 0; color: #718790; font-size: 13px; }
.survey-aoi-dialog-shell > header button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 10px;
  color: #526c76;
  background: #edf3f5;
  cursor: pointer;
}
.dialog-kicker { color: #078297; font-size: 11px; font-weight: 850; letter-spacing: .08em; }
.survey-aoi-context {
  display: flex;
  gap: 12px;
  margin: 20px 24px 0;
  padding: 15px;
  border-radius: 13px;
  background: #edf7f8;
}
.survey-aoi-context > span { color: #078297; }
.survey-aoi-context div { display: grid; gap: 4px; }
.survey-aoi-context small { color: #66808a; }
.survey-aoi-context p { display: flex; flex-wrap: wrap; gap: 5px; margin: 2px 0 0; }
.survey-aoi-context b { padding: 3px 7px; border-radius: 6px; color: #07566b; background: #d5ecef; font-size: 10px; }
.survey-aoi-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 20px 24px 24px;
}
.survey-aoi-form-grid label.full { grid-column: 1 / -1; }
.survey-aoi-form-grid label span b { color: #bb3d3d; }
.survey-aoi-dialog-shell > footer { border-top: 1px solid #e0e9ec; }
.survey-aoi-dialog-shell > footer button {
  min-height: 41px;
  padding: 0 16px;
  border: 1px solid #ccdadd;
  border-radius: 10px;
  color: #536c76;
  background: #fff;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}
.survey-aoi-dialog-shell > footer button.primary { border-color: #08738a; color: #fff; background: #08738a; }

@media (max-width: 1400px) {
  .survey-filter-panel {
    grid-template-columns: 1fr;
  }

  .survey-filter-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  .wtwl-summary-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .wtwl-content-grid {
    grid-template-columns: 1fr;
  }

  .wtwl-insight-grid {
    grid-template-columns: 1fr;
  }

  .complaint-main-grid {
    grid-template-columns: 1fr;
  }

  .complaint-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .complaint-officer-list {
    grid-template-columns: 1fr;
  }

  .reference-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .survey-filter-panel {
    grid-template-columns: 1fr;
  }

  .survey-filter-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .survey-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .survey-status-filter { grid-template-columns: 1fr; }
  #survey-apply-improvement { justify-self: start; }
}

@media (max-width: 760px) {
  .wtwl-page-head,
  .wtwl-filter-row {
    align-items: stretch;
    flex-direction: column;
  }

  .wtwl-summary-grid,
  .wtwl-upload-grid {
    grid-template-columns: 1fr;
  }

  .complaint-hero {
    grid-template-columns: 1fr;
    padding: 25px;
  }

  .complaint-hero-score {
    min-width: 0;
  }

  .complaint-kpi-grid,
  .complaint-detail-grid {
    grid-template-columns: 1fr;
  }

  .complaint-chart-note {
    align-items: flex-start;
    flex-direction: column;
  }

  .complaint-officer-list > div {
    grid-template-columns: 36px minmax(100px, 1fr) 48px;
    padding: 8px 0;
  }

  .complaint-officer-breaches {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, 1fr);
    margin-left: 45px;
  }

  .wtwl-hero {
    grid-template-columns: 1fr;
    padding: 25px;
  }

  .wtwl-rings {
    justify-content: center;
  }

  .wtwl-hero-stats {
    flex-wrap: wrap;
  }

  .wtwl-service-list > div {
    grid-template-columns: 9px minmax(100px, 1fr) 38px 35px;
  }

  .wtwl-office-filter-bar {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }

  .wtwl-office-filter-bar select {
    min-width: 0;
    width: 100%;
  }

  .wtwl-visit-row {
    grid-template-columns: 24px minmax(150px, 1fr) 70px;
  }

  .wtwl-visit-row p:nth-of-type(2),
  .wtwl-visit-row p:nth-of-type(3) {
    display: none;
  }

  .wtwl-service-track {
    display: none;
  }

  .reference-card-grid {
    grid-template-columns: 1fr;
  }

  .reference-overview {
    align-items: flex-start;
    flex-direction: column;
  }

  .wtwl-filter-row select {
    width: 100%;
  }

  .survey-page-head,
  .survey-hero {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .survey-page-head {
    display: flex;
    flex-direction: column;
  }

  .survey-export {
    align-self: flex-start;
  }

  .survey-filter-grid,
  .survey-kpi-grid,
  .survey-insight-grid {
    grid-template-columns: 1fr;
  }

  .survey-score {
    width: 100%;
    min-height: 125px;
  }

  .survey-module-tabs,
  .fourdx-tabs { display: flex; width: 100%; }
  .survey-module-tabs button,
  .fourdx-tabs button { flex: 1; justify-content: center; padding: 0 10px; }
  .survey-aoi-filter-main,
  .survey-aoi-summary,
  .survey-aoi-form-grid { grid-template-columns: 1fr; }
  .survey-aoi-form-grid label.full { grid-column: auto; }
  .survey-aoi-dialog-shell > footer { align-items: stretch; flex-direction: column-reverse; }
  .survey-aoi-dialog-shell > footer button { width: 100%; }
}

.csti-page { gap: 20px; }
.csti-page-head { align-items: center; }
.csti-head-right { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
/* Baris filter: tanggal berdampingan dengan kantor/loket, di bawah tab. */
.csti-filter-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 16px; }
.csti-filter-bar .csti-office-filter { margin-left: 0; }
.csti-date-picker { display: flex; align-items: center; gap: 4px; position: relative; }
.csti-date-picker button { display: flex; align-items: center; justify-content: center; border: 1px solid #dce7ea; border-radius: 8px; background: #fff; color: #24475b; cursor: pointer; transition: all 0.15s; }
.csti-date-picker button:hover:not(:disabled) { background: #f0f5f7; border-color: #138d89; color: #138d89; }
.csti-date-picker button:disabled { opacity: 0.35; cursor: not-allowed; }
.csti-date-picker button svg { width: 14px; height: 14px; }
#csti-date-prev, #csti-date-next { width: 30px; height: 30px; }
.csti-date-label { gap: 6px; padding: 5px 12px; font-size: 12px; font-weight: 600; height: 30px; }
.csti-date-label svg { width: 14px; height: 14px; color: #138d89; }
.csti-date-today-btn { padding: 5px 10px; font-size: 11px; font-weight: 600; height: 30px; color: #138d89 !important; border-color: #138d89 !important; background: #edfaf9 !important; }
.csti-date-today-btn:hover { background: #138d89 !important; color: #fff !important; }
.csti-connection { display: grid; grid-template-columns: 10px auto; gap: 2px 9px; min-width: 260px; padding: 14px 18px; border: 1px solid #dce7ea; border-radius: 16px; background: #fff; }
.csti-connection i { grid-row: 1 / 3; align-self: center; width: 10px; height: 10px; border-radius: 50%; background: #d55555; box-shadow: 0 0 0 5px #fae8e8; }
.csti-connection.online i { background: #1b9c72; box-shadow: 0 0 0 5px #ddf3eb; }
.csti-connection span { color: #073b55; font-size: 13px; font-weight: 750; }
.csti-connection small { overflow: hidden; max-width: 300px; color: #78909a; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.csti-warning { display: flex; align-items: center; gap: 13px; padding: 14px 17px; border: 1px solid #f0ce9d; border-radius: 14px; color: #90570b; background: #fff7e9; }
.csti-warning > svg { width: 23px; flex: 0 0 auto; }
.csti-warning div { display: grid; flex: 1; gap: 2px; }
.csti-warning span { font-size: 12px; }
.csti-warning button { min-height: 38px; padding: 0 15px; border: 1px solid #d89a3d; border-radius: 10px; color: #80500b; background: #fff; font-weight: 700; cursor: pointer; }
.csti-warning[hidden] { display: none; }
/* Wrapper polling #csti-live-body tidak boleh mengubah tata letak grid .csti-page.
   display: contents membuat anak-anaknya ikut menjadi grid-item .csti-page sehingga
   jarak antar-section tetap 20px seperti sebelum fix flicker (1428b03). */
#csti-live-body { display: contents; }
.csti-kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.csti-kpi-grid article { display: flex; align-items: center; gap: 14px; min-height: 116px; padding: 20px; border: 1px solid #dfe8eb; border-radius: 20px; background: #fff; transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s; }
.csti-kpi-grid article:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(7, 60, 92, 0.08); border-color: #c0d5dc; }
.csti-kpi-grid article > span { display: grid; place-items: center; width: 47px; height: 47px; border-radius: 14px; color: #087d8e; background: #e4f5f5; }
.csti-kpi-grid article.waiting > span { color: #a66a11; background: #fff0d7; }
.csti-kpi-grid article.danger > span { color: #b54545; background: #fee9e7; }
.csti-kpi-grid p { display: grid; gap: 2px; margin: 0; }
.csti-kpi-grid small, .csti-kpi-grid em { color: #718891; font-size: 12px; font-style: normal; }
.csti-kpi-grid strong { color: #063c56; font-size: 29px; line-height: 1.1; }
.csti-wtwl-insight { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.csti-wtwl-card { display: flex; flex-direction: column; gap: 12px; padding: 20px 22px; border-radius: 20px; border: 1px solid #dfe8eb; background: #fff; cursor: pointer; transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s; }
.csti-wtwl-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(7, 60, 92, 0.1); border-color: #c0d5dc; }
.csti-wtwl-card:focus-visible { outline: 2px solid #138d89; outline-offset: 2px; }
.csti-wtwl-head { display: flex; align-items: center; gap: 12px; }
.csti-wtwl-head > span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: #087d8e; background: #e4f5f5; flex-shrink: 0; }
.csti-wtwl-head h3 { margin: 0; font-size: 14.5px; color: #073c5c; }
.csti-wtwl-head small { color: #7c9199; font-size: 12px; }
.csti-wtwl-value { display: flex; align-items: baseline; gap: 6px; }
.csti-wtwl-value strong { font-size: 32px; line-height: 1; color: #063c56; }
.csti-wtwl-value span { color: #7c9199; font-size: 13px; }
.csti-wtwl-value em { margin-left: auto; color: #9ab0b8; font-size: 12px; font-style: normal; }
.csti-wtwl-bar { height: 8px; border-radius: 999px; background: #eef3f5; overflow: hidden; }
.csti-wtwl-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #22b8a9, #138d89); transition: width 0.4s ease; }
.csti-wtwl-card.warning .csti-wtwl-bar i { background: linear-gradient(90deg, #f5b942, #d68a1a); }
.csti-wtwl-card.danger .csti-wtwl-bar i { background: linear-gradient(90deg, #f0685f, #d1453a); }
.csti-wtwl-card.warning .csti-wtwl-value strong { color: #a66a11; }
.csti-wtwl-card.danger .csti-wtwl-value strong { color: #b54545; }
.csti-wtwl-foot { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: #7c9199; }
.csti-wtwl-go { display: flex; align-items: center; gap: 4px; color: #138d89; font-weight: 600; opacity: 0; transform: translateX(-4px); transition: opacity 0.15s, transform 0.15s; }
.csti-wtwl-go svg { width: 13px; height: 13px; }
.csti-wtwl-card:hover .csti-wtwl-go { opacity: 1; transform: translateX(0); }
@media (max-width: 720px) { .csti-wtwl-insight { grid-template-columns: 1fr; } }

.csti-sla-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.csti-sla-breach.has-breach { border: 1px solid #f3c6c2; background: linear-gradient(180deg, #fff, #fff8f7); }
.csti-sla-breach.has-breach .generated-card-head span { color: #b54545; background: #fee9e7; }
@media (max-width: 900px) { .csti-sla-grid { grid-template-columns: 1fr; } }

.csti-insight-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, .85fr); gap: 16px; }
.csti-hour-card, .csti-service-card, .csti-table-card { padding: 22px; transition: box-shadow 0.15s; }
.csti-hour-card:hover, .csti-service-card:hover, .csti-table-card:hover { box-shadow: 0 4px 20px rgba(7, 60, 92, 0.07); }
.csti-hour-chart { display: grid; grid-template-columns: repeat(24, 1fr); align-items: end; gap: 5px; height: 210px; padding-top: 20px; }
.csti-hour-chart div { display: grid; grid-template-rows: 1fr 18px; align-items: end; height: 100%; text-align: center; position: relative; cursor: pointer; }
.csti-hour-chart div::after { content: attr(title); position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); padding: 4px 8px; border-radius: 6px; background: #073c5c; color: #fff; font-size: 11px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity 0.15s; z-index: 2; }
.csti-hour-chart div:hover::after { opacity: 1; }
.csti-hour-chart i { display: block; min-height: 2px; border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg, #17a89c, #08627c); transition: filter 0.15s, transform 0.15s; }
.csti-hour-chart div:hover i { filter: brightness(1.15); transform: scaleY(1.05); transform-origin: bottom; }
.csti-hour-chart div:hover span { color: #073c5c; font-weight: 600; }
.csti-hour-chart span { color: #83979e; font-size: 10px; }
.csti-service-list { display: grid; gap: 0; margin-top: 8px; }
.csti-service-list > div:not(.empty-state) { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 8px; border-bottom: 1px solid #e7edef; border-radius: 8px; transition: background 0.15s; cursor: default; }
.csti-service-list > div:not(.empty-state):hover { background: #f0f7f7; }
.csti-service-list p { display: grid; gap: 3px; margin: 0; }
.csti-service-list strong { color: #123f53; font-size: 13px; }
.csti-service-list small { color: #7c9199; font-size: 11px; }
.csti-service-list b { color: #075671; font-size: 20px; }

/* Gemba Online — daftar rekaman antrian selesai */
.csti-gemba-kpi { grid-template-columns: repeat(3, 1fr); }
.csti-gemba-kpi article:nth-child(2) strong,
.csti-gemba-kpi article:nth-child(3) strong { font-size: 21px; font-variant-numeric: tabular-nums; }
.csti-gemba-note { display: flex; align-items: flex-start; gap: 8px; margin: 10px 0 14px; padding: 10px 12px; border-radius: 10px; background: #eef6f6; color: #234f61; font-size: 12px; line-height: 1.5; }
.csti-gemba-note svg { width: 15px; height: 15px; flex: 0 0 15px; margin-top: 1px; }
.csti-gemba-filterbar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 0 0 14px; }
.csti-gemba-filter-label { display: inline-flex; align-items: center; gap: 6px; color: #5c727f; font-size: 11.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.csti-gemba-filter-label svg { width: 14px; height: 14px; }
.csti-gemba-filter { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: #f0f4f7; border: 1px solid #dde6ec; border-radius: 999px; }
.csti-gemba-filter button { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 5px 13px; border: 0; border-radius: 999px; background: transparent; color: #5c727f; font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.csti-gemba-filter button.active { background: #cbf3ef; color: #02322f; }
.csti-gemba-filter button em { font-style: normal; font-size: 11px; font-weight: 700; opacity: 0.7; font-variant-numeric: tabular-nums; }
.csti-gemba-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.csti-gemba-clip { display: flex; flex-direction: column; border: 1px solid #dde7ea; border-radius: 14px; background: #fff; overflow: hidden; transition: box-shadow 0.15s, transform 0.15s; }
.csti-gemba-clip:hover { box-shadow: 0 6px 18px rgba(7, 60, 92, 0.1); transform: translateY(-2px); }
.csti-gemba-screen { position: relative; aspect-ratio: 16 / 10; display: grid; place-items: center; background: linear-gradient(150deg, #0c2f45, #05243a); color: #eaf6f5; overflow: hidden; }
.csti-gemba-scanline { position: absolute; inset: 0; background: repeating-linear-gradient(180deg, rgba(255,255,255,0.05) 0 1px, transparent 1px 4px); opacity: 0.5; pointer-events: none; }
.csti-gemba-play { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.3); }
.csti-gemba-play svg { width: 20px; height: 20px; margin-left: 2px; }
.csti-gemba-no { position: absolute; top: 8px; left: 10px; font-size: 15px; font-weight: 800; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,0.4); }
.csti-gemba-runtime { position: absolute; right: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 999px; background: rgba(4,18,28,0.66); color: #eaf6f5; font-size: 11px; font-weight: 700; }
.csti-gemba-runtime svg { width: 12px; height: 12px; }
.csti-gemba-clip.is-over .csti-gemba-runtime { background: rgba(179,38,30,0.82); color: #fff; }
.csti-gemba-info { display: grid; align-content: start; gap: 8px; padding: 12px; }
.csti-gemba-layanan { margin: 0; height: 2.7em; color: #123f53; font-size: 13px; font-weight: 700; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.csti-gemba-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.csti-gemba-tags-dur { margin-top: -2px; }
.csti-gemba-tag { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 999px; background: #eef3f5; color: #5c727f; font-size: 11px; font-weight: 700; white-space: nowrap; }
.csti-gemba-tag svg { width: 12px; height: 12px; }
.csti-gemba-tag.csti-gemba-time { background: #e1eefa; color: #0b4a6b; }
.csti-gemba-tag.csti-gemba-dur { background: #e7f0cf; color: #33430a; }
/* Waktu layanan CSTI dibedakan dari durasi rekaman: dua ukuran berbeda,
   jadi tidak boleh terlihat seperti satu angka yang sama. */
.csti-gemba-tag.csti-gemba-layan { background: #eef3f5; color: #42525c; }
.csti-gemba-actions { display: grid; gap: 8px; margin-top: auto; padding: 12px; border-top: 1px solid #edf1f3; }
.csti-gemba-download, .csti-gemba-score { width: 100%; margin: 0; min-height: 38px; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 14px; border: 1px solid transparent; border-radius: 999px; font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; transition: background 0.15s, border-color 0.15s; }
.csti-gemba-download { background: #075671; color: #fff; }
.csti-gemba-download:hover { background: #095f7e; }
.csti-gemba-score { background: #fff; color: #1d5f6f; border-color: #cfe1e4; }
.csti-gemba-score:hover { background: #f3f8f9; border-color: #b7d2d6; }
.csti-gemba-download svg, .csti-gemba-score svg { width: 15px; height: 15px; }
.csti-gemba-empty { grid-column: 1 / -1; display: grid; place-items: center; gap: 6px; padding: 40px 20px; text-align: center; color: #5c727f; }
.csti-gemba-empty svg { width: 34px; height: 34px; color: #087d8e; }
.csti-gemba-empty h3 { margin: 4px 0 0; color: #123f53; font-size: 15px; }
.csti-gemba-empty p { margin: 0; font-size: 12.5px; max-width: 360px; }

.csti-table { min-width: 880px; }
.csti-table tbody tr { transition: background 0.1s; }
.csti-table tbody tr:hover { background: #f4f9fa; }
.csti-status { display: inline-flex; padding: 5px 9px; border-radius: 999px; color: #95600e; background: #fff0d5; font-size: 11px; font-weight: 700; }
.csti-status.called { color: #177052; background: #e3f4ec; }
.csti-status.warning { color: #95600e; background: #fff0d5; }
.csti-status.exceeded { color: #a53d3d; background: #fee8e6; }
.csti-status.ok { color: #177052; background: #e3f4ec; }
.csti-status.muted { color: #5a6b73; background: #eef2f4; }
.csti-tutup-btn { margin-left: 8px; padding: 3px 10px; font-size: 11.5px; }
.csti-feed-banner { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; margin-bottom: 16px; border-radius: 14px; color: #95600e; background: #fff0d5; border: 1px solid #e8cc9a; }
.csti-feed-banner svg { flex: none; width: 20px; height: 20px; margin-top: 1px; }
.csti-feed-banner strong { display: block; font-size: 14px; font-weight: 700; margin-bottom: 3px; }
.csti-feed-banner span { display: block; font-size: 12.5px; line-height: 1.5; }
.csti-tabs { display: inline-flex; align-self: flex-start; gap: 6px; padding: 5px; border: 1px solid #dce7ea; border-radius: 13px; background: #fff; }
.wa-gateway-card { text-align: center; padding: 32px 24px; }
.wa-gateway-qr { margin: 18px 0; }
.wa-gateway-qr img { max-width: 260px; border: 1px solid #dde6ec; border-radius: 14px; padding: 14px; background: #fff; }
.wa-gateway-hint { color: #5c727f; font-size: 13px; max-width: 420px; margin: 8px auto 16px; }
.wa-conn-card { margin-bottom: 16px; }

/* Pemilih kantor pada kartu Koneksi WhatsApp. Muncul hanya bila ada lebih dari
   satu kantor yang boleh dilihat — Admin KC cuma punya kantornya sendiri, jadi
   baginya deretan ini tidak pernah tampil. Titik warna dibarengi teks status
   supaya tetap terbaca tanpa mengandalkan persepsi warna. */
.wa-sesi-daftar { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 4px; }
.wa-sesi-item { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--p-outline-variant, #e3ebee); border-radius: 999px; background: var(--p-surface-container-lowest, #fff); cursor: pointer; font-size: 12.5px; color: var(--p-on-surface, #123f53); }
.wa-sesi-item:hover { border-color: var(--p-primary, #075671); }
.wa-sesi-item.is-aktif { border-color: var(--p-primary, #075671); background: var(--p-primary-container, #d6ecf7); font-weight: 700; }
.wa-sesi-item small { color: var(--p-on-surface-variant, #5c727f); font-size: 11px; }
.wa-sesi-titik { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 8px; }
.wa-sesi-hidup { background: #2e7d32; }
.wa-sesi-diam { background: #b26a00; }
.wa-sesi-kosong { background: #9aa8b0; }
.wa-conn-layout { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 22px; align-items: center; }
.wa-conn-status { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 750; }
.wa-conn-status i { width: 9px; height: 9px; border-radius: 50%; background: #d85555; box-shadow: 0 0 0 4px #fae8e8; }
.wa-conn-status.wa-conn-connected { color: #167143; background: #e2f6ea; }
.wa-conn-status.wa-conn-connected i { background: #1b9c72; box-shadow: 0 0 0 4px #ddf3eb; }
.wa-conn-status.wa-conn-warning { color: #8a6d00; background: #fff3cd; }
.wa-conn-status.wa-conn-warning i { background: #d9a23d; box-shadow: 0 0 0 4px #f8edcf; }
.wa-conn-status.wa-conn-connecting { color: #07556f; background: #e1f2f8; }
.wa-conn-status.wa-conn-connecting i { background: #2b8fb8; box-shadow: 0 0 0 4px #d8edf6; }
.wa-conn-status.wa-conn-danger { color: #af3030; background: #fde8e8; }
.wa-conn-main { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.wa-conn-state { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.wa-conn-main > svg,
.wa-conn-state > svg { width: 34px; height: 34px; color: #138d89; }
.wa-conn-state[hidden],
.wa-conn-meta[hidden] { display: none; }
.wa-conn-body h2 { margin: 0 0 4px; color: #073b55; font-size: 16px; }
.wa-conn-body p { margin: 0; color: #5c727f; font-size: 13px; line-height: 1.5; max-width: 560px; }
.wa-conn-meta { display: flex; flex-wrap: wrap; gap: 8px 26px; margin: 0; }
.wa-conn-meta dt { color: #78909a; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.wa-conn-meta dd { margin: 2px 0 0; color: #24475b; font-size: 13px; font-weight: 700; }
.wa-conn-actions { display: flex; flex-direction: column; gap: 9px; }
.wa-conn-actions .btn { min-width: 160px; }
.wa-conn-note { margin: 16px 0 0; padding: 11px 13px; border-radius: 10px; color: #59727c; background: #f2f7f8; font-size: 12px; line-height: 1.55; }
@media (max-width: 720px) {
  .wa-conn-layout { grid-template-columns: 1fr; }
  .wa-conn-actions { flex-direction: row; flex-wrap: wrap; }
  .wa-conn-actions .btn { flex: 1; min-width: 140px; }
}
.csti-office-filter { display: inline-flex; flex-wrap: wrap; gap: 8px; margin-left: 10px; align-items: center; }
.csti-office-filter label { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; background: #f0f4f7; border: 1px solid #dde6ec; }
.csti-office-filter label span { display: inline-flex; color: #5c727f; }
.csti-office-filter select { border: none; background: transparent; font-size: 12px; font-weight: 700; color: #24475b; cursor: pointer; outline: none; max-width: 220px; }
.csti-tabs button { min-height: 38px; padding: 0 16px; border: 0; border-radius: 9px; color: #617982; background: transparent; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.csti-tabs button.active { color: #fff; background: #075671; box-shadow: 0 6px 14px rgba(7, 86, 113, .17); }
.csti-settings-layout { display: grid; gap: 16px; }
/* flex-wrap wajib: label memakai min-width:min(420px,100%) sehingga di layar
   sempit ia sudah selebar kontainer, dan keterangan di sebelahnya mendorong
   baris melewati viewport (halaman ikut menggeser horizontal). */
.csti-branch-selector { display:flex; flex-wrap:wrap; align-items:flex-end; justify-content:space-between; gap:18px; padding:16px 18px; margin:0 0 18px; border:1px solid #d8e5e9; border-radius:16px; background:#fff; }
.csti-branch-selector label { display:grid; gap:6px; min-width:min(420px,100%); color:#244c60; font-weight:800; }
.csti-branch-selector > small { flex:1 1 220px; min-width:0; }
.csti-branch-selector select { min-height:44px; padding:0 12px; border:1px solid #cbdde3; border-radius:11px; background:#fff; color:#063e5a; font-weight:700; }
.csti-branch-selector small { color:#68808c; }
.csti-settings-card { padding: 22px; }
.csti-settings-card > header { display: grid; gap: 4px; margin-bottom: 18px; }
.csti-settings-card > header h3 { margin: 0; color: #073b55; font-size: 18px; }
.csti-settings-card > header p { margin: 0; color: #718891; font-size: 12px; }
.csti-switch { display: flex; align-items: center; justify-content: flex-start; gap: 12px; margin-bottom: 16px; padding: 13px 15px; border: 1px solid #e1eaed; border-radius: 12px; background: #f8fbfb; color: #123f53; font-weight: 700; cursor: pointer; user-select: none; }
.csti-switch input { width: 20px; height: 20px; flex: 0 0 auto; accent-color: #087d8e; cursor: pointer; }
.csti-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.csti-form-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.csti-form-grid label, .csti-template-grid label, .csti-settings-card > label { display: grid; gap: 7px; color: #234f61; font-size: 12px; font-weight: 700; }
.csti-form-grid input, .csti-form-grid textarea, .csti-template-grid textarea, .csti-settings-card > label textarea { width: 100%; padding: 11px 12px; border: 1px solid #cfdee2; border-radius: 10px; color: #123f53; background: #fff; font: inherit; font-size: 13px; }
.csti-form-grid textarea, .csti-template-grid textarea { resize: vertical; }
.csti-form-grid input:focus, .csti-form-grid textarea:focus, .csti-template-grid textarea:focus { outline: 3px solid rgba(8, 125, 142, .12); border-color: #087d8e; }
.csti-card-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.csti-card-actions button { min-height: 40px; padding: 0 16px; border: 1px solid #bcd0d6; border-radius: 10px; color: #075671; background: #fff; font: inherit; font-size: 13px; font-weight: 750; cursor: pointer; }
.csti-card-actions button.primary, .csti-card-actions.primary button { border-color: #087d8e; color: #fff; background: #087d8e; }
.csti-template-help { margin: -5px 0 14px; padding: 10px 12px; border-radius: 10px; color: #59727c; background: #f2f7f8; font-size: 11px; line-height: 1.55; }
.csti-template-help code { color: #075671; font-weight: 700; }
.csti-template-grid { display: grid; gap: 14px; }
.csti-management-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.csti-management-grid .csti-table-card { min-width: 0; }
.mpp-checkin-section { display: block; }
.mpp-checkin-active { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; border: 1px solid #cfe6d8; border-radius: 16px; background: linear-gradient(180deg, #f2fbf6, #ffffff); }
.mpp-checkin-info { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.mpp-checkin-badge { display: flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: #16a678; color: #fff; font-size: 12px; font-weight: 700; }
.mpp-checkin-badge svg { width: 14px; height: 14px; }
.mpp-checkin-details { display: flex; gap: 24px; flex-wrap: wrap; }
.mpp-checkin-details div { display: grid; gap: 2px; }
.mpp-checkin-details small { color: #7c9199; font-size: 11px; }
.mpp-checkin-details strong { color: #073c5c; font-size: 14px; }
.mpp-checkin-edit { display: flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1px solid #cfe6d8; border-radius: 8px; background: #fff; color: #16a678; font-size: 12px; font-weight: 600; cursor: pointer; transition: all 0.15s; }
.mpp-checkin-edit:hover { background: #16a678; color: #fff; }
.mpp-checkin-edit svg { width: 14px; height: 14px; }
.mpp-checkin-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.mpp-checkout-btn { display: flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1px solid #d68a1a; border-radius: 8px; background: #fff; color: #d68a1a; font-size: 12px; font-weight: 600; cursor: pointer; transition: all 0.15s; }
.mpp-checkout-btn:hover { background: #d68a1a; color: #fff; }
.mpp-checkout-btn svg { width: 14px; height: 14px; }
.mpp-checkin-badge.closed { background: #78909a; }
.mpp-checkin-active.closed { background: linear-gradient(180deg, #f5f7f8, #ffffff); border-color: #d5dde1; }
.mpp-checkin-note { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: #7c9199; }
.mpp-checkin-note svg { width: 14px; height: 14px; }
.mpp-download-btn { display: flex; align-items: center; gap: 6px; padding: 7px 14px; height: 34px; border: 1px solid #138d89; border-radius: 8px; background: #fff; color: #138d89; font-size: 12px; font-weight: 600; cursor: pointer; transition: all 0.15s; }
.mpp-download-btn:hover { background: #138d89; color: #fff; }
.mpp-download-btn svg { width: 14px; height: 14px; }
.mpp-checkin-empty { display: flex; align-items: center; gap: 16px; padding: 20px 22px; border: 1px dashed #d5b98a; border-radius: 16px; background: #fffaf0; }
.mpp-checkin-empty > svg { width: 24px; height: 24px; color: #d68a1a; flex-shrink: 0; }
.mpp-checkin-empty > div { flex: 1; display: grid; gap: 3px; }
.mpp-checkin-empty strong { color: #073c5c; font-size: 14px; }
.mpp-checkin-empty small { color: #7c9199; font-size: 12px; }

/* Compact check-in dialog */
#mpp-dialog.user-dialog { width: min(480px, calc(100vw - 32px)); border-radius: 18px; padding: 0; }
#mpp-dialog .user-dialog-form { padding: 0; display: flex; flex-direction: column; gap: 0; }
#mpp-dialog .dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 22px 24px 14px; border-bottom: 1px solid #eef3f5; }
#mpp-dialog .dialog-head h2 { margin: 4px 0 4px; font-size: 20px; color: #073c5c; }
#mpp-dialog .dialog-head p { margin: 0; font-size: 12.5px; color: #7c9199; line-height: 1.5; }
#mpp-dialog .dialog-kicker { color: #138d89; font-weight: 700; font-size: 11px; letter-spacing: 0.05em; }
#mpp-dialog .user-form-grid { grid-template-columns: 1fr; gap: 14px; padding: 18px 24px 4px; }
#mpp-dialog .user-form-grid label { display: grid; gap: 6px; }
#mpp-dialog .user-form-grid label span { font-size: 12px; font-weight: 600; color: #24475b; }
#mpp-dialog .user-form-grid input { padding: 10px 12px; border: 1px solid #d0dce4; border-radius: 10px; font-size: 13.5px; color: #073c5c; background: #fff; transition: border-color 0.15s, box-shadow 0.15s; }
#mpp-dialog .user-form-grid input:focus { outline: none; border-color: #138d89; box-shadow: 0 0 0 3px rgba(19, 141, 137, 0.15); }
#mpp-dialog .user-form-actions { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 24px 22px; border-top: 1px solid #eef3f5; margin-top: 4px; }
#mpp-dialog .user-form-actions .btn { padding: 10px 16px; border: 1px solid #d0dce4; border-radius: 10px; background: #fff; color: #5c727f; font-size: 12.5px; font-weight: 600; cursor: pointer; }
#mpp-dialog .user-form-actions .btn:hover { background: #f0f5f7; }
#mpp-dialog .user-primary-button { display: flex; align-items: center; gap: 6px; padding: 10px 18px; border: none; border-radius: 10px; background: linear-gradient(180deg, #17a89c, #08627c); color: #fff; font-size: 12.5px; font-weight: 700; cursor: pointer; transition: filter 0.15s; }
#mpp-dialog .user-primary-button:hover { filter: brightness(1.08); }
#mpp-dialog .user-primary-button svg { width: 14px; height: 14px; }
#mpp-dialog .dialog-close { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: 1px solid #eef3f5; border-radius: 8px; background: #fff; color: #7c9199; cursor: pointer; transition: all 0.15s; flex-shrink: 0; }
#mpp-dialog .dialog-close:hover { background: #f0f5f7; color: #24475b; }
#mpp-dialog .dialog-close svg { width: 15px; height: 15px; }
#mpp-dialog::backdrop { background: rgba(7, 60, 92, 0.55); backdrop-filter: blur(4px); }

.mpp-segment-section { display: grid; gap: 16px; padding: 22px; border: 1px solid #dfe8eb; border-radius: 20px; background: #fff; }
.mpp-segment-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.mpp-segment-btn { display: flex; align-items: center; gap: 14px; padding: 20px; border: 2px solid #e2eaef; border-radius: 16px; background: #fff; cursor: pointer; transition: all 0.18s; text-align: left; }
.mpp-segment-btn:hover { border-color: var(--seg-color, #138d89); background: linear-gradient(180deg, #fff, #f5fafa); transform: translateY(-2px); box-shadow: 0 8px 22px rgba(7, 60, 92, 0.09); }
.mpp-segment-btn:active { transform: translateY(0); }
.mpp-segment-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; background: color-mix(in srgb, var(--seg-color, #138d89) 12%, transparent); color: var(--seg-color, #138d89); flex-shrink: 0; }
.mpp-segment-icon svg { width: 24px; height: 24px; }
.mpp-segment-body { flex: 1; display: grid; gap: 3px; }
.mpp-segment-code { font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; color: var(--seg-color, #138d89); text-transform: uppercase; }
.mpp-segment-body strong { font-size: 14px; color: #073c5c; line-height: 1.3; }
.mpp-segment-body em { font-size: 11.5px; color: #7c9199; font-style: normal; }
.mpp-segment-arrow { color: #b5c3ca; transition: transform 0.18s, color 0.18s; }
.mpp-segment-arrow svg { width: 20px; height: 20px; }
.mpp-segment-btn:hover .mpp-segment-arrow { color: var(--seg-color, #138d89); transform: translateX(4px); }

.mpp-matrix-details { border: 1px dashed #dfe8eb; border-radius: 12px; padding: 0; background: #fafcfc; }
.mpp-matrix-details summary { display: flex; align-items: center; gap: 8px; padding: 12px 16px; cursor: pointer; color: #24475b; font-size: 13px; font-weight: 600; list-style: none; }
.mpp-matrix-details summary::-webkit-details-marker { display: none; }
.mpp-matrix-details summary svg { width: 16px; height: 16px; color: #138d89; }
.mpp-matrix-details summary:hover { color: #073c5c; }
.mpp-matrix-details[open] summary { border-bottom: 1px dashed #dfe8eb; }
.mpp-matrix-details .mpp-matrix-wrap { padding: 12px; }
.mpp-mx-readonly { text-align: center; color: #24475b; font-size: 13px; font-weight: 600; background: #fafcfc; }

.mpp-nomor-dialog { max-width: 420px; width: calc(100vw - 32px); border-radius: 24px; padding: 0; border: none; box-shadow: 0 24px 64px rgba(7,60,92,0.18); }
.mpp-nomor-shell { display: flex; flex-direction: column; gap: 0; }
.mpp-nomor-head { display: flex; align-items: flex-start; gap: 14px; padding: 24px 24px 16px; border-bottom: 1px solid #eef3f5; }
.mpp-nomor-icon { width: 48px; height: 48px; border-radius: 14px; background: linear-gradient(135deg,#e8f6f5,#c9ebe9); display: grid; place-items: center; color: #138d89; flex-shrink: 0; }
.mpp-nomor-icon svg { width: 24px; height: 24px; }
.mpp-nomor-head h2 { margin: 4px 0 4px; font-size: 18px; color: #073c5c; }
.mpp-nomor-head p { margin: 0; font-size: 12.5px; color: #7c9199; line-height: 1.5; }
.mpp-nomor-head .dialog-close { margin-left: auto; flex-shrink: 0; }
.mpp-nomor-body { padding: 20px 24px 4px; }
.mpp-nomor-input-wrap { position: relative; }
.mpp-nomor-input-wrap input { width: 100%; padding: 14px 52px 14px 18px; font-size: 22px; font-weight: 700; letter-spacing: 0.18em; border: 2px solid #d0dde3; border-radius: 14px; outline: none; transition: border-color 0.15s, box-shadow 0.15s; font-family: 'Courier New', monospace; color: #073c5c; background: #f8fbfc; }
.mpp-nomor-input-wrap input:focus { border-color: #138d89; box-shadow: 0 0 0 3px rgba(19,141,137,0.12); background: #fff; }
.mpp-nomor-input-wrap input::placeholder { color: #c0d0d8; letter-spacing: 0.12em; }
.mpp-nomor-counter { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: 12px; font-weight: 600; color: #8fa9b5; }
#mpp-nomor-len { color: #138d89; }
.mpp-nomor-error { margin: 8px 0 0; font-size: 12px; color: #e53935; font-weight: 500; }
.mpp-nomor-actions { display: flex; gap: 10px; padding: 16px 24px 22px; justify-content: flex-end; }
.mpp-nomor-actions .btn { padding: 10px 20px; border-radius: 10px; font-size: 13.5px; }
.mpp-nomor-actions .user-primary-button { padding: 10px 20px; border-radius: 10px; font-size: 13.5px; }
.mpp-nomor-actions .user-primary-button:disabled { opacity: 0.45; cursor: not-allowed; }
.mpp-layanan-dialog { max-width: 720px; width: calc(100vw - 32px); border-radius: 20px; padding: 0; }
.mpp-layanan-shell { display: flex; flex-direction: column; max-height: 85vh; }
.mpp-layanan-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 20px 24px 12px; border-bottom: 1px solid #eef3f5; }
.mpp-layanan-head h2 { margin: 4px 0 4px; font-size: 20px; color: #073c5c; }
.mpp-layanan-head p { margin: 0; font-size: 12.5px; color: #7c9199; }
.mpp-layanan-head .dialog-kicker { color: #138d89; font-weight: 700; font-size: 11px; letter-spacing: 0.05em; }
.mpp-layanan-body { overflow-y: auto; padding: 16px 24px 24px; display: grid; gap: 18px; }
.mpp-layanan-group h3 { margin: 0 0 8px; font-size: 12px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: #138d89; padding-bottom: 6px; border-bottom: 1px solid #eef3f5; }
.mpp-layanan-row { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid #eef3f5; border-radius: 12px; background: #fff; transition: border-color 0.15s, background 0.15s; margin-bottom: 6px; }
.mpp-layanan-row:hover { border-color: #d0e6e5; background: #f7fcfb; }
.mpp-layanan-info { display: grid; gap: 2px; min-width: 0; }
.mpp-layanan-info small { color: #7c9199; font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; }
.mpp-layanan-info strong { color: #073c5c; font-size: 13.5px; line-height: 1.3; }
.mpp-layanan-count { min-width: 40px; text-align: center; padding: 4px 10px; border-radius: 999px; background: #f0f5f7; color: #b5c3ca; font-size: 15px; font-weight: 800; transition: background 0.15s, color 0.15s, transform 0.15s; }
.mpp-layanan-count.has { background: #073c5c; color: #fff; }
.mpp-layanan-count.bump { transform: scale(1.15); }
.mpp-layanan-actions { display: flex; gap: 6px; }
.mpp-layanan-plus { display: flex; align-items: center; gap: 4px; padding: 8px 14px; border: none; border-radius: 9px; background: linear-gradient(180deg, #17a89c, #08627c); color: #fff; font-size: 12.5px; font-weight: 700; cursor: pointer; transition: filter 0.15s, transform 0.05s; }
.mpp-layanan-plus:hover { filter: brightness(1.1); }
.mpp-layanan-plus:active { transform: scale(0.96); }
.mpp-layanan-plus svg { width: 14px; height: 14px; }
.mpp-layanan-minus { width: 34px; height: 34px; border: 1px solid #e2ccc9; border-radius: 9px; background: #fff5f4; color: #b54545; font-size: 16px; font-weight: 700; cursor: pointer; transition: all 0.15s; }
.mpp-layanan-minus:hover { background: #b54545; color: #fff; border-color: #b54545; }

.mpp-matrix-section { display: grid; gap: 12px; padding: 22px; border: 1px solid #dfe8eb; border-radius: 20px; background: #fff; }
.mpp-matrix-wrap { overflow-x: auto; }
.mpp-matrix { width: 100%; min-width: 700px; border-collapse: separate; border-spacing: 0; font-size: 12.5px; }
.mpp-matrix th, .mpp-matrix td { border: 1px solid #e2eaef; padding: 8px 10px; vertical-align: middle; }
.mpp-matrix thead th { background: #073c5c; color: #fff; font-weight: 700; text-align: center; font-size: 12px; }
.mpp-matrix .mpp-mx-header { background: #0a4c6b; }
.mpp-matrix .mpp-mx-peserta { background: #0a4c6b; font-weight: 600; }
.mpp-matrix .mpp-mx-group { width: 140px; }
.mpp-matrix .mpp-mx-service { width: 240px; text-align: left; padding-left: 14px; }
.mpp-matrix .mpp-mx-total { width: 90px; background: #052a3f; }
.mpp-matrix .mpp-mx-group-cell { background: #edf4f5; color: #073c5c; font-weight: 700; text-align: center; vertical-align: middle; }
.mpp-matrix .mpp-mx-svc-cell { text-align: left; color: #24475b; }
.mpp-matrix .mpp-mx-svc-cell small { display: block; color: #7c9199; font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 2px; }
.mpp-matrix .mpp-mx-cell { text-align: center; padding: 6px; background: #fafcfc; transition: background 0.15s; }
.mpp-matrix .mpp-mx-cell:hover { background: #eaf4f4; }
.mpp-mx-count { font-size: 20px; font-weight: 700; color: #b5c3ca; margin-bottom: 4px; }
.mpp-mx-count.has { color: #073c5c; }
.mpp-mx-btns { display: flex; gap: 4px; justify-content: center; }
.mpp-mx-plus, .mpp-mx-minus { width: 28px; height: 26px; border-radius: 6px; border: none; font-size: 15px; font-weight: 700; cursor: pointer; transition: filter 0.1s, transform 0.05s; }
.mpp-mx-plus { background: linear-gradient(180deg, #17a89c, #08627c); color: #fff; }
.mpp-mx-plus:hover { filter: brightness(1.1); }
.mpp-mx-plus:active { transform: scale(0.95); }
.mpp-mx-minus { background: #fff5f4; color: #b54545; border: 1px solid #e2ccc9; }
.mpp-mx-minus:hover { background: #b54545; color: #fff; border-color: #b54545; }
.mpp-mx-total-cell { text-align: center; background: #edf4f5; color: #073c5c; font-size: 14px; }
.mpp-mx-total-cell.mpp-mx-grand { background: #073c5c; color: #fff; }
.mpp-mx-total-label { text-align: right; font-weight: 700; color: #073c5c; background: #edf4f5; padding-right: 14px; }

.mpp-counter-section { display: grid; gap: 12px; padding: 22px; border: 1px solid #dfe8eb; border-radius: 20px; background: #fff; }
.mpp-counter-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.mpp-counter-head h2 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 17px; color: #073c5c; }
.mpp-counter-head h2 svg { width: 20px; height: 20px; color: #138d89; }
.mpp-counter-head small { color: #7c9199; font-size: 12px; }
.mpp-counter-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.mpp-counter-card { display: grid; gap: 8px; padding: 18px; border: 1px solid #e2eaef; border-radius: 16px; background: linear-gradient(180deg, #ffffff, #f7faf9); transition: transform 0.15s, box-shadow 0.15s; }
.mpp-counter-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(7, 60, 92, 0.08); }
.mpp-counter-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 11px; color: #7c9199; }
.mpp-counter-loc, .mpp-counter-petugas { display: flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 999px; background: #edf4f5; }
.mpp-counter-loc svg, .mpp-counter-petugas svg { width: 12px; height: 12px; color: #138d89; }
.mpp-counter-card h3 { margin: 4px 0 0; font-size: 15px; color: #063c56; line-height: 1.3; }
.mpp-counter-value { display: flex; align-items: baseline; gap: 6px; margin: 6px 0; font-size: 34px; font-weight: 800; color: #073c5c; line-height: 1; }
.mpp-counter-value em { font-size: 11px; font-weight: 500; color: #7c9199; font-style: normal; }
.mpp-counter-actions { display: flex; gap: 6px; margin-top: 4px; }
.mpp-btn-plus { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 12px; border: none; border-radius: 10px; background: linear-gradient(180deg, #17a89c, #08627c); color: #fff; font-size: 14px; font-weight: 700; cursor: pointer; transition: filter 0.15s, transform 0.05s; }
.mpp-btn-plus:hover { filter: brightness(1.08); }
.mpp-btn-plus:active { transform: scale(0.97); }
.mpp-btn-plus svg { width: 16px; height: 16px; }
.mpp-btn-minus { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border: 1px solid #e2ccc9; border-radius: 10px; background: #fff5f4; color: #b54545; cursor: pointer; transition: all 0.15s; }
.mpp-btn-minus:hover { background: #b54545; color: #fff; border-color: #b54545; }
.mpp-btn-minus svg { width: 16px; height: 16px; }
.mpp-empty-counter { display: flex; align-items: center; gap: 10px; padding: 22px; border: 1px dashed #d0dce4; border-radius: 14px; background: #f7faf9; color: #5c727f; font-size: 13px; }
.mpp-empty-counter svg { width: 18px; height: 18px; color: #138d89; }
.mpp-empty-counter strong { color: #073c5c; }
.mpp-add-btn { display: flex; align-items: center; gap: 6px; padding: 8px 16px; height: 34px; border: 1px solid #138d89; border-radius: 8px; background: #138d89; color: #fff; font-size: 12.5px; font-weight: 600; cursor: pointer; transition: all 0.15s; }
.mpp-add-btn:hover { background: #0f7570; }
.mpp-add-btn svg { width: 15px; height: 15px; }
.mpp-trend-chart { grid-template-columns: repeat(14, 1fr) !important; }
.mpp-del { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border: 1px solid #e2ccc9; border-radius: 6px; background: #fff5f4; color: #b54545; cursor: pointer; transition: all 0.15s; }
.mpp-del:hover { background: #b54545; color: #fff; border-color: #b54545; }
.mpp-del svg { width: 14px; height: 14px; }
.csti-management-grid .table-wrap { overflow-x: auto; }
.csti-management-grid table { min-width: 580px; }

@media (max-width: 1100px) {
  .csti-kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .csti-insight-grid { grid-template-columns: 1fr; }
  .csti-management-grid { grid-template-columns: 1fr; }
}

@media (max-width: 1000px) {
  .original-login {
    grid-template-columns: minmax(420px, .9fr) minmax(480px, 1.1fr);
    gap: 24px;
    padding: 28px;
  }
  .original-login-panel,
  .original-showcase {
    min-height: calc(100vh - 56px);
  }
}

@media (max-width: 780px) {
  .csti-tabs { display: flex; width: 100%; }
  .csti-tabs button { flex: 1; }
  .csti-form-grid, .csti-form-grid.three { grid-template-columns: 1fr; }
  .csti-card-actions { align-items: stretch; flex-direction: column-reverse; }
  .csti-card-actions button { width: 100%; }
  .original-login {
    display: block;
    padding: 18px;
  }
  .original-login-panel {
    min-height: calc(100vh - 36px);
    padding: 38px clamp(24px, 8vw, 54px);
  }
  .original-showcase {
    display: none;
  }
}

/* Laporan Pelaksanaan */
.laporan-tab-bar {
  display: flex;
  gap: 6px;
  padding: 6px;
  background: #fff;
  border: 1px solid #e5ebed;
  border-radius: 16px;
  box-shadow: 0 7px 22px rgba(18, 51, 72, .04);
  margin: 0 24px 16px;
}
.laporan-tab {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  color: #5e7180;
  background: transparent;
  border: 0;
  border-radius: 11px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: color .15s, background .15s, box-shadow .15s;
}
.laporan-tab:hover { color: #1e293b; background: #f1f5f9; }
.laporan-tab.active {
  color: #fff;
  background: linear-gradient(90deg, #073e5c, #08737b);
  box-shadow: 0 7px 16px rgba(8, 79, 99, .16);
}
.laporan-tab svg { width: 17px; height: 17px; }

.gemba-year-filter { display: flex; gap: 6px; }
.gemba-year-btn {
  padding: 6px 16px; border: 1px solid #d1dbe3; border-radius: 8px;
  background: #fff; color: #5e7180; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
}
.gemba-year-btn.active {
  color: #fff; background: linear-gradient(90deg, #073e5c, #08737b);
  border-color: transparent; box-shadow: 0 4px 12px rgba(8, 79, 99, .18);
}
.gemba-dash { padding: 0 24px 40px; }
.gemba-dash-kpis {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px;
}
.gemba-kpi-card {
  background: #fff; border: 1px solid #e5ebed; border-radius: 14px;
  padding: 20px; text-align: center;
  box-shadow: 0 4px 14px rgba(18, 51, 72, .04);
}
.gemba-kpi-label { font-size: 12px; font-weight: 600; color: #5e7180; text-transform: uppercase; letter-spacing: .5px; }
.gemba-kpi-value { font-size: 32px; font-weight: 700; color: #073e5c; margin: 6px 0 2px; }
.gemba-kpi-sub { font-size: 12px; color: #8a9ba8; }
.gemba-dash-chart, .gemba-dash-detail {
  background: #fff; border: 1px solid #e5ebed; border-radius: 14px;
  padding: 20px 24px; margin-bottom: 20px;
  box-shadow: 0 4px 14px rgba(18, 51, 72, .04);
}
.gemba-dash-chart h3, .gemba-dash-detail h3 { font-size: 14px; font-weight: 700; color: #073e5c; margin: 0 0 16px; }
.gemba-chart-bars {
  display: flex; align-items: flex-end; gap: 8px; min-height: 240px; padding-top: 10px;
}
.gemba-bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.gemba-bar {
  width: 100%; max-width: 48px; border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, #08737b, #073e5c); min-height: 4px;
}
.gemba-bar-val { font-size: 11px; font-weight: 700; color: #073e5c; }
.gemba-bar-label { font-size: 10px; color: #5e7180; text-align: center; white-space: nowrap; }
.gemba-detail-table-wrap { overflow-x: auto; }
.gemba-detail-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.gemba-detail-table th { background: #f4f7f9; color: #5e7180; font-weight: 600; text-align: left; padding: 10px 12px; border-bottom: 2px solid #e5ebed; }
.gemba-detail-table td { padding: 10px 12px; border-bottom: 1px solid #eef1f3; color: #2d3e4a; }
.gemba-detail-table tr:hover td { background: #f8fafb; }

@media (max-width: 780px) {
  .gemba-dash-kpis { grid-template-columns: 1fr; }
  .gemba-dash { padding: 0 12px 24px; }
  .gemba-chart-bars { min-height: 160px; }
  .gemba-bar-label { font-size: 9px; }
}

.laporan-page {
  padding: 0 24px 40px;
}
.laporan-form-wrap {
  margin-top: 20px;
}
.laporan-month-picker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding: 10px 14px;
  background: linear-gradient(135deg, #f8fafc 0%, #eef2f7 100%);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 12px;
}
.laporan-month-picker button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--border, #e2e8f0);
  background: var(--surface, #fff);
  color: var(--text, #1e293b);
  cursor: pointer;
  padding: 0;
  transition: all .15s;
}
.laporan-month-picker button:hover { background: var(--primary, #3b82f6); color: #fff; border-color: var(--primary, #3b82f6); }
.laporan-month-picker span {
  font: 600 15px/1 var(--font);
  min-width: 170px;
  text-align: center;
  color: var(--text, #1e293b);
}
.laporan-download-btn {
  width: auto !important;
  padding: 6px 14px !important;
  gap: 6px;
  font-size: 13px !important;
  margin-left: auto;
  background: var(--primary, #3b82f6) !important;
  color: #fff !important;
  border-color: var(--primary, #3b82f6) !important;
  border-radius: 8px;
}
.laporan-download-btn:hover { opacity: .9; }
.laporan-download-btn svg { width: 14px; height: 14px; }
.laporan-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px;
  background: linear-gradient(180deg, #fff 0%, #fafbfd 100%);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 16px;
  box-shadow: 0 4px 16px -8px rgba(15,23,42,.08);
}
.laporan-fieldset {
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 14px;
  padding: 18px 22px 22px;
  background: var(--surface, #fff);
  box-shadow: 0 1px 2px rgba(15,23,42,.03);
}
.laporan-fieldset legend {
  font: 700 13px/1 var(--font);
  color: var(--primary, #3b82f6);
  padding: 2px 10px;
  background: rgba(59,130,246,.08);
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.laporan-fields {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 12px;
}
.laporan-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.laporan-field span {
  font: 500 12px/1.2 var(--font);
  color: var(--text-secondary, #64748b);
}
.laporan-field input {
  padding: 10px 12px;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 8px;
  font: 500 13px/1.4 var(--font);
  background: #fff;
  color: var(--text, #1e293b);
  transition: all .15s;
}
.laporan-field input:hover:not(:focus) { border-color: #cbd5e1; }
.laporan-field input:focus {
  outline: none;
  border-color: var(--primary, #3b82f6);
  box-shadow: 0 0 0 3px rgba(59,130,246,.12);
  background: #fff;
}
.laporan-field input[type="number"] { font-variant-numeric: tabular-nums; text-align: right; }
.laporan-save-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  border: none;
  border-radius: 10px;
  background: var(--primary, #3b82f6);
  color: #fff;
  font: 600 14px/1 var(--font);
  cursor: pointer;
  align-self: flex-start;
  transition: opacity .15s;
}
.laporan-save-btn:hover { opacity: .9; }
.laporan-save-btn:disabled { opacity: .5; cursor: not-allowed; }
.laporan-save-btn svg { width: 16px; height: 16px; }
.laporan-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.laporan-clear-btn, .laporan-delete-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 10px; font: 600 13px/1 var(--font);
  cursor: pointer; transition: opacity .15s;
}
.laporan-clear-btn {
  background: #f4f7f9; border: 1px solid #d1dbe3; color: #5e7180;
}
.laporan-clear-btn:hover { background: #e9eef2; }
.laporan-delete-btn {
  background: #fef2f2; border: 1px solid #fecaca; color: #dc2626;
}
.laporan-delete-btn:hover { background: #fee2e2; }
.laporan-clear-btn svg, .laporan-delete-btn svg { width: 15px; height: 15px; }
.laporan-field-wide { grid-column: span 2; }
.laporan-field textarea {
  width: 100%; padding: 8px 10px; border: 1px solid #d1dbe3; border-radius: 8px;
  font: inherit; font-size: 13px; resize: vertical; min-height: 44px;
}
.laporan-field textarea:focus { border-color: var(--primary, #3b82f6); outline: none; box-shadow: 0 0 0 3px rgba(59,130,246,.1); }
.laporan-field input[type="url"] {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12.5px;
}
.laporan-field input[type="url"]::placeholder { color: #94a3b8; font-style: italic; }
.laporan-field input[type="url"]:valid:not(:placeholder-shown) {
  border-color: #10b981; background: #f0fdf4;
}

.laporan-history {
  margin-top: 28px;
  padding: 20px 22px;
  background: var(--surface, #fff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(15,23,42,.03);
}
.laporan-history-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px dashed var(--border, #e2e8f0);
}
.laporan-history-head h3 {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0; font: 700 15px/1 var(--font); color: var(--text, #1e293b);
}
.laporan-history-head h3 svg { width: 18px; height: 18px; color: var(--primary, #3b82f6); }
.laporan-history-count {
  font: 600 12px/1 var(--font); color: var(--primary, #3b82f6);
  padding: 5px 10px; background: rgba(59,130,246,.1); border-radius: 999px;
}
.laporan-history-empty {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 32px 16px; color: #94a3b8; font: 500 13px/1.4 var(--font);
  background: #f8fafc; border-radius: 10px;
}
.laporan-history-empty svg { width: 18px; height: 18px; }
.laporan-history-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 8px;
}
.laporan-history-item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; border: 1px solid var(--border, #e2e8f0);
  border-radius: 10px; background: #fbfcfd; transition: all .15s;
}
.laporan-history-item:hover { border-color: var(--primary, #3b82f6); background: #fff; box-shadow: 0 2px 8px rgba(59,130,246,.08); }
.laporan-history-item.active {
  border-color: var(--primary, #3b82f6); background: rgba(59,130,246,.05);
  box-shadow: inset 3px 0 0 var(--primary, #3b82f6);
}
.laporan-history-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.laporan-history-period { font: 600 14px/1.2 var(--font); color: var(--text, #1e293b); }
.laporan-history-meta { font: 500 11.5px/1.2 var(--font); color: #64748b; }
.laporan-history-actions { display: flex; gap: 6px; flex-shrink: 0; }
.laporan-history-edit, .laporan-history-delete {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 12px; border-radius: 8px;
  font: 600 12px/1 var(--font); cursor: pointer; transition: all .15s;
  border: 1px solid transparent;
}
.laporan-history-edit { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
.laporan-history-edit:hover { background: #1d4ed8; color: #fff; border-color: #1d4ed8; }
.laporan-history-delete { background: #fef2f2; color: #dc2626; border-color: #fecaca; }
.laporan-history-delete:hover { background: #dc2626; color: #fff; border-color: #dc2626; }
.laporan-history-edit svg, .laporan-history-delete svg { width: 13px; height: 13px; }

.laporan-history-filter {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px; padding: 10px 14px;
  background: #f8fafc; border: 1px solid var(--border, #e2e8f0);
  border-radius: 10px;
}
.laporan-history-filter-label {
  display: inline-flex; align-items: center; gap: 6px;
  font: 600 12px/1 var(--font); color: #64748b;
  text-transform: uppercase; letter-spacing: .04em;
}
.laporan-history-filter-label svg { width: 14px; height: 14px; }
.laporan-history-filter select {
  flex: 1; max-width: 220px;
  padding: 7px 12px; border: 1px solid var(--border, #e2e8f0);
  border-radius: 8px; background: #fff;
  font: 600 13px/1 var(--font); color: var(--text, #1e293b);
  cursor: pointer; transition: border-color .15s;
}
.laporan-history-filter select:hover { border-color: var(--primary, #3b82f6); }
.laporan-history-filter select:focus { outline: none; border-color: var(--primary, #3b82f6); box-shadow: 0 0 0 3px rgba(59,130,246,.12); }

.laporan-history-pager {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  margin-top: 14px; padding-top: 14px;
  border-top: 1px dashed var(--border, #e2e8f0);
}
.laporan-history-pager button {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 8px;
  border: 1px solid var(--border, #e2e8f0); background: #fff;
  font: 600 13px/1 var(--font); color: var(--text, #1e293b);
  cursor: pointer; transition: all .15s;
}
.laporan-history-pager button:hover:not(:disabled) {
  background: var(--primary, #3b82f6); color: #fff;
  border-color: var(--primary, #3b82f6);
}
.laporan-history-pager button:disabled { opacity: .4; cursor: not-allowed; }
.laporan-history-pager button svg { width: 14px; height: 14px; }
.laporan-history-page-info { font: 600 13px/1 var(--font); color: #64748b; min-width: 90px; text-align: center; }

@media (max-width: 640px) {
  .laporan-history-item { flex-direction: column; align-items: stretch; }
  .laporan-history-actions { justify-content: flex-end; }
  .laporan-history-filter { flex-direction: column; align-items: stretch; }
  .laporan-history-filter select { max-width: none; }
}

@media (max-width: 900px) {
  .laporan-fields { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .laporan-tab-bar { margin: 0 12px; }
  .laporan-page { padding: 0 12px 24px; }
  .laporan-fields { grid-template-columns: 1fr; }
  .laporan-month-picker { flex-wrap: wrap; }
}


/* ============ SMART-BOX Digital v2 ============ */
.smartbox-page { padding: 16px 24px 40px; display: flex; flex-direction: column; gap: 20px; }

/* Hero */
.smartbox-hero { position: relative; border-radius: 20px; padding: 28px 32px; overflow: hidden; color: white; box-shadow: 0 12px 32px rgba(15, 23, 42, 0.18); }
.smartbox-hero-safe { background: linear-gradient(135deg, #059669 0%, #0891b2 55%, #6366f1 100%); }
.smartbox-hero-alert { background: linear-gradient(135deg, #dc2626 0%, #ea580c 55%, #f59e0b 100%); animation: smartbox-hero-pulse 2.5s ease-in-out infinite; }
@keyframes smartbox-hero-pulse { 0%, 100% { box-shadow: 0 12px 32px rgba(220, 38, 38, 0.35); } 50% { box-shadow: 0 12px 60px rgba(220, 38, 38, 0.65); } }
.smartbox-hero-pattern { position: absolute; inset: 0; opacity: 0.12; background-image: radial-gradient(circle at 20% 20%, white 1px, transparent 1px), radial-gradient(circle at 80% 60%, white 1px, transparent 1px); background-size: 42px 42px, 60px 60px; pointer-events: none; }
.smartbox-hero-content { position: relative; display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 24px; }
.smartbox-hero-heading .smartbox-kicker { color: rgba(255,255,255,.82); display: inline-flex; align-items: center; gap: 8px; font-weight: 600; letter-spacing: 0.14em; font-size: 12px; margin: 0 0 10px; padding: 4px 12px; background: rgba(255,255,255,.15); border-radius: 999px; backdrop-filter: blur(8px); }
.smartbox-hero-heading .smartbox-kicker svg { width: 14px; height: 14px; }
.smartbox-hero-heading h1 { margin: 0 0 6px; font-size: 32px; font-weight: 800; letter-spacing: -0.02em; }
.smartbox-hero-sub, .smartbox-hero-heading .smartbox-sub { margin: 0; color: rgba(255,255,255,.9); font-size: 15px; max-width: 620px; line-height: 1.55; }
.smartbox-hero-status { display: flex; align-items: center; }
.smartbox-hero-badge { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: rgba(255,255,255,.16); backdrop-filter: blur(12px); border-radius: 14px; border: 1px solid rgba(255,255,255,.22); min-width: 200px; }
.smartbox-hero-badge-icon { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: var(--badge-color); border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,.25); }
.smartbox-hero-badge-icon svg { width: 24px; height: 24px; color: white; }
.smartbox-hero-badge-label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: rgba(255,255,255,.75); }
.smartbox-hero-badge-value { display: block; font-size: 18px; font-weight: 800; letter-spacing: -0.01em; }
.smartbox-hero-stats { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.16); }
.smartbox-hero-stat { display: flex; gap: 12px; align-items: center; }
.smartbox-hero-stat-icon { display: flex; width: 40px; height: 40px; align-items: center; justify-content: center; background: rgba(255,255,255,.14); border-radius: 12px; }
.smartbox-hero-stat-icon svg { width: 20px; height: 20px; }
.smartbox-hero-stat-value { display: block; font-size: 22px; font-weight: 800; letter-spacing: -0.01em; }
.smartbox-hero-stat-label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,.75); }

/* Actions bar */
.smartbox-actions-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 4px 0; }
.smartbox-action-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; background: var(--card); border: 1px solid rgba(15,23,42,.09); border-radius: 12px; font-size: 13px; font-weight: 600; color: var(--text); cursor: pointer; transition: all .18s ease; }
.smartbox-action-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(15,23,42,.08); border-color: rgba(15,23,42,.16); }
.smartbox-action-btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.smartbox-action-btn svg { width: 16px; height: 16px; }
.smartbox-action-btn-primary { background: linear-gradient(135deg, #6366f1, #4f46e5); color: white; border: none; }
.smartbox-action-btn-primary:hover { box-shadow: 0 6px 20px rgba(99,102,241,.35); }
.smartbox-action-chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.smartbox-action-chip svg { width: 14px; height: 14px; }
.smartbox-action-chip-success { background: #d1fae5; color: #065f46; }
.smartbox-action-chip-danger { background: #fee2e2; color: #991b1b; }
.smartbox-action-chip-tele { background: #dbeafe; color: #1e40af; }
.smartbox-action-chip-mute { background: #f1f5f9; color: #64748b; }

/* Alert banner */
.smartbox-alert { display: flex; gap: 16px; padding: 20px 24px; border-radius: 16px; background: linear-gradient(135deg, #fee2e2, #fecaca); border-left: 5px solid #dc2626; align-items: center; box-shadow: 0 4px 16px rgba(220, 38, 38, 0.14); animation: smartbox-pulse 2.2s ease-in-out infinite; }
@keyframes smartbox-pulse { 0%, 100% { box-shadow: 0 4px 16px rgba(220, 38, 38, 0.14); } 50% { box-shadow: 0 4px 32px rgba(220, 38, 38, 0.4); } }
.smartbox-alert-icon { display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; background: white; border-radius: 14px; color: #dc2626; flex-shrink: 0; }
.smartbox-alert-icon svg { width: 28px; height: 28px; }
.smartbox-alert-body h3 { margin: 0 0 4px; color: #7f1d1d; font-size: 16px; }
.smartbox-alert-body p { margin: 0; color: #991b1b; font-size: 14px; }

/* Card */
.smartbox-card { background: var(--card); border-radius: 16px; padding: 24px; box-shadow: 0 2px 8px rgba(15,23,42,.05); border: 1px solid rgba(15,23,42,.05); }
.smartbox-card header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px; gap: 12px; flex-wrap: wrap; }
.smartbox-card header h2 { margin: 0; font-size: 17px; font-weight: 700; display: flex; align-items: center; gap: 10px; color: var(--text); }
.smartbox-card header h2 svg { width: 20px; height: 20px; color: #6366f1; }
.smartbox-header-hint { font-size: 12px; color: var(--muted); }

/* Variabel inputs grid */
.smartbox-inputs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.smartbox-var-field { display: flex; flex-direction: column; gap: 8px; }
.smartbox-var-field > label { display: block; }
.smartbox-var-label { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--text); }
.smartbox-var-label svg { width: 14px; height: 14px; color: #6366f1; }
.smartbox-var-row { display: flex; align-items: center; gap: 10px; }
.smartbox-var-row input[type="number"], .smartbox-var-row input[type="text"], .smartbox-var-field input[type="text"], .smartbox-var-field input[type="password"] { flex: 1; padding: 10px 14px; border-radius: 10px; border: 1px solid rgba(15,23,42,.12); font-size: 15px; font-weight: 600; background: white; transition: all .15s ease; }
.smartbox-var-row input:focus, .smartbox-var-field input:focus { outline: none; border-color: #6366f1; box-shadow: 0 0 0 3px rgba(99,102,241,.15); }
.smartbox-var-row input[readonly] { background: #f8fafc; color: #64748b; cursor: not-allowed; }
.smartbox-var-unit { color: var(--muted); font-size: 13px; font-weight: 500; min-width: 40px; }
.smartbox-hint { font-size: 12px; color: var(--muted); }

/* Bot Telegram Alarm Layanan memakai bot global yang diatur di Pengaturan
   CSTI, jadi tempat kolom token diisi keterangan asal token. Status dibedakan
   lewat teks dan ikon, bukan warna saja. */
.smartbox-bot-global { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 14px; border: 1px dashed rgba(15,23,42,.18); border-radius: 10px; background: rgba(99,102,241,.05); font-size: 14px; font-weight: 600; color: #334155; }
.smartbox-bot-global svg { width: 17px; height: 17px; flex: 0 0 17px; color: #4f46e5; }

.smartbox-hint code { padding: 1px 6px; background: rgba(99,102,241,.08); border-radius: 4px; font-size: 11px; color: #4f46e5; }

/* Toggle switch */
.smartbox-toggle { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; font-size: 13px; color: var(--text); }
.smartbox-toggle input[type="checkbox"] { position: absolute; opacity: 0; pointer-events: none; }
.smartbox-toggle-switch .smartbox-switch-track { position: relative; display: inline-block; width: 40px; height: 22px; background: #cbd5e1; border-radius: 999px; transition: background .18s ease; flex-shrink: 0; }
.smartbox-toggle-switch .smartbox-switch-thumb { position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; background: white; border-radius: 50%; box-shadow: 0 2px 4px rgba(15,23,42,.15); transition: transform .18s ease; }
.smartbox-toggle-switch input:checked ~ .smartbox-switch-track { background: #6366f1; }
.smartbox-toggle-switch input:checked ~ .smartbox-switch-track .smartbox-switch-thumb { transform: translateX(18px); }
.smartbox-toggle-text { font-size: 13px; }
.smartbox-toggle-lg .smartbox-switch-track { width: 50px; height: 28px; }
.smartbox-toggle-lg .smartbox-switch-thumb { width: 24px; height: 24px; }
.smartbox-toggle-lg input:checked ~ .smartbox-switch-track .smartbox-switch-thumb { transform: translateX(22px); }
.smartbox-toggle-lg .smartbox-toggle-text { font-size: 15px; }

/* Areas grid */
.smartbox-areas-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); }
.smartbox-area { transition: all .2s ease; }
.smartbox-area-header .smartbox-area-kicker { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.smartbox-area-header h2 { margin: 0; font-size: 18px; }

.smartbox-status-badge { padding: 8px 14px; border-radius: 999px; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; letter-spacing: 0.02em; }
.smartbox-status-badge svg { width: 14px; height: 14px; }
.smartbox-status-ok .smartbox-status-badge { background: linear-gradient(135deg, #d1fae5, #a7f3d0); color: #065f46; }
.smartbox-status-alert .smartbox-status-badge { background: linear-gradient(135deg, #fecaca, #fca5a5); color: #7f1d1d; box-shadow: 0 2px 8px rgba(220,38,38,.2); }
.smartbox-status-invalid .smartbox-status-badge { background: #f1f5f9; color: #64748b; }
.smartbox-status-alert { border-color: #fecaca; box-shadow: 0 4px 16px rgba(220,38,38,.12); }
.smartbox-status-ok { border-color: rgba(16,185,129,.2); }

.smartbox-area-inputs { display: grid; grid-template-columns: 1fr; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid rgba(15,23,42,.06); margin-bottom: 20px; }

/* Capacity bar */
.smartbox-capacity { margin-bottom: 20px; }
.smartbox-capacity-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; font-size: 13px; color: var(--muted); font-weight: 500; }
.smartbox-capacity-header b { color: var(--text); font-size: 15px; }
.smartbox-capacity-header small { color: var(--muted); font-weight: 500; }
.smartbox-capacity-bar { height: 10px; background: #f1f5f9; border-radius: 999px; overflow: hidden; position: relative; }
.smartbox-capacity-fill { height: 100%; background: linear-gradient(90deg, #10b981, #059669); border-radius: 999px; transition: width .5s ease, background .3s ease; }
.smartbox-capacity-fill.smartbox-capacity-warn { background: linear-gradient(90deg, #f59e0b, #ea580c); }
.smartbox-capacity-fill.smartbox-capacity-over { background: linear-gradient(90deg, #dc2626, #b91c1c); animation: smartbox-cap-pulse 1.5s ease-in-out infinite; }
@keyframes smartbox-cap-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.75; } }

.smartbox-result-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.smartbox-metric { display: flex; gap: 12px; align-items: center; padding: 14px; background: linear-gradient(135deg, #f8fafc, #f1f5f9); border-radius: 12px; border: 1px solid rgba(15,23,42,.04); }
.smartbox-metric-icon { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; background: white; border-radius: 10px; color: #6366f1; flex-shrink: 0; }
.smartbox-metric-icon svg { width: 18px; height: 18px; }
.smartbox-metric > div { flex: 1; min-width: 0; }
.smartbox-metric-label { display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; font-weight: 600; margin-bottom: 2px; }
.smartbox-metric-value { display: block; font-size: 22px; font-weight: 800; color: var(--text); letter-spacing: -0.02em; }
.smartbox-metric-alert { background: linear-gradient(135deg, #fef2f2, #fee2e2); border-color: #fecaca; }
.smartbox-metric-alert .smartbox-metric-icon { background: #dc2626; color: white; }
.smartbox-metric-alert .smartbox-metric-value { color: #dc2626; }

.smartbox-recommendation { margin-top: 16px; padding: 14px 16px; background: linear-gradient(135deg, #fef3c7, #fde68a); border-radius: 12px; border-left: 4px solid #f59e0b; display: flex; gap: 10px; align-items: flex-start; }
.smartbox-recommendation-icon { display: flex; align-items: center; color: #b45309; flex-shrink: 0; }
.smartbox-recommendation-icon svg { width: 20px; height: 20px; }
.smartbox-recommendation p { margin: 0; color: #78350f; font-size: 14px; line-height: 1.5; }

/* Telegram form */
.smartbox-telegram { background: linear-gradient(135deg, #ffffff, #eff6ff); border-color: rgba(59,130,246,.14); }
.smartbox-telegram header h2 svg { color: #0088cc; }
.smartbox-telegram-form { display: flex; flex-direction: column; gap: 20px; }
.smartbox-telegram-enable { padding: 14px 16px; background: white; border-radius: 12px; border: 1px solid rgba(15,23,42,.06); }
.smartbox-telegram-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.smartbox-telegram-meta { display: flex; gap: 16px; padding: 12px 16px; background: rgba(59,130,246,.06); border-radius: 10px; font-size: 13px; }
.smartbox-telegram-meta-item span { color: var(--muted); margin-right: 8px; }
.smartbox-telegram-meta-item b { color: var(--text); }
.smartbox-telegram-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.smartbox-test-result { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-radius: 10px; font-size: 13px; font-weight: 600; }
.smartbox-test-result svg { width: 18px; height: 18px; }
.smartbox-test-ok { background: #d1fae5; color: #065f46; }
.smartbox-test-fail { background: #fee2e2; color: #991b1b; }

/* Formula */
.smartbox-formula { background: linear-gradient(135deg, #f8fafc, #ffffff); border: 1px dashed rgba(15,23,42,.12); }
.smartbox-formula h3 { margin: 0 0 16px; font-size: 15px; display: flex; align-items: center; gap: 8px; color: var(--text); }
.smartbox-formula h3 svg { color: #6366f1; }
.smartbox-formula-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.smartbox-formula-item { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; background: white; border-radius: 10px; border: 1px solid rgba(15,23,42,.06); }
.smartbox-formula-label { font-size: 12px; color: var(--muted); }
.smartbox-formula-item code { padding: 6px 10px; background: rgba(99,102,241,.08); border-radius: 6px; color: #4338ca; font-family: 'JetBrains Mono', 'Consolas', monospace; font-size: 13px; font-weight: 600; }

@media (max-width: 900px) {
  .smartbox-hero-content { flex-direction: column; }
  .smartbox-hero-status { align-self: stretch; }
  .smartbox-hero-badge { width: 100%; }
}
@media (max-width: 640px) {
  .smartbox-page { padding: 12px 12px 24px; }
  .smartbox-hero { padding: 20px; }
  .smartbox-hero-heading h1 { font-size: 24px; }
  .smartbox-result-grid { grid-template-columns: 1fr; }
  .smartbox-inputs-grid { grid-template-columns: 1fr; }
  .smartbox-telegram-grid { grid-template-columns: 1fr; }
  .smartbox-areas-grid { grid-template-columns: 1fr; }
}

/* NAVIKEL Kunjungan Desa — ringkasan kunjungan warga dari sumber WT/WL */
.sv-note { margin: 0 0 14px; color: #5a6b73; font-size: 13.5px; line-height: 1.55; }
.sv-details { margin-top: 12px; border-top: 1px solid #e4eaed; padding-top: 10px; }
.sv-details > summary { cursor: pointer; font-size: 13px; font-weight: 600; color: #0b8584; }
.sv-details ul { margin: 8px 0 0; padding-left: 18px; color: #5a6b73; font-size: 13px; line-height: 1.7; }
.sv-trend { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; }
.sv-trend svg { width: 14px; height: 14px; }
.sv-trend.up { color: #0b8584; }
.sv-trend.down { color: #c92f2f; }
.sv-trend.flat { color: #5a6b73; }
.sv-status.muted { color: #8a979d; font-size: 12.5px; }

/* NAVIKEL Peta Prioritas — interactive Google Map */
.sv-map-layout { display: grid; grid-template-columns: 1fr; gap: 14px; }
.sv-map-kpi { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.sv-map-kpi article { display: flex; align-items: center; gap: 13px; min-height: 92px; padding: 17px; background: #fff; border: 1px solid #e4eaed; border-radius: 16px; }
.sv-map-kpi article > span { width: 42px; height: 42px; display: grid; place-items: center; color: #0b8584; background: #eaf6f2; border-radius: 12px; }
.sv-map-kpi p { display: grid; gap: 2px; margin: 0; }
.sv-map-kpi small { color: #7d8d97; font-size: 11px; }
.sv-map-kpi strong { color: #073650; font-size: 25px; line-height: 1; }

.sv-map-filter-bar { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; padding: 14px 16px; background: #fff; border: 1px solid #e4eaed; border-radius: 14px; }
.sv-map-filter-bar label { display: grid; gap: 4px; min-width: 150px; color: #5f747f; font-size: 11px; font-weight: 700; }
.sv-map-filter-bar select { height: 40px; min-width: 150px; padding: 0 10px; color: #173c53; background: #f9fbfb; border: 1px solid #d6e1e3; border-radius: 10px; font: inherit; font-size: 13px; }

.sv-map-legend { display: flex; flex-wrap: wrap; gap: 10px 18px; padding: 9px 14px; background: #fff; border: 1px solid #e4eaed; border-radius: 12px; }
.sv-map-legend span { display: inline-flex; align-items: center; gap: 7px; color: #415a68; font-size: 12px; font-weight: 600; }
.sv-map-legend i { width: 11px; height: 11px; display: inline-block; border-radius: 50%; }
.sv-map-legend i.very-high { background: #c92f2f; }
.sv-map-legend i.high { background: #e08a1e; }
.sv-map-legend i.medium { background: #e3c62e; }
.sv-map-legend i.low { background: #39a75a; }

.sv-map-wrap { position: relative; border-radius: 18px; overflow: hidden; border: 1px solid #e4eaed; min-height: 650px; background: #edf1f3; }
.sv-map-canvas { width: 100%; height: 72vh; min-height: 650px; }
.sv-map-empty { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 8px; color: #6f828d; text-align: center; padding: 24px; background: #f7fafb; }
.sv-map-empty strong { color: #23475b; font-size: 15px; }
.sv-map-error { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 10px; padding: 24px; color: #a04747; background: #fff6f6; text-align: center; }
.sv-map-error strong { font-size: 15px; }
.sv-map-error small { color: #7d6b6b; font-size: 12px; max-width: 460px; }
.sv-map-error-details { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 4px; font-size: 12px; color: #8a6262; }

.sv-map-popup { min-width: 260px; max-width: 320px; color: #24475b; font-size: 12px; line-height: 1.45; }
.sv-map-popup h3 { margin: 0 0 2px; color: #073c5c; font-size: 15px; }
.sv-map-popup-sub { margin: 0 0 8px; color: #70818b; font-size: 11px; }
.sv-map-popup dl { margin: 0; display: grid; gap: 2px; }
.sv-map-popup dl div { display: grid; grid-template-columns: 118px 1fr; gap: 8px; padding: 3px 0; border-bottom: 1px dashed #e7ecef; }
.sv-map-popup dl div:last-child { border-bottom: 0; }
.sv-map-popup dt { color: #7d8d97; }
.sv-map-popup dd { margin: 0; font-weight: 600; text-align: right; }
.sv-map-popup-actions { display: flex; gap: 6px; margin-top: 10px; }
.sv-map-popup-actions button { display: inline-flex; align-items: center; gap: 5px; min-height: 32px; padding: 0 11px; border: 1px solid #08738a; border-radius: 8px; color: #08738a; background: #fff; font-size: 11px; font-weight: 700; cursor: pointer; }
.sv-map-popup-actions button svg { width: 14px; height: 14px; }
.sv-cluster-list { display: grid; gap: 4px; margin-top: 8px; max-height: 260px; overflow: auto; }
.sv-cluster-list button { display: block; width: 100%; text-align: left; padding: 6px 9px; border: 1px solid #e4eaed; border-radius: 7px; background: #f8fafb; color: #24475b; font-size: 11px; cursor: pointer; }
.sv-cluster-list button:hover { background: #eef7f4; border-color: #9fd5c8; }

@media (max-width: 900px) {
  .sv-map-kpi { grid-template-columns: repeat(2, 1fr); }
  .sv-map-wrap { min-height: 550px; }
  .sv-map-canvas { height: 70vh; min-height: 550px; }
}
@media (max-width: 560px) {
  .sv-map-filter-bar label, .sv-map-filter-bar select { flex: 1; min-width: 100%; }
  .sv-map-kpi { grid-template-columns: 1fr; }
  .sv-map-wrap { min-height: 450px; }
  .sv-map-canvas { height: 65vh; min-height: 450px; }
}

/* ================= Global smooth interactions ================= */
:root {
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}
html { scroll-behavior: smooth; }
* { -webkit-tap-highlight-color: transparent; }

/* View transition on route change — GPU-only (opacity+transform) */
@keyframes view-enter-anim {
  from { opacity: 0; transform: translate3d(0, 6px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}
.generated-main { transform: translateZ(0); }
@media (prefers-reduced-motion: no-preference) {
  .generated-main.view-enter { animation: view-enter-anim 0.24s var(--ease-out-expo) both; }
}

/* Sidebar nav — transform only, no layout */
.generated-nav a, .generated-nav button {
  transition: background 0.18s var(--ease-smooth),
              color 0.18s var(--ease-smooth),
              transform 0.2s var(--ease-out-expo);
}

/* Dialog open smoother */
dialog[open] { animation: view-enter-anim 0.28s var(--ease-out-expo) both; }
dialog::backdrop { animation: backdrop-fade 0.24s var(--ease-smooth) both; }
@keyframes backdrop-fade { from { opacity: 0; } to { opacity: 1; } }

/* ---- View Transition API: animate only the content workspace ----
   view-transition-name di-set pada .generated-content (scoped di
   pantau-v2.css). Root group (sidebar/topbar/shell) tidak dianimasikan
   agar shell tetap stabil saat pindah menu. */
::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
}
::view-transition-old(p-v2-content) {
  animation: p-v2-vt-out 160ms cubic-bezier(0.2, 0, 0, 1) both;
}
::view-transition-new(p-v2-content) {
  animation: p-v2-vt-in 200ms cubic-bezier(0.2, 0, 0, 1) both;
}
@keyframes p-v2-vt-out {
  to { opacity: 0; transform: translateY(-4px); }
}
@keyframes p-v2-vt-in {
  from { opacity: 0; transform: translateY(8px); }
}

/* Inputs / selects — smoother focus */
input, select, textarea, button {
  transition: border-color 0.2s var(--ease-smooth),
              box-shadow 0.22s var(--ease-smooth),
              background 0.2s var(--ease-smooth),
              transform 0.18s var(--ease-out-expo);
}

/* ================= Dashboard polish + light animations ================= */
@keyframes dash-fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes dash-scale-in { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: scale(1); } }
@keyframes dash-shine { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
@keyframes dash-pulse-ring { 0%, 100% { box-shadow: 0 0 0 0 rgba(19, 141, 137, 0.35); } 50% { box-shadow: 0 0 0 12px rgba(19, 141, 137, 0); } }
@keyframes dash-progress-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes dash-count-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
@keyframes dash-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }

@media (prefers-reduced-motion: no-preference) {
  .generated-card, .generated-assistant, .generated-greeting {
    animation: dash-fade-up 0.28s var(--ease-out-expo) both;
  }
}

/* Card lift + subtle border glow on hover */
.generated-card, .generated-assistant {
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.2s ease;
}
.generated-card:hover, .generated-assistant:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 44px rgba(16, 50, 69, 0.10), 0 4px 12px rgba(16, 50, 69, 0.05);
  border-color: #d3dfe4;
}

/* Greeting hero — gradient shine */
.generated-greeting {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #ffffff 0%, #f5fafc 100%);
  border: 1px solid #e5ebee;
  transition: box-shadow 0.28s ease, transform 0.28s ease;
}
.generated-greeting:hover {
  box-shadow: 0 14px 40px rgba(16, 50, 69, 0.09);
  transform: translateY(-2px);
}
.generated-greeting::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 40%, rgba(19, 141, 137, 0.04) 50%, transparent 60%);
  pointer-events: none;
}
.generated-greeting-mark {
  position: relative;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.generated-greeting:hover .generated-greeting-mark {
  transform: rotate(-6deg) scale(1.06);
}

/* KPI row icons — hover bounce */
.generated-kpi-row p svg {
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.generated-kpi-row > div:hover p svg {
  transform: scale(1.15) rotate(-4deg);
}
.generated-kpi-row > div {
  transition: background 0.2s ease, transform 0.2s ease;
  border-radius: 12px;
  padding: 8px;
}
.generated-kpi-row > div:hover {
  background: linear-gradient(180deg, #f5fafc, transparent);
}

/* Card-head icons — subtle float on hover */
.generated-card-head h2 > span {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s ease;
}
.generated-card:hover .generated-card-head h2 > span {
  transform: translateY(-2px) scale(1.05);
}

/* Status Indikator — animate progress bar fill on load */
@media (prefers-reduced-motion: no-preference) {
  .generated-status-card .generated-status-progress > i,
  .generated-status-card [class*="progress"] > i,
  .generated-status-card ul li i {
    transform-origin: left center;
    animation: dash-progress-fill 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: 0.35s;
  }
}
.generated-status-card ul li {
  transition: background 0.2s ease, transform 0.2s ease;
  border-radius: 10px;
  padding: 6px 8px;
  margin: 0 -8px;
}
.generated-status-card ul li:hover {
  background: linear-gradient(180deg, #f5fafc, transparent);
  transform: translateX(2px);
}

/* Assistant orb — soft pulse */
@media (prefers-reduced-motion: no-preference) {
  .generated-assistant-orb {
    animation: dash-pulse-ring 3s ease-in-out infinite, dash-float 6s ease-in-out infinite;
  }
}
.generated-assistant {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.generated-assistant:hover .generated-assistant-orb {
  animation-play-state: paused;
  transform: scale(1.05);
}

/* Sidebar nav polish — hover slide */
.generated-nav a, .generated-nav button {
  transition: background 0.18s ease, color 0.18s ease, padding-left 0.18s ease, border-color 0.18s ease;
}
.generated-nav a:hover, .generated-nav button:hover {
  transform: translateX(3px);
}

/* Ekspor / Filter buttons — smoother press */
.generated-control-filters button,
.generated-controls button {
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.18s ease;
}
.generated-control-filters button:active,
.generated-controls button:active {
  transform: scale(0.97);
}

/* Chart bars entrance */
@media (prefers-reduced-motion: no-preference) {
  .generated-snapshot-card svg rect,
  .csti-hour-chart div i {
    animation: dash-progress-fill 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
    transform-origin: bottom;
  }
}

/* Search bar polish */
.generated-search {
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.generated-search:focus-within {
  box-shadow: 0 0 0 4px rgba(19, 141, 137, 0.12);
  border-color: #138d89;
}

/* Notification / help buttons in header */
.generated-header-actions button {
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.15s ease;
}
.generated-header-actions button:hover {
  transform: translateY(-1px) rotate(-4deg);
}

/* WhatsApp outbox */
.wa-message-grid { display:grid; grid-template-columns:minmax(0, 1.5fr) minmax(280px, .7fr); gap:16px; margin-bottom:16px; }
.wa-message-form-fields { grid-template-columns:repeat(2, minmax(0, 1fr)); }
.wa-message-wide { grid-column:1 / -1; }
.wa-message-text { min-height:178px; resize:vertical; font:inherit; line-height:1.55; padding:12px; }
.wa-message-help { margin-top:12px; color:var(--text-muted, #597182); font-size:12px; }
.wa-message-help code { background:#edf5f5; color:#08646d; padding:2px 5px; border-radius:4px; }
.wa-message-unit { border:1px dashed #b7d0d8; background:#f5fafb; border-radius:10px; padding:12px; display:grid; gap:4px; }
.wa-message-unit span { color:#587082; font-size:13px; }
.wa-message-guide ol { padding-left:20px; margin:2px 0 16px; display:grid; gap:12px; line-height:1.5; }
.wa-message-guide p { padding:12px; border-radius:10px; margin:0; background:#eef8f7; color:#315969; line-height:1.5; }
.wa-message-history { margin-top:0; }
.wa-history-toolbar { display:flex; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:8px; }
.wa-history-date { display:inline-flex; align-items:center; gap:7px; color:var(--text-muted, #597182); font-size:12px; font-weight:700; }
.wa-history-unit { display: inline-flex; align-items: center; gap: 6px; }
.wa-history-unit select { min-height: 36px; }
.wa-history-date input { min-height:34px; width:154px; padding:0 8px; color:var(--text, #1d3747); font:inherit; background:#fff; border:1px solid #d7e3e7; border-radius:8px; }
.wa-history-clear { min-height:34px; padding:6px 10px; font-size:12px; }
.wa-history-toolbar small { white-space:nowrap; }
.wa-message-status { display:inline-flex; padding:4px 8px; border-radius:999px; font-size:12px; font-weight:700; }
.wa-message-status.sent { background:#e2f6ea; color:#167143; }
.wa-message-status.failed { background:#fde8e8; color:#af3030; }
.wa-message-status.queued { background:#fff4d6; color:#976900; }
.wa-message-error { color:#b33; }

/* Kolom Kantor pada riwayat WhatsApp. Kode yang tidak dikenal dibedakan lewat
   ikon dan teks keterangan, bukan warna saja, supaya tetap terbaca. */
.wa-kantor { font-weight: 700; color: #24475b; }
.wa-kantor-sub { color: #5c727f; font-size: 11px; }
.wa-kantor-asing { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; color: #8f1d17; }
.wa-kantor-asing svg { width: 13px; height: 13px; flex: 0 0 13px; }
@media (max-width: 850px) { .wa-message-grid { grid-template-columns:1fr; } }
@media (max-width: 600px) { .wa-message-form-fields { grid-template-columns:1fr; } .wa-message-wide { grid-column:auto; } .wa-message-history .generated-card-head { align-items:flex-start; flex-direction:column; } .wa-history-toolbar { width:100%; justify-content:flex-start; } }

/* ==================================================================
   PHASE 1 POLISH — readability, contrast, spacing & consistency
   Safe overrides only. No layout structure changes.
   ================================================================== */

/* 1. Typography — lift small/meta text to a readable 12–13px floor */
.header-notification-list small,
.header-notification-list time,
.header-help-grid small,
.header-help-tip,
.header-profile-details dt,
.header-profile-details dd,
.global-search-results small,
.global-search-empty span,
.header-menu-empty span,
.header-menu-shell > footer button {
  font-size: 12px;
}

.header-notification-list strong,
.header-help-grid strong,
.global-search-results strong,
.global-search-empty strong,
.header-menu-empty strong {
  font-size: 13px;
}

.generated-kpi-row p,
.generated-status-copy span,
.generated-status-copy strong {
  font-size: 13px;
}
.generated-kpi-row em,
.generated-status-copy small,
.generated-card-head > small {
  font-size: 12px;
}

.user-scope-banner p {
  font-size: 12px;
}

/* 2. Contrast — darken pale gray text against white surfaces */
.gen-nav-group,
.gen-nav-section-header,
.gen-nav-section-label {
  color: #5a6c78;
}

.header-notification-list small,
.header-notification-list time {
  color: #5c6f7a;
}
.header-help-grid small {
  color: #60717c;
}
.header-help-tip {
  color: #4c616d;
}
.header-profile-details dt {
  color: #60717c;
}
.global-search-results small {
  color: #687983;
}
.global-search-empty span,
.header-menu-empty span {
  color: #5f727d;
}
.generated-greeting-copy > span {
  color: #5d707c;
}
.generated-weather p span {
  color: #5f727d;
}
.generated-kpi-row p {
  color: #4a5f6b;
}
.generated-status-copy small {
  color: #637480;
}
.generated-status-copy span {
  color: #3b4f5d;
}
.user-scope-banner p {
  color: #516774;
}

/* Fix number wrapping in KPI values */
.generated-kpi-row strong {
  word-break: normal;
  overflow-wrap: anywhere;
  line-height: 1.1;
}

/* 3. Card consistency — align legacy light cards with generated cards */
.panel:not(.panel-dark),
.alert-card,
.action-card {
  background: #fff;
  border: 1px solid #e5ebee;
  border-radius: 17px;
  box-shadow: 0 8px 25px rgba(16, 50, 69, .035);
}

/* 4. Mobile — remove oversized fixed min-heights & smooth scrolling */
@media (max-width: 780px) {
  .generated-kpi-card,
  .generated-status-card {
    min-height: auto;
  }
  .generated-dashboard {
    gap: 10px;
  }
  .generated-nav,
  .generated-control-filters {
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
}

/* ===== WA Blast ===== */
.wa-tabs{display:inline-flex;gap:6px;margin-bottom:16px;padding:5px;border:1px solid #dce7ea;border-radius:13px;background:#fff}
.wa-tabs button{min-height:38px;padding:0 16px;border:0;border-radius:9px;color:#617982;background:transparent;font:inherit;font-size:13px;font-weight:700;cursor:pointer;display:inline-flex;align-items:center;gap:7px}
.wa-tabs button.active{color:#fff;background:#075671;box-shadow:0 6px 14px rgba(7,86,113,.17)}
.wa-blast-layout{display:grid;gap:16px}
.wa-blast-status{display:inline-flex;align-items:center;gap:6px;padding:4px 10px;border-radius:999px;font-size:12px;font-weight:700;white-space:nowrap}
.wa-blast-running{color:#07556f;background:#e1f2f8}
.wa-blast-done{color:#167143;background:#e2f6ea}
.wa-blast-danger{color:#af3030;background:#fde8e8}
.wa-blast-paused{color:#8a6d00;background:#fff3cd}
.wa-blast-scheduled{color:#5a3f9e;background:#eee9fa}
.wa-blast-draft{color:#6b7b84;background:#eef2f4}
.wa-blast-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:12px}
.wa-blast-section{border:1px solid #e0eaee;border-radius:12px;padding:14px;margin-top:14px}
.wa-blast-section legend{font-size:12px;font-weight:800;color:#073c5c;padding:0 8px;text-transform:uppercase;letter-spacing:.03em}
.wa-blast-vars code{background:#edf5f5;color:#08646d;padding:2px 6px;border-radius:4px;margin:0 3px}
.wa-blast-hint{color:#6b7b84;font-size:12px}
.wa-blast-toggle{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:600;color:#24475b;margin-bottom:10px}
.wa-blast-days{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.wa-blast-day{display:inline-flex;align-items:center;gap:5px;font-size:12.5px}
.wa-blast-detail-head{display:grid;grid-template-columns:auto 1fr auto;gap:14px;align-items:center;margin-bottom:14px}
.wa-blast-detail-head h2{margin:0;color:#073c5c;font-size:18px}
.wa-blast-controls{display:flex;flex-wrap:wrap;gap:8px}
.wa-blast-progress{display:grid;grid-template-columns:auto 1fr;gap:8px 14px;align-items:center;margin-bottom:16px;padding:14px;border:1px solid #e0eaee;border-radius:12px;background:#f8fbfc}
.wa-blast-progress-count span{font-size:20px;font-weight:800;color:#073c5c}
.wa-blast-progress-count small{color:#6b7b84;margin-left:6px}
.wa-blast-progress-bar{grid-column:1/-1;height:10px;border-radius:999px;background:#e4edf1;overflow:hidden}
.wa-blast-progress-bar i{display:block;height:100%;background:linear-gradient(90deg,#138d89,#0b6f8d);transition:width .4s ease}
.wa-blast-progress-meta{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:14px;font-size:12px;font-weight:700;color:#59727c}
.wa-blast-cooldown{grid-column:1/-1;font-size:13px;font-weight:800;color:#8a6d00}
.wa-blast-detail-grid{display:grid;grid-template-columns:minmax(260px,.4fr) minmax(0,1.6fr);gap:16px}
.wa-blast-meta{display:grid;gap:10px;margin:0 0 14px}
.wa-blast-meta div{display:flex;justify-content:space-between;gap:12px;border-bottom:1px dashed #e0eaee;padding-bottom:8px;font-size:13px}
.wa-blast-meta dt{color:#6b7b84}
.wa-blast-meta dd{margin:0;font-weight:600;color:#24475b}
.wa-blast-message-preview pre{white-space:pre-wrap;word-break:break-word;margin:0;padding:12px;background:#f4f8fa;border-radius:10px;font:inherit;font-size:12.5px;color:#24475b;max-height:180px;overflow:auto}
.wa-blast-recipient-toolbar{display:flex;gap:8px;align-items:center}
.wa-blast-recipient-toolbar input{max-width:220px}
.wa-blast-pager{display:flex;align-items:center;gap:12px;justify-content:flex-end;margin-top:12px}
.wa-blast-import-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}
.wa-blast-import-view,.wa-blast-new-view{display:grid;gap:14px}
.wa-blast-back{align-self:flex-start}
@media (max-width:900px){
.wa-blast-grid{grid-template-columns:1fr 1fr}
.wa-blast-detail-grid{grid-template-columns:1fr}
.wa-blast-detail-head{grid-template-columns:1fr}
.wa-blast-controls{grid-column:1/-1}
}
@media (max-width:600px){
.wa-tabs{width:100%;display:flex}
.wa-tabs button{flex:1;justify-content:center}
.wa-blast-grid{grid-template-columns:1fr}
.wa-blast-recipient-toolbar{flex-direction:column;align-items:stretch}
.wa-blast-recipient-toolbar input{max-width:none}
}
.sv-pagination{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin-top:12px;font-size:13px}
.sv-pagination button[disabled]{opacity:.5;cursor:not-allowed}
