:root {
  --krem: #F5F0E8;
  --krem2: #EDE5D0;
  --krem3: #D9CDB3;
  --coklat: #5C3D1E;
  --coklat2: #8B5E3C;
  --hijau: #2D6A4F;
  --hijau2: #40916C;
  --hijau3: #7AAB71;
  --hijau4: #C8E6C2;
  --merah: #C0392B;
  --merah2: #FADBD8;
  --kuning: #E67E22;
  --kuning2: #FDEBD0;
  --putih: #FFFDF7;
  --abu: #6B6560;
  --abu2: #9B928A;
  --border: #D0C4B0;
  --shadow: rgba(92,61,30,0.1);
  --shadow-lg: rgba(92,61,30,0.15);
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 18px;
  --radius-xl: 22px;
  --radius-full: 999px;
  --font: 'Plus Jakarta Sans', sans-serif;
  --font-display: 'DM Serif Display', serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}

button, .card, .nav-item, .jual-item {
  -webkit-tap-highlight-color: transparent;
}

:focus {
  outline: none;
}

body {
  font-family: var(--font);
  background: var(--krem);
  color: var(--coklat);
  min-height: 100vh;
  font-size: 14px;
  overflow-x: hidden;
}

h1, h2, h3, .serif {
  font-family: var(--font-display);
}

/* TOP BAR */
.top-bar {
  background: rgba(92,61,30,0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--krem);
  padding: 14px 16px 10px;
  display: flex;
  align-items: center;
  flex-direction: row;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px var(--shadow-lg);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.top-bar-text {
  flex: 1;
}

.top-bar h1 {
  font-size: 20px;
  letter-spacing: 0.3px;
}

.top-bar .subtitle {
  font-size: 11px;
  opacity: .7;
  font-family: var(--font);
  font-weight: 400;
}

.hamburger {
  background: rgba(255,255,255,0.1);
  border: none;
  color: var(--krem);
  font-size: 22px;
  cursor: pointer;
  padding: 6px 8px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  transition: background .15s;
}

.hamburger:active {
  background: rgba(255,255,255,0.2);
}

/* NAV DRAWER */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .4);
  z-index: 200;
}

.nav-overlay.open {
  display: block;
}

.nav-drawer {
  position: fixed;
  top: 0;
  left: -280px;
  width: 280px;
  height: 100vh;
  background: var(--putih);
  z-index: 201;
  transition: left .3s cubic-bezier(.22,1,.36,1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  box-shadow: 4px 0 30px var(--shadow-lg);
}

.nav-drawer.open {
  left: 0;
}

.nav-header {
  background: linear-gradient(135deg, var(--coklat) 0%, #7A5C4A 100%);
  padding: 24px 20px 18px;
  color: var(--krem);
}

.nav-header h2 {
  font-size: 18px;
}

.nav-header p {
  font-size: 11px;
  opacity: .7;
  font-family: var(--font);
  margin-top: 2px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  cursor: pointer;
  border-bottom: 1px solid var(--krem2);
  font-weight: 500;
  color: var(--coklat);
  transition: background .15s;
}

.nav-item:hover {
  background: var(--krem);
}

.nav-item.active {
  background: var(--hijau4);
  color: var(--hijau);
  border-left: 3px solid var(--hijau);
  font-weight: 600;
}

.nav-icon {
  font-size: 18px;
  width: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-item.logout {
  margin-top: auto;
  color: var(--merah);
  border-top: 2px solid var(--krem2);
}

.nav-item.logout:hover {
  background: var(--merah2);
}

/* PAGES */
.page {
  display: none;
  padding: 16px;
  padding-bottom: 80px;
}

.page.active {
  display: block;
}

/* CARDS */
.card {
  background: var(--putih);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 14px;
  box-shadow: 0 2px 8px var(--shadow), 0 1px 2px rgba(0,0,0,0.03);
}

.card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--abu);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* STAT CARDS */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.stat-card {
  background: var(--putih);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  box-shadow: 0 2px 6px var(--shadow);
}

.stat-label {
  font-size: 11px;
  color: var(--abu2);
  font-weight: 500;
  margin-bottom: 4px;
}

.stat-value {
  font-size: 20px;
  font-family: var(--font-display);
  color: var(--coklat);
}

.stat-sub {
  font-size: 11px;
  color: var(--abu2);
  margin-top: 2px;
}

.stat-card.hijau .stat-value {
  color: var(--hijau);
}

.stat-card.merah .stat-value {
  color: var(--merah);
}

.stat-card.kuning .stat-value {
  color: var(--kuning);
}

/* ALERTS */
.alert {
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 12px;
  font-size: 13px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}

.alert-icon {
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
}

.alert.danger {
  background: var(--merah2);
  color: var(--merah);
  border: 1px solid #F5A09A;
}

.alert.warning {
  background: var(--kuning2);
  color: #8B5E00;
  border: 1px solid #F0C87A;
}

.alert.success {
  background: var(--hijau4);
  color: var(--hijau);
  border: 1px solid var(--hijau3);
}

/* FORM ELEMENTS */
label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--coklat2);
  margin-bottom: 4px;
  margin-top: 12px;
}

