:root {
  --ink: #10262d;
  --mut: #52666e;
  --bg: #f2faf8;
  --card: #fff;
  --line: #d3e6e2;
  --acc: #0f766e;
  --acc2: #1d5fd8;
  --sun: #fbbf24;
  --coral: #fb7185;
  --r: 18px;
  --sh: 0 6px 22px rgba(29, 95, 216, 0.09);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}
body {
  margin: 0;
  color: var(--ink);
  font:
    15px/1.6 "IBM Plex Sans",
    system-ui,
    sans-serif;
  background:
    radial-gradient(720px 380px at 100% -40px, #c4f0e7, transparent 70%),
    radial-gradient(620px 380px at -12% 28%, #fff0c2, transparent 70%),
    var(--bg);
  background-attachment: fixed;
}
h1,
h2,
h3 {
  font-family: "Bricolage Grotesque", "IBM Plex Sans", system-ui, sans-serif;
  line-height: 1.15;
  margin: 0;
}
h1 {
  font-size: 28px;
  font-weight: 800;
  margin: 6px 0 16px;
}
h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 28px 0 12px;
}
a {
  color: var(--acc);
  text-decoration: none;
}
p a,
.m a,
.empty a {
  text-decoration: underline;
}
.row .g > a {
  color: var(--ink);
}
.row .g > a:hover {
  color: var(--acc2);
}
.ic {
  width: 20px;
  height: 20px;
  flex: none;
}
/* bar atas */
.top {
  background: linear-gradient(100deg, #0b6b63 0, #1b5bc4 100%);
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: 0 3px 16px rgba(27, 91, 196, 0.28);
}
.top .in {
  max-width: 1040px;
  margin: 0 auto;
  padding: 10px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.brand {
  font:
    800 20px "Bricolage Grotesque",
    sans-serif;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
.mk {
  width: 28px;
  height: 28px;
  display: block;
  flex: none;
}
.logo {
  height: 32px;
  width: auto;
  max-width: 130px;
  border-radius: 7px;
  display: block;
  flex: none;
}
.top nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.top nav a {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #e6faf6;
  text-decoration: none;
  font-weight: 500;
  padding: 9px 15px;
  border-radius: 99px;
  transition:
    background 0.15s,
    color 0.15s;
}
.top nav a:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}
.top nav a.on {
  background: var(--sun);
  color: #3a2a00;
  font-weight: 600;
}
.me {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 600;
  margin-left: 10px;
  padding-left: 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.3);
}
.av {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--sun);
  color: #3a2a00;
  display: grid;
  place-items: center;
  font:
    800 14px "Bricolage Grotesque",
    sans-serif;
}
/* bar bawah (HP) */
.bn {
  display: none;
}
@media (max-width: 720px) {
  .top nav a,
  .top .me span:not(.av) {
    display: none;
  }
  .top .me {
    margin: 0;
    padding: 0;
    border: 0;
  }
  .w {
    padding-bottom: 96px;
  }
  .bn {
    display: flex;
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    z-index: 30;
    background: linear-gradient(100deg, #0b6b63, #1b5bc4);
    border-radius: 22px;
    padding: 6px;
    box-shadow: 0 10px 30px rgba(27, 91, 196, 0.45);
  }
  .bn a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: #e6faf6;
    text-decoration: none;
    font-size: 11px;
    font-weight: 600;
    padding: 9px 4px;
    border-radius: 16px;
    min-height: 48px;
  }
  .bn a.on {
    background: var(--sun);
    color: #3a2a00;
  }
}
.w {
  max-width: 1040px;
  margin: 0 auto;
  padding: 18px;
}
.back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--acc2);
  text-decoration: none;
  font-weight: 600;
  margin: 2px 0 10px;
  padding: 8px 14px 8px 8px;
  border-radius: 99px;
}
.back:hover {
  background: #e0eaff;
}
/* kartu umum */
.c {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 18px;
  margin: 12px 0;
  box-shadow: var(--sh);
}
/* hero beranda */
.hero {
  background: linear-gradient(120deg, #0f766e 0, #2748c9 100%);
  color: #fff;
  border-radius: 24px;
  padding: 28px;
  position: relative;
  overflow: hidden;
  margin: 6px 0 18px;
  box-shadow: 0 14px 34px rgba(39, 72, 201, 0.28);
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}
.hero::before {
  width: 230px;
  height: 230px;
  right: -60px;
  top: -90px;
  background: rgba(251, 191, 36, 0.38);
}
.hero::after {
  width: 130px;
  height: 130px;
  right: 110px;
  bottom: -60px;
  background: rgba(251, 113, 133, 0.4);
}
.hero > * {
  position: relative;
}
.hero h1 {
  margin: 0 0 4px;
  font-size: 30px;
}
.hero p {
  margin: 0 0 16px;
  color: #e8f6ff;
}
.sr {
  display: flex;
  background: #fff;
  border-radius: 99px;
  padding: 5px;
  max-width: 520px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}
.sr .ic {
  align-self: center;
  margin: 0 6px 0 12px;
  color: var(--mut);
}
.sr input {
  border: 0;
  background: none;
  padding: 10px 6px;
  flex: 1;
  min-width: 0;
  border-radius: 99px;
  box-shadow: none;
}
.sr input:focus {
  outline: none;
  box-shadow: none;
}
.sr button {
  margin: 0;
  border-radius: 99px;
  padding: 10px 22px;
}
.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 10px;
  margin-bottom: 6px;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar {
  display: none;
}
.chip {
  white-space: nowrap;
  padding: 9px 16px;
  border-radius: 99px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.15s;
}
.chip:hover {
  border-color: var(--acc2);
  color: var(--acc2);
}
.chip.on {
  background: linear-gradient(135deg, #0f766e, #1d5fd8);
  border-color: transparent;
  color: #fff;
}
.chip.ok2 {
  border-color: #047857;
  color: #047857;
}
.chip.ok2.on {
  background: #047857;
  color: #fff;
}
/* kartu barang */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(235px, 1fr));
  gap: 18px;
}
.grid .c {
  margin: 0;
}
.item {
  padding: 0;
  overflow: hidden;
  transition:
    box-shadow 0.2s,
    border-color 0.2s;
  animation: up 0.35s both;
}
.item:hover {
  border-color: var(--acc2);
  box-shadow: 0 12px 30px rgba(29, 95, 216, 0.18);
}
.item a.cv {
  color: inherit;
  text-decoration: none;
  display: block;
}
.item .bd {
  padding: 14px 16px 16px;
}
.item h3 {
  font-size: 18px;
  margin-bottom: 2px;
}
.pw {
  position: relative;
  overflow: hidden;
}
.pw .lb {
  position: absolute;
  left: 12px;
  top: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}
.cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  font-weight: 600;
  color: var(--acc2);
  font-size: 14px;
}
.ph {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: #dfeae7;
  display: block;
}
.ph.none {
  display: grid;
  place-items: center;
  color: var(--acc);
  background: linear-gradient(135deg, #c4f0e7, #fff0c2);
}
.thumb {
  width: 72px;
  height: 54px;
  border-radius: 12px;
  object-fit: cover;
  background: #dfeae7;
  flex: none;
  display: grid;
  place-items: center;
}
.thumb.none {
  color: var(--acc);
  background: linear-gradient(135deg, #c4f0e7, #fff0c2);
}
@keyframes up {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
.lb {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 99px;
}
.l0 {
  background: #d1fae5;
  color: #065f46;
}
.l1 {
  background: #fef3c7;
  color: #92400e;
}
.l2 {
  background: #ffedd5;
  color: #9a3412;
}
.l3 {
  background: #ffe4e6;
  color: #9f1239;
}
.k {
  font-size: 12px;
  padding: 2px 9px;
  border-radius: 99px;
  border: 1px solid #9fb0ad;
  display: inline-block;
  margin: 0 2px 2px 0;
  background: #fff;
}
.k0 {
  color: #047857;
  border-color: #047857;
  background: #ecfdf5;
}
.k1 {
  color: #92400e;
  border-color: #b45309;
  background: #fffbeb;
}
.k2 {
  color: #9a3412;
  border-color: #c2410c;
  background: #fff7ed;
}
.k3 {
  color: #9f1239;
  border-color: #be123c;
  background: #fff1f2;
}
.m {
  color: var(--mut);
  font-size: 13px;
}
.ok {
  background: #d1fae5;
  color: #064e3b;
  padding: 12px 16px;
  border-radius: 14px;
}
.er {
  background: #ffe4e6;
  color: #881337;
  padding: 12px 16px;
  border-radius: 14px;
}
.empty {
  text-align: center;
  padding: 36px 16px;
  color: var(--mut);
}
.empty .ic {
  width: 42px;
  height: 42px;
  color: #8fb3ad;
  margin-bottom: 6px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin-bottom: 6px;
}
.stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 4px solid var(--acc);
  border-radius: var(--r);
  padding: 12px 18px 14px;
  box-shadow: var(--sh);
}
.stat b {
  display: block;
  font:
    800 32px "Bricolage Grotesque",
    sans-serif;
  color: var(--acc);
}
.stat:nth-child(2) {
  border-top-color: #1d4ed8;
}
.stat:nth-child(2) b {
  color: #1d4ed8;
}
.stat:nth-child(3) {
  border-top-color: #ea580c;
}
.stat:nth-child(3) b {
  color: #c2410c;
}
.stat:nth-child(4) {
  border-top-color: #e11d48;
}
.stat:nth-child(4) b {
  color: #be123c;
}
.row {
  display: flex;
  gap: 14px;
  align-items: center;
}
.row .g {
  flex: 1;
  min-width: 0;
}
.det {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 20px;
  align-items: start;
}
.det .ph {
  border-radius: var(--r);
  box-shadow: var(--sh);
}
@media (max-width: 720px) {
  .det {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 22px;
  }
  .hero h1 {
    font-size: 25px;
  }
}
/* form */
label {
  display: block;
  font-size: 13px;
  color: var(--mut);
  margin: 12px 0 4px;
  font-weight: 500;
}
input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 11px 14px;
  border: 1px solid #bcd0cc;
  border-radius: 12px;
  font: inherit;
  background: #fff;
  color: var(--ink);
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
input[type="checkbox"] {
  min-height: 0;
}
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--acc2);
  box-shadow: 0 0 0 3px rgba(29, 95, 216, 0.22);
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(29, 95, 216, 0.45);
  outline-offset: 2px;
}
button,
.b {
  background: linear-gradient(135deg, #0f766e, #1d5fd8);
  color: #fff;
  border: 0;
  min-height: 44px;
  padding: 11px 22px;
  border-radius: 99px;
  font:
    600 15px "IBM Plex Sans",
    sans-serif;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
  box-shadow: 0 4px 12px rgba(29, 95, 216, 0.25);
  transition: filter 0.15s;
}
button:hover,
.b:hover {
  filter: brightness(1.1);
}
.b2 {
  background: #fff;
  color: var(--acc2);
  border: 1.5px solid var(--acc2);
  box-shadow: none;
}
.b2:hover {
  background: #eaf1ff;
  filter: none;
}
button:disabled {
  opacity: 0.65;
  cursor: wait;
}
details summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--acc2);
  padding: 4px 0;
}
table {
  width: 100%;
  border-collapse: collapse;
}
td,
th {
  padding: 9px 8px;
  border-bottom: 1px solid #e3eeeb;
  text-align: left;
  vertical-align: top;
  font-size: 14px;
}
th {
  color: var(--mut);
  font-weight: 500;
}
/* login */
.auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
}
.side {
  background: linear-gradient(150deg, #0b6b63 0, #2748c9 100%);
  color: #fff;
  padding: 44px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  position: relative;
  overflow: hidden;
}
.side::before,
.side::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}
.side::before {
  width: 380px;
  height: 380px;
  right: -140px;
  top: -120px;
  background: rgba(251, 191, 36, 0.3);
}
.side::after {
  width: 220px;
  height: 220px;
  left: -70px;
  bottom: -70px;
  background: rgba(251, 113, 133, 0.35);
}
.side > * {
  position: relative;
}
.side .brand {
  font-size: 22px;
}
.side h2 {
  font-size: 38px;
  font-weight: 800;
  margin: 0 0 14px;
  max-width: 14em;
}
.side p {
  color: #e3f6f2;
  max-width: 30em;
  margin: 0;
}
.side svg {
  width: 150px;
  height: 150px;
  opacity: 0.95;
}
.side svg.mk {
  width: 28px;
  height: 28px;
}
.side ul {
  list-style: none;
  padding: 0;
  margin: 0;
  color: #e3f6f2;
  font-size: 14px;
}
.side li {
  margin: 5px 0;
}
.side li::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--sun);
  margin-right: 10px;
  border-radius: 2px;
}
.fw {
  display: grid;
  place-items: center;
  padding: 28px;
}
.fb {
  width: 100%;
  max-width: 390px;
  animation: up 0.5s both;
}
.fb h1 {
  margin: 0 0 4px;
}
.fb .sub {
  color: var(--mut);
  margin: 0 0 18px;
}
.fb button {
  width: 100%;
  margin-top: 18px;
  padding: 13px;
}
@media (max-width: 820px) {
  .auth {
    grid-template-columns: 1fr;
  }
  .side {
    padding: 26px;
  }
  .side h2 {
    font-size: 26px;
  }
  .side svg:not(.mk),
  .side ul {
    display: none;
  }
}
.qr {
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px;
  margin: 0 auto 10px;
  width: max-content;
}
.qr svg {
  display: block;
}
@media print {
  .top,
  .bn,
  .np,
  .back {
    display: none;
  }
  body {
    background: #fff;
  }
  .c {
    box-shadow: none;
  }
}
