/* ============================================
   TEMA MODERN - KUESIONER BUDGET 2027
   ============================================ */
:root{
  --primary:#1e3a8a;
  --primary-dark:#15326b;
  --accent:#3b82f6;
  --accent-hover:#2563eb;
  --success:#059669;
  --success-bg:#d1fae5;
  --danger:#dc2626;
  --warning:#d97706;
  --bg:#f3f4f6;
  --card:#ffffff;
  --text:#111827;
  --muted:#6b7280;
  --border:#e5e7eb;
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --gradient: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body{
  margin:0; font-family: "Segoe UI", "Inter", -apple-system, BlinkMacSystemFont, "Roboto", "Helvetica Neue", Arial, sans-serif;
  background: linear-gradient(135deg, #f0f4f8 0%, #e9ecef 100%);
  color: var(--text); min-height: 100vh;
}
[hidden]{ display:none !important; }
.topbar{
  background: var(--gradient); color:#fff; padding: 16px 24px; display:flex; align-items:center; gap:16px;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1); position:sticky; top:0; z-index:100;
}
.topbar h1{ font-size: 1.25rem; margin:0; font-weight: 800; letter-spacing:.2px; display:flex; align-items:center; gap:10px;}
.topbar .chip{
  margin-left:auto; background: rgba(255,255,255,.18); padding: 8px 16px; border-radius: 30px; font-size: .85rem; border:1px solid rgba(255,255,255,.35); backdrop-filter: blur(4px);
}
.container{ max-width: none; margin: 0; padding: 20px 24px; width: 100%; min-width: 0; }
.card{
  background: var(--card); border:1px solid var(--border); border-radius: 14px; padding: 24px; margin-bottom: 24px;
  box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s;
}
.card:hover{ transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.card h2{ margin-top:0; font-size: 1.35rem; color: var(--primary-dark); display:flex; align-items:center; gap:10px;}
label{ font-size: .85rem; color: var(--muted); display:block; margin-bottom: 8px; font-weight: 700; text-transform: uppercase; letter-spacing:.3px;}
input[type="text"], input[type="email"], input[type="number"], select, textarea{
  width:100%; padding: 10px 14px; border:1px solid var(--border); border-radius: 10px; font-size: .95rem; outline:none;
  background:#fafafa; transition: border-color .2s, box-shadow .2s;
}
input[type="text"]:focus, input[type="number"]:focus, select:focus, textarea:focus{
  border-color: var(--accent); box-shadow: 0 0 0 3px rgba(59,130,246,.15); background:#fff;
}
.grid-2{ display:grid; grid-template-columns: 1fr 1fr; gap: 16px;}
@media (max-width: 700px){ .grid-2{ grid-template-columns: 1fr; } .tabel-wrap{ overflow-x: auto; } }

.btn{
  display:inline-flex; align-items:center; gap:8px; padding: 10px 20px; border:none; border-radius: 10px;
  font-weight: 700; font-size: .95rem; cursor:pointer; text-decoration:none; transition: all .2s;
}
.btn-primary{ background: var(--gradient); color:#fff; box-shadow: 0 3px 6px rgba(30,58,138,.3); }
.btn-primary:hover{ filter: brightness(1.05); box-shadow: 0 5px 10px rgba(30,58,138,.4); transform: translateY(-1px);}
.btn-success{ background: var(--success); color:#fff; box-shadow: 0 3px 6px rgba(5,150,105,.3); }
.btn-success:hover{ filter: brightness(1.05); transform: translateY(-1px);}
.btn-outline{ background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover{ background: var(--primary); color:#fff; }
.btn-sm{ padding: 6px 14px; font-size: .85rem; border-radius: 8px;}
.btn-danger{ background: var(--danger); color:#fff; }
.btn-danger:hover{ filter: brightness(.9); transform: translateY(-1px);}

.row-actions{ display:flex; gap:12px; margin-top:16px; flex-wrap:wrap;}

/* Tabel kuesioner */
.tabel-wrap{ overflow-x: auto; border:1px solid var(--border); border-radius: 12px; margin-top:16px; box-shadow: var(--shadow); min-width: 100%;}
table{ width:100%; border-collapse: collapse; font-size: .9rem; min-width: 1400px; }
th, td{ border:1px solid var(--border); padding: 10px 12px; text-align:left; white-space:nowrap; }
th{ background: var(--gradient); color:#fff; font-weight: 800; white-space:nowrap; position:sticky; top:0; z-index:2; font-size:.85rem; text-transform:uppercase; letter-spacing:.2px;}
td .mon{ width: 95px; text-align:right; font-family: "Courier New", monospace; font-weight:700; white-space:nowrap; }
.calc-cell{ background: #f1f5f9 !important; color: var(--primary-dark); font-weight: 800; text-align: right; font-family: "Courier New", monospace; border: 1px solid var(--border); white-space:nowrap; }
.calc-total{ background: #dbeafe !important; color: var(--primary-dark); font-weight: 900; text-align: right; font-family: "Courier New", monospace; border: 2px solid var(--accent); font-size:.95rem; white-space:nowrap;}
td.total{ font-weight: 800; color: var(--primary-dark);}
.group-row td{ background: #e2e8f0 !important; font-weight: 800; color: var(--primary-dark); text-transform:uppercase; font-size:.85rem; letter-spacing:.3px;}
.skipped-row td{ background: #f1f5f9 !important; color: var(--muted); font-style: italic;}
.empty-cell{ background: #fafafa; color: var(--muted); font-style: italic; text-align:center;}

/* Utilities */
.muted{ color: var(--muted); font-size: .85rem; }
.keterangan{ background: #eff6ff; border-left: 5px solid var(--accent); padding: 16px 20px; border-radius: 10px; font-size: .92rem; margin-bottom:20px;}
.ok-msg{ color: var(--success); font-weight:800; }
.err-msg{ color: var(--danger); font-weight:800; }

/* Admin KPI */
.kpi{ display:grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 16px; margin-bottom: 24px; width:100%;}
.kpi .box{ background: var(--card); border:1px solid var(--border); border-radius: 14px; padding: 20px; text-align:center; box-shadow: var(--shadow);}
.kpi .box .v{ font-size: 2rem; font-weight: 900; color: var(--primary-dark); }
.kpi .box .l{ font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing:.6px; margin-top:6px;}
.kpi .box:nth-child(1) .v{ color: var(--primary); }
.kpi .box:nth-child(2) .v{ color: var(--success); }
.kpi .box:nth-child(3) .v{ color: var(--warning); }
.kpi .box:nth-child(4) .v{ color: var(--danger); }
.kpi .box:nth-child(5) .v{ color: var(--accent); }

/* Admin tables */
.filter-bar{ display:flex; gap:12px; align-items:center; margin-bottom:20px; flex-wrap:wrap; width:100%;}
.filter-bar select{ max-width: 260px; padding: 10px 14px; }
.admin-table{ overflow-x:auto; border:1px solid var(--border); border-radius: 12px; min-width: 100%;}
.admin-table table{ width:100%; border-collapse: collapse; font-size: .88rem; min-width: 900px;}
.admin-table th{ background: var(--primary-dark); color:#fff; position:sticky; top:0;}
.admin-table td, .admin-table th{ border:1px solid var(--border); padding: 10px 12px; text-align:right; white-space:nowrap;}
.admin-table td:first-child, .admin-table th:first-child{ text-align:left; }
.admin-table tr:hover{ background: #f8fafc; }
.badge{ display:inline-block; padding: 4px 10px; border-radius: 20px; font-size: .75rem; font-weight:800; color:#fff;}
.badge-akun{ background: var(--accent); }
.badge-skip{ background: var(--danger); }

/* Charts */
.chart-container{ background: var(--card); border:1px solid var(--border); border-radius: 14px; padding: 24px; margin-bottom: 24px; box-shadow: var(--shadow); width:100%; min-width:0; max-width:100%; overflow:hidden;}
.chart-title{ font-size: 1.1rem; font-weight: 800; color: var(--primary-dark); margin-bottom: 16px; display:flex; align-items:center; gap:8px;}
.chart-canvas{ position:relative; width:100%; min-width:0; max-width:100%; height:320px; overflow:hidden; }
.chart-canvas-month{ height:330px; }
.chart-canvas-accounts{ height:420px; }
.chart-canvas canvas{ display:block; max-width:100%; }
@media (max-width:640px){
  .chart-container{ padding:16px; }
  .chart-canvas-month{ height:260px; }
  .chart-canvas-accounts{ height:380px; }
}
.account-map-group{ min-width:0; border:1px solid var(--border); border-radius:8px; margin-bottom:8px; background:#fff; }
.account-map-group summary{ display:flex; justify-content:space-between; gap:12px; padding:12px; cursor:pointer; font-weight:700; color:var(--primary-dark); }
.account-map-count{ color:var(--muted); font-size:.85rem; font-weight:400; }
.account-map-list{ display:grid; grid-template-columns:repeat(auto-fill,minmax(min(100%,220px),1fr)); gap:8px 14px; padding:4px 12px 14px; min-width:0; }
.account-map-list label{ display:flex; align-items:flex-start; gap:7px; margin:0; min-width:0; font-size:.88rem; }
.account-map-list label span{ min-width:0; overflow-wrap:anywhere; }
.security-toggle{ display:flex; align-items:center; gap:8px; text-transform:none; letter-spacing:0; }
.security-toggle input{ width:16px; height:16px; margin:0; }
#adminPasswordFields{ display:grid; gap:12px; max-width:480px; margin-top:12px; }
.account-map-list input{ flex:0 0 auto; margin:3px 0 0; }
.price-global-dialog{ width:min(94vw,680px); max-height:88vh; }
.price-global-match{ padding:12px; margin:12px 0; border:1px solid var(--border); border-radius:8px; background:#f8fafc; }
.price-global-summary{ display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:10px; margin-top:12px; }
.price-global-summary>div{ padding:12px; border:1px solid var(--border); border-radius:8px; background:#fff; }
.price-global-summary strong{ display:block; margin-top:4px; color:var(--primary-dark); }
.price-global-actions{ display:flex; flex-wrap:wrap; justify-content:flex-end; gap:8px; }
button:disabled{ opacity:.55; cursor:not-allowed; transform:none; }
@media (max-width:640px){
  .price-global-dialog .modal-body{ padding:16px; }
  .price-global-actions{ justify-content:stretch; }
  .price-global-actions .btn{ flex:1 1 100%; justify-content:center; }
}

/* Modal Detail Item */
.modal{
  display:none; position:fixed; z-index:1000; left:0; top:0; width:100%; height:100%;
  background: rgba(0,0,0,0.55); backdrop-filter: blur(4px);
}
.modal-content{
  background:#fff; margin:4% auto; width:95%; max-width:1400px; max-height:90vh; border-radius:16px;
  overflow:hidden; box-shadow: 0 20px 25px -5px rgba(0,0,0,0.3);
  display:flex; flex-direction:column; animation: slideDown .3s ease;
}
@keyframes slideDown{ from{transform:translateY(-30px);opacity:0} to{transform:translateY(0);opacity:1} }
.modal-header{
  background: var(--gradient); color:#fff; padding:16px 20px; display:flex; justify-content:space-between; align-items:center;
}
.modal-header h3{ margin:0; font-size:1.25rem; font-weight:800;}
.close{ color:#fff; font-size:32px; font-weight:300; cursor:pointer; text-decoration:none; line-height:1;}
.modal-header .close{ border:0; padding:0 4px; background:transparent; }
.close:hover{ opacity:.8;}
.modal-body{ padding:20px; overflow-y:auto; flex:1;}
.modal-body table{ width:100%; border-collapse:collapse; font-size:.9rem; margin-top:12px; min-width:1000px;}
.modal-body th, .modal-body td{ border:1px solid var(--border); padding:10px 12px; text-align:left; white-space:nowrap;}
.modal-body th{ background:#eef4fb; color:var(--primary-dark); font-weight:800;}
.modal-body input, .modal-body select{ width:100%; padding:8px 10px; border:1px solid var(--border); border-radius:8px; background:#fafafa;}
.modal-body input:focus{ border-color:var(--accent); outline:none; box-shadow:0 0 0 3px rgba(59,130,246,.15);}
.modal-footer{ padding:16px 20px; text-align:right; background:#f8fafc; border-top:1px solid var(--border);}
.modal-history{ width:96%; max-width:1600px; height:88vh; max-height:88vh; }
.modal-history .modal-body{ min-height:0; }
.history-filters{ display:grid; grid-template-columns:minmax(180px,.7fr) minmax(260px,1.3fr); gap:8px 14px; align-items:end; margin:14px 0; }
.history-filters label{ margin:0; }
.history-filters input,.history-filters select{ min-width:0; }
#historyStatus{ min-height:20px; margin:8px 0; }
.history-table-wrap{ max-height:calc(88vh - 260px); overflow:auto; border:1px solid var(--border); border-radius:8px; }
.history-table{ min-width:1800px; font-size:.78rem; }
.history-table th{ position:sticky; top:0; z-index:3; }
.history-table td{ max-width:320px; white-space:normal; }
.history-table td:nth-child(9),.history-table td:nth-child(10),.history-table td:nth-child(11),.history-table td:nth-child(12),.history-table td:nth-child(17){ text-align:right; white-space:nowrap; }
.history-pagination{ display:flex; justify-content:space-between; align-items:center; gap:12px; margin-top:12px; }
.history-pagination>div{ display:flex; gap:8px; }
@media (max-width:700px){
  .modal-history{ width:96%; height:92vh; max-height:92vh; margin:4vh auto; }
  .modal-history .modal-body{ padding:12px; }
  .history-filters{ grid-template-columns:1fr; gap:6px; }
  .history-pagination{ align-items:flex-start; flex-direction:column; }
  .history-table-wrap{ max-height:calc(92vh - 320px); }
}

/* Detail item panel admin */
#detailItemContainer{ margin-top:20px; border:1px solid var(--border); border-radius:12px; background:#fdfdfd; overflow:hidden; min-width:100%;}
#detailItemContainer h4{ margin:0; padding:14px 16px; background:#eef4fb; color:var(--primary-dark); font-weight:800; border-bottom:1px solid var(--border);}

/* Scrollbar */
::-webkit-scrollbar{ width: 12px; height: 12px; }
::-webkit-scrollbar-track{ background: #f1f1f1; border-radius: 6px; }
::-webkit-scrollbar-thumb{ background: #94a3b8; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover{ background: #64748b; }


/* =========================================================
   MODERN UI/UX DESIGN SYSTEM 2027 (PT. GARUDA MART INDONESIA)
   ========================================================= */
:root {
  --primary: #1d4ed8;
  --primary-dark: #0f295c;
  --primary-soft: #eff6ff;
  --accent: #2563eb;
  --gradient: linear-gradient(135deg, #0f295c 0%, #1d4ed8 55%, #2563eb 100%);
  --bg: #f1f5f9;
  --card: #ffffff;
  --border: #e2e8f0;
  --text: #0f172a;
  --muted: #64748b;
  --success: #059669;
  --danger: #dc2626;
  --warning: #d97706;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 8px 24px -4px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 45px -10px rgba(15, 23, 42, 0.22);
}

html { scroll-behavior: smooth; }

body {
  font-family: "Plus Jakarta Sans", "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: radial-gradient(circle at top right, rgba(37, 99, 235, 0.05), transparent 42%), var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

.mon, .calc-cell, .calc-total, #tabelAkun td, #tabelAkun th, .kpi .v, .live-stat-v {
  font-variant-numeric: tabular-nums;
}

/* Sticky Modern Topbar + Navigation Pills */
.topbar {
  position: sticky;
  top: 0;
  z-index: 900;
  background: var(--gradient);
  box-shadow: 0 4px 20px rgba(15, 41, 92, 0.22);
  padding: 12px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  backdrop-filter: blur(8px);
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.topbar h1 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}

.topbar .chip {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #f8fafc;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  transition: all 0.18s ease;
}

.nav-pill:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  transform: translateY(-1px);
}

.nav-pill.active {
  background: #ffffff;
  color: var(--primary-dark);
  border-color: #ffffff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.16);
}

/* Modern Full-Width Layout, Cards & Inputs */
.topbar {
  width: 100%;
  box-sizing: border-box;
}

.container {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 20px 28px;
  box-sizing: border-box;
  min-width: 0;
}

.card {
  width: 100%;
  box-sizing: border-box;
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease;
}

.table-wrap {
  width: 100%;
  box-sizing: border-box;
  overflow-x: auto;
}

.table-wrap > table {
  width: 100%;
}

.filter-bar {
  width: 100%;
  box-sizing: border-box;
}

.filter-bar select,
.filter-bar input[type="search"],
.filter-bar input[type="text"] {
  max-width: none;
}

.card h2 {
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--primary-dark);
}

input[type="text"], input[type="email"], input[type="number"], input[type="search"], select, textarea {
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  font-family: inherit;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.btn {
  border-radius: 8px;
  font-weight: 600;
  font-family: inherit;
  transition: transform 0.12s ease, box-shadow 0.15s ease, background-color 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
}

.btn:active:not(:disabled) {
  transform: translateY(0);
}

.btn-amber {
  background: linear-gradient(135deg, #d97706, #b45309);
  color: #fff;
  border: 1px solid #b45309;
}

.btn-indigo {
  background: linear-gradient(135deg, #4338ca, #3730a3);
  color: #fff;
  border: 1px solid #3730a3;
}

.btn-xs {
  padding: 3px 8px;
  font-size: 0.75rem;
  border-radius: 6px;
}

/* KPI Strip & Live Summary */
.kpi {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: 12px;
}

.kpi .box {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
}

.kpi .v {
  font-size: 1.32rem;
  font-weight: 800;
  color: var(--primary-dark);
  letter-spacing: -0.02em;
}

.kpi .l {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  margin-top: 4px;
}

.live-summary-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: 10px;
  margin: 12px 0 14px 0;
}

.live-stat {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  padding: 10px 14px;
}

.live-stat.stat-green { border-left-color: var(--success); }
.live-stat.stat-indigo { border-left-color: #4f46e5; }
.live-stat.stat-amber { border-left-color: #d97706; }

.live-stat-l {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--muted);
}

.live-stat-v {
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-top: 2px;
}

/* Search & Filter Toolbar */
.table-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 12px;
}

.search-box {
  flex: 1;
  min-width: 240px;
  max-width: 420px;
}

.search-box input {
  width: 100%;
  padding: 7px 12px;
  background: #fff;
  font-size: 0.86rem;
}

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip-filter {
  border: 1px solid #cbd5e1;
  background: #fff;
  color: var(--muted);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.chip-filter:hover {
  border-color: var(--accent);
  color: var(--primary-dark);
}

.chip-filter.active {
  background: var(--primary-dark);
  color: #fff;
  border-color: var(--primary-dark);
}

/* GL / COA & Vendor Badges */
.gl-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
  align-items: center;
}

.gl-code-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.71rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 5px;
  background: #eef2ff;
  color: #3730a3;
  border: 1px solid #c7d2fe;
  white-space: nowrap;
}

.gl-missing-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 5px;
  background: #fffbeb;
  color: #b45309;
  border: 1px dashed #fcd34d;
  white-space: nowrap;
}

.tipe-akun-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  white-space: nowrap;
}

.tipe-hpp { background: #f3e8ff; color: #6b21a8; border: 1px solid #e9d5ff; }
.tipe-beban { background: #e0f2fe; color: #0369a1; border: 1px solid #bae6fd; }
.tipe-beban-lain { background: #fef3c7; color: #b45309; border: 1px solid #fde68a; }
.tipe-pendapatan { background: #d1fae5; color: #047857; border: 1px solid #a7f3d0; }

.vendor-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 5px;
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.tipe-pihak-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 5px;
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
}

/* Modern Modal & Spacious Detail Table */
.modal {
  backdrop-filter: blur(3px);
}

.modal-content {
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

#modalDetail .modal-content,
.modal-content.modal-wide {
  width: 97vw;
  max-width: none;
}

#tabelDetailItem th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #eff6ff;
  color: var(--primary-dark);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 9px 6px;
  border-bottom: 2px solid #bfdbfe;
  white-space: nowrap;
}

#tabelDetailItem td {
  padding: 6px 5px;
  border-bottom: 1px solid #e2e8f0;
  vertical-align: middle;
}

#tabelDetailItem td input,
#tabelDetailItem td select {
  width: 100%;
  min-width: 72px;
  padding: 5px 7px;
  font-size: 0.8rem;
  box-sizing: border-box;
}

.detail-actions {
  display: flex;
  gap: 4px;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.badge-count-pill {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  background: #dbeafe;
  color: #1e40af;
}

/* Tabs & Sync Grid inside Admin Modals */
.gl-tabs {
  display: flex;
  gap: 6px;
  border-bottom: 2px solid var(--border);
  margin-bottom: 12px;
  padding-bottom: 8px;
  flex-wrap: wrap;
}

.gl-tab-btn {
  padding: 7px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #f8fafc;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.83rem;
  cursor: pointer;
}

.gl-tab-btn.active {
  background: var(--primary-dark);
  color: #fff;
  border-color: var(--primary-dark);
}

.sync-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin: 12px 0;
}

.sync-metric {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
}

.sync-metric .v {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary-dark);
}

.sync-metric .l {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 2px;
}

/* Toast Notification */
.toast-container {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 380px;
}

.toast {
  background: #0f172a;
  color: #fff;
  padding: 11px 16px;
  border-radius: 10px;
  font-size: 0.84rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  border-left: 4px solid #38bdf8;
  animation: toastSlideIn 0.2s ease-out;
}

.toast.toast-success { border-left-color: #10b981; }
.toast.toast-error { border-left-color: #ef4444; }
.toast.toast-warn { border-left-color: #f59e0b; }
.toast.is-hiding {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

@keyframes toastSlideIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .topbar { padding: 10px 14px; }
  .topbar h1 { font-size: 1.05rem; }
  .nav-pill { padding: 5px 10px; font-size: 0.76rem; }
}

/* =========================================================
   ASSET/NON-ASSET, DEPRESIASI OTOMATIS & MENU PURCHASING
   ========================================================= */
.asset-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: #f3e8ff;
  color: #6b21a8;
  border: 1px solid #d8b4fe;
  white-space: nowrap;
}

.non-asset-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
  white-space: nowrap;
}

.auto-dep-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.71rem;
  font-weight: 700;
  background: #dbeafe;
  color: #1e40af;
  border: 1px solid #93c5fd;
  white-space: nowrap;
}

.row-auto-dep {
  background: #f0f9ff !important;
}

.asset-dep-banner {
  background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
  border: 1px solid #bfdbfe;
  border-left: 5px solid #6d28d9;
  border-radius: 12px;
  padding: 14px 18px;
  margin-top: 16px;
  margin-bottom: 18px;
}

.asset-dep-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.asset-dep-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
}

.asset-dep-card h4 {
  margin: 0 0 6px 0;
  font-size: 0.88rem;
  color: var(--primary-dark);
}

.purchasing-mark-btn {
  border: 1px solid #cbd5e1;
  background: #fff;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.purchasing-mark-btn.state-marked {
  background: #fef3c7;
  color: #b45309;
  border-color: #f59e0b;
}

.purchasing-mark-btn.state-verified {
  background: #d1fae5;
  color: #047857;
  border-color: #10b981;
}

.purchasing-dirty-row {
  background: #fffbeb !important;
}

.sticky-save-bar {
  position: sticky;
  bottom: 14px;
  z-index: 800;
  background: rgba(15, 23, 42, 0.94);
  color: #ffffff;
  padding: 12px 18px;
  border-radius: 14px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-lg);
  margin-top: 14px;
  backdrop-filter: blur(6px);
}

/* =========================================================
   FULL-WIDTH EXECUTIVE DASHBOARD (CHARTS & RESUME GRIDS)
   ========================================================= */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  width: 100%;
  box-sizing: border-box;
}

.dashboard-resume-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 16px;
  margin-top: 16px;
  margin-bottom: 18px;
  width: 100%;
  box-sizing: border-box;
}

.resume-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.resume-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 8px;
}

.resume-card-head h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--primary-dark);
}

.resume-card-sub {
  font-size: 0.74rem;
  color: var(--muted);
  font-weight: 600;
}

.resume-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.resume-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.resume-row-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  font-size: 0.81rem;
}

.resume-row-label {
  font-weight: 700;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.resume-row-val {
  font-weight: 700;
  color: var(--primary-dark);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.progress-track {
  width: 100%;
  height: 7px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #2563eb 0%, #0ea5e9 100%);
  transition: width 0.35s ease;
}

.progress-fill.green { background: linear-gradient(90deg, #059669 0%, #34d399 100%); }
.progress-fill.purple { background: linear-gradient(90deg, #7c3aed 0%, #a855f7 100%); }
.progress-fill.amber { background: linear-gradient(90deg, #d97706 0%, #fbbf24 100%); }

.quarter-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.quarter-pill {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 9px 11px;
}

.quarter-pill .ql {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
}

.quarter-pill .qv {
  font-size: 0.94rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}

.quarter-pill .qp {
  font-size: 0.72rem;
  color: #2563eb;
  font-weight: 600;
}

.dashboard-charts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
  margin-bottom: 18px;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 1100px) {
  .dashboard-charts-grid {
    grid-template-columns: 1fr;
  }
}

.chart-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.chart-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.chart-card-head h3 {
  margin: 0;
  font-size: 0.96rem;
  font-weight: 800;
  color: var(--primary-dark);
}

.chart-canvas-wrap {
  position: relative;
  height: 332px;
  width: 100%;
}

.summary-callout-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.summary-callout-item {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: 10px;
  padding: 10px 14px;
}

.summary-callout-item .lbl {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 600;
}

.summary-callout-item .val {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}

.modal-history {
  width: 94vw;
  max-width: 1120px;
}

#modalDetail .modal-content,
#modalShowSubmission .modal-content,
#modalDetailRingkasan .modal-content,
#modalSyncGl .modal-content,
#modalGlMaster .modal-content,
#modalEditItemGl .modal-content {
  width: 97vw !important;
  max-width: none !important;
  margin: 2vh auto !important;
  max-height: 92vh;
}

#modalDetailRingkasan .modal-body,
#modalShowSubmission .modal-body {
  overflow-x: hidden;
  overflow-y: auto;
}

#modalDetailRingkasan .modal-body table,
#modalShowSubmission .modal-body table {
  min-width: 0;
  width: 100%;
}

.modal-table-scroll {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #ffffff;
}

.tabel-wrap,
.admin-table {
  width: 100%;
  box-sizing: border-box;
}

.tabel-wrap table,
.admin-table table {
  width: 100%;
}

/* =========================================================
   SPACIOUS CARD WORKSPACE FOR DETAIL ITEM MODAL (#modalDetail)
   ========================================================= */
#modalDetail .modal-content {
  width: 98vw !important;
  max-width: none !important;
  height: 94vh;
  max-height: 94vh;
  margin: 1.5vh auto !important;
  border-radius: 16px;
}

#modalDetail .modal-header {
  padding: 14px 22px;
  flex-shrink: 0;
}

#modalDetail .modal-body {
  display: flex;
  flex-direction: column;
  padding: 14px 20px;
  gap: 10px;
  overflow: hidden;
  min-height: 0;
}

.detail-topbar-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-shrink: 0;
}

.detail-cards-container {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detail-empty-state {
  text-align: center;
  padding: 42px 20px;
  background: #ffffff;
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  color: var(--muted);
}

.detail-item-card {
  background: #ffffff;
  border: 1px solid #dbe4f0;
  border-left: 5px solid #2563eb;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05);
  transition: box-shadow 0.16s ease, border-color 0.16s ease;
}

.detail-item-card:hover,
.detail-item-card:focus-within {
  border-color: #93c5fd;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.1);
}

.detail-item-card.is-asset {
  border-left-color: #7c3aed;
}

.detail-card-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: linear-gradient(90deg, #f8fafc 0%, #eff6ff 100%);
  border-bottom: 1px solid #e2e8f0;
  border-radius: 7px 11px 0 0;
}

.detail-card-head-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.detail-card-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-dark);
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
}

.detail-month-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  background: #dbeafe;
  color: #1e40af;
}

.detail-month-pill.is-single {
  background: #e2e8f0;
  color: #334155;
}

.detail-card-head-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.detail-subtotal-pill {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  padding: 5px 12px;
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
}

.detail-card-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.detail-card-body {
  padding: 14px 16px;
}

.detail-card-row-primary {
  display: grid;
  grid-template-columns: minmax(220px, 2.2fr) minmax(200px, 1.8fr) 92px 105px minmax(175px, 1.25fr) 165px;
  gap: 12px;
  align-items: start;
}

.detail-card-row-secondary {
  display: grid;
  grid-template-columns: minmax(210px, 1.35fr) minmax(155px, 0.9fr) minmax(175px, 1fr) minmax(220px, 1.35fr);
  gap: 12px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed #e2e8f0;
  align-items: end;
}

@media (max-width: 1200px) {
  .detail-card-row-primary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .detail-card-row-secondary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .detail-card-row-primary,
  .detail-card-row-secondary {
    grid-template-columns: 1fr;
  }
}

.detail-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.detail-field label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #475569;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.detail-field input,
.detail-field select {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
  font-size: 0.87rem;
  color: #0f172a;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.detail-field input:focus,
.detail-field select:focus {
  background: #ffffff;
  border-color: #2563eb;
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.field-rp-hint {
  font-size: 0.74rem;
  font-weight: 700;
  color: #1d4ed8;
  font-variant-numeric: tabular-nums;
  padding-left: 2px;
}

.detail-modal-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  flex-shrink: 0;
}

.detail-footer-left,
.detail-footer-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.detail-total-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: var(--primary-dark);
  padding: 7px 14px;
  border-radius: 10px;
  font-size: 0.94rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

/* =========================================================
   DETAIL ITEM MODAL: TOP INPUT FORM + BOTTOM ADDED TABLE
   ========================================================= */
.detail-add-panel {
  background: linear-gradient(180deg, #f0f7ff 0%, #ffffff 100%);
  border: 2px solid #93c5fd;
  border-radius: 14px;
  padding: 12px 16px;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.08);
  flex-shrink: 0;
}

.detail-add-panel.is-editing-mode {
  background: linear-gradient(180deg, #fffbeb 0%, #ffffff 100%);
  border-color: #f59e0b;
  box-shadow: 0 4px 16px rgba(217, 119, 6, 0.14);
}

.detail-add-panel-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #dbeafe;
}

.detail-add-panel.is-editing-mode .detail-add-panel-head {
  border-bottom-color: #fde68a;
}

.detail-add-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--primary-dark);
}

.detail-form-grid-top {
  display: grid;
  grid-template-columns: minmax(210px, 2.2fr) minmax(190px, 1.8fr) 86px 100px minmax(165px, 1.2fr) 165px;
  gap: 10px;
  align-items: start;
}

.detail-form-grid-bottom {
  display: grid;
  grid-template-columns: minmax(175px, 1.15fr) minmax(135px, 0.85fr) minmax(120px, 0.75fr) minmax(160px, 0.95fr) auto;
  gap: 10px;
  margin-top: 10px;
  align-items: end;
}

.detail-form-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

@media (max-width: 1180px) {
  .detail-form-grid-top {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .detail-form-grid-bottom {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .detail-form-grid-top,
  .detail-form-grid-bottom {
    grid-template-columns: 1fr;
  }
  .detail-form-actions {
    justify-content: stretch;
  }
}

.detail-added-section {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: #ffffff;
  overflow: hidden;
}

.detail-added-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  flex-shrink: 0;
}

.detail-added-head h4 {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--primary-dark);
}

.detail-added-table-wrap {
  flex: 1;
  min-height: 0;
  overflow: auto;
}

#tabelDetailAdded {
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
  font-size: 0.82rem;
  margin-top: 0;
}

#tabelDetailAdded thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #1e3a8a;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 9px 8px;
  border: 1px solid #2546a3;
  white-space: nowrap;
}

#tabelDetailAdded tbody td {
  padding: 8px 8px;
  border-bottom: 1px solid #e2e8f0;
  border-left: 1px solid #f1f5f9;
  border-right: 1px solid #f1f5f9;
  vertical-align: middle;
  white-space: normal;
}

#tabelDetailAdded tbody tr:nth-child(even) {
  background: #f8fafc;
}

#tabelDetailAdded tbody tr:hover {
  background: #eff6ff;
}

#tabelDetailAdded tbody tr.is-editing-row {
  background: #fef3c7 !important;
  outline: 2px solid #f59e0b;
}

#tabelDetailAdded tfoot td {
  position: sticky;
  bottom: 0;
  background: #e2e8f0;
  color: var(--primary-dark);
  font-weight: 800;
  padding: 9px 8px;
  border-top: 2px solid #cbd5e1;
}

/* =========================================================
   MENU CONVERTER LOKAL (.conv-*)
   ========================================================= */
.conv-local-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #6ee7b7;
  font-size: 0.8rem;
  font-weight: 800;
  white-space: nowrap;
}

.conv-local-banner {
  margin-top: 14px;
  margin-bottom: 18px;
  padding: 12px 16px;
  background: linear-gradient(90deg, #eff6ff 0%, #f0f9ff 100%);
  border: 1px solid #bfdbfe;
  border-left: 5px solid #2563eb;
  border-radius: 10px;
  font-size: 0.88rem;
  color: #1e293b;
}

.conv-step-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1.05fr) minmax(320px, 1.35fr);
  gap: 18px;
  align-items: stretch;
}

@media (max-width: 960px) {
  .conv-step-grid,
  .conv-two-col {
    grid-template-columns: 1fr !important;
  }
}

.conv-upload-box {
  border: 2px dashed #93c5fd;
  border-radius: 14px;
  background: linear-gradient(180deg, #f8fafc 0%, #eff6ff 100%);
  padding: 24px 18px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.conv-upload-box.is-dragover {
  border-color: #2563eb;
  background: #dbeafe;
  transform: scale(1.01);
}

.conv-upload-icon {
  font-size: 2.2rem;
  margin-bottom: 6px;
}

.conv-upload-title {
  font-weight: 800;
  color: var(--primary-dark);
  font-size: 1rem;
}

.conv-upload-sub {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 4px;
}

.conv-file-meta {
  margin-top: 12px;
  font-size: 0.82rem;
  color: #0f172a;
}

.conv-setup-panel {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.conv-setup-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 640px) {
  .conv-setup-grid,
  .conv-fallback-grid {
    grid-template-columns: 1fr !important;
  }
}

.conv-rule-hint {
  margin-top: 12px;
  padding: 9px 12px;
  background: #ffffff;
  border: 1px solid #dbeafe;
  border-radius: 9px;
  font-size: 0.78rem;
  color: #334155;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.conv-two-col {
  display: grid;
  grid-template-columns: minmax(340px, 1.1fr) minmax(340px, 1fr);
  gap: 18px;
  align-items: start;
}

.conv-map-table,
.conv-preview-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.81rem;
  margin-top: 0;
}

.conv-map-table thead th,
.conv-preview-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #1e3a8a;
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 9px 8px;
  border: 1px solid #2546a3;
  white-space: nowrap;
}

.conv-map-table tbody td,
.conv-preview-table tbody td {
  padding: 7px 8px;
  border-bottom: 1px solid #e2e8f0;
  border-left: 1px solid #f1f5f9;
  border-right: 1px solid #f1f5f9;
  vertical-align: middle;
}

.conv-preview-table tbody tr:nth-child(even) {
  background: #f8fafc;
}

.conv-preview-table tbody tr:hover {
  background: #eff6ff;
}

.conv-preview-table tbody tr.conv-row-warn {
  background: #fffbeb !important;
}

.conv-preview-table tbody tr.conv-row-skip {
  opacity: 0.68;
  background: #f1f5f9 !important;
}

.conv-col-select,
.conv-inline-akun-select {
  width: 100%;
  min-width: 170px;
  padding: 6px 8px;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  background: #ffffff;
  font-size: 0.79rem;
  color: #0f172a;
}

.conv-map-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.71rem;
  font-weight: 700;
  white-space: nowrap;
}

.conv-map-badge.is-auto { background: #dcfce7; color: #166534; }
.conv-map-badge.is-manual { background: #dbeafe; color: #1e40af; }
.conv-map-badge.is-ignored { background: #f1f5f9; color: #64748b; }

.conv-matrix-info {
  margin-top: 10px;
  padding: 9px 12px;
  border-radius: 9px;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  color: #312e81;
  font-size: 0.8rem;
}

.conv-options-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.conv-opt-item {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 7px 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  cursor: pointer;
}

.conv-opt-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  flex-shrink: 0;
}

.conv-opt-item span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.81rem;
  color: #0f172a;
}

.conv-opt-item small {
  color: var(--muted);
  font-size: 0.74rem;
}

.conv-fallback-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed #cbd5e1;
}

.conv-unmapped-wrap {
  margin-top: 14px;
  padding: 11px 12px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
}

.conv-unmapped-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  max-height: 220px;
  overflow-y: auto;
}

.conv-unmapped-row {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) minmax(190px, 1.2fr);
  gap: 8px;
  align-items: center;
  padding: 6px 9px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.conv-unmapped-row.is-unmatched {
  border-color: #f59e0b;
  background: #fffbeb;
}

.conv-unmapped-row select {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  font-size: 0.78rem;
  background: #ffffff;
}

.conv-unmapped-src {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.conv-src-name {
  font-weight: 700;
  font-size: 0.8rem;
  color: #0f172a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conv-acc-tag {
  display: inline-block;
  width: fit-content;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 999px;
}

.conv-acc-tag.is-ok { background: #dcfce7; color: #166534; }
.conv-acc-tag.is-fuzzy { background: #dbeafe; color: #1e40af; }
.conv-acc-tag.is-warn { background: #fef3c7; color: #b45309; }

.conv-status-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.71rem;
  font-weight: 700;
  white-space: nowrap;
}

.conv-status-pill.is-ready { background: #dcfce7; color: #166534; }
.conv-status-pill.is-warn { background: #fef3c7; color: #b45309; }
.conv-status-pill.is-skip { background: #e2e8f0; color: #475569; }

.conv-pager {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

/* =========================================================
   MODAL PREVIEW IMPORT EXCEL DI KUESIONER
   ========================================================= */
#modalPreviewImportExcel .modal-content {
  width: 97vw !important;
  max-width: none !important;
  height: 92vh;
  max-height: 92vh;
  margin: 2vh auto !important;
  border-radius: 16px;
}

#modalPreviewImportExcel .modal-header {
  padding: 14px 22px;
  flex-shrink: 0;
}

.import-preview-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 20px;
  overflow: hidden;
  min-height: 0;
  flex: 1;
}

.import-preview-warn-box {
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-left: 5px solid #d97706;
  border-radius: 10px;
  padding: 9px 14px;
  font-size: 0.8rem;
  color: #92400e;
  max-height: 95px;
  overflow-y: auto;
  flex-shrink: 0;
}

.import-mode-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.import-mode-group select {
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  font-size: 0.82rem;
  font-weight: 600;
}

.import-preview-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.81rem;
  margin-top: 0;
}

.import-preview-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #1e3a8a;
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 9px 8px;
  border: 1px solid #2546a3;
  white-space: nowrap;
}

.import-preview-table tbody td {
  padding: 7px 8px;
  border-bottom: 1px solid #e2e8f0;
  border-left: 1px solid #f1f5f9;
  border-right: 1px solid #f1f5f9;
  vertical-align: middle;
}

.import-preview-table tbody tr:nth-child(even) {
  background: #f8fafc;
}

.import-preview-table tbody tr:hover {
  background: #eff6ff;
}

.import-preview-table tbody tr.imp-row-skip {
  background: #fef2f2 !important;
  color: #7f1d1d;
}

.import-preview-table tfoot td {
  position: sticky;
  bottom: 0;
  background: #e2e8f0;
  color: var(--primary-dark);
  font-weight: 800;
  padding: 9px 8px;
  border-top: 2px solid #cbd5e1;
}

.imp-status-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  white-space: nowrap;
}

.imp-status-pill.is-new { background: #dcfce7; color: #166534; }
.imp-status-pill.is-overwrite { background: #fef3c7; color: #b45309; }
.imp-status-pill.is-merge { background: #dbeafe; color: #1e40af; }
.imp-status-pill.is-skip { background: #fee2e2; color: #b91c1c; }

/* =========================================================
   TAMBAHAN SKEMA PRICING, QTY/SATUAN, & INLINE EDIT CONVERTER
   ========================================================= */
.conv-setup-grid.conv-setup-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1120px) {
  .conv-setup-grid.conv-setup-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

.conv-scheme-box {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border: 1px solid #cbd5e1;
  border-left: 4px solid #2563eb;
  border-radius: 12px;
  padding: 12px 14px;
}

.conv-scheme-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 6px;
}

.conv-mini-status {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 0.71rem;
  font-weight: 700;
  background: #dbeafe;
  color: #1e40af;
}

.conv-price-badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 0.67rem;
  font-weight: 700;
  white-space: nowrap;
}

.conv-price-badge.is-hist27 { background: #dcfce7; color: #166534; border: 1px solid #86efac; }
.conv-price-badge.is-hist26 { background: #e0f2fe; color: #0369a1; border: 1px solid #7dd3fc; }
.conv-price-badge.is-web { background: #f3e8ff; color: #6b21a8; border: 1px solid #d8b4fe; }
.conv-price-badge.is-calc { background: #fef3c7; color: #b45309; border: 1px solid #fde68a; }
.conv-price-badge.is-manual { background: #dbeafe; color: #1e40af; border: 1px solid #93c5fd; }
.conv-price-badge.is-file { background: #f1f5f9; color: #475569; border: 1px solid #cbd5e1; }

.conv-inline-mini-select,
.conv-inline-num-input,
.conv-inline-unit-input {
  padding: 5px 6px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #ffffff;
  font-size: 0.78rem;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
}

.conv-preview-table tfoot td {
  position: sticky;
  bottom: 0;
  background: #e2e8f0;
  color: var(--primary-dark);
  font-weight: 800;
  padding: 9px 8px;
  border-top: 2px solid #cbd5e1;
}

/* =========================================================
   PREVIEW & SIMPAN IMPORT MULTI-PROYEK (1 DEPARTEMEN)
   ========================================================= */
.import-multi-bar {
  background: linear-gradient(135deg, #eef2ff 0%, #f8fafc 100%);
  border: 1px solid #c7d2fe;
  border-left: 5px solid #4f46e5;
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}

.import-multi-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.import-multi-meta-grid label {
  display: block;
  margin-bottom: 3px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.import-multi-meta-grid input {
  width: 100%;
  padding: 6px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.82rem;
  background: #ffffff;
}

.import-multi-chips-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.import-multi-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.imp-proyek-chip {
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #1e293b;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
}

.imp-proyek-chip:hover {
  border-color: #6366f1;
  background: #eef2ff;
}

.imp-proyek-chip.active {
  background: #312e81;
  border-color: #312e81;
  color: #ffffff;
}

.imp-proyek-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.73rem;
  font-weight: 700;
  background: #e0e7ff;
  color: #3730a3;
  white-space: nowrap;
}

.imp-proyek-badge.is-new-proj {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
}

@media (max-width: 820px) {
  .import-multi-meta-grid {
    grid-template-columns: 1fr;
  }
}

.budget-id-pill {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 800;
  color: #1e3a8a;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  padding: 2px 7px;
  white-space: nowrap;
}

.no-sumber-pill {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 700;
  color: #065f46;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 6px;
  padding: 2px 7px;
  white-space: nowrap;
}

/* Matrix Tables di Setting (Departemen x Proyek & Nama Akun x Departemen) */
.settings-matrix-table tbody tr:nth-child(even) {
  background: #f8fafc;
}

.settings-matrix-table tbody tr:nth-child(odd) {
  background: #ffffff;
}

.settings-matrix-table tbody tr:hover {
  background: #eff6ff;
}

.settings-matrix-table th.sticky-col-1,
.settings-matrix-table td.sticky-col-1 {
  position: sticky;
  left: 0;
  width: 44px;
  min-width: 44px;
  max-width: 44px;
  z-index: 2;
}

.settings-matrix-table th.sticky-col-2,
.settings-matrix-table td.sticky-col-2 {
  position: sticky;
  left: 44px;
  z-index: 2;
  box-shadow: 2px 0 4px rgba(15, 23, 42, 0.06);
}

.settings-matrix-table td.sticky-col-1,
.settings-matrix-table td.sticky-col-2 {
  background: inherit;
}

.settings-matrix-table thead th.sticky-col-1,
.settings-matrix-table thead th.sticky-col-2 {
  z-index: 4;
  background: #1e3a8a;
}

.settings-matrix-chk {
  width: 17px;
  height: 17px;
  cursor: pointer;
  accent-color: #1d4ed8;
  vertical-align: middle;
}

.matrix-col-hdr-label {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
}

.matrix-col-hdr-label input[type="checkbox"] {
  width: 15px;
  height: 15px;
  cursor: pointer;
  accent-color: #38bdf8;
}

.matrix-col-sub {
  font-size: 0.65rem;
  font-weight: 600;
  color: #bfdbfe;
}

.matrix-hdr-del {
  background: rgba(255, 255, 255, 0.16);
  border: none;
  color: #fecaca;
  border-radius: 4px;
  font-size: 0.68rem;
  line-height: 1;
  padding: 1px 4px;
  cursor: pointer;
  margin-left: 3px;
}

.matrix-hdr-del:hover {
  background: #dc2626;
  color: #ffffff;
}

/* =========================================================
   HALAMAN COMPARE BIAYA KUESIONER VS FORECAST PENDAPATAN 2027
   ========================================================= */
.compare-hero {
  border-radius: 16px;
  padding: 22px 24px;
  color: #ffffff;
  background: linear-gradient(135deg, #065f46 0%, #059669 52%, #0d9488 100%);
  box-shadow: 0 12px 28px -8px rgba(5, 150, 105, 0.42);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
}

.compare-hero.is-loss {
  background: linear-gradient(135deg, #991b1b 0%, #dc2626 55%, #be123c 100%);
  box-shadow: 0 12px 28px -8px rgba(220, 38, 38, 0.42);
}

.compare-hero-left {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 280px;
  flex: 1.4;
}

.compare-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.38);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.compare-hero-net {
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  font-weight: 900;
  letter-spacing: -0.5px;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

.compare-hero-sub {
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.5;
}

.compare-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
}

.compare-hero .btn-glass {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(4px);
}

.compare-hero .btn-glass:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
}

.compare-hero .btn-white-solid {
  background: #ffffff;
  color: #0f172a;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.compare-hero .btn-white-solid:hover {
  background: #f8fafc;
  transform: translateY(-1px);
}

.compare-dropzone {
  border: 2px dashed #93c5fd;
  border-radius: 12px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 100%);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  transition: border-color 0.2s, background 0.2s;
}

.compare-dropzone.is-dragover {
  border-color: #2563eb;
  background: #dbeafe;
}

.compare-filter-panel {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.compare-filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: 12px;
  align-items: end;
}

.compare-filter-grid label {
  margin-bottom: 4px;
  font-size: 0.74rem;
}

.compare-sim-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px dashed #cbd5e1;
}

.compare-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.compare-kpi-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-top: 4px solid #1d4ed8;
  border-radius: 12px;
  padding: 15px 16px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.compare-kpi-card.is-rev { border-top-color: #0284c7; }
.compare-kpi-card.is-cost { border-top-color: #ea580c; }
.compare-kpi-card.is-profit { border-top-color: #059669; }
.compare-kpi-card.is-loss { border-top-color: #dc2626; }
.compare-kpi-card.is-margin { border-top-color: #7c3aed; }

.compare-kpi-title {
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #64748b;
  margin-bottom: 6px;
}

.compare-kpi-val {
  font-size: 1.38rem;
  font-weight: 900;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.compare-kpi-sub {
  margin-top: 6px;
  font-size: 0.78rem;
  color: #475569;
  line-height: 1.4;
}

.compare-insights-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.compare-insight-pill {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #1e3a8a;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.8rem;
}

.compare-insight-pill .lbl {
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
}

.compare-insight-pill .val {
  font-weight: 800;
  color: #0f172a;
  margin-top: 2px;
}

.compare-chart-wide {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  margin-bottom: 18px;
}

.compare-chart-wide .chart-canvas-wrap {
  height: 330px;
}

.badge-profit {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.73rem;
  font-weight: 800;
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
  white-space: nowrap;
}

.badge-loss {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.73rem;
  font-weight: 800;
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
  white-space: nowrap;
}

.badge-neutral {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.73rem;
  font-weight: 800;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
  white-space: nowrap;
}

.compare-pos { color: #047857; font-weight: 800; }
.compare-neg { color: #dc2626; font-weight: 800; }

.btn-rose {
  background: linear-gradient(135deg, #be123c 0%, #e11d48 100%);
  color: #ffffff;
  box-shadow: 0 3px 6px rgba(190, 18, 60, 0.28);
}
.btn-rose:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 5px 10px rgba(190, 18, 60, 0.36);
}

.site-map-manual-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 10px;
}

.site-map-select {
  width: 100%;
  min-width: 210px;
  padding: 6px 10px;
  font-size: 0.83rem;
  font-weight: 600;
  border-radius: 8px;
}

/* =========================================================
   FLOATING OVERLAY PEMBERITAHUAN KUESIONER DITUTUP
   ========================================================= */
body.kuesioner-closed-locked {
  overflow: hidden;
}

.kuesioner-closed-overlay {
  position: fixed;
  inset: 0;
  z-index: 9500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  overflow-y: auto;
  background: radial-gradient(circle at top center, rgba(127, 29, 29, 0.36), rgba(15, 23, 42, 0.8));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.kuesioner-closed-overlay[hidden] {
  display: none !important;
}

.kuesioner-closed-dialog {
  width: min(94vw, 840px);
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 36px 90px -12px rgba(15, 23, 42, 0.68), 0 0 0 1px rgba(255, 255, 255, 0.28);
  animation: kuesionerClosedPopIn 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes kuesionerClosedPopIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.kuesioner-closed-hero {
  background: linear-gradient(135deg, #7f1d1d 0%, #dc2626 52%, #b91c1c 100%);
  color: #ffffff;
  padding: 32px 32px 26px;
  text-align: center;
}

.kuesioner-closed-icon-wrap {
  width: 84px;
  height: 84px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  border: 2px solid rgba(255, 255, 255, 0.42);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  box-shadow: 0 12px 28px rgba(127, 29, 29, 0.45);
}

.kuesioner-closed-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 15px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.38);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.kuesioner-closed-title {
  margin: 0;
  font-size: clamp(1.45rem, 2.7vw, 2.1rem);
  font-weight: 800;
  line-height: 1.25;
  color: #ffffff;
  border: none;
  padding: 0;
}

.kuesioner-closed-body {
  padding: 28px 34px 30px;
  text-align: center;
  background: #ffffff;
}

.kuesioner-closed-msg-box {
  background: #fef2f2;
  border: 1.5px solid #fecaca;
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 16px;
}

.kuesioner-closed-msg {
  margin: 0;
  font-size: clamp(1.04rem, 1.5vw, 1.24rem);
  font-weight: 600;
  color: #1e293b;
  line-height: 1.65;
}

.kuesioner-closed-time {
  display: inline-block;
  margin: 0 0 22px 0;
  padding: 7px 16px;
  border-radius: 999px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #475569;
  font-size: 0.85rem;
  font-weight: 700;
}

.kuesioner-closed-time:empty {
  display: none;
}

.kuesioner-closed-admin-box {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid #cbd5e1;
  border-radius: 16px;
  padding: 20px 24px;
  text-align: left;
}

.kuesioner-closed-admin-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 6px;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .kuesioner-closed-hero {
    padding: 24px 18px 20px;
  }
  .kuesioner-closed-body {
    padding: 20px 18px 22px;
  }
  .kuesioner-closed-icon-wrap {
    width: 68px;
    height: 68px;
    font-size: 2.2rem;
  }
  .kuesioner-closed-admin-row > input {
    flex: 1 1 100% !important;
  }
}

/* Kolom input angka + simpan setting simulasi HPP di Compare */
.compare-sim-input-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  width: 100%;
}

.compare-sim-label {
  font-size: 0.84rem;
  font-weight: 800;
  color: #1e3a8a;
  margin: 0;
}

.compare-sim-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.compare-sim-number-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  padding: 2px 10px 2px 10px;
}

.compare-sim-number-wrap:focus-within {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.compare-sim-number-wrap input[type="text"],
.compare-sim-number-wrap input[type="number"] {
  width: 175px;
  border: none;
  background: transparent;
  padding: 5px 4px;
  font-size: 0.95rem;
  font-weight: 800;
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: #0f172a;
  box-shadow: none;
}

.compare-sim-number-wrap input[type="text"]:focus,
.compare-sim-number-wrap input[type="number"]:focus {
  outline: none;
  box-shadow: none;
}

.compare-sim-unit {
  font-size: 0.86rem;
  font-weight: 800;
  color: #475569;
}

.compare-sim-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
}

.compare-sim-badge.is-dirty {
  background: #fef3c7;
  color: #92400e;
  border-color: #fcd34d;
}
