:root {
  --bg: #f4f7fb;
  --panel: rgba(255, 255, 255, 0.96);
  --panel-soft: #f8fafc;
  --line: #d7e0ea;
  --text: #0f172a;
  --muted: #64748b;
  --accent: #0f766e;
  --accent-dark: #115e59;
  --accent-soft: #e6fffb;
  --warn: #fff7d6;
  --danger: #b91c1c;
  --danger-soft: #fef2f2;
  --shadow: 0 18px 45px rgba(15, 23, 42, .14);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
}
button, input, select, textarea { font: inherit; }
button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  padding: 7px 11px;
  cursor: pointer;
  font-weight: 700;
}
button.primary { border-color: var(--accent); background: var(--accent); color: #fff; }
button.primary:hover { background: var(--accent-dark); }
button.ghost { background: var(--accent-soft); border-color: #99f6e4; color: #0f766e; }
button.danger { background: var(--danger-soft); border-color: #fecaca; color: var(--danger); }
button:disabled { opacity: .52; cursor: not-allowed; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 9px;
  background: #fff;
  color: var(--text);
}
textarea { min-height: 78px; resize: vertical; }
input[type="checkbox"] {
  width: 16px;
  height: 16px;
  padding: 0;
  margin: 0;
  accent-color: var(--accent);
}
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 6px; font-size: 23px; }
h2 { margin-bottom: 8px; font-size: 18px; }
h3 { margin-bottom: 10px; font-size: 15px; }
pre {
  margin: 0;
  white-space: pre-wrap;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
}
.login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.login-box, .modal-box {
  width: min(520px, 100%);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  box-shadow: var(--shadow);
}
.app {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 100vh;
}
.sidebar {
  border-right: 1px solid var(--line);
  background: #fff;
  padding: 16px 10px;
}
.brand-title {
  font-size: 17px;
  line-height: 1.25;
  font-weight: 800;
  margin-bottom: 4px;
}
.muted { color: var(--muted); }
.small { font-size: 12px; }
.nav { display: grid; gap: 6px; margin-top: 18px; }
.nav button {
  text-align: left;
  border-color: transparent;
  border-radius: 6px;
}
.nav button.active {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: #99f6e4;
}
.main {
  padding: 18px 20px 84px;
  overflow: auto;
}
.topbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
}
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 12px;
}
.panel.tight { padding: 10px; }
.panel-title {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}
.grid { display: grid; gap: 10px; }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.price-layout {
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr;
  gap: 12px;
  align-items: start;
}
.model-list {
  display: grid;
  gap: 6px;
  max-height: 62vh;
  overflow: auto;
  padding-right: 3px;
}
.model-item {
  width: 100%;
  min-height: 48px;
  display: grid;
  gap: 3px;
  text-align: left;
  background: #fff;
}
.model-item span {
  color: var(--muted);
  font-size: 12px;
}
.status-badge {
  width: max-content;
  border-radius: 999px;
  padding: 3px 7px;
  font-size: 11px;
  font-weight: 800;
}
.status-badge.good { background: #dcfce7; color: #047857; }
.status-badge.warn { background: #fef3c7; color: #92400e; }
.status-badge.bad { background: #fee2e2; color: #b91c1c; }
.model-item.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-dark);
}
.master-list {
  display: grid;
  gap: 7px;
  margin-top: 12px;
}
.master-item {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  padding: 7px 8px;
}
.master-item .actions {
  flex-wrap: nowrap;
}
.master-item button {
  min-height: 30px;
  padding: 5px 9px;
}
.label {
  display: grid;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
}
.checkline {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-weight: 700;
  color: #334155;
}
.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 920px;
}
th, td {
  border-bottom: 1px solid var(--line);
  padding: 8px;
  text-align: left;
  vertical-align: top;
}
th {
  position: sticky;
  top: 0;
  background: #f8fafc;
  z-index: 1;
  font-size: 12px;
}
tbody tr:hover td { background: #fbfdff; }
tr.changed td { background: var(--warn); }
.footer {
  position: fixed;
  left: 220px;
  right: 0;
  bottom: 0;
  background: rgba(255,255,255,.97);
  border-top: 1px solid var(--line);
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}
.notice {
  border-radius: 7px;
  padding: 10px 12px;
  margin-bottom: 10px;
}
.notice.ok { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.notice.err { background: var(--danger-soft); color: var(--danger); border: 1px solid #fecaca; }
.empty {
  display: grid;
  place-items: center;
  min-height: 180px;
  padding: 20px;
  text-align: center;
  color: var(--muted);
}
.empty strong { color: var(--text); }
.list {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.pill {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: #e2e8f0;
  font-size: 11px;
  font-weight: 700;
}
.pill.good { background: #dcfce7; color: #047857; }
.pill.warn { background: #fef3c7; color: #92400e; }
.visibility-list {
  display: grid;
  gap: 8px;
  max-height: 48vh;
  overflow: auto;
  padding-right: 3px;
}
.visibility-category {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}
.visibility-category summary,
.visibility-target-group summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  padding: 9px 10px;
  background: #f8fafc;
  list-style: none;
}
.visibility-category summary::-webkit-details-marker,
.visibility-target-group summary::-webkit-details-marker {
  display: none;
}
.visibility-category summary::before,
.visibility-target-group summary::before {
  content: "+";
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--muted);
  font-weight: 800;
  flex: 0 0 auto;
}
.visibility-category[open] summary::before,
.visibility-target-group[open] summary::before {
  content: "-";
}
.visibility-category summary > span:first-of-type,
.visibility-target-group summary > span:first-of-type {
  display: grid;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.visibility-category summary small,
.visibility-target-group summary small {
  color: var(--muted);
  font-weight: 600;
}
.actions.mini {
  gap: 6px;
  flex: 0 0 auto;
}
.actions.mini button {
  padding: 6px 8px;
  font-size: 12px;
}
.visibility-rows {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 10px;
}
.visibility-row {
  justify-content: flex-start;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  padding: 7px 9px;
}
.visibility-targets {
  display: grid;
  gap: 8px;
  max-height: 48vh;
  overflow: auto;
  padding-right: 3px;
}
.visibility-target-group {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}
.visibility-target-rows {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 7px;
  padding: 10px;
}
.visibility-target-group .checkline {
  align-items: center;
  border: 1px solid #edf2f7;
  border-radius: 7px;
  padding: 7px 8px;
}
.visibility-target-row span {
  min-width: 0;
}
.modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .55);
  display: grid;
  place-items: center;
  padding: 24px;
  z-index: 20;
}
.modal-box { width: min(1040px, 100%); max-height: 86vh; overflow: auto; }
.modal-box.narrow { width: min(560px, 100%); }
.diff {
  display: grid;
  gap: 4px;
  font-size: 12px;
}
.diff b { color: var(--text); }
.diff .old { color: #92400e; }
.diff .new { color: #047857; }
.public-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px;
}
.public-hero {
  background: linear-gradient(135deg, #0f766e, #155e75);
  color: #fff;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 14px;
}
.public-hero .muted { color: #ccfbf1; }
.customer-result {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
}
.customer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  background: #f8fafc;
  border-bottom: 1px solid var(--line);
}
.customer-clickable {
  cursor: pointer;
}
.customer-clickable:hover {
  background: #eefdf8;
}
.customer-header h2 { margin: 2px 0 0; }
.selected-filter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid #99f6e4;
  border-radius: 8px;
  background: #f0fdfa;
  color: #0f766e;
}
.category-stack {
  display: grid;
  gap: 12px;
}
.price-category-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--panel);
}
.category-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  background: #f8fafc;
  border-bottom: 1px solid var(--line);
}
.customer-category-stack {
  display: grid;
  gap: 12px;
  padding: 12px;
}
.customer-category {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.customer-price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
  padding: 10px;
}
.customer-price-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}
.customer-price-name {
  font-weight: 800;
  margin-bottom: 10px;
}
.customer-price-values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.customer-price-values.single {
  grid-template-columns: 1fr;
}
.customer-price-values div {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px;
  background: #f8fafc;
}
.customer-price-values span,
.customer-price-meta {
  color: var(--muted);
  font-size: 12px;
}
.customer-price-values strong {
  display: block;
  margin-top: 4px;
}
.customer-price-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 10px;
}
.compact-table {
  border: 0;
  border-radius: 0;
}
.compact-table table {
  min-width: 680px;
}
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: sticky; top: 0; z-index: 5; }
  .nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer { left: 0; }
  .price-layout { grid-template-columns: 1fr; }
  .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; }
}

