/* ===== RESET ===== */
* {
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
}

body {
  margin: 0;
  background: #eef2f7;
  color: #1f2937;
}

/* ===== HEADER ===== */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 55px;
  background: #0f172a;
  color: white;
  display: flex;
  align-items: center;
  padding: 0 15px;
  z-index: 1000;
}

/* ===== MENU BUTTON ===== */
.menu-btn {
  width: 26px;
  height: 18px;
  margin-right: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.bar {
  height: 3px;
  background: white;
  border-radius: 2px;
}

/* ===== SIDEBAR ===== */
.sidebar {
  position: fixed;
  top: 0;
  left: -260px;
  width: 260px;
  height: 100%;
  background: #ffffff;
  padding: 20px;
  box-shadow: 4px 0 20px rgba(0,0,0,0.15);
  transition: 0.25s ease;
  z-index: 1001;
  overflow-y: auto;
}

.sidebar.active {
  left: 0;
}

/* ===== OVERLAY ===== */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: none;
  z-index: 1000;
}

.overlay.active {
  display: block;
}

/* ===== CONTAINER ===== */
.container {
  max-width: 480px;
  margin: auto;
  padding: 15px;
  margin-top: 70px;
}

/* ===== CARD ===== */
.card {
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* ===== INPUT ===== */
.input {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  margin-top: 6px;
  margin-bottom: 10px;
  font-size: 14px;
}

/* ===== FLEX ===== */
.row {
  display: flex;
  gap: 10px;
}

.flex-1 { flex: 1; }

/* ===== BUTTON ===== */
.btn {
  padding: 12px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-weight: 600;
}

.btn-primary {
  background: #16a34a;
  color: white;
  font-weight: 600;
}

.w-full {
  width: 100%;
}

.btn-outline {
  background: white;
  border: 1px solid #d1d5db;
}

/* ===== MENU ITEM ===== */
.menu-item {
  padding: 12px;
  border-radius: 10px;
  margin-bottom: 6px;
  cursor: pointer;
}

.menu-item:hover {
  background: #f1f5f9;
}

.menu-item.active {
  background: #e0f2fe;
  font-weight: 600;
}

/* ===== LOGOUT ===== */
.menu-logout {
  background: #fee2e2;
  color: #b91c1c;
  margin-bottom: 10px;
}

/* ===== TEXT ===== */
.label {
  font-size: 13px;
  color: #6b7280;
}

.info {
  font-size: 13px;
}

/* ===== FULL ===== */
.w-full {
  width: 100%;
}

/* ===== MAP POPUP ===== */
.map-popup {
  position: fixed;
  top: 8%;
  left: 5%;
  right: 5%;
  background: white;
  border-radius: 16px;
  padding: 12px;
  z-index: 2000;
  display: none;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

#map {
  height: 300px;
  border-radius: 12px;
  margin: 10px 0;
}

.radio-item.btn-outline {
  background: white;
  border: 1px solid #d1d5db;
}

.radio-item.active {
  background: #0f172a;
  color: white;
}

.list-item {
  display:flex;
  justify-content:space-between;
  padding:8px 0;
  border-bottom:1px solid #eee;
  font-size:13px;
}

input:focus {
  border-color: #2563eb !important;
}

.radio-group {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.radio-item {
  flex: 1;
  text-align: center;
  padding: 12px;
  border-radius: 12px;
  cursor: pointer;
  background: #f1f5f9;
  border: 1px solid #d1d5db;
  transition: 0.2s;
}

.radio-item.active {
  background: #0f172a;
  color: white;
  border: none;
}

.card hr {
  margin: 10px 0;
  border: none;
  border-top: 1px solid #e5e7eb;
}

/* override halus, bukan destroy */
.container {
  max-width: 480px;
  margin: auto;
  padding: 15px;
  margin-top: 70px;
}

.card {
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* ===== SPACING FIX ===== */
.container {
  margin-top: 70px;
  padding: 16px;
}

.card {
  margin-bottom: 16px;
}

.label {
  margin-top: 10px;
  display: block;
}

.input {
  margin-bottom: 10px;
}

.radio-group {
  margin-bottom: 10px;
}

.btn {
  margin-top: 10px;
}

/* ===== BUTTON TAMBAHAN ===== */
.btn-danger {
  background: #dc2626;
  color: white;
}

/* ===== STICKY TOTAL ===== */
.sticky-total {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  box-shadow: 0 -3px 10px rgba(0,0,0,0.1);
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.total-text {
  font-weight: bold;
  font-size: 16px;
}

.row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.sku-input {
  flex: 2;
}

.qty {
  flex: 1;
}

.row .btn {
  padding: 10px 12px;
  border-radius: 10px;
}

.container {
  padding-bottom: 100px; /* 🔥 penting */
}

.list-item span:last-child {
  text-align: right;
}

.add-fixed {
  position: sticky;
  bottom: 80px;
  z-index: 10;
}

.card.zero {
  border-left: 4px solid #dc2626;
}

.status{
padding:4px 10px;
border-radius:10px;
font-size:12px;
font-weight:600;
}

.status.nonro{
background:#fee2e2;
color:#b91c1c;
}

.status.noo{
background:#dbeafe;
color:#1d4ed8;
}

.status.tokoro{
background:#dcfce7;
color:#166534;
}

/* ===== LOGO ===== */
.logo {
  text-align: center;
  margin-bottom: 15px;
}

.logo-img {
  width: 140px;
  max-width: 100%;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.2));
}