input, select, textarea {
  width: 100%;
  padding: 10px 13px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: var(--font);
  color: var(--coklat);
  background: var(--putih);
  transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--hijau2);
  box-shadow: 0 0 0 3px rgba(45,106,79,.12);
}

textarea {
  resize: vertical;
  min-height: 64px;
}

input[type=number] {
  -moz-appearance: textfield;
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background .15s, transform .1s, box-shadow .15s;
  font-family: var(--font);
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--hijau);
  color: #fff;
  box-shadow: 0 2px 8px rgba(45,106,79,.25);
}

.btn-primary:hover {
  background: var(--hijau2);
}

.btn-secondary {
  background: var(--coklat);
  color: var(--krem);
}

.btn-secondary:hover {
  background: var(--coklat2);
}

.btn-outline {
  background: transparent;
  color: var(--coklat);
  border: 1.5px solid var(--border);
}

.btn-outline:hover {
  background: var(--krem);
}

.btn-danger {
  background: var(--merah);
  color: #fff;
  box-shadow: 0 2px 8px rgba(192,57,43,.25);
}

.btn-sm {
  padding: 7px 12px;
  font-size: 12px;
}

.btn-full {
  width: 100%;
}

.btn-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

/* TABLES */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

th {
  background: var(--krem2);
  color: var(--coklat2);
  font-weight: 600;
  padding: 10px 12px;
  text-align: left;
  font-size: 12px;
  border-bottom: 2px solid var(--border);
}

td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--krem2);
  vertical-align: middle;
}

tr:last-child td {
  border-bottom: none;
}

tr:hover td {
  background: var(--krem);
}

/* BADGE */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
}

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

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

.badge-kuning {
  background: var(--kuning2);
  color: #8B5E00;
}

.badge-abu {
  background: var(--krem2);
  color: var(--abu);
}

/* SECTION TITLE */
.section-title {
  font-size: 17px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--krem2);
}

.section-title .emoji {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

/* STOK BAR */
.stok-bar-wrap {
  margin-top: 4px;
}

.stok-bar-bg {
  background: var(--krem2);
  border-radius: 6px;
  height: 6px;
  overflow: hidden;
}

.stok-bar-fill {
  height: 100%;
  border-radius: 6px;
  transition: .3s;
}

.bar-hijau {
  background: var(--hijau3);
}

.bar-kuning {
  background: var(--kuning);
}

.bar-merah {
  background: var(--merah);
}

/* PENJUALAN LIST */
.jual-item {
  background: var(--putih);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 10px;
  box-shadow: 0 1px 4px var(--shadow);
}

.jual-item-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.jual-customer {
  font-weight: 600;
  font-size: 14px;
}

.jual-meta {
  font-size: 12px;
  color: var(--abu2);
  margin-top: 2px;
}

.jual-harga {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--hijau);
}

