:root {
  --navy: #14284b;
  --blue: #1e6bc8;
  --bg: #f5f7fa;
  --amber: #eeaa54;
  --card: #fff;
  --ink: #14284b;
  --mute: #5d6b82;
  --line: #dde3ec;
  --red: #c8433a;
  --green: #2e8b57;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    color-scheme: dark;
    --bg: #111418;
    --card: #1a1e24;
    --ink: #e8ecf2;
    --mute: #98a3b3;
    --line: #2b313a;
  }
}
:root[data-theme='dark'] {
  color-scheme: dark;
  --bg: #111418;
  --card: #1a1e24;
  --ink: #e8ecf2;
  --mute: #98a3b3;
  --line: #2b313a;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
}
body {
  background: var(--bg);
  color: var(--ink);
  font:
    400 14px/1.5 'Open Sans',
    system-ui,
    sans-serif;
}
h1,
h2,
h3 {
  font-family: Montserrat, system-ui, sans-serif;
  margin: 0;
}
.app {
  display: block;
  min-height: 100vh;
}
nav button:focus-visible,
nav a:focus-visible,
.btn:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}
main {
  padding: clamp(16px, 2.2vw, 40px);
  max-width: 1800px;
  width: 100%;
  margin-inline: auto;
}
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.top h2 {
  font-size: 22px;
}
.btn {
  background: var(--blue);
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 8px 16px;
  font: 600 13px 'Open Sans';
  cursor: pointer;
}
.btn.sec {
  background: transparent;
  color: var(--blue);
  border: 1px solid var(--blue);
}
.tabs {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}
.tab {
  background: none;
  border: 0;
  border-bottom: 3px solid transparent;
  color: var(--mute);
  padding: 8px 14px;
  font: 600 14px 'Open Sans';
  cursor: pointer;
}
.tab.on {
  color: var(--blue);
  border-color: var(--blue);
}
.btn.sm {
  padding: 4px 8px;
  font-size: 12px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
}
.grid {
  display: grid;
  gap: 16px;
}
.g4 {
  grid-template-columns: repeat(auto-fit, minmax(min(140px, 100%), 1fr));
}
.g2 {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.pipe {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 8px;
  margin-bottom: 24px;
}
.pipe div {
  min-width: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 16px;
  border-top: 4px solid var(--blue);
}
.pipe b {
  font: 700 24px Montserrat;
  display: block;
}
.pipe span {
  font-size: 12px;
  color: var(--mute);
}
.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.tbl th {
  text-align: left;
  color: var(--mute);
  font-weight: 600;
  padding: 8px;
  border-bottom: 1px solid var(--line);
}
.tbl td {
  padding: 8px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.wrap {
  overflow-x: auto;
}
.kpi {
  container-type: inline-size;
}
.kpi b {
  font: 700 clamp(13px, 12cqw, 26px) Montserrat;
  display: block;
  margin: 4px 0;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.kpi b.neg {
  color: var(--red);
}
.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 8px;
}
.top {
  margin-bottom: 16px;
}
.crow {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.btn[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
}
.tbl input {
  width: 100%;
  min-width: 150px;
}
.tag {
  display: inline-block;
  padding: 0 8px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 600;
  background: #e6eefb;
  color: var(--blue);
}
.tag.late {
  background: #fbe5e3;
  color: var(--red);
}
.tag.ok {
  background: #e1f3e9;
  color: var(--green);
}
.tag.warn {
  background: #fdf0dc;
  color: #a8650d;
}
.split {
  display: grid;
  grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.item {
  padding: 8px 16px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.item:hover {
  background: rgba(30, 107, 200, 0.07);
}
.item.on {
  background: rgba(30, 107, 200, 0.13);
  border-left: 4px solid var(--blue);
}
.item small {
  color: var(--mute);
}
.tl {
  position: relative;
  margin: 16px 0 0 8px;
  padding-left: 24px;
  border-left: 2px solid var(--line);
}
.ev {
  position: relative;
  padding-bottom: 16px;
}
.ev::before {
  content: '';
  position: absolute;
  left: -33px;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--card);
  border: 3px solid var(--blue);
}
.ev.cur::before {
  background: var(--amber);
  border-color: var(--amber);
  animation: p 1.6s infinite;
}
.ev.late::before {
  border-color: var(--red);
}
.ev.done::before {
  background: var(--green);
  border-color: var(--green);
}
@keyframes p {
  50% {
    box-shadow: 0 0 0 6px rgba(238, 170, 84, 0.3);
  }
}
@media (prefers-reduced-motion: reduce) {
  .ev.cur::before {
    animation: none;
  }
}
.gap {
  font-size: 12px;
  color: var(--mute);
  margin: -8px 0 8px;
}
form.row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: end;
  margin-top: 8px;
}
form.stepf {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: 12px;
  align-items: start;
  background: rgba(30, 107, 200, 0.06);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  margin: 0 0 16px;
}
.stepf .full {
  grid-column: 1/-1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stepf h4 {
  grid-column: 1/-1;
  margin: 0;
  font: 700 14px Montserrat;
}
.stepf .act {
  align-items: flex-start;
}
.stepf .act .btn {
  min-width: 140px;
}
.stepf .fl {
  font-size: 12px;
  color: var(--mute);
  font-weight: 600;
}
.stepf .hint {
  color: var(--mute);
  font-size: 11px;
  display: block;
}
.cklist {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  max-height: 210px;
  overflow: auto;
  padding: 4px 10px;
}
.cklist label {
  flex-direction: row;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--ink);
  padding: 5px 0;
  cursor: pointer;
}
.cklist label input {
  width: auto;
  margin-top: 2px;
  flex: none;
}
.cklist b.grp {
  display: block;
  font-size: 11px;
  color: var(--mute);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 6px 0 0;
}
.cklist input[disabled] + span {
  color: var(--mute);
}
@media (max-width: 820px) {
  .stepf .act .btn {
    width: 100%;
  }
}
label {
  font-size: 12px;
  color: var(--mute);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
input,
select,
textarea {
  font: 400 13px 'Open Sans';
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  color: var(--ink);
}
.rem {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.bar {
  height: 8px;
  background: var(--line);
  border-radius: 4px;
  overflow: hidden;
}
.bar i {
  display: block;
  height: 100%;
  background: var(--amber);
}
.bar i.ok {
  background: var(--green);
}
.bar i.yel {
  background: #e0a100;
}
.bar i.red {
  background: var(--red);
}
.rem b {
  white-space: nowrap;
}
dialog {
  border: 0;
  border-radius: 12px;
  padding: 24px;
  max-width: 480px;
  width: 92%;
  background: var(--card);
  color: var(--ink);
}
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy);
  color: #fff;
  padding: 8px 16px;
  border-radius: 8px;
  display: none;
  z-index: 9;
}
.ms {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 1fr));
  gap: 8px;
}
.ms div {
  border: 1px solid var(--line);
  border-top: 4px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  opacity: 0.6;
}
.ms div.d {
  border-top-color: var(--green);
  opacity: 1;
}
.ms div.c {
  border-top-color: var(--amber);
  opacity: 1;
  background: rgba(238, 170, 84, 0.12);
}
.ms small {
  display: block;
  color: var(--mute);
  font-size: 11px;
}
.ms b {
  font-size: 13px;
}
.paperwrap {
  overflow-x: auto;
  background: var(--bg);
}
.paperwrap .paper {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 48px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.18);
}
@media (max-width: 820px) {
  .paperwrap .paper {
    padding: 24px;
  }
  .split,
  .g2 {
    grid-template-columns: minmax(0, 1fr);
  }
  main {
    padding: 16px;
  }
}

