:root {
  --pink-500: #ec4899; --pink-600: #db2777; --pink-50: #fdf2f8; --pink-100: #fce7f3;
  --sidebar-w: 252px; --topbar-h: 64px;
}
* { box-sizing: border-box; }
body { font-family: 'Poppins', sans-serif; background: #f8fafc; color: #111827; margin: 0; }

/* ── Sidebar ── */
.sidebar {
  width: var(--sidebar-w); height: 100vh; position: fixed; top: 0; left: 0;
  background: #fff; border-right: 1px solid #f3f4f6;
  display: flex; flex-direction: column; z-index: 200; overflow-y: auto;
  box-shadow: 2px 0 16px rgba(0,0,0,.04);
}
.sidebar-brand { padding: 24px 20px 16px; border-bottom: 1px solid #f3f4f6; }
.brand-cursive { font-family: 'Georgia', cursive; color: var(--pink-500); font-size: 26px; font-weight: 700; font-style: italic; }
.text-pink-muted { color: #9ca3af; font-size: 12px; }
.sidebar-nav { padding: 12px 10px; flex: 1; }
.nav-section { font-size: 10px; font-weight: 600; color: #9ca3af; text-transform: uppercase; letter-spacing: .08em; padding: 12px 10px 4px; }
.nav-link-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  margin-bottom: 2px; border-radius: 10px; color: #374151;
  font-size: 13.5px; font-weight: 500; text-decoration: none; transition: all .15s;
}
.nav-link-item:hover { background: var(--pink-50); color: var(--pink-600); }
.nav-link-item.active { background: var(--pink-500); color: #fff; }
.nav-link-item i { font-size: 16px; width: 20px; text-align: center; }
.sidebar-footer { padding: 14px 16px; border-top: 1px solid #f3f4f6; display: flex; align-items: center; gap: 10px; }
.sidebar-user { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.user-avatar { width: 36px; height: 36px; background: var(--pink-100); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--pink-500); font-size: 20px; flex-shrink: 0; }
.btn-logout { background: none; border: 1.5px solid #ef4444; color: #ef4444; border-radius: 8px; padding: 5px 10px; font-size: 13px; cursor: pointer; transition: all .15s; }
.btn-logout:hover { background: #ef4444; color: #fff; }

/* ── Main area ── */
.main-wrapper { margin-left: var(--sidebar-w); min-height: 100vh; display: flex; flex-direction: column; }
.topbar { height: var(--topbar-h); background: #fff; border-bottom: 1px solid #f3f4f6; display: flex; align-items: center; padding: 0 28px; gap: 16px; position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 4px rgba(0,0,0,.04); }
.topbar-right { margin-left: auto; }
.content-area { padding: 28px; flex: 1; }

/* ── Cards ── */
.card-white { background: #fff; border-radius: 14px; padding: 24px; box-shadow: 0 2px 12px rgba(0,0,0,.05); }

/* ── Stat cards ── */
.stat-card { background: #fff; border-radius: 14px; padding: 20px; box-shadow: 0 2px 12px rgba(0,0,0,.05); display: flex; align-items: center; gap: 16px; height: 100%; }
.stat-icon { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.stat-icon.pink   { background: var(--pink-100); color: var(--pink-500); }
.stat-icon.green  { background: #dcfce7; color: #16a34a; }
.stat-icon.yellow { background: #fef9c3; color: #a16207; }
.stat-icon.blue   { background: #dbeafe; color: #1d4ed8; }
.stat-icon.orange { background: #ffedd5; color: #c2410c; }
.stat-icon.purple { background: #ede9fe; color: #7c3aed; }
.stat-label { font-size: 12px; color: #6b7280; font-weight: 500; }
.stat-value { font-size: 20px; font-weight: 700; color: #111827; }
.stat-sub   { font-size: 11px; color: #9ca3af; }

/* ── Badges ── */
.badge-green  { background: #dcfce7; color: #166534; }
.badge-yellow { background: #fef9c3; color: #854d0e; }
.badge-red    { background: #fee2e2; color: #991b1b; }
.badge-orange { background: #ffedd5; color: #9a3412; }
.badge-blue   { background: #dbeafe; color: #1e40af; }
.bg-pink-light { background: var(--pink-100) !important; }
.text-pink     { color: var(--pink-500) !important; }

/* ── Table ── */
.vels-table thead th { font-size: 12px; font-weight: 600; color: #6b7280; border-bottom: 2px solid #f3f4f6; padding: 10px 12px; white-space: nowrap; }
.vels-table td { padding: 12px; border-bottom: 1px solid #f9fafb; vertical-align: middle; font-size: 13.5px; }
.vels-table tr:hover td { background: #fdf2f8 !important; }
.font-mono { font-family: monospace; font-size: 12px; }

/* ── Buttons ── */
.btn-pink { background: var(--pink-500); color: #fff; border: none; border-radius: 10px; font-weight: 600; transition: background .15s; }
.btn-pink:hover { background: var(--pink-600); color: #fff; }
.btn-outline-pink { border: 1.5px solid var(--pink-500); color: var(--pink-500); border-radius: 8px; background: transparent; font-weight: 600; transition: all .15s; }
.btn-outline-pink:hover { background: var(--pink-50); }
.btn-sidebar-toggle { background: none; border: none; cursor: pointer; padding: 4px; }

/* ── Form ── */
.form-control:focus, .form-select:focus { border-color: var(--pink-500); box-shadow: 0 0 0 3px rgba(236,72,153,.12); }
.form-check-input:checked { background-color: var(--pink-500); border-color: var(--pink-500); }
.fw-600 { font-weight: 600 !important; }
.fw-700 { font-weight: 700 !important; }

/* ── Login page ── */
.login-page { display: flex; min-height: 100vh; }
.login-left { width: 45%; background: linear-gradient(135deg, var(--pink-500) 0%, #9333ea 100%); display: flex; align-items: center; justify-content: center; padding: 48px; }
.login-left-content { color: #fff; max-width: 400px; }
.login-right { flex: 1; display: flex; align-items: center; justify-content: center; padding: 48px; }
.login-form-box { width: 100%; max-width: 420px; }
.login-features { display: flex; flex-direction: column; gap: 14px; }
.feature-item { display: flex; align-items: center; gap: 12px; font-size: 15px; opacity: .9; }
.feature-item i { font-size: 20px; }
.brand-cursive-large { font-family: 'Georgia', cursive; color: #fff; font-size: 40px; font-weight: 700; font-style: italic; }

/* ── Kasir layout ── */
.kasir-wrap { display: grid; grid-template-columns: 1fr 1.4fr; gap: 20px; height: calc(100vh - var(--topbar-h) - 56px); }
.kasir-panel { background: #fff; border-radius: 14px; box-shadow: 0 2px 12px rgba(0,0,0,.05); display: flex; flex-direction: column; overflow: hidden; }
.kasir-panel-body { flex: 1; overflow-y: auto; padding: 16px; }
.kasir-panel-footer { padding: 16px; border-top: 1px solid #f3f4f6; flex-shrink: 0; }
.kasir-panel-header { padding: 16px 20px; border-bottom: 1px solid #f3f4f6; flex-shrink: 0; }
.item-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
.item-card { border: 1.5px solid #f3f4f6; border-radius: 10px; padding: 10px; cursor: pointer; transition: all .15s; text-align: center; }
.item-card:hover { border-color: var(--pink-500); background: var(--pink-50); }
.item-card img { width: 100%; height: 72px; object-fit: cover; border-radius: 6px; margin-bottom: 6px; }
.cart-item-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid #f9fafb; }
.qty-ctrl { display: flex; align-items: center; gap: 6px; }
.qty-btn { width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid #e5e7eb; background: #fff; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all .15s; }
.qty-btn:hover { background: var(--pink-500); color: #fff; border-color: var(--pink-500); }
.total-bar { background: var(--pink-50); border-radius: 10px; padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.total-bar .label { font-size: 14px; color: #6b7280; }
.total-bar .value { font-size: 24px; font-weight: 700; color: var(--pink-600); }

/* ── Receipt modal ── */
.receipt-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); display: flex; align-items: center; justify-content: center; z-index: 1000; }
.receipt-box { background: #fff; border-radius: 16px; padding: 28px; width: 360px; max-height: 90vh; overflow-y: auto; }
.receipt-content { font-family: monospace; font-size: 13px; }
.receipt-divider { border: none; border-top: 1.5px dashed #ccc; margin: 10px 0; }

/* ── Progress card ── */
.progress-card { background: #fff; border-radius: 12px; box-shadow: 0 2px 10px rgba(0,0,0,.05); padding: 18px 20px; display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; transition: box-shadow .15s; }
.progress-card:hover { box-shadow: 0 4px 18px rgba(236,72,153,.12); }

/* ── Reports ── */
.preset-btn { padding: 6px 14px; border-radius: 20px; border: 1.5px solid #e5e7eb; background: #fff; font-size: 13px; cursor: pointer; transition: all .15s; }
.preset-btn:hover { border-color: var(--pink-500); color: var(--pink-500); }
.preset-btn.active { background: var(--pink-500); color: #fff; border-color: var(--pink-500); }

/* ── Overlay sidebar mobile ── */
.sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 190; }
.sidebar-overlay.show { display: block; }

/* ── Responsive ── */
@media (max-width: 991px) {
  .sidebar { transform: translateX(-100%); transition: transform .25s ease; }
  .sidebar.open { transform: translateX(0); }
  .main-wrapper { margin-left: 0; }
  .kasir-wrap { grid-template-columns: 1fr; height: auto; }
  .login-left { display: none; }
}