/* KAS ITEM */
.kas-in {
  color: var(--hijau);
  font-weight: 600;
}

.kas-out {
  color: var(--merah);
  font-weight: 600;
}

/* MODAL */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 300;
  align-items: flex-end;
  justify-content: center;
}

.modal-backdrop.open {
  display: flex;
}

.modal {
  background: var(--putih);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px 20px 32px;
  animation: slideUp .3s cubic-bezier(.22,1,.36,1);
  box-shadow: 0 -4px 30px var(--shadow-lg);
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

.modal-title {
  font-size: 18px;
  margin-bottom: 16px;
  font-family: var(--font-display);
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-close {
  float: right;
  background: var(--krem2);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 16px;
  cursor: pointer;
  color: var(--coklat);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}

.modal-close:active {
  background: var(--krem3);
}

/* TAB */
.tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.tab-btn {
  flex-shrink: 0;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid var(--border);
  background: var(--putih);
  color: var(--abu);
  transition: background .15s, color .15s, border-color .15s;
  font-family: var(--font);
  display: flex;
  align-items: center;
  gap: 4px;
}

.tab-btn.active {
  background: var(--coklat);
  color: var(--krem);
  border-color: var(--coklat);
}

/* RESTOCK TEXT */
.restock-text {
  background: var(--krem2);
  border-radius: var(--radius-sm);
  padding: 14px;
  font-size: 13px;
  line-height: 1.6;
  margin-top: 10px;
  border: 1px solid var(--border);
  white-space: pre-line;
}

/* MISC */
.input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.divider {
  border: none;
  border-top: 1px solid var(--krem2);
  margin: 16px 0;
}

.chart-wrap {
  position: relative;
  height: 200px;
  margin-top: 8px;
}

.page-bottom {
  height: 20px;
}

/* HIGHLIGHT */
.highlight {
  background: var(--hijau4);
  border-radius: 6px;
  padding: 2px 6px;
  color: var(--hijau);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.highlight.merah {
  background: var(--merah2);
  color: var(--merah);
}

.highlight.kuning {
  background: var(--kuning2);
  color: #8B5E00;
}

/* LOADING OVERLAY */
.loading-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(245, 240, 232, .85);
  z-index: 900;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
}

.loading-overlay.open {
  display: flex;
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--krem3);
  border-top-color: var(--hijau);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

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

.loading-text {
  font-size: 13px;
  color: var(--coklat2);
  font-weight: 500;
}

/* TOAST */
#toastContainer {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 90%;
  max-width: 400px;
  pointer-events: none;
}

.toast {
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .18);
  animation: toastIn .25s ease, toastOut .3s ease forwards;
  animation-duration: .25s, .3s;
  animation-delay: 0s, 2.5s;
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.toast-success {
  background: var(--hijau);
  color: #fff;
}

.toast-error {
  background: var(--merah);
  color: #fff;
}

.toast-warning {
  background: var(--kuning);
  color: #fff;
}

.toast-info {
  background: var(--coklat);
  color: var(--krem);
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes toastOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}

/* LOGIN SCREEN */
#loginScreen {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #F5F0E8 0%, #EDE5D0 100%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.login-card {
  width: 100%;
  max-width: 360px;
  background: var(--putih);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px 24px;
  box-shadow: 0 8px 30px var(--shadow-lg);
}

.login-logo {
  text-align: center;
  margin-bottom: 28px;
}

.login-logo .cup {
  font-size: 52px;
  display: block;
  margin-bottom: 8px;
}

.login-logo h2 {
  font-size: 26px;
  color: var(--coklat);
  margin-bottom: 4px;
}

.login-logo p {
  font-size: 12px;
  color: var(--abu2);
}

.login-error {
  display: none;
  background: var(--merah2);
  color: var(--merah);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-bottom: 14px;
  border: 1px solid #F5A09A;
}