/* ===== Topbar (menu atas) ===== */
.topbar {
  background: var(--navy);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 clamp(12px, 2vw, 32px);
  min-height: 56px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
}
.brand {
  font:
    700 15px/1.2 Montserrat,
    system-ui,
    sans-serif;
  margin: 0 16px 0 0;
  white-space: nowrap;
}
.menu {
  display: flex;
  align-items: stretch;
  gap: 2px;
  flex: 1;
  min-width: 0;
  align-self: stretch;
}
.topbar button {
  display: flex;
  gap: 8px;
  align-items: center;
  background: none;
  border: 0;
  color: #cfd9ea;
  font:
    600 14px 'Open Sans',
    system-ui,
    sans-serif;
  cursor: pointer;
  text-align: left;
}
.topbar button:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.topbar svg {
  width: 18px;
  height: 18px;
  flex: none;
}
.menu > button,
.dd > .gt {
  padding: 0 12px;
  height: 100%;
  min-height: 56px;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}
.menu > button.on,
.dd.on > .gt {
  color: #fff;
  border-bottom-color: var(--amber);
}
.dd {
  position: relative;
  display: flex;
  align-items: stretch;
}
.gt .car {
  width: 14px;
  height: 14px;
  transition: transform 0.15s;
}
.dd.open > .gt .car {
  transform: rotate(180deg);
}
.dd.open > .gt {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.dm {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  background: var(--navy);
  border: 1px solid #2b4170;
  border-top: 0;
  border-radius: 0 0 10px 10px;
  padding: 6px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}
.dd.open > .dm {
  display: block;
}
@media (hover: hover) and (min-width: 1241px) {
  .dd:hover > .dm {
    display: block;
  }
  .dd:hover > .gt {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
  }
  .dd:hover > .gt .car {
    transform: rotate(180deg);
  }
}
.dm button {
  width: 100%;
  padding: 9px 10px;
  border-radius: 8px;
  margin: 0;
}
.dm button.on {
  background: var(--blue);
  color: #fff;
}
.burger {
  display: none !important;
  margin-left: auto;
  padding: 8px !important;
  border-radius: 8px;
}
.burger svg {
  width: 24px;
  height: 24px;
}
.topbar .tag.late {
  margin-left: 2px;
}
@media (max-width: 1240px) {
  .topbar {
    flex-wrap: wrap;
    padding: 6px 12px;
    min-height: 52px;
  }
  .brand {
    margin: 0;
  }
  .brand br {
    display: none;
  }
  .burger {
    display: flex !important;
  }
  .menu {
    display: none;
    flex: 1 1 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px 0 10px;
    max-height: calc(100vh - 64px);
    max-height: calc(100dvh - 64px);
    overflow-y: auto;
    border-top: 1px solid #2b4170;
    margin-top: 6px;
    align-self: auto;
  }
  .topbar.open .menu {
    display: flex;
  }
  .menu > button {
    height: auto;
    min-height: 44px;
    border-bottom: 0;
    border-radius: 8px;
    padding: 10px 12px;
  }
  .menu > button.on {
    background: var(--blue);
  }
  .dd {
    display: block;
  }
  .dd > .gt {
    height: auto;
    min-height: 0;
    width: 100%;
    border-bottom: 0;
    font: 600 11px 'Open Sans';
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #8fa3c4;
    padding: 14px 12px 4px;
    pointer-events: none;
    background: none !important;
  }
  .dd.on > .gt {
    color: var(--amber);
  }
  .gt .car {
    display: none;
  }
  .dm {
    display: block;
    position: static;
    border: 0;
    box-shadow: none;
    background: none;
    padding: 0;
    min-width: 0;
  }
  .dm button {
    min-height: 44px;
    padding: 10px 12px;
  }
}

/* ===== Halaman login & menu akun ===== */
body.locked .app,
body.locked #toast {
  display: none !important;
}
#login {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  overflow-y: auto;
  padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
  background:
    radial-gradient(900px 520px at 15% -10%, rgba(30, 107, 200, 0.55), transparent 65%),
    radial-gradient(700px 420px at 100% 110%, rgba(238, 170, 84, 0.18), transparent 60%),
    linear-gradient(160deg, #14284b, #0d1730);
}
body.locked #login {
  display: flex;
}
.lcard {
  width: 100%;
  max-width: 400px;
  margin: auto;
  background: var(--card);
  color: var(--ink);
  border-radius: 16px;
  padding: 32px 28px 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}
