/* ==========================================================================
   Rapor Toko — design system
   Register: product (monitor / compare)
   Direction: quiet ledger. Warm neutral canvas, ink-green chrome, one teal
   action color, hairline structure, tabular numbers.
   ========================================================================== */

:root {
  /* surfaces */
  --bg: #f8faf9;
  --surface: #ffffff;
  --surface-2: #fbfcfb;
  --surface-3: #f1f5f4;
  --ink: #0f172a;
  --ink-2: #475569;
  --ink-3: #64748b;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;

  /* action */
  --accent: #0b6e5f;
  --accent-600: #09564b;
  --accent-700: #08483f;
  --accent-soft: #e6f3ef;
  --accent-ink: #08483f;

  /* state */
  --success: #157f4c;
  --success-soft: #e9f6ee;
  --warn: #a4690f;
  --warn-soft: #fbf2e2;
  --danger: #b3362f;
  --danger-soft: #fbecea;
  --violet: #6b4fa3;
  --violet-soft: #f1edfa;

  /* chrome */
  --sidebar: #0e1a17;
  --sidebar-2: #16241f;
  --sidebar-line: #22322c;
  --sidebar-ink: #cbd6d1;
  --sidebar-mute: #7d8e87;

  /* shape */
  --r-xs: 6px;
  --r-sm: 8px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-pill: 999px;

  /* depth: border leads, shadow whispers */
  --shadow-xs: 0 1px 2px rgba(20, 32, 29, 0.05);
  --shadow-sm: 0 1px 2px rgba(20, 32, 29, 0.05), 0 6px 16px -12px rgba(20, 32, 29, 0.18);
  --shadow-pop: 0 24px 60px -20px rgba(20, 32, 29, 0.35), 0 2px 8px rgba(20, 32, 29, 0.06);

  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Cascadia Mono", "Consolas", "SFMono-Regular", ui-monospace, monospace;
  --sidebar-w: 232px;
  --topbar-h: 64px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-variant-numeric: tabular-nums;
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 650;
  letter-spacing: -0.011em;
  line-height: 1.25;
}

p {
  margin: 0;
}