.login-hint {
  text-align: center;
  font-size: 11px;
  color: var(--abu2);
  margin-top: 16px;
}

#loginBtn:disabled {
  opacity: .6;
  cursor: default;
}

/* RESEP ROW */
.resep-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--krem2);
}

.resep-row:last-child {
  border-bottom: none;
}

.resep-nama {
  flex: 1;
  font-size: 13px;
}

.resep-input {
  width: 80px;
  padding: 6px 10px;
  font-size: 13px;
  text-align: right;
}

/* KALKULATOR OUTPUT */
.kalc-bahan-item {
  display: flex;
  justify-content: space-between;
  padding: 7px 0;
  border-bottom: 1px solid var(--krem2);
  font-size: 13px;
}

.kalc-bahan-item:last-child {
  border-bottom: none;
}

.kalc-label {
  color: var(--abu);
}

.kalc-val {
  font-weight: 600;
}

.kalc-val.cukup {
  color: var(--hijau);
}

.kalc-val.kurang {
  color: var(--merah);
}

/* PO V2 */
#page-po {
  max-width: 1060px;
  margin: 0 auto;
}

.po-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px;
  margin: -2px 0 14px;
  border-radius: var(--radius-lg);
  color: #fffaf1;
  background:
    radial-gradient(circle at 88% 18%, rgba(255,255,255,.18), transparent 28%),
    linear-gradient(135deg, #244f3e 0%, #32765a 58%, #61926b 100%);
  box-shadow: 0 12px 30px rgba(37,79,62,.18);
}

.po-hero-compact {
  padding: 20px 22px;
  margin-bottom: 10px;
}

.po-hero::after {
  content: '';
  position: absolute;
  width: 170px;
  height: 170px;
  right: -70px;
  bottom: -110px;
  border: 26px solid rgba(255,255,255,.08);
  border-radius: 50%;
}

.po-eyebrow,
.po-kicker,
.po-section-heading span,
.po-create-panel summary small {
  display: block;
  color: #cce4d3;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.25px;
}

.po-hero h2 {
  margin: 5px 0 3px;
  font-size: 26px;
  font-family: var(--font-display);
  font-weight: 400;
}

.po-hero p {
  max-width: 520px;
  color: rgba(255,255,255,.78);
  font-size: 12px;
  line-height: 1.55;
}

.po-hero-icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 20px;
  background: rgba(255,255,255,.13);
  font-size: 31px;
  transform: rotate(3deg);
}

.po-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 12px;
  margin-bottom: 14px;
  color: var(--abu);
  font-size: 11px;
}

.po-flow div { display: flex; align-items: center; gap: 6px; }
.po-flow span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--hijau4);
  color: var(--hijau);
  font-size: 10px;
  font-weight: 700;
}
.po-flow i { color: var(--krem3); font-style: normal; }

.po-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 10px;
}

.po-metric {
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,253,247,.78);
}
.po-metric small { display: block; color: var(--abu2); font-size: 10px; }
.po-metric strong { display: block; margin-top: 3px; font-size: 18px; color: var(--coklat); }
.po-metric.is-green strong { color: var(--hijau); }