/* Desain gelap Kembar Group - 13 Juli 2026 */
:root {
  color-scheme: dark;
  --bg: #0a1220;
  --panel: #111b2b;
  --panel-soft: #152235;
  --line: #314158;
  --text: #f8fafc;
  --muted: #a8b5c7;
  --accent: #0f9488;
  --accent-dark: #0f766e;
  --accent-soft: #123a3a;
  --warn: #4a3508;
  --danger: #fda4af;
  --danger-soft: #451a24;
  --shadow: 0 18px 55px rgba(0, 0, 0, .34);
}

body {
  background:
    radial-gradient(circle at 76% 8%, rgba(20, 184, 166, .08), transparent 28rem),
    linear-gradient(145deg, #08111f, #0c1626 58%, #0a1321);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a { color: #5eead4; }
a:hover { color: #99f6e4; }
h1, h2, h3, strong { color: var(--text); }
h1 { letter-spacing: -.02em; }
.muted { color: var(--muted); }

button {
  border-color: var(--line);
  background: #111b2b;
  color: var(--text);
  box-shadow: 0 1px 1px rgba(0, 0, 0, .18);
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
button:hover:not(:disabled) {
  border-color: #4b607b;
  background: #19263a;
}
button:active:not(:disabled) { transform: translateY(1px); }
button.primary {
  border-color: #14b8a6;
  background: linear-gradient(135deg, #0f9488, #0f766e);
  color: #fff;
  box-shadow: 0 8px 22px rgba(15, 148, 136, .18);
}
button.primary:hover { background: linear-gradient(135deg, #14a99c, #0f8077); }
button.ghost {
  border-color: #1d7c75;
  background: #103431;
  color: #7ef1e4;
}
button.danger {
  border-color: #7f3140;
  background: var(--danger-soft);
  color: var(--danger);
}

input, select, textarea {
  border-color: var(--line);
  background: #0e1828;
  color: var(--text);
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
input::placeholder, textarea::placeholder { color: #7f8ea3; opacity: 1; }
input:focus, select:focus, textarea:focus {
  border-color: #14b8a6;
  box-shadow: 0 0 0 3px rgba(20, 184, 166, .12);
}
input:disabled, select:disabled, textarea:disabled {
  background: #111827;
  color: #7f8ea3;
}

.login {
  background:
    radial-gradient(circle at 50% 15%, rgba(20, 184, 166, .14), transparent 25rem),
    #08111f;
}
.login-box, .modal-box {
  background: rgba(17, 27, 43, .98);
  border-color: #354860;
  border-radius: 12px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .5);
}
.login-box { padding: 28px; }
.login-box::before {
  content: "KATALOG MANDIRI";
  display: inline-flex;
  margin-bottom: 10px;
  border-radius: 999px;
  background: #123a3a;
  padding: 5px 9px;
  color: #5eead4;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
}

.app { grid-template-columns: 286px minmax(0, 1fr); background: transparent; }
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  border-color: #29394f;
  background:
    linear-gradient(180deg, rgba(14, 25, 42, .98), rgba(12, 23, 39, .98)),
    #0e192a;
  padding: 20px 12px;
  box-shadow: 10px 0 35px rgba(0, 0, 0, .12);
}
.brand-title {
  padding: 2px 8px;
  color: #fff;
  font-size: 18px;
  letter-spacing: -.01em;
}
.sidebar > .muted {
  display: inline-flex;
  margin: 5px 8px 0;
  border-radius: 999px;
  background: #17243a;
  padding: 5px 9px;
  color: #91a4bc;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}
.nav { gap: 5px; margin-top: 24px; }
.nav button {
  min-height: 40px;
  border-color: transparent;
  background: transparent;
  padding: 10px 12px;
  color: #e2e8f0;
  font-size: 13px;
}
.nav button:hover:not(:disabled) {
  border-color: #2e435c;
  background: #17253a;
}
.nav button.active {
  border-color: rgba(45, 212, 191, .28);
  background: linear-gradient(90deg, rgba(15, 148, 136, .28), rgba(15, 118, 110, .16));
  color: #5eead4;
  box-shadow: inset 3px 0 #14b8a6;
}

.main {
  min-width: 0;
  padding: 22px 24px 92px;
  background: rgba(8, 17, 31, .42);
}
.topbar {
  align-items: center;
  margin: -22px -24px 18px;
  border-bottom: 1px solid #2d3d54;
  background: rgba(14, 25, 42, .88);
  padding: 16px 24px;
  backdrop-filter: blur(12px);
}
.topbar h1 { margin-bottom: 3px; }
.topbar p { margin-bottom: 0; }

.panel {
  border-color: var(--line);
  background: rgba(17, 27, 43, .94);
  border-radius: 9px;
  box-shadow: 0 9px 26px rgba(0, 0, 0, .1);
}
.panel.tight { background: #101a2a; }
.panel-title { min-height: 42px; }
.label { color: #c9d5e4; font-size: 11px; letter-spacing: .02em; }
.checkline { color: #d7e0eb; }

.price-layout { grid-template-columns: minmax(250px, 330px) minmax(0, 1fr); }
.model-list { max-height: calc(100vh - 310px); }
.model-item {
  border-color: #2f4057;
  background: #0f1a2b;
  color: #f8fafc;
}
.model-item span { color: #91a4bc; }
.model-item:hover:not(:disabled) { border-color: #3f5874; background: #17253a; }
.model-item.active {
  border-color: #14b8a6;
  background: linear-gradient(135deg, #123c3b, #112a34);
  color: #fff;
  box-shadow: inset 3px 0 #2dd4bf;
}

.status-badge.good { background: #083e32; color: #86efac; }
.status-badge.warn { background: #493609; color: #fde68a; }
.status-badge.bad { background: #4b1d27; color: #fda4af; }
.pill { background: #243248; color: #dbe7f5; }
.pill.good { background: #083e32; color: #86efac; }
.pill.warn { background: #493609; color: #fde68a; }

.master-item,
.visibility-category,
.visibility-target-group,
.visibility-row,
.visibility-target-group .checkline {
  border-color: #2f4057;
  background: #0f1a2b;
}
.visibility-category summary,
.visibility-target-group summary,
.category-title,
.customer-header {
  border-color: var(--line);
  background: #152235;
}
.visibility-category summary::before,
.visibility-target-group summary::before {
  border-color: #42556e;
  background: #0f1a2b;
  color: #cbd5e1;
}

.table-wrap {
  border-color: var(--line);
  background: #0e1828;
}
table { color: #eef2f7; }
th {
  background: #17243a;
  color: #cbd5e1;
  text-transform: uppercase;
  letter-spacing: .025em;
}
th, td { border-color: #2d3d54; }
tbody tr:hover td { background: #142136; }
tr.changed td { background: #453308; }
.price-category-panel {
  border-color: var(--line);
  background: #111b2b;
}

.footer {
  left: 286px;
  border-color: #314158;
  background: rgba(14, 24, 40, .96);
  box-shadow: 0 -12px 38px rgba(0, 0, 0, .24);
  backdrop-filter: blur(12px);
}
.notice.ok { border-color: #19796a; background: #0b3b33; color: #a7f3d0; }
.notice.err { border-color: #7f3140; background: #451a24; color: #fecdd3; }
.empty { color: #91a4bc; }
.empty strong { color: #f8fafc; }

.modal { background: rgba(2, 6, 23, .78); backdrop-filter: blur(5px); }
.diff b { color: #f8fafc; }
.diff .old { color: #fcd34d; }
.diff .new { color: #6ee7b7; }

.public-page {
  max-width: 1260px;
  padding: 28px 24px 52px;
}
.public-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(45, 212, 191, .28);
  border-radius: 14px;
  background:
    radial-gradient(circle at 88% 0%, rgba(94, 234, 212, .18), transparent 20rem),
    linear-gradient(135deg, #0f766e, #115e59 55%, #164e63);
  padding: 30px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .22);
}
.public-hero h1 { font-size: clamp(26px, 4vw, 38px); }
.public-hero .muted { color: #d4fffa; }
.selected-filter { border-color: #19796a; background: #103b39; color: #99f6e4; }
.customer-result,
.customer-category,
.customer-price-card {
  border-color: var(--line);
  background: #111b2b;
}
.customer-clickable:hover { background: #183036; }
.customer-price-values div { border-color: #304259; background: #0e1828; }
.customer-price-values span,
.customer-price-meta { color: #a8b5c7; }
.customer-price-values strong { color: #5eead4; }

.simple-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.flow-step {
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(17, 27, 43, .88);
  padding: 12px 14px;
}
.flow-step > span,
.section-number {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #0f766e;
  color: #fff;
  font-weight: 800;
}
.flow-step div { display: grid; gap: 2px; }
.flow-step small, .help-text { color: var(--muted); }
.bulk-section {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 14px;
  padding: 18px;
}
.section-content { min-width: 0; }
.section-content > .label { max-width: 720px; }
.help-text { margin: 7px 0 0; font-size: 12px; }
.bulk-fields { margin-top: 10px; }
.bulk-service-picker {
  display: grid;
  gap: 9px;
  max-height: 300px;
  margin-top: 12px;
  overflow-y: auto;
  padding-right: 4px;
}
.service-category {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #0e1828;
}
.service-option-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
  padding: 10px;
}
.service-option {
  min-width: 0;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 8px;
  font-size: 12px;
}
.service-option span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.service-option:has(input:checked) {
  border-color: #178b7e;
  background: #103b39;
  color: #99f6e4;
}
.bulk-field {
  border: 1px solid #2d4057;
  border-radius: 9px;
  background: #0e1828;
  padding: 11px;
}
.bulk-field:has(input[type="checkbox"]:checked) {
  border-color: #178b7e;
  background: #10302f;
}
.notice.compact { margin: 12px 0 0; padding: 9px 11px; }
.bulk-target-title { align-items: flex-start; }
.bulk-targets {
  display: grid;
  gap: 10px;
  max-height: 430px;
  margin-top: 12px;
  overflow-y: auto;
  padding-right: 4px;
}
.target-brand {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #0e1828;
}
.target-brand-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  background: #152235;
  padding: 9px 11px;
}
.target-brand-title button { padding: 6px 9px; font-size: 11px; }
.target-model-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
  padding: 10px;
}
.target-model-grid .checkline {
  min-width: 0;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 7px;
  font-size: 12px;
}
.target-model-grid .checkline:has(input:checked) {
  border-color: #178b7e;
  background: #103b39;
  color: #99f6e4;
}
.bulk-action {
  position: sticky;
  z-index: 4;
  bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid #28665f;
  border-radius: 11px;
  background: rgba(12, 29, 38, .97);
  padding: 12px 14px;
  box-shadow: 0 14px 35px rgba(0, 0, 0, .34);
  backdrop-filter: blur(12px);
}
.bulk-action div { display: grid; gap: 2px; }
.bulk-action span { color: var(--muted); font-size: 12px; }
.bulk-action button { min-width: 170px; }

.public-tip {
  display: inline-flex;
  margin-top: 18px;
  border: 1px solid rgba(153, 246, 228, .22);
  border-radius: 999px;
  background: rgba(5, 46, 45, .38);
  padding: 8px 12px;
  color: #d4fffa;
  font-size: 12px;
}
.public-search-label {
  display: block;
  margin-bottom: 8px;
  color: #e2e8f0;
  font-size: 13px;
  font-weight: 800;
}
.simple-price-card { padding: 0; }
.simple-price-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
}
.simple-price-main > div { display: grid; gap: 4px; }
.simple-price-main small { color: var(--muted); }
.simple-price-main > strong {
  color: #5eead4;
  font-size: 17px;
  white-space: nowrap;
}
.service-label { color: #f8fafc; font-weight: 800; }
.simple-price-secondary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  border-top: 1px solid #293a50;
  padding: 9px 14px;
}
.simple-price-secondary span,
.simple-price-card .customer-price-meta span {
  border-radius: 999px;
  background: #17263a;
  padding: 5px 8px;
  color: #cbd5e1;
  font-size: 11px;
}
.simple-price-card .customer-price-meta { padding: 0 14px 12px; }
.matrix-table { max-height: 520px; }
.matrix-table table { min-width: 1120px; }
.matrix-table th:first-child,
.matrix-table td:first-child { position: sticky; left: 0; z-index: 2; background: #111b2b; min-width: 180px; }
.matrix-table th:first-child { background: #17243a; }
.matrix-table input,
.matrix-table select { min-width: 125px; }
.adjust-targets { max-height: 300px; }
.adjust-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.adjust-fields .checkline,
.visibility-global {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0e1828;
  padding: 10px 12px;
}
.overwrite-policy {
  display: grid;
  max-width: 520px;
  margin-top: 14px;
  border: 1px solid #7c5c16;
  border-radius: 9px;
  background: #34270a;
  padding: 11px;
  color: #fde68a;
}
.batch-list { display: grid; gap: 9px; }
.batch-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #0e1828;
  padding: 12px;
}
.batch-card h3 { margin: 7px 0 3px; }
.batch-card p { margin: 0 0 4px; }
.batch-card small { color: #718198; }
.batch-card.rolled-back { opacity: .68; }
.price-comparison {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 5px;
}
.price-comparison del { color: #94a3b8; font-size: 11px; font-weight: 500; }
.price-comparison b { color: #5eead4; }
.price-comparison em {
  border-radius: 999px;
  background: #7f1d1d;
  padding: 2px 5px;
  color: #fecaca;
  font-size: 10px;
  font-style: normal;
}

.data-quality { margin-bottom: 14px; }
.data-quality.has-issues {
  border-color: rgba(245, 158, 11, .62);
  background: linear-gradient(135deg, rgba(120, 53, 15, .22), rgba(15, 23, 42, .96));
}
.quality-list { display: grid; gap: 8px; }
.quality-item {
  display: grid;
  grid-template-columns: minmax(180px, .45fr) 1fr;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(15, 23, 42, .72);
}
.quality-item span { color: var(--muted); }

.button-link {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 8px 13px;
  text-decoration: none;
  font-weight: 800;
}
.button-link.primary {
  border-color: #14b8a6;
  background: linear-gradient(135deg, #0f9488, #0f766e);
  color: #fff;
}
.import-layout { align-items: stretch; }
.import-layout > .panel { margin-bottom: 0; }
.import-file {
  display: grid;
  place-items: center;
  min-height: 128px;
  border: 1px dashed #49627f;
  border-radius: 10px;
  background: #0e1828;
  padding: 18px;
  text-align: center;
  cursor: pointer;
}
.import-file:hover { border-color: #14b8a6; background: #102331; }
.import-file input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.import-file span { margin-top: 5px; color: var(--muted); font-size: 12px; }
.import-rules { display: grid; gap: 8px; margin-top: 16px; color: var(--muted); }
.import-rules span { border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.wide { width: 100%; margin-top: 12px; }
.import-issues {
  display: grid;
  gap: 7px;
  margin-top: 14px;
  border: 1px solid #7f3140;
  border-radius: 10px;
  background: #341622;
  padding: 14px;
  color: #fecdd3;
}
.import-issues > div {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 10px;
  border-top: 1px solid rgba(253, 164, 175, .2);
  padding-top: 7px;
}
.import-issues span { font-weight: 800; color: #fda4af; }

@media (max-width: 1100px) {
  .app { grid-template-columns: 240px minmax(0, 1fr); }
  .footer { left: 240px; }
  .main { padding-inline: 16px; }
  .topbar { margin-inline: -16px; padding-inline: 16px; }
  .target-model-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .service-option-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .sidebar {
    position: relative;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer { left: 0; }
  .price-layout { grid-template-columns: 1fr; }
  .model-list { max-height: 320px; }
  .simple-flow { grid-template-columns: 1fr; }
  .target-model-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-option-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .main { padding: 14px 10px 104px; }
  .topbar { margin: -14px -10px 14px; padding: 14px 10px; align-items: flex-start; }
  .topbar .actions { width: 100%; }
  .topbar .actions button { flex: 1; }
  .nav { grid-template-columns: 1fr 1fr; }
  .footer { align-items: stretch; gap: 8px; flex-direction: column; padding: 9px 10px; }
  .footer .actions { display: grid; grid-template-columns: 1fr 1fr; }
  .public-page { padding: 14px 10px 34px; }
  .public-hero { padding: 22px 18px; }
  .customer-price-values { grid-template-columns: 1fr; }
  .bulk-section { grid-template-columns: 1fr; padding: 14px; }
  .section-number { width: 26px; height: 26px; }
  .bulk-target-title, .bulk-action { align-items: stretch; flex-direction: column; }
  .bulk-target-title .actions { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .bulk-action button { width: 100%; }
  .target-model-grid { grid-template-columns: 1fr; }
  .service-option-grid { grid-template-columns: 1fr; }
  .public-tip { border-radius: 10px; }
  .simple-price-main { align-items: flex-start; }
  .quality-item { grid-template-columns: 1fr; }
  .import-issues > div { grid-template-columns: 1fr; gap: 3px; }
}

/* Penyederhanaan alur, panel buka/tutup, dan Reset/Hapus Massal */
.nav-group-label {
  margin: 12px 8px 3px;
  color: #7f93ad;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
}
.collapsible-panel > summary {
  cursor: pointer;
  list-style: none;
}
.collapsible-panel > summary::-webkit-details-marker { display: none; }
.collapsible-summary::before {
  content: "+";
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #0e1828;
  color: #9fb0c5;
  font-weight: 900;
}
.collapsible-panel[open] > .collapsible-summary::before { content: "−"; }
.collapsible-summary > div:first-of-type { flex: 1; min-width: 0; }
.collapse-hint { margin-left: auto; color: var(--muted); font-size: 11px; }
.price-category-panel:not([open]) .category-title { border-bottom: 0; }
.choice-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0e1828;
  padding: 12px;
  cursor: pointer;
}
.choice-card:has(input:checked) {
  border-color: #178b7e;
  background: #103b39;
  color: #ccfbf1;
}
.choice-card input { width: 17px; height: 17px; margin-top: 2px; flex: 0 0 auto; }
.choice-card span { display: grid; gap: 4px; }
.choice-card small { color: var(--muted); line-height: 1.4; }
.reset-action-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.reset-fields { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 14px; }
.compact-choice { align-items: center; padding: 10px; }
.reset-warning { border-width: 2px; }
.danger-action { border-color: #7f3140; background: rgba(69, 26, 36, .96); }
.danger-action button.danger { min-width: 220px; }
@media (max-width: 900px) {
  .reset-action-grid { grid-template-columns: 1fr; }
  .danger-action button.danger { width: 100%; min-width: 0; }
}
/* MENU SEDERHANA V2 â€” KELOMPOK HARGA MASSAL DAN DATA KATALOG */
.nav-simple {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}
.nav-section {
  overflow: hidden;
  border: 1px solid #273a52;
  border-radius: 8px;
  background: rgba(10, 20, 35, .42);
}
.nav-section > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 40px;
  cursor: pointer;
  list-style: none;
  padding: 9px 11px;
  color: #e2e8f0;
  font-weight: 800;
}
.nav-section > summary::-webkit-details-marker { display: none; }
.nav-section > summary::after {
  content: "+";
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  border: 1px solid #3a4d66;
  border-radius: 6px;
  color: #9fb0c5;
  font-size: 13px;
}
.nav-section[open] > summary::after { content: "âˆ’"; }
.nav-section > summary:hover { background: #17253a; }
.nav-section > summary span { min-width: 0; }
.nav-section > summary small {
  margin-left: auto;
  color: #7f93ad;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}
.nav-submenu {
  display: grid;
  gap: 3px;
  border-top: 1px solid #273a52;
  padding: 5px;
}
.nav-submenu button {
  min-height: 35px;
  padding: 8px 10px 8px 24px;
  font-size: 12px;
}
.nav-submenu button::before {
  content: "â€¢";
  margin-right: 8px;
  color: #64748b;
}
.nav-submenu button.active::before { color: #5eead4; }
.edit-type-actions { justify-content: flex-end; }
@media (max-width: 900px) {
  .nav-simple { grid-template-columns: 1fr; }
  .nav-section { grid-column: 1 / -1; }
  .edit-type-actions { width: 100%; }
  .edit-type-actions button { flex: 1 1 180px; }
}
