* { box-sizing: border-box; }
body { margin:0; font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif; background:#f4f5f7; color:#1a1a1a; }
.topnav { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; background:#1e293b; color:#fff; padding:12px 16px; gap:8px; }
.topnav-brand { font-weight:700; font-size:18px; }
.topnav-links { display:flex; flex-wrap:wrap; gap:14px; }
.topnav-links a { color:#cbd5e1; text-decoration:none; font-size:14px; }
.topnav-links a.active, .topnav-links a:hover { color:#fff; font-weight:600; }
.container { max-width:720px; margin:0 auto; padding:20px 16px; }
h1 { font-size:22px; margin-bottom:4px; }
h2 { font-size:17px; margin-top:28px; margin-bottom:10px; }
.hint { color:#64748b; font-size:14px; }
.card { background:#fff; border-radius:10px; padding:18px; box-shadow:0 1px 3px rgba(0,0,0,.08); margin-top:14px; }
label { display:block; font-size:13px; font-weight:600; margin:12px 0 4px; color:#334155; }
input, select { width:100%; padding:10px 12px; border:1px solid #cbd5e1; border-radius:8px; font-size:15px; }
button, .btn { display:inline-block; margin-top:16px; background:#2563eb; color:#fff; border:none; padding:12px 18px; border-radius:8px; font-size:15px; font-weight:600; cursor:pointer; text-decoration:none; }
button:hover, .btn:hover { background:#1d4ed8; }
.alert { padding:10px 14px; border-radius:8px; font-size:14px; margin:12px 0; }
.alert-error { background:#fee2e2; color:#991b1b; }
.alert-success { background:#dcfce7; color:#166534; }
.voucher-grid { display:flex; flex-wrap:wrap; gap:16px; margin-top:16px; }
.voucher-card { background:#fff; border-radius:10px; padding:16px; text-align:center; box-shadow:0 1px 3px rgba(0,0,0,.08); width:200px; }
.voucher-label { font-size:13px; font-weight:600; color:#2563eb; margin-bottom:10px; }
.qr-box { display:flex; justify-content:center; margin-bottom:10px; }
.voucher-code { font-family:monospace; font-size:16px; font-weight:700; letter-spacing:1px; }
.voucher-expiry { font-size:12px; color:#64748b; margin-top:4px; }
.stat-grid { display:flex; flex-wrap:wrap; gap:12px; margin-top:10px; }
.stat-card { background:#fff; border-radius:10px; padding:16px; text-align:center; flex:1; min-width:120px; box-shadow:0 1px 3px rgba(0,0,0,.08); }
.stat-card.highlight { background:#1e293b; color:#fff; }
.stat-num { font-size:24px; font-weight:700; }
.stat-label { font-size:12px; color:#64748b; margin-top:4px; }
.stat-card.highlight .stat-label { color:#cbd5e1; }
.table { width:100%; border-collapse:collapse; background:#fff; border-radius:10px; overflow:hidden; box-shadow:0 1px 3px rgba(0,0,0,.08); }
.table th, .table td { padding:10px 12px; text-align:left; font-size:14px; border-bottom:1px solid #eef1f5; }
.table th { background:#f8fafc; font-size:12px; text-transform:uppercase; color:#64748b; }
.table .total-row td { font-weight:700; }
.auth-page { display:flex; align-items:center; justify-content:center; min-height:100vh; }
.auth-box { background:#fff; padding:32px; border-radius:12px; box-shadow:0 4px 16px rgba(0,0,0,.1); width:320px; max-width:90vw; }
.auth-box h1 { text-align:center; margin-bottom:20px; }

.scan-banner { padding:20px; border-radius:12px; margin-top:14px; text-align:center; border-width:3px; border-style:solid; }
.scan-banner-success { background:#d1fae5; border-color:#10b981; }
.scan-banner-error { background:#fee2e2; border-color:#ef4444; }
.scan-banner-title { font-size:20px; font-weight:800; margin-bottom:8px; }
.scan-banner-success .scan-banner-title { color:#047857; }
.scan-banner-error .scan-banner-title { color:#b91c1c; }
.scan-banner p { margin:4px 0; font-size:14px; }

.scan-modal-overlay { position:fixed; inset:0; background:rgba(0,0,0,.55); display:none; align-items:center; justify-content:center; z-index:9999; padding:20px; }
.scan-modal-overlay.show { display:flex; }
.scan-modal-box { background:#fff; border-radius:16px; padding:28px 22px; max-width:340px; width:100%; text-align:center; border-width:4px; border-style:solid; box-shadow:0 10px 30px rgba(0,0,0,.35); }
.scan-modal-box p { margin:4px 0; font-size:15px; }
.scan-modal-hint { margin-top:14px; font-size:12px; color:#94a3b8; }


/* ===== Voucher branded (Nambo Motor) - NAMBO-VOUCHER-BRANDED-V1 ===== */
.voucher-grid { display:flex; flex-wrap:wrap; gap:24px; margin-top:16px; justify-content:flex-start; }
.voucher-item { display:flex; flex-direction:column; align-items:center; gap:10px; }
.voucher-card-branded { width:300px; background:#fff; border-radius:16px; overflow:hidden; box-shadow:0 6px 20px rgba(0,0,0,.16); }

.vc-header { display:flex; align-items:center; gap:10px; padding:12px 16px; background:#fff; }
.vc-logo-img { height:38px; width:auto; display:block; flex-shrink:0; }
.vc-dealer { margin-left:auto; font-size:10px; color:#888; font-weight:600; text-align:right; line-height:1.3; }

.vc-banner { position:relative; background:linear-gradient(135deg, #c9101a 0%, #E31E24 45%, #171717 100%); padding:18px 16px 22px; text-align:center; overflow:hidden; }
.vc-banner::before { content:''; position:absolute; right:-30px; top:-30px; width:120px; height:120px; background:rgba(255,255,255,.08); clip-path:polygon(0 0, 100% 0, 100% 100%); }
.vc-banner::after { content:''; position:absolute; left:-20px; bottom:-24px; width:80px; height:80px; background:rgba(0,0,0,.12); border-radius:50%; }
.vc-banner-title { position:relative; z-index:1; font-size:25px; font-weight:900; color:#fff; letter-spacing:.5px; text-transform:uppercase; line-height:1.15; }
.vc-banner-title small { display:inline-block; font-size:18px; background:#111; color:#fff; border-radius:6px; padding:2px 12px; margin-top:5px; letter-spacing:1px; }
.vc-banner-sub { position:relative; z-index:1; margin-top:12px; display:inline-block; background:#fff; color:#c9101a; font-size:12px; font-weight:700; padding:5px 16px; border-radius:999px; }

.vc-notch-row { position:relative; height:0; }
.vc-notch-row::before, .vc-notch-row::after { content:''; position:absolute; top:-11px; width:22px; height:22px; background:#f4f5f7; border-radius:50%; }
.vc-notch-row::before { left:-11px; }
.vc-notch-row::after { right:-11px; }
.vc-dashed-line { border-top:2px dashed #e2e2e2; margin:0 22px; }

.vc-body { padding:18px 16px 14px; text-align:center; position:relative; background-image:url('/assets/voucher-watermark.jpg'); background-size:cover; background-position:center 30%; background-repeat:no-repeat; }
.vc-qr-wrap { display:flex; justify-content:center; margin-bottom:12px; }
.vc-qr-wrap .qr-box { padding:10px; background:#fff; border:1px solid #eee; border-radius:10px; display:inline-block; }
.vc-code { font-family:monospace; font-size:19px; font-weight:800; letter-spacing:2px; color:#111; }
.vc-customer { margin-top:8px; font-size:13px; color:#333; font-weight:600; }
.vc-mesin { margin-top:2px; font-size:11px; color:#555; font-weight:600; letter-spacing:.3px; }
.vc-expiry { margin-top:4px; font-size:12px; color:#888; }
.vc-footer { background:#111; color:#ccc; font-size:10px; text-align:center; padding:9px 12px; }

.btn-download { margin-top:0; background:#111; }
.btn-download:hover { background:#000; }

.btn-download-all { margin:4px 0 18px; }


/* ===== Antrian Cuci - NAMBO-ANTRIAN-CUCI-V1 ===== */
.antrian-board { display:flex; gap:16px; margin-top:16px; flex-wrap:wrap; }
.antrian-col { flex:1 1 260px; background:#fff; border-radius:12px; padding:14px; min-height:120px; box-shadow:0 2px 8px rgba(0,0,0,.08); }
.antrian-col-head { font-weight:700; font-size:14px; margin-bottom:10px; padding-bottom:8px; border-bottom:2px solid #eee; }
.antrian-col-menunggu .antrian-col-head { color:#b45309; }
.antrian-col-sedang_dicuci .antrian-col-head { color:#1d4ed8; }
.antrian-col-selesai .antrian-col-head { color:#15803d; }
.antrian-empty { color:#999; font-size:13px; padding:14px 0; text-align:center; }
.antrian-card { background:#f8f9fb; border-radius:8px; padding:10px 12px; margin-bottom:10px; }
.antrian-name { font-weight:700; font-size:14px; color:#111; }
.antrian-plat { font-size:12px; color:#555; margin-top:2px; }
.antrian-ket { font-size:12px; color:#777; margin-top:2px; }
.antrian-time { font-size:11px; color:#aaa; margin-top:4px; }
.antrian-form { margin-top:8px; }
.antrian-btn { width:100%; padding:6px 10px; font-size:12px; background:#111; }
.antrian-btn:hover { background:#000; }

/* ===== NAMBO Global Brand - NAMBO-GLOBAL-BRAND-V1 ===== */
.topnav {
  background: linear-gradient(120deg, #171717 0%, #c9101a 45%, #E31E24 100%);
  padding: 10px 20px;
}
.topnav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
}
/* topnav-logo-chip */
.topnav-logo {
  height: 26px;
  width: auto;
  display: block;
  flex-shrink: 0;
  background: #fff;
  border-radius: 6px;
  padding: 3px 7px;
}
.topnav-links a {
  color: rgba(255,255,255,.78);
  padding: 5px 10px;
  border-radius: 6px;
  transition: background .15s, color .15s;
}
.topnav-links a.active,
.topnav-links a:hover {
  color: #fff;
  font-weight: 700;
  background: rgba(255,255,255,.16);
}

h2 {
  border-left: 4px solid #c9101a;
  padding-left: 10px;
}

button, .btn {
  background: linear-gradient(135deg, #c9101a, #E31E24);
}
button:hover, .btn:hover {
  background: linear-gradient(135deg, #a80d16, #c9101a);
}
/* voucher download button tetap hitam (desain voucher udah di-approve, jangan diubah) */
.btn-download, .btn-download:hover {
  background: #111;
}
.btn-download:hover {
  background: #000;
}
.antrian-btn {
  background: linear-gradient(135deg, #c9101a, #E31E24);
}
.antrian-btn:hover {
  background: linear-gradient(135deg, #a80d16, #c9101a);
}

.stat-card.highlight {
  background: linear-gradient(135deg, #c9101a, #171717);
}

.table th {
  border-bottom: 2px solid #c9101a;
}

.auth-page {
  background:
    linear-gradient(rgba(244,245,247,.55), rgba(244,245,247,.85)),
    url('/assets/voucher-watermark.jpg');
  background-size: cover;
  background-position: center 30%;
}
.auth-box {
  border-top: 5px solid #c9101a;
  text-align: center;
}
.auth-box form {
  text-align: left;
}
.auth-logo {
  display: block;
  margin: 4px auto 6px;
  height: 54px;
  width: auto;
}
.auth-box h1 {
  font-size: 18px;
  color: #555;
  font-weight: 600;
  margin-top: 0;
}

/* ===== NAMBO Sidebar Nav - NAMBO-SIDEBAR-V1 ===== */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 230px;
  background: linear-gradient(180deg, #171717 0%, #2a0d0f 60%, #3d0f13 100%);
  display: flex;
  flex-direction: column;
  z-index: 100;
  transition: transform .25s ease;
}
.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.sidebar-logo-img {
  height: 26px;
  width: auto;
  display: block;
  flex-shrink: 0;
  background: #fff;
  border-radius: 6px;
  padding: 3px 7px;
}
.sidebar-logo span {
  color: #fff;
  font-weight: 700;
  font-size: 16px;
}
.sidebar-links {
  flex: 1;
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.sidebar-links a {
  color: rgba(255,255,255,.75);
  text-decoration: none;
  font-size: 14px;
  padding: 11px 14px;
  border-radius: 8px;
  display: block;
  transition: background .15s, color .15s;
}
.sidebar-links a:hover {
  background: rgba(255,255,255,.08);
  color: #fff;
}
.sidebar-links a.active {
  background: linear-gradient(135deg, #c9101a, #E31E24);
  color: #fff;
  font-weight: 700;
}
.sidebar-foot {
  padding: 14px 10px 18px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.sidebar-foot a {
  color: rgba(255,255,255,.6);
  text-decoration: none;
  font-size: 14px;
  padding: 11px 14px;
  border-radius: 8px;
  display: block;
}
.sidebar-foot a:hover {
  background: rgba(255,255,255,.08);
  color: #fff;
}
.mobile-topbar {
  display: none;
  align-items: center;
  gap: 12px;
  background: linear-gradient(120deg, #171717 0%, #c9101a 45%, #E31E24 100%);
  padding: 12px 16px;
  position: sticky;
  top: 0;
  z-index: 90;
}
.hamburger-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 6px;
}
.mobile-topbar-logo {
  height: 24px;
  width: auto;
  display: block;
  background: #fff;
  border-radius: 6px;
  padding: 2px 6px;
}
.mobile-topbar span {
  color: #fff;
  font-weight: 700;
  font-size: 16px;
}
.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 95;
}
.container {
  margin-left: 230px;
  margin-right: 0;
  max-width: none;
  padding: 28px 32px;
}
@media (max-width: 820px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .sidebar-backdrop.open {
    display: block;
  }
  .mobile-topbar {
    display: flex;
  }
  .container {
    margin-left: 0;
    margin-right: 0;
    padding: 20px 16px;
  }
}


/* ===== Dashboard Date Filter - NAMBO-DASHBOARD-FILTER-V1 ===== */
.dashboard-filter {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  background: #fff;
  border-radius: 10px;
  padding: 14px 18px;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
  margin-bottom: 18px;
}
.dashboard-filter label {
  display: inline-block;
  margin: 0;
}
.dashboard-filter input[type="date"] {
  padding: 8px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 14px;
}
.dashboard-filter a {
  color: #2563eb;
  font-size: 14px;
  text-decoration: none;
}
.dashboard-filter a:hover {
  text-decoration: underline;
}


/* ===== Outlet Switcher - NAMBO-OUTLET-V1 ===== */
.sidebar-outlet {
  padding: 10px 14px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.sidebar-outlet-label {
  color: rgba(255,255,255,.75);
  font-size: 13px;
  margin-bottom: 6px;
}
.sidebar-outlet-label strong {
  color: #fff;
}
.sidebar-outlet-switch {
  display: flex;
  gap: 6px;
}
.sidebar-outlet-switch a {
  flex: 1;
  text-align: center;
  color: rgba(255,255,255,.7);
  text-decoration: none;
  font-size: 12px;
  padding: 6px 4px;
  border-radius: 6px;
  background: rgba(255,255,255,.06);
}
.sidebar-outlet-switch a.active {
  background: #E31E24;
  color: #fff;
  font-weight: 600;
}
.sidebar-outlet-switch a:hover {
  background: rgba(255,255,255,.15);
}