.po-active-card {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr);
  gap: 16px;
  align-items: stretch;
  padding: 18px;
  margin-bottom: 12px;
  border: 1px solid rgba(34,110,74,.2);
  background: linear-gradient(135deg, rgba(255,253,247,.98), rgba(239,249,240,.92));
  box-shadow: 0 10px 24px rgba(37,79,62,.12);
}
.po-active-card.is-empty {
  grid-template-columns: 1fr auto;
  align-items: center;
  border-style: dashed;
  background: var(--putih);
}
.po-active-main h3 { margin: 4px 0 4px; font-size: 20px; color: var(--coklat); }
.po-active-main p { margin: 0; color: var(--abu); font-size: 12px; line-height: 1.5; }
.po-active-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.po-active-stock {
  padding: 14px;
  border-radius: 15px;
  background: var(--putih);
  border: 1px solid var(--border);
}
.po-active-stock small { display: block; color: var(--hijau); font-weight: 700; letter-spacing: .4px; }
.po-active-stock strong { display: block; margin-top: 4px; color: var(--coklat); font-size: 20px; }
.po-active-stock span { display: block; margin-top: 7px; color: var(--abu2); font-size: 11px; }
.po-active-orders {
  padding: 16px;
  margin-bottom: 12px;
  border-color: rgba(34,110,74,.18);
}
.po-active-orders-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}
.po-active-orders-head h3 { margin-top: 3px; font-size: 17px; color: var(--coklat); }
.po-active-order-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--krem2);
}
.po-active-order-row strong { display: block; color: var(--coklat); font-size: 13px; }
.po-active-order-row small { display: block; margin-top: 3px; color: var(--abu); font-size: 12px; }
.po-active-order-actions { display: flex; align-items: center; gap: 7px; }
.po-empty-mini { padding: 10px 0 2px; color: var(--abu2); font-size: 12px; }

.po-session {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  background: var(--putih);
  box-shadow: 0 4px 13px var(--shadow);
}
.po-session-head { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; }
.po-session h3 { margin: 1px 0 3px; font-family: var(--font); font-size: 14px; }
.po-session-date { color: var(--abu2); font-size: 11px; }
.po-session-capacity { display: flex; justify-content: space-between; margin-top: 14px; color: var(--abu); font-size: 11px; }
.po-progress { height: 7px; margin-top: 7px; overflow: hidden; border-radius: 99px; background: var(--krem2); }
.po-progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,var(--hijau),var(--hijau3)); }
.po-ingredient-capacity { margin-top: 11px; display: grid; gap: 9px; }
.po-ingredient-limit {
  padding: 10px;
  border-radius: 12px;
  background: rgba(255,255,255,.56);
  border: 1px solid rgba(92,59,34,.08);
}
.po-ingredient-limit > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 7px;
  color: var(--abu);
  font-size: 11px;
}
.po-ingredient-limit strong { color: var(--coklat); }
.po-ingredient-limit small { display: block; margin-top: 6px; color: var(--abu2); font-size: 10px; }
.po-session-actions { display: flex; justify-content: flex-end; margin-top: 12px; }

