:root {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", sans-serif;
  color: #202d2b;
  background: #f4f6f5;
  font-synthesis: none;
  --accent: #176553;
  --line: #dce3e0;
  --muted: #677871;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
  background: white;
  border: 1px solid #cbd5d0;
  border-radius: 6px;
  padding: 9px 15px;
  color: #243d35;
  font-size: 13px;
  font-weight: 550;
  white-space: nowrap;
}
button:hover {
  background: #edf4f0;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}
.primary:hover {
  background: #104f40;
}
input,
select {
  min-width: 0;
  padding: 9px 11px;
  border: 1px solid #cbd5d0;
  border-radius: 5px;
  background: white;
  color: #22362e;
}
label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 12px;
  color: #53665c;
}
a {
  color: var(--accent);
}
:focus-visible {
  outline: 3px solid #6eb49d;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
#shell {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 100dvh;
}
aside {
  position: sticky;
  top: 0;
  height: 100dvh;
  padding: 34px 20px 22px;
  border-right: 1px solid var(--line);
  background: #fff;
  display: flex;
  flex-direction: column;
}
.brand {
  text-decoration: none;
  color: #193d31;
  font-weight: 750;
  font-size: 27px;
  letter-spacing: -1px;
}
.brand span {
  display: block;
  font-size: 9px;
  letter-spacing: 1.7px;
  margin-top: 7px;
  font-weight: 550;
}
.workspace-label {
  font-size: 11px;
  color: #8b9892;
  margin: 44px 14px 16px;
}
nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
nav button {
  text-align: left;
  border: 0;
  background: transparent;
  padding: 13px 15px;
  color: #52645b;
}
nav button.active {
  background: #e8f1ec;
  color: #135742;
  font-weight: 700;
}
.aside-bottom {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding: 20px 10px 0;
  display: grid;
  gap: 10px;
  font-size: 13px;
}
.aside-bottom small {
  color: var(--muted);
  font-size: 11px;
}
.text-button {
  border: 0;
  padding: 2px 0;
  background: transparent;
  text-align: left;
  color: var(--accent);
}
main {
  min-width: 0;
  padding: 36px 40px 20px;
  max-width: 1800px;
  width: 100%;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}