a {
  color: var(--accent-ink);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

::selection {
  background: var(--accent-soft);
  color: var(--accent-ink);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* --------------------------------------------------------------------------
   Shell
   -------------------------------------------------------------------------- */

.aplikasi {
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px 14px 16px;
  background:
    radial-gradient(120% 60% at 0% 0%, rgba(20, 184, 166, 0.09), transparent 60%),
    var(--sidebar);
  color: var(--sidebar-ink);
  overflow-y: auto;
  border-inline-end: 1px solid #0a1411;
}

.merek {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 2px 8px 0;
}

.merek-logo {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: linear-gradient(150deg, #0f766e, #14b8a6);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18), 0 2px 6px rgba(0, 0, 0, 0.25);
  color: #fff;
}

.merek-logo svg {
  width: 19px;
  height: 19px;
}

.merek-teks {
  color: #fff;
  font-size: 13.5px;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.merek-teks small {
  display: block;
  margin-top: 2px;
  color: var(--sidebar-mute);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.nav-grup {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-label {
  padding: 10px 11px 5px;
  color: var(--sidebar-mute);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 11px;
  border: 0;
  border-radius: var(--r-sm);
  background: none;
  color: var(--sidebar-ink);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  text-align: start;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}

.nav-item svg {
  width: 17px;
  height: 17px;
  flex: none;
  opacity: 0.72;
  transition: opacity 0.12s ease;
}

.nav-item:hover {
  background: var(--sidebar-2);
  color: #fff;
  text-decoration: none;
}

.nav-item:hover svg {
  opacity: 1;
}

.nav-item.aktif {
  background: #13332c;
  color: #fff;
  font-weight: 600;
  box-shadow: inset 2px 0 0 #2dd4bf;
}

.nav-item.aktif svg {
  opacity: 1;
  color: #5eead4;
}

.nav-item.nav-terkunci { opacity: .72; }
.nav-item.nav-terkunci:hover { opacity: 1; }
.nav-kunci {
  margin-left: auto;
  font-size: 9px;
  padding: 1px 6px;
}

.sidebar-kaki {
  margin-top: auto;
  padding: 12px 11px 0;
  border-top: 1px solid var(--sidebar-line);
  color: var(--sidebar-mute);
  font-size: 10.5px;
  line-height: 1.5;
}

.utama {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: var(--topbar-h);
  padding: 10px 28px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.topbar-judul {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.topbar-judul h1 {
  font-size: 19px;
  font-weight: 680;
  letter-spacing: -0.02em;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar-judul > small {
  color: var(--ink-3);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.status-data {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  margin-top: 3px;
  color: var(--ink-3);
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.status-data > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
}

.status-data strong {
  color: var(--ink-2);
  font-weight: 650;
}

.status-data .titik {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(21, 127, 76, 0.12);
}

.status-data.kosong .titik {
  background: var(--ink-3);
  box-shadow: 0 0 0 3px rgba(132, 145, 139, 0.14);
}

.topbar-aksi {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.pengguna {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 3px 4px 3px 3px;
  border-radius: var(--r-pill);
  font-size: 12.5px;
  color: var(--ink-2);
}

.avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 11.5px;
  font-weight: 700;
}

.isi {
  width: 100%;
  max-width: 1620px;
  margin-inline: auto;
  padding: 22px 28px 64px;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.tombol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--ink);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease, box-shadow 0.12s ease;
}

.tombol:hover {
  background: var(--surface-2);
  border-color: var(--border-strong);
  text-decoration: none;
}

.tombol:active {
  background: var(--surface-3);
}

.tombol:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.tombol-utama {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 1px 2px rgba(9, 86, 79, 0.24);
}

.tombol-utama:hover {
  background: var(--accent-600);
  border-color: var(--accent-600);
}

.tombol-bahaya {
  background: var(--danger);
  border-color: var(--danger);
  color: #fff;
}

.tombol-bahaya:hover {
  background: #9c2d27;
  border-color: #9c2d27;
}

.tombol-kecil {
  min-height: 30px;
  padding: 4px 10px;
  font-size: 12px;
  border-radius: var(--r-xs);
}

.tombol-mini {
  min-height: 24px;
  padding: 2px 8px;
  font-size: 11.5px;
  border-radius: var(--r-xs);
  font-weight: 600;
}

.tombol-tautan {
  border: 0;
  background: none;
  padding: 3px 5px;
  color: var(--accent-ink);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 5px;
}

.tombol-tautan:hover {
  background: var(--accent-soft);
}

.tombol-tautan.bahaya {
  color: var(--danger);
}

.tombol-tautan.bahaya:hover {
  background: var(--danger-soft);
}

.tombol-menu {
  display: none;
  min-width: 34px;
  padding: 6px 8px;
}

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */

input,
select,
textarea,
button {
  font-family: inherit;
  font-size: 12.5px;
  color: var(--ink);
}

input[type="text"],
input[type="password"],
input[type="date"],
input[type="number"],
input[type="search"],
select,
textarea {
  width: 100%;
  min-width: 0;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--ink);
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

select {
  padding-inline-end: 26px;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%),
    linear-gradient(135deg, var(--ink-3) 50%, transparent 50%);
  background-position: calc(100% - 14px) 14px, calc(100% - 9px) 14px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  appearance: none;
}

textarea {
  min-height: 74px;
  resize: vertical;
  line-height: 1.5;
}

input:hover,
select:hover,
textarea:hover {
  border-color: #bfc6b9;
}

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

input::placeholder,
textarea::placeholder {
  color: var(--ink-3);
  opacity: 1;
}

input[type="date"] {
  min-width: 138px;
}

input[type="file"] {
  font-size: 12px;
}

input[type="color"] {
  padding: 2px;
  min-height: 32px;
}

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

.form-grup {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.form-grup label {
  color: var(--ink-2);
  font-size: 11.5px;
  font-weight: 650;
}

.form-grup small {
  color: var(--ink-3);
  font-size: 11px;
  line-height: 1.45;
}

/* --------------------------------------------------------------------------
   Extraction controls
   -------------------------------------------------------------------------- */

.segmen {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface-3);
}

.segmen button {
  border: 0;
  padding: 4px 10px;
  border-radius: 5px;
  background: none;
  color: var(--ink-2);
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 550;
  cursor: pointer;
  white-space: nowrap;
}

.segmen button:hover {
  color: var(--ink);
}

.segmen button.aktif {
  background: var(--surface);
  color: var(--ink);
  font-weight: 650;
  box-shadow: 0 1px 2px rgba(20, 32, 29, 0.14);
}

.segmen.utama button.aktif {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 1px 2px rgba(9, 86, 79, 0.3);
}

.tab {
  display: flex;
  gap: 4px;
  padding: 0 8px;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  overflow-y: hidden;
}

.tab button {
  position: relative;
  border: 0;
  background: none;
  padding: 12px 12px 11px;
  margin-bottom: -1px;
  border-bottom: 2px solid transparent;
  color: var(--ink-3);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

.tab button:hover {
  color: var(--ink);
}

.tab button.aktif {
  color: var(--accent-ink);
  border-bottom-color: var(--accent);
}

/* --------------------------------------------------------------------------
   Cards and sections
   -------------------------------------------------------------------------- */

.kartu {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xs);
  min-width: 0;
}

.kartu-isi {
  padding: 16px 20px;
}

.kartu-judul {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
}

.kartu-judul h2 {
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.kartu-judul small {
  display: block;
  margin-top: 2px;
  color: var(--ink-3);
  font-size: 11.5px;
  font-weight: 400;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 16px;
}

.grid-analisis {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr);
  gap: 16px;
  align-items: start;
}

.grid-kategori {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 16px;
}

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

.kpi {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-xs);
}

.kpi-label {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  min-height: 2.4em;
  color: var(--ink-3);
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  line-height: 1.35;
}

.kpi-nilai {
  font-size: 23px;
  font-weight: 680;
  letter-spacing: -0.025em;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kpi-kaki {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  color: var(--ink-3);
  font-size: 11.5px;
}

/* --------------------------------------------------------------------------
   Toolbar (filters)
   -------------------------------------------------------------------------- */

.filter {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 14px;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xs);
}

.filter-grup {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.filter-grup > label,
.filter-label {
  color: var(--ink-3);
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.filter-spacer {
  flex: 1;
}

/* --------------------------------------------------------------------------
   Tables
   -------------------------------------------------------------------------- */

.table-wrap {
  max-width: 100%;
  overflow: auto;
  border-radius: 0 0 var(--r-lg) var(--r-lg);
  scrollbar-width: thin;
  scrollbar-color: #c7cec1 transparent;
}

.table-wrap.tinggi {
  max-height: calc(100vh - 310px);
}

.table-wrap::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.table-wrap::-webkit-scrollbar-thumb {
  background: #cfd5c8;
  border: 3px solid var(--surface);
  border-radius: 99px;
}

.table-wrap::-webkit-scrollbar-thumb:hover {
  background: #b9c1b2;
}

table.tabel {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 12.5px;
  white-space: nowrap;
}

table.tabel th,
table.tabel td {
  padding: 9px 12px;
  border-bottom: 1px solid #eef0e8;
  text-align: start;
  vertical-align: middle;
}

table.tabel thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--surface-2);
  color: var(--ink-3);
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border-strong);
}

table.tabel thead tr:nth-child(2) th {
  top: 34px;
}

table.tabel thead th.grup {
  text-align: center;
  border-inline-start: 1px solid var(--border);
}

table.tabel thead th.grup:first-child {
  border-inline-start: 0;
}

table.tabel tbody tr {
  transition: background 0.1s ease;
}

table.tabel tbody tr:hover td {
  background: #f7faf6;
}

table.tabel tbody tr.baris-disorot td {
  background: #eef8f5;
  box-shadow: inset 0 1px 0 #bcd8d1, inset 0 -1px 0 #bcd8d1;
}
table.tabel tbody tr.baris-disorot td:first-child {
  box-shadow: inset 2px 0 0 #0b6e5f, inset 0 1px 0 #bcd8d1, inset 0 -1px 0 #bcd8d1;
}

table.tabel tbody tr:last-child td {
  border-bottom: 0;
}

table.tabel td.angka,
table.tabel th.angka {
  text-align: end;
  font-variant-numeric: tabular-nums;
}

table.tabel tbody td.angka {
  color: var(--ink);
}

table.tabel tfoot td {
  position: sticky;
  bottom: 0;
  z-index: 1;
  background: var(--surface-2);
  border-top: 1px solid var(--border-strong);
  border-bottom: 0;
  font-weight: 650;
  color: var(--ink);
}

table.tabel th.sortabel {
  cursor: pointer;
  user-select: none;
}

table.tabel th.sortabel:hover {
  color: var(--accent-ink);
}

table.tabel th.sortabel.terpilih {
  color: var(--accent-ink);
}

table.tabel th.sortabel.terpilih::after {
  content: "▲";
  margin-inline-start: 4px;
  font-size: 8px;
  vertical-align: 1px;
}

table.tabel th.sortabel.terpilih.turun::after {
  content: "▼";
}

td.nama-produk {
  max-width: 270px;
  overflow: hidden;
  text-overflow: ellipsis;
}

td.kolom-sticky,
th.kolom-sticky {
  position: sticky;
  inset-inline-start: 0;
  z-index: 1;
  background: var(--surface);
}

th.kolom-sticky {
  z-index: 3;
  background: var(--surface-2);
}

table.tabel tbody tr:hover td.kolom-sticky {
  background: #f7faf6;
}

/* Kolom aksi menempel di kanan supaya tombol Edit/Biaya/Hapus selalu terlihat. */
td.kolom-aksi,
th.kolom-aksi {
  position: sticky;
  inset-inline-end: 0;
  z-index: 2;
  background: var(--surface);
  box-shadow: -8px 0 12px -10px rgba(20, 32, 29, 0.45);
}

th.kolom-aksi {
  z-index: 3;
  background: var(--surface-2);
}

table.tabel tbody tr:hover td.kolom-aksi {
  background: #f7faf6;
}

table.tabel tbody tr.baris-produk {
  cursor: pointer;
}

.baris-baru td {
  background: #fffdf3 !important;
}

/* --------------------------------------------------------------------------
   Badges, deltas, text
   -------------------------------------------------------------------------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 7px;
  border-radius: var(--r-xs);
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.badge-dot {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
}

.badge-abu {
  background: var(--surface-3);
  color: var(--ink-2);
}

.badge-biru {
  background: var(--accent-soft);
  color: var(--accent-ink);
}

.badge-hijau {
  background: var(--success-soft);
  color: var(--success);
}

.badge-merah {
  background: var(--danger-soft);
  color: var(--danger);
}

.badge-kuning {
  background: var(--warn-soft);
  color: var(--warn);
}

.delta {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 11.5px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.delta.naik {
  color: var(--success);
}

.delta.turun {
  color: var(--danger);
}

.delta.datar {
  color: var(--ink-3);
}

.teks-2 {
  color: var(--ink-2);
}

.teks-3 {
  color: var(--ink-3);
}

.teks-kecil {
  font-size: 11.5px;
}

.teks-tengah {
  text-align: center;
}

.kini {
  font-weight: 650;
}

.mono-num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.01em;
  color: var(--ink-2);
}

/* --------------------------------------------------------------------------
   Charts
   -------------------------------------------------------------------------- */

.grafik {
  position: relative;
  height: 300px;
  padding: 2px 0;
}

.grafik.pendek {
  height: 240px;
}

/* --------------------------------------------------------------------------
   Checks (daily summary)
   -------------------------------------------------------------------------- */

.pemeriksaan {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.periksa {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface-2);
}

.periksa-ikon {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
}

.periksa.ok .periksa-ikon {
  background: var(--success-soft);
  color: var(--success);
}

.periksa.gagal .periksa-ikon {
  background: var(--danger-soft);
  color: var(--danger);
}

.periksa-teks {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
  min-width: 0;
}

.periksa-teks strong {
  font-size: 12.5px;
  font-weight: 650;
}

.periksa-teks small {
  color: var(--ink-3);
  font-size: 11px;
}

/* --------------------------------------------------------------------------
   Modal
   -------------------------------------------------------------------------- */

.tirai {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(14, 26, 23, 0.48);
  backdrop-filter: blur(2px);
  animation: tirai-masuk 0.14s ease-out;
}

.modal {
  display: flex;
  flex-direction: column;
  width: min(560px, 100%);
  max-height: 90vh;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-pop);
  animation: modal-masuk 0.18s cubic-bezier(0.22, 1, 0.36, 1);
}

.modal.lebar {
  width: min(1080px, 100%);
}

.modal-kepala {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.modal-kepala h2 {
  font-size: 15px;
  font-weight: 650;
}

.modal-isi {
  padding: 18px 20px;
  overflow: auto;
}

.modal-kaki {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 13px 20px;
  border-top: 1px solid var(--border);
  background: var(--surface-2);
  border-radius: 0 0 var(--r-lg) var(--r-lg);
}

.tutup {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: var(--r-xs);
  background: none;
  color: var(--ink-3);
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
}

.tutup:hover {
  background: var(--surface-3);
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   Toast
   -------------------------------------------------------------------------- */

.toast-wadah {
  position: fixed;
  inset-block-end: 22px;
  inset-inline-end: 22px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  max-width: 380px;
  padding: 11px 15px;
  border-radius: var(--r-sm);
  background: var(--sidebar);
  color: #f4f7f5;
  font-size: 12.5px;
  font-weight: 500;
  box-shadow: var(--shadow-pop);
  animation: toast-masuk 0.16s cubic-bezier(0.22, 1, 0.36, 1);
}

.toast.sukses {
  background: #0f5b3a;
}

.toast.gagal {
  background: #8f2a24;
}

/* --------------------------------------------------------------------------
   Notices, stats, misc
   -------------------------------------------------------------------------- */

.pita {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface-2);
  color: var(--ink-2);
  font-size: 12.5px;
  line-height: 1.45;
}

.pita.info {
  background: var(--accent-soft);
  border-color: #c9e6e0;
  color: var(--accent-ink);
}

.pita.bahaya {
  background: var(--danger-soft);
  border-color: #f0cbc7;
  color: #8f2a24;
}

.pita.sukses {
  background: var(--success-soft);
  border-color: #c8e8d4;
  color: #0f5b3a;
}

.pita.kuning {
  background: var(--warn-soft);
  border-color: #f0ddba;
  color: #7d4f0c;
}

.info-baris {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  color: var(--ink-2);
  font-size: 12px;
}

.info-baris strong {
  color: var(--ink);
  font-weight: 650;
}

.statistik-baris {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.statistik {
  min-width: 116px;
  padding: 9px 12px;
  border: 0;
  border-radius: var(--r-sm);
  background: var(--surface-2);
}

.statistik small {
  display: block;
  color: var(--ink-3);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  line-height: 1.35;
}

.statistik strong {
  display: block;
  margin-top: 2px;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

.statistik span {
  display: block;
  margin-top: 2px;
  color: var(--ink-3);
  font-size: 11px;
}

.daftar-status {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.judul-bagian {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.judul-bagian h2 {
  font-size: 15px;
}

.judul-bagian small {
  color: var(--ink-3);
  font-size: 11.5px;
  font-weight: 400;
}

.kosong {
  padding: 52px 20px;
  text-align: center;
  color: var(--ink-3);
  font-size: 12.5px;
  line-height: 1.5;
}

.kosong strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 650;
}

.memuat {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 44px 20px;
  color: var(--ink-3);
  font-size: 12.5px;
}

.memuat::before {
  content: "";
  width: 14px;
  height: 14px;
  border: 2px solid var(--border-strong);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: putar 0.7s linear infinite;
}

.paginasi {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 18px;
  border-top: 1px solid var(--border);
  color: var(--ink-2);
  font-size: 12px;
}

.unduhan {
  padding: 26px 20px;
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--r-md);
  background: var(--surface-2);
  color: var(--ink-2);
  text-align: center;
  transition: border-color 0.12s ease, background 0.12s ease;
}

.unduhan-ikon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin: 0 auto 10px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-ink);
}

.unduhan-ikon svg {
  width: 21px;
  height: 21px;
}

.unduhan.aktif {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.unduhan strong {
  display: block;
  margin-bottom: 3px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
}

.klik {
  cursor: pointer;
}

.tabel-masalah {
  font-size: 12px;
  white-space: normal;
}

.tabel-masalah td {
  vertical-align: top;
}

.rincian-alasan {
  margin: 0;
  padding-inline-start: 16px;
  color: var(--ink-2);
}

.tautan-produk {
  white-space: nowrap;
  text-decoration: none;
}

.bar-share {
  min-width: 54px;
  height: 5px;
  border-radius: 3px;
  background: var(--surface-3);
  overflow: hidden;
}

.bar-share > span {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: var(--accent);
}

/* Kontainer tombol di dalam sel aksi.
   Penting: flex TIDAK boleh dipasang langsung pada <td>, karena sel flex tidak ikut
   setinggi baris sehingga latar putih kolom sticky hanya menutup sebagian (terlihat
   "lebih kecil" dari kolom di kirinya). Jadi flex dipasang pada <div> di dalamnya. */
.aksi-baris {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}

/* Sel aksi: jaga lebar minimum agar ketiga tombol tidak terpotong. */
td.kolom-aksi {
  min-width: 150px;
}

/**
 * Kolom angka ringkas (mis. HPP "Rp 60.000") pada tabel Master Produk.
 * Tanpa ini kolomnya menyusut sampai terpotong ("Rp 60.00…") karena tabel
 * memaksa semuanya masuk satu layar. Lebar dinaikkan karena "Rp 1.234.567"
 * butuh ruang lebih.
 */
td.kolom-angka,
th.kolom-angka {
  min-width: 118px;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Login
   -------------------------------------------------------------------------- */

.login-latar {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  min-height: 100vh;
  background: var(--bg);
}

.login-brand {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 36px;
  padding: 44px 48px;
  overflow: hidden;
  background:
    radial-gradient(90% 70% at 10% 0%, rgba(20, 184, 166, 0.22), transparent 55%),
    radial-gradient(80% 60% at 90% 100%, rgba(45, 212, 191, 0.12), transparent 60%),
    var(--sidebar);
  color: #eaf3ef;
}

.login-brand::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(80% 60% at 40% 30%, #000, transparent 75%);
  pointer-events: none;
}

.brand-lockup {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  gap: 11px;
}

.brand-teks {
  min-width: 0;
}

.merek-tagline {
  max-width: 360px;
  margin: 6px 0 0;
  color: #9fb2ab;
  font-size: 12px;
  line-height: 1.5;
}

.brand-lockup .merek-logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  margin-top: 1px;
}

.brand-lockup .merek-logo svg {
  width: 21px;
  height: 21px;
}

.brand-lockup .merek-teks {
  font-size: 15px;
}

.login-hero {
  position: relative;
  z-index: 1;
  max-width: 520px;
}

.login-hero h1 {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -0.03em;
  text-wrap: balance;
  color: #fff;
}

.login-hero p {
  margin-top: 14px;
  max-width: 44ch;
  color: #a9bab4;
  font-size: 14px;
  line-height: 1.6;
  text-wrap: pretty;
}

.login-poin {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.login-poin li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: #d5e0dc;
  font-size: 13px;
  line-height: 1.45;
}

.login-poin svg {
  width: 16px;
  height: 16px;
  flex: none;
  margin-top: 2px;
  color: #5eead4;
}

.login-mock {
  position: relative;
  z-index: 1;
  width: min(430px, 100%);
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(6px);
}

.login-mock-aktif {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  color: #9fb2ab;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 650;
}

.login-mock-aktif .badge {
  background: rgba(94, 234, 212, 0.14);
  color: #99f6e4;
}

.login-mock-baris {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.login-mock-baris small {
  display: block;
  color: #8fa39c;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 650;
}

.login-mock-baris strong {
  display: block;
  margin-top: 3px;
  color: #fff;
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.login-mock-baris em {
  display: block;
  margin-top: 1px;
  font-style: normal;
  font-size: 11px;
  color: #5eead4;
}

.login-form-wrap {
  display: grid;
  place-items: center;
  padding: 32px 24px;
}

.login-kartu {
  width: min(392px, 100%);
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.login-kartu h1 {
  font-size: 21px;
  font-weight: 680;
  letter-spacing: -0.025em;
}

.login-kartu > p {
  margin: 6px 0 24px;
  color: var(--ink-3);
  font-size: 12.5px;
  line-height: 1.5;
}

.login-kartu .form-grup {
  margin-bottom: 14px;
}

.login-kartu .tombol {
  width: 100%;
  min-height: 38px;
  font-size: 13px;
}

.login-galat {
  display: none;
  margin-bottom: 14px;
  padding: 9px 12px;
  border: 1px solid #f0cbc7;
  border-radius: var(--r-sm);
  background: var(--danger-soft);
  color: #8f2a24;
  font-size: 12.5px;
}

.login-galat.tampil {
  display: block;
}

.login-kaki {
  margin-top: 18px;
  color: var(--ink-3);
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
}

.login-copyright {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  color: var(--ink-3);
  font-size: 10.5px;
  text-align: center;
}

.login-kartu-merek {
  display: none;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.login-kartu-merek strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
}

.login-kartu-merek span {
  display: block;
  margin-top: 2px;
  color: var(--ink-3);
  font-size: 11.5px;
  line-height: 1.45;
}

.footer-app {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 16px;
  padding: 2px 28px 22px;
  color: var(--ink-3);
  font-size: 11px;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (min-width: 1620px) {
  .grid-kpi {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }
}

@media (max-width: 1240px) {
  .grid-kpi {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  .grid-analisis,
  .grid-kategori {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1000px) {
  .aplikasi {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    inset-block: 0;
    inset-inline-start: 0;
    z-index: 90;
    width: 244px;
    height: 100vh;
    transform: translateX(-100%);
    transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: none;
  }

  .sidebar.terbuka {
    transform: translateX(0);
    box-shadow: 0 0 0 100vmax rgba(14, 26, 23, 0.42);
  }

  .tombol-menu {
    display: inline-flex;
  }

  .topbar {
    padding: 8px 16px;
  }

  .isi {
    padding: 16px 16px 48px;
  }

  .login-latar {
    grid-template-columns: 1fr;
  }

  .login-brand {
    display: none;
  }

  .login-form-wrap {
    min-height: 100vh;
    background:
      radial-gradient(80% 50% at 50% 0%, rgba(20, 184, 166, 0.12), transparent 60%),
      var(--bg);
  }

  .login-kartu-merek {
    display: flex;
  }

  .footer-app {
    padding: 2px 16px 20px;
  }
}

@media (max-width: 720px) {
  .grid-kpi {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .kpi {
    padding: 12px;
  }

  .kpi-nilai {
    font-size: 19px;
  }

  .kpi-label {
    min-height: 2.5em;
    font-size: 10px;
  }

  .filter {
    gap: 10px;
    padding: 12px;
  }

  .filter-grup {
    flex: 1 1 140px;
  }

  .kartu-judul {
    flex-wrap: wrap;
    padding: 12px 14px;
  }

  .kartu-isi {
    padding: 14px;
  }

  .pengguna span.nama {
    display: none;
  }

  .topbar-judul h1 {
    font-size: 17px;
  }

  .status-data {
    font-size: 10.5px;
  }

  /* cegah zoom otomatis iOS saat input difokuskan */
  input[type="text"],
  input[type="password"],
  input[type="date"],
  input[type="number"],
  input[type="search"],
  select,
  textarea {
    font-size: 16px;
  }

  table.tabel {
    font-size: 12px;
  }

  table.tabel th,
  table.tabel td {
    padding: 8px 10px;
  }
}

@media (max-width: 460px) {
  .grid-kpi {
    gap: 8px;
  }

  .topbar-aksi {
    gap: 6px;
  }

  .login-kartu {
    padding: 24px;
  }
}

/* --------------------------------------------------------------------------
   Motion
   -------------------------------------------------------------------------- */

@keyframes putar {
  to {
    transform: rotate(360deg);
  }
}

@keyframes tirai-masuk {
  from {
    opacity: 0;
  }
}

@keyframes modal-masuk {
  from {
    opacity: 0;
    transform: translateY(6px) scale(0.985);
  }
}

@keyframes toast-masuk {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

.isi > * {
  animation: isi-masuk 0.18s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes isi-masuk {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}


/* --------------------------------------------------------------------------
   Peringatan & Uji Tindakan
   -------------------------------------------------------------------------- */

.peringatan-kartu {
  border-left: 4px solid var(--warna-tingkat, var(--border-strong));
  overflow: hidden;
}

.peringatan-kepala {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px 12px;
  border-bottom: 1px solid var(--border);
}

.peringatan-identitas {
  display: flex;
  gap: 12px;
  min-width: 0;
}

.peringatan-nomor {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface-3);
  color: var(--ink-3);
  font-size: 11px;
  font-weight: 700;
}

.peringatan-nama {
  font-weight: 650;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.peringatan-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
  color: var(--ink-3);
  font-size: 12px;
}

.peringatan-kanan {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.diagnosis-blok {
  padding: 12px 18px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  display: grid;
  gap: 6px;
}

.diagnosis-utama {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.diagnosis-tambahan {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--ink-3);
}

.metrik-wrap {
  border-bottom: 1px solid var(--border);
}

table.tabel.tabel-metrik th,
table.tabel.tabel-metrik td {
  padding: 7px 14px;
  font-size: 12px;
}

table.tabel.tabel-metrik thead th {
  background: transparent;
  color: var(--ink-3);
  font-size: 11px;
  letter-spacing: .02em;
  text-transform: uppercase;
}

table.tabel.tabel-metrik tbody tr.pemicu td {
  background: var(--warn-soft);
}

table.tabel.tabel-metrik tbody tr.kurang td {
  color: var(--ink-3);
}

.titik-pemicu {
  color: var(--warn);
  font-size: 8px;
  vertical-align: 2px;
}

.catatan-list {
  margin: 0;
  padding: 10px 18px;
  display: grid;
  gap: 4px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  color: var(--ink-2);
  font-size: 12px;
}

.catatan-list > div::before {
  content: "•";
  color: var(--warn);
  margin-right: 8px;
}

.blok-kartu {
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
}

.blok-kartu h3 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--ink-3);
  margin-bottom: 8px;
}

.checklist {
  display: grid;
  gap: 6px;
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13px;
  color: var(--ink-2);
  cursor: pointer;
}

.checklist-item input {
  width: 16px;
  height: 16px;
  margin-top: 1px;
  accent-color: var(--accent);
}

.tindakan-list {
  display: grid;
  gap: 10px;
}

.tindakan-item {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface);
}

.tindakan-judul {
  display: flex;
  gap: 7px;
  align-items: center;
  flex-wrap: wrap;
}

.tindakan-item p {
  margin-top: 4px;
  font-size: 12.5px;
}

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

.catatan-kecil {
  padding: 10px 18px;
  color: var(--ink-3);
  font-size: 11px;
  background: var(--surface-2);
}

.daftar-peringatan {
  display: grid;
  gap: 14px;
}

.peringatan-kartu.sorot {
  outline: 3px solid rgba(15, 118, 110, 0.22);
  outline-offset: 2px;
}

.kartu-peringatan-ringkas .statistik strong {
  font-size: 24px;
}

.detail-uji {
  border-left: 4px solid var(--warna-uji, var(--border-strong));
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}

.detail-grid > div {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface-2);
}

.detail-grid small {
  color: var(--ink-3);
  font-size: 11px;
}

.detail-grid strong {
  font-size: 13px;
  font-weight: 650;
}

.detail-grid span {
  color: var(--ink-3);
  font-size: 11.5px;
}

.grid-grafik-uji {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.grafik-uji {
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 10px 12px;
  background: var(--surface);
}

.grafik-uji-judul {
  font-size: 12px;
  font-weight: 650;
  color: var(--ink-2);
  margin-bottom: 6px;
}

.grafik-uji .grafik {
  height: 180px;
}

@media (max-width: 720px) {
  .peringatan-kepala {
    flex-direction: column;
  }
  .peringatan-kanan {
    justify-content: flex-start;
  }
  .tindakan-kaki {
    align-items: flex-start;
    flex-direction: column;
  }
}


/* Kartu peringatan ringkas */
.peringatan-kepala {
  align-items: center;
}

.peringatan-toggle {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink-2);
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}

.peringatan-toggle:hover {
  background: var(--surface-3);
  border-color: var(--border-strong);
}

.peringatan-toggle svg {
  transition: transform .18s ease;
}

.peringatan-kartu.terbuka .peringatan-toggle svg {
  transform: rotate(180deg);
}

.peringatan-kartu.terbuka .peringatan-kepala {
  background: var(--surface-2);
}

.peringatan-detail[hidden] {
  display: none;
}

.detail-aksi {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.peringatan-peringkat {
  font-size: 11px;
  color: var(--ink-3);
}

@media (max-width: 720px) {
  .peringatan-kepala {
    flex-direction: row;
    align-items: flex-start;
  }
  .peringatan-toggle {
    width: 32px;
    height: 32px;
  }
}


/* Logo dan wordmark Rapor Toko */
.merek-logo {
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  overflow: hidden;
}

.merek-logo img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: inherit;
}

.wordmark {
  font-family: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.wordmark .rapor {
  color: #0f172a;
}

.wordmark .toko {
  color: #0b6e5f;
}

.sidebar .wordmark .rapor,
.login-brand .wordmark .rapor {
  color: #ffffff;
}

.sidebar .wordmark .toko,
.login-brand .wordmark .toko {
  color: #5eead4;
}

.login-kartu-merek .wordmark {
  display: block;
  font-size: 15px;
}

[hidden] { display: none !important; }

.login-kartu-merek > div { min-width: 0; flex: 1 1 auto; }
.login-kartu-merek .wordmark { display: block; white-space: nowrap; font-size: 14px; }