/* Login: dua kolom (ilustrasi + formulir) */
#login.split {
  background: var(--card);
}
.lsplit {
  width: 100%;
  max-width: 940px;
  margin: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: 24px 56px;
  color: var(--ink);
}
.lart svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 420px;
}
.lmain {
  width: 100%;
  max-width: 360px;
  justify-self: center;
}
.lhead {
  text-align: center;
  margin-bottom: 28px;
}
.lhead .lapp {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 8px;
}
.lhead h1 {
  font-size: 24px;
  line-height: 1.25;
}
.lhead p {
  margin: 8px 0 0;
  color: var(--mute);
  font-size: 13px;
}
#login .sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
#login label.fld {
  position: relative;
  display: block;
}
#login .fld .ic {
  position: absolute;
  left: 2px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--mute);
  pointer-events: none;
  z-index: 1;
}
#login .fld .ic svg {
  display: block;
  width: 18px;
  height: 18px;
}
#login .fld input:not([type='checkbox']) {
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 12px 4px 12px 32px;
  font-weight: 400;
}
#login .fld input:not([type='checkbox'])::placeholder {
  color: var(--mute);
  opacity: 0.85;
}
#login .fld input:not([type='checkbox']):focus,
#login .fld input:not([type='checkbox']):focus-visible {
  outline: 0;
  border-bottom: 2px solid var(--blue);
  padding-bottom: 11px;
}
#login .fld:focus-within .ic {
  color: var(--blue);
}
#login .btn.pill {
  border-radius: 999px;
  margin-top: 6px;
}
.lfoot2 {
  margin: 20px 0 0;
  text-align: center;
  font-size: 13px;
  color: var(--mute);
}
.lfoot2 strong {
  color: var(--blue);
  font-weight: 600;
}
.lart .fl {
  animation: lfloat 5s ease-in-out infinite;
}
.lart .fl.b {
  animation-duration: 6.5s;
  animation-delay: -2s;
}
.lart .fl.c {
  animation-duration: 7s;
  animation-delay: -4s;
}
@keyframes lfloat {
  50% {
    transform: translateY(-6px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .lart .fl {
    animation: none;
  }
}
@media (max-width: 820px) {
  .lsplit {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
  .lart svg {
    max-width: 260px;
    max-height: 220px;
    margin: 0 auto;
  }
}
.lbrand {
  text-align: center;
  margin-bottom: 24px;
}
.lbrand .ico {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--blue);
  color: #fff;
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  box-shadow: 0 6px 16px rgba(30, 107, 200, 0.4);
}
.lbrand .ico svg {
  width: 26px;
  height: 26px;
}
.lbrand h1 {
  font-size: 20px;
  line-height: 1.25;
}
.lbrand p {
  margin: 6px 0 0;
  color: var(--mute);
  font-size: 13px;
}
#login form {
  display: grid;
  gap: 14px;
}
#login label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
#login input:not([type='checkbox']) {
  width: 100%;
  font:
    400 15px 'Open Sans',
    system-ui,
    sans-serif;
  padding: 11px 12px;
}
#login .pw {
  position: relative;
  display: block;
}
#login .pw input {
  padding-right: 44px;
}
#login .eye {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: none;
  border: 0;
  border-radius: 8px;
  color: var(--mute);
  cursor: pointer;
  padding: 0;
}
#login .eye:hover {
  color: var(--blue);
}
#login .eye svg {
  width: 20px;
  height: 20px;
}
#login label.chk {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  font-weight: 400;
  cursor: pointer;
}
#login label.chk input {
  width: auto;
  margin: 0;
}
#login .btn {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  min-height: 44px;
}
#login .btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}
#login input:focus-visible,
#login .btn:focus-visible,
#login .eye:focus-visible,
.lnk:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}
.lerr {
  color: var(--red);
  font-size: 13px;
  font-weight: 600;
}
.lerr:empty {
  display: none;
}
.lnote {
  font-size: 12px;
  color: var(--mute);
  margin: 0;
}
.lnk {
  background: none;
  border: 0;
  color: var(--blue);
  font:
    600 13px 'Open Sans',
    system-ui,
    sans-serif;
  cursor: pointer;
  padding: 6px 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.lfoot {
  display: flex;
  justify-content: center;
  margin-top: 12px;
}
.rec {
  font:
    700 20px/1.3 ui-monospace,
    SFMono-Regular,
    Menlo,
    Consolas,
    monospace;
  letter-spacing: 0.08em;
  text-align: center;
  background: rgba(238, 170, 84, 0.15);
  border: 1px dashed var(--amber);
  border-radius: 10px;
  padding: 16px 8px;
  user-select: all;
  overflow-wrap: anywhere;
}
.lwarn {
  font-size: 13px;
  background: rgba(238, 170, 84, 0.14);
  border-left: 4px solid var(--amber);
  border-radius: 6px;
  padding: 10px 12px;
  margin: 0;
}
.lstr {
  height: 4px;
  border-radius: 2px;
  background: var(--line);
  overflow: hidden;
  margin-top: -8px;
}
.lstr i {
  display: block;
  height: 100%;
  width: 0;
  transition:
    width 0.2s,
    background 0.2s;
}
#authdlg form {
  display: grid;
  gap: 12px;
}
#authdlg h3 {
  font-size: 17px;
}
#authdlg label {
  font-weight: 600;
}
#authdlg input {
  width: 100%;
}