.po-workspace { display: grid; grid-template-columns: minmax(300px,.95fr) minmax(0,1.05fr); gap: 12px; align-items: start; margin-bottom: 8px; }
.po-order-form { padding: 19px; }
.po-card-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.po-card-heading h3 { margin-top: 3px; font-family: var(--font); font-size: 17px; }
.po-kicker { color: var(--hijau); }
.po-mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  margin-bottom: 9px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--krem);
}
.po-mode-tabs button {
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--abu);
  font: 700 12px var(--font);
  cursor: pointer;
}
.po-mode-tabs button.active {
  background: var(--putih);
  color: var(--hijau);
  box-shadow: 0 1px 4px var(--shadow);
}
.is-hidden { display: none !important; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.field-wide { grid-column: 1 / -1; }
.field label { margin-top: 9px; }
.form-help { display: block; margin-top: -2px; color: var(--abu2); line-height: 1.45; }
.check-row { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; padding: 10px 0 2px; cursor: pointer; }
.check-row input { width: 19px; height: 19px; margin: 0; accent-color: var(--hijau); }
.check-row span { display: flex; flex-direction: column; color: var(--coklat); }
.check-row small { margin-top: 2px; color: var(--abu2); font-weight: 400; }
.po-submit { margin-top: 15px; }

.po-create-panel { padding: 0; overflow: hidden; }
.po-create-panel[open] {
  border-color: rgba(34,110,74,.22);
  box-shadow: 0 8px 24px rgba(37,79,62,.1);
}
.po-create-panel summary { display: flex; align-items: center; justify-content: space-between; padding: 17px; cursor: pointer; list-style: none; }
.po-create-panel summary::-webkit-details-marker { display: none; }
.po-create-panel summary small { color: var(--hijau); margin-bottom: 3px; }
.po-create-panel summary strong { display: block; color: var(--coklat); font-size: 14px; }
.po-create-panel summary b { color: var(--hijau); font-size: 20px; transition: transform .2s; }
.po-create-panel[open] summary b { transform: rotate(45deg); }
.po-create-fields { padding: 0 17px 12px; }
.po-create-panel > .btn { width: calc(100% - 34px); margin: 0 17px 17px; }

.po-section-heading { display: flex; align-items: end; justify-content: space-between; margin: 15px 1px 10px; }
.po-section-heading span { color: var(--hijau); }
.po-section-heading h3 { margin-top: 3px; font-family: var(--font); font-size: 17px; }
.po-section-heading > small { color: var(--abu2); }

.po-production { padding: 17px; border: 0; color: #fdf9ef; background: linear-gradient(145deg,#5e4025,#795638); }
.po-production .card-title { color: #e8d6ba; }
.po-menu-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.po-menu-chip { padding: 7px 10px; border-radius: 9px; background: rgba(255,255,255,.1); color: #fff; font-size: 11px; }
.po-menu-chip strong { margin-left: 5px; color: #d7efdd; }
.po-ingredient-list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; margin-top: 13px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.13); }
.po-ingredient-list div { display: flex; justify-content: space-between; color: #eadfce; font-size: 10px; }

.po-order-card { padding: 15px 16px; border-left: 4px solid var(--krem3); }
.po-order-card.is-ready { border-left-color: var(--hijau2); }
.po-order-card.is-waiting { border-left-color: var(--kuning); }
.po-order-card.is-done { opacity: .78; }
.po-order-head { display: flex; justify-content: space-between; gap: 10px; align-items: start; }
.po-order-number { color: var(--hijau); font-size: 10px; font-weight: 700; letter-spacing: .8px; }
.po-order-name { margin-top: 2px; font-size: 14px; }
.po-order-meta { margin-top: 7px; color: var(--abu); font-size: 11px; line-height: 1.6; }
.po-order-actions { display: flex; gap: 7px; margin-top: 12px; flex-wrap: wrap; }
.po-order-actions .btn { flex: 1; min-width: 115px; }
.btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }

.po-empty { padding: 24px; text-align: center; color: var(--abu2); }
.po-empty span { display: block; font-size: 27px; margin-bottom: 7px; }

.import-log { min-height: 18px; margin-top: 10px; font-size: 12px; line-height: 1.5; color: var(--abu2); }

@media (max-width: 820px) {
  .po-workspace { grid-template-columns: 1fr; }
  .po-active-card { grid-template-columns: 1fr; }
  .po-active-order-row { grid-template-columns: 1fr; }
  .po-active-order-actions { justify-content: flex-start; flex-wrap: wrap; }
}

@media (max-width: 480px) {
  .po-hero { padding: 20px; }
  .po-hero h2 { font-size: 23px; }
  .po-hero-icon { display: none; }
  .po-flow { gap: 5px; justify-content: space-between; }
  .po-flow div { flex-direction: column; text-align: center; gap: 3px; }
  .po-flow i { margin-top: -13px; }
  .po-metrics { gap: 7px; }
  .po-metric { padding: 11px 9px; }
  .po-metric strong { font-size: 16px; }
  .form-grid { grid-template-columns: 1fr; }
  .field { grid-column: 1 / -1; }
  .po-ingredient-list { grid-template-columns: 1fr; }
}
.po-allocation-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(130px,180px);gap:12px;align-items:center;padding:7px 0;border-bottom:1px solid rgba(89,62,35,.1)}
.po-allocation-row:last-child{border-bottom:0}.po-allocation-row span{font-size:13px;color:var(--coklat)}.po-allocation-row input{margin:0!important}