h1 {
  font-size: 29px;
  letter-spacing: -0.8px;
  margin: 10px 0;
}
h2 {
  font-size: 17px;
  margin: 0 0 12px;
}
h3 {
  font-size: 14px;
  margin: 0 0 10px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.8px;
  color: var(--accent);
  font-weight: 700;
}
.muted {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
  margin: 0;
}
.filters {
  display: flex;
  align-items: end;
  gap: 12px;
  background: white;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.filters label:first-child {
  min-width: 190px;
  margin-right: auto;
}
.presets {
  display: flex;
  gap: 5px;
}
.update {
  font-size: 11px;
  color: var(--muted);
  margin: 14px 1px 22px;
}
.kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  margin-bottom: 24px;
}
.kpi {
  padding: 23px 24px;
  border-right: 1px solid var(--line);
  min-width: 0;
}
.kpi:last-child {
  border: 0;
}
.kpi .label {
  font-size: 12px;
  color: var(--muted);
}
.kpi strong {
  display: block;
  font-size: 28px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -1px;
  margin: 12px 0;
}
.kpi small {
  color: var(--muted);
  font-size: 11px;
}
.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 22px 24px;
  margin-bottom: 22px;
}
.panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}
.panel-top h2 {
  margin: 0;
}
.split {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 22px;
}
.chart {
  width: 100%;
  height: 160px;
}
.chart-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
  margin-top: 10px;
}
.legend {
  display: flex;
  gap: 24px;
  font-size: 12px;
  color: var(--muted);
  margin-top: 18px;
}
.table-wrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
  text-align: left;
}
th {
  color: #677970;
  font-weight: 550;
  background: #f6f8f7;
  white-space: nowrap;
}
td,
th {
  padding: 13px 12px;
  border-bottom: 1px solid #e8eeea;
  vertical-align: top;
}
td {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
td.product-name {
  white-space: normal;
  min-width: 230px;
  max-width: 380px;
  line-height: 1.65;
}
td small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}
.number {
  text-align: right;
}
.positive {
  color: #14634c;
}
.negative {
  color: #b54436;
}
.badge {
  display: inline-block;
  padding: 4px 7px;
  font-size: 10px;
  border-radius: 4px;
  color: #4c6154;
  background: #eff3f0;
}
.badge.warn {
  color: #8e602a;
  background: #faf0df;
}
.badge.good {
  color: #17654b;
  background: #e7f3eb;
}
.notice {
  padding: 14px 17px;
  background: #f9f4e9;
  border-left: 3px solid #b08946;
  font-size: 12px;
  line-height: 1.85;
  margin-bottom: 20px;
  color: #775b30;
}
.empty {
  padding: 42px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
}
.empty strong {
  display: block;
  color: #3e594b;
  font-size: 17px;
  margin-bottom: 8px;
}
.row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.form-grid .wide {
  grid-column: 1/-1;
}
.actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
.help {
  line-height: 1.85;
  font-size: 12px;
  color: #52655a;
}
.help li {
  margin: 7px 0;
}
footer {
  font-size: 11px;
  color: #78877f;
  margin-top: 35px;
  line-height: 1.8;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 15px;
  margin-top: 15px;
  font-size: 12px;
}
.login {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100dvh;
}
.login-intro {
  padding: 10vw 8vw;
  background: #e3ede6;
  display: flex;
  flex-direction: column;
}
.brandmark {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -1px;
  color: #174d38;
}
.login-intro h1 {
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.35;
  margin: 80px 0 25px;
  letter-spacing: -2px;
}
.login-intro p {
  color: #5d7165;
  font-size: 15px;
  line-height: 1.9;
}
.login-note {
  margin-top: auto;
  font-size: 12px;
  color: #65776b;
}
.login-form {
  align-self: center;
  justify-self: center;
  width: min(350px, 80%);
  display: grid;
  gap: 24px;
}
.login-form h2 {
  font-size: 24px;
}
.login-form .primary {
  padding: 13px;
}
.login-form input {
  padding: 12px;
}
#toast {
  position: fixed;
  right: 25px;
  bottom: 25px;
  max-width: 500px;
  background: #213e30;
  color: white;
  padding: 16px 22px;
  border-radius: 7px;
  box-shadow: 0 8px 28px #0002;
  font-size: 13px;
  z-index: 20;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 10px;
  width: min(1100px, 94vw);
  max-height: 86dvh;
  padding: 25px;
  color: #263d30;
}
dialog::backdrop {
  background: #142d2470;
}
.dialog-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}
.dialog-top h2 {
  margin: 0;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 12px;
  line-height: 1.7;
  background: #f5f7f5;
  padding: 15px;
  border-radius: 5px;
}
details {
  font-size: 12px;
  margin: 12px 0;
  line-height: 1.8;
}
summary {
  cursor: pointer;
  color: var(--accent);
  font-weight: 550;
}
.download-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 15px 0;
}
.loading {
  padding: 50px;
  color: var(--muted);
  text-align: center;
}
.search {
  max-width: 300px;
  width: 100%;
}
.checklist {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.checklist label {
  flex-direction: row;
  align-items: center;
}
.small {
  font-size: 11px;
}
.source {
  font-size: 11px;
}
svg text {
  font-family: inherit;
}
.mobile-hide {
  display: inline;
}
@media (max-width: 1150px) {
  main {
    padding: 25px;
  }
  #shell {
    grid-template-columns: 180px 1fr;
  }
  aside {
    padding: 28px 12px;
  }
  .filters {
    flex-wrap: wrap;
  }
  .filters label:first-child {
    margin-right: 0;
  }
  .kpi {
    padding: 20px 16px;
  }
  .kpi strong {
    font-size: 23px;
  }
  .split {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 700px) {
  #shell {
    display: block;
  }
  aside {
    position: static;
    height: auto;
    padding: 16px;
    display: block;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .brand {
    font-size: 22px;
  }
  .brand span,
  .workspace-label,
  .aside-bottom small {
    display: none;
  }
  nav {
    flex-direction: row;
    overflow: auto;
    margin-top: 17px;
    gap: 2px;
  }
  nav button {
    font-size: 12px;
    padding: 9px;
  }
  .aside-bottom {
    margin: 10px 0 0;
    padding: 8px 0 0;
    display: flex;
    justify-content: space-between;
  }
  main {
    padding: 20px 14px;
  }
  .filters {
    gap: 10px;
    padding: 14px;
  }
  .filters label {
    flex: 1;
    min-width: 120px;
  }
  .filters label:first-child {
    min-width: 100%;
    flex: 1;
  }
  .kpis {
    grid-template-columns: 1fr 1fr;
  }
  .kpi {
    border-bottom: 1px solid var(--line);
  }
  .kpi:nth-child(2) {
    border-right: 0;
  }
  .kpi:nth-child(3) {
    border-bottom: 0;
  }
  .kpi strong {
    font-size: 22px;
  }
  .panel {
    padding: 18px 14px;
  }
  .panel-top {
    flex-wrap: wrap;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .login {
    grid-template-columns: 1fr;
  }
  .login-intro {
    padding: 30px;
    min-height: 270px;
  }
  .login-intro h1 {
    margin: 25px 0 10px;
    font-size: 32px;
  }
  .login-note {
    display: none;
  }
  .login-form {
    padding: 35px 0;
  }
  h1 {
    font-size: 26px;
  }
  .update {
    line-height: 1.7;
  }
  .mobile-hide {
    display: none;
  }
}
/* Product titles may be long Indonesian phrases; keep them inside their cell. */
td.product-name .text-button {
  display: block;
  width: 100%;
  max-width: 360px;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.65;
}