@media (min-width: 1241px) and (max-width: 1520px) {
  .menu > button,
  .dd > .gt {
    padding: 0 9px;
    font-size: 13px;
  }
  .brand {
    margin-right: 8px;
  }
  .ub .un {
    display: none;
  }
  .topbar .ub {
    padding: 4px;
  }
  .ub > .car {
    display: none;
  }
}
.btn {
  font-family: 'Open Sans', system-ui, sans-serif;
}
input:disabled,
select:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: var(--bg);
}
/* Menu akun di topbar */
.usr {
  position: relative;
  display: flex;
  align-items: center;
  flex: none;
}
.topbar .ub {
  padding: 5px 10px 5px 6px;
  border-radius: 99px;
}
.ub .av {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--amber);
  color: var(--navy);
  display: grid;
  place-items: center;
  font:
    700 13px Montserrat,
    system-ui,
    sans-serif;
}
.ub .un {
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ub .car {
  width: 14px;
  height: 14px;
  transition: transform 0.15s;
}
.usr.open .ub .car {
  transform: rotate(180deg);
}
.usr.open .ub {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.um {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 220px;
  background: var(--navy);
  border: 1px solid #2b4170;
  border-radius: 10px;
  padding: 6px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  z-index: 40;
}
.usr.open .um {
  display: block;
}
.um .uh {
  padding: 8px 10px 10px;
  border-bottom: 1px solid #2b4170;
  margin-bottom: 4px;
  color: #fff;
}
.um .uh small {
  display: block;
  color: #8fa3c4;
  font-size: 12px;
}
.um button {
  width: 100%;
  padding: 9px 10px;
  border-radius: 8px;
}
@media (max-width: 1240px) {
  .brand {
    order: 0;
  }
  .usr {
    order: 1;
    margin-left: auto;
  }
  .burger {
    order: 2;
    margin-left: 4px;
  }
  .menu {
    order: 3;
  }
  .ub .un,
  .ub > .car {
    display: none;
  }
  .topbar .ub {
    padding: 4px;
  }
}

/* Isian dan teks panjang tidak boleh keluar dari card */
main,
.card,
.grid > *,
.split > *,
.crow > *,
.rem > *,
label {
  min-width: 0;
}
input,
select,
textarea {
  max-width: 100%;
  min-width: 0;
}
label > input:not([type='checkbox']):not([type='radio']),
label > select,
label > textarea,
dialog input:not([type='checkbox']):not([type='radio']),
dialog select,
dialog textarea {
  width: 100%;
}
textarea {
  resize: vertical;
}
.card,
.item,
.rem,
dialog {
  overflow-wrap: break-word;
}
code {
  overflow-wrap: anywhere;
  word-break: break-word;
}
/* ===== Tata letak responsif: HP, tablet, desktop, layar lebar ===== */
.gdash {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  margin-bottom: 16px;
}
.card {
  overflow-wrap: anywhere;
}
@media (min-width: 1400px) {
  body {
    font-size: 15px;
  }
  .split {
    grid-template-columns: minmax(320px, 440px) minmax(0, 1fr);
  }
}
@media (min-width: 1500px) {
  .gdash {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 1900px) {
  .g4 {
    grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
  }
}
@media (max-width: 820px) {
  .top h2 {
    font-size: 19px;
  }
  input,
  select,
  textarea {
    font-size: 16px;
  }
  .tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .tabs::-webkit-scrollbar {
    display: none;
  }
  .tab {
    flex: none;
    white-space: nowrap;
  }
}
@media (min-width: 561px) and (max-width: 1100px) {
  .gkpi {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .pipe {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .gdash {
    grid-template-columns: minmax(0, 1fr);
  }
  main {
    padding: 12px;
  }
  .grid {
    gap: 10px;
  }
  .card {
    padding: 14px;
  }
  .rem {
    flex-wrap: wrap;
    gap: 8px;
  }
  .top .btn {
    flex: 1 1 auto;
  }
  .toast {
    max-width: 92vw;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  }
  .pipe b {
    font-size: 20px;
  }
  dialog {
    padding: 16px;
    width: 94%;
  }
}
@media (min-width: 561px) {
  .rem .tag {
    white-space: nowrap;
    flex: none;
  }
}
.rem .btn {
  white-space: nowrap;
  flex: none;
}
@media (pointer: coarse) {
  .btn {
    min-height: 38px;
  }
  .btn.sm {
    min-height: 34px;
    padding: 6px 12px;
  }
}

.crow > label {
  flex: 1 1 180px;
}
