/* --- HEALTHYBOX BRAND CSS DESIGN SYSTEM --- */
:root {
  --primary: #10b981;
  --primary-hover: #059669;
  --primary-light: rgba(16, 185, 129, 0.08);
  --primary-glow: rgba(16, 185, 129, 0.2);

  --secondary: #64748b;
  --secondary-hover: #475569;

  --bg-app: #f8fafc;
  --bg-card: #ffffff;
  --border-color: #f1f5f9;
  --border-focus: #cbd5e1;

  --text-main: #0f172a;
  --text-subtitle: #475569;
  --text-muted: #94a3b8;

  --warning: #f59e0b;
  --warning-light: rgba(245, 158, 11, 0.1);

  --danger: #ef4444;
  --danger-light: rgba(239, 68, 68, 0.1);

  --success: #10b981;
  --success-light: rgba(16, 185, 129, 0.1);

  --info: #0ea5e9;
  --font-family:
    "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 2px 10px rgba(15, 23, 42, 0.03);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.12);
}
/* --- RESET --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: var(--font-family);
  background-color: var(--bg-app);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.5;
}
/* --- APP CONTAINER --- */
.app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
/* --- NAVBAR --- */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.brand-icon {
  background-color: var(--primary-light);
  color: var(--primary);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}
.brand-text h1 {
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.2;
}
.brand-text span {
  font-size: 0.7rem;
  color: var(--text-muted);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.nav-btn {
  background: none;
  border: 1px solid var(--border-color);
  color: var(--text-subtitle);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.nav-btn:hover {
  background-color: var(--border-color);
  color: var(--text-main);
}
.nav-btn .badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background-color: var(--danger);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
  border: 2px solid var(--bg-card);
}
/* NOTIF DROPDOWN */
.notification-dropdown-container {
  position: relative;
}
.notif-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 300px;
  background-color: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  display: none;
  z-index: 110;
  overflow: hidden;
}
.notif-dropdown.show {
  display: block;
}
.notif-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-color);
}
.notif-header h3 {
  font-size: 0.85rem;
  font-weight: 800;
}
.notif-header button {
  background: none;
  border: none;
  color: var(--primary);
  font-family: var(--font-family);
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
}
.notif-list {
  max-height: 240px;
  overflow-y: auto;
}
.notif-item {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.75rem;
  cursor: pointer;
  transition: var(--transition);
}
.notif-item.unread {
  background-color: var(--primary-light);
}
.notif-item:hover {
  background-color: var(--border-color);
}
.notif-item .notif-title {
  font-weight: 700;
  margin-bottom: 0.15rem;
}
.notif-item .notif-time {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}
.empty-notif {
  padding: 2rem 1rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
}
.user-profile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-left: 1px solid var(--border-color);
  padding-left: 1.25rem;
}
.profile-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.profile-info {
  display: flex;
  flex-direction: column;
}
.profile-name {
  font-size: 0.8rem;
  font-weight: 700;
}
.profile-role {
  font-size: 0.65rem;
  color: var(--text-muted);
}
/* --- MAIN GRID LAYOUT --- */
/* --- MAIN GRID LAYOUT --- */
.main-content {
  flex: 1;
  padding: 1.5rem;
  max-width: 1600px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 1.5rem;
}
.section-header {
  margin-bottom: 1rem;
}
.section-header h2 {
  font-size: 1.3rem;
  font-weight: 800;
}
.section-header p {
  font-size: 0.8rem;
  color: var(--text-subtitle);
}
.workspace-menu,
.workspace-left,
.workspace-right {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
/* --- MENU CARD LIST STYLING --- */
.menu-list-scrollable {
  max-height: calc(100vh - 280px);
  overflow-y: auto;
  padding-right: 0.25rem;
}
.menu-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  display: flex;
  gap: 0.85rem;
  margin-bottom: 0.75rem;
  transition: var(--transition);
  align-items: center;
  position: relative;
  overflow: hidden;
}
.menu-card:hover {
  border-color: var(--border-focus);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.menu-card-img-wrapper {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}
.menu-card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.menu-card-tag {
  position: absolute;
  top: 2px;
  left: 2px;
  background-color: var(--primary);
  color: white;
  font-size: 0.55rem;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 4px;
  text-transform: uppercase;
}
.menu-card-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}
.menu-card-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.menu-card-desc {
  font-size: 0.65rem;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.3;
}
.menu-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.25rem;
}
.menu-card-price {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--primary);
}
.menu-card-rating {
  font-size: 0.65rem;
  color: var(--warning);
  font-weight: 700;
}
.menu-qty-control {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2px 8px;
  background-color: var(--bg-app);
}
.btn-qty {
  background: none;
  border: none;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--primary);
  cursor: pointer;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.btn-qty:hover {
  color: var(--primary-hover);
  transform: scale(1.1);
}
.qty-val {
  font-size: 0.75rem;
  font-weight: 700;
  min-width: 14px;
  text-align: center;
}
/* --- KERANJANG PEMESANAN CARD STYLING --- */
.cart-summary-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cart-header h3 {
  font-size: 0.9rem;
  font-weight: 800;
}
.badge-cart {
  background-color: var(--primary-light);
  color: var(--primary);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
}
.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 140px;
  overflow-y: auto;
  padding-right: 0.25rem;
}
.cart-item-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  align-items: center;
}
.cart-item-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
  margin-right: 0.5rem;
}
.cart-item-name {
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-main);
}
.cart-item-qty {
  font-size: 0.65rem;
  color: var(--text-muted);
}
.cart-item-price {
  font-weight: 700;
  color: var(--text-main);
}
.empty-cart-message {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-align: center;
  padding: 1.25rem 0.5rem;
  line-height: 1.4;
}
.cart-calculation-divider {
  border-top: 1px dashed var(--border-color);
}
.cart-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-subtitle);
}
.cart-total-row.cart-grandtotal {
  font-size: 0.85rem;
  color: var(--text-main);
  font-weight: 800;
  border-top: 1px solid var(--border-color);
  padding-top: 0.5rem;
}
.cart-total-row.cart-grandtotal strong {
  color: var(--primary);
  font-size: 1rem;
}
/* --- ACTIVE INVOICE CARD --- */
.invoice-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}
.invoice-card:hover {
  box-shadow: var(--shadow-md);
}
.invoice-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background-color: var(--warning);
}
.invoice-card.success-card::before {
  background-color: var(--success);
}
.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}
.invoice-meta h3 {
  font-size: 1.1rem;
  font-weight: 800;
}
.invoice-meta span {
  font-size: 0.7rem;
  color: var(--text-muted);
}
/* BADGES */
.status-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  text-transform: uppercase;
}
.status-badge.pending {
  background-color: var(--warning-light);
  color: var(--warning);
}
.status-badge.berhasil {
  background-color: var(--success-light);
  color: var(--success);
}
.status-badge.kedaluwarsa {
  background-color: var(--danger-light);
  color: var(--danger);
}
.card-details {
  background-color: var(--bg-app);
  padding: 0.85rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.detail-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
}
.detail-line span {
  color: var(--text-subtitle);
}
.detail-line strong {
  color: var(--text-main);
}
.detail-line .amount-highlight {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary);
}
.card-timer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.timer-box {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--danger);
  background-color: var(--danger-light);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 800;
}
.timer-box.timer-safe {
  color: var(--text-subtitle);
  background-color: var(--border-color);
}
/* BUTTONS */
.btn {
  font-family: var(--font-family);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-primary {
  background-color: var(--primary);
  color: white;
}
.btn-primary:hover:not(:disabled) {
  background-color: var(--primary-hover);
}
.btn-primary:disabled {
  background-color: var(--text-muted);
  cursor: not-allowed;
}
.btn-secondary {
  background-color: var(--border-color);
  color: var(--text-subtitle);
}
.btn-secondary:hover {
  background-color: var(--border-focus);
}
.btn-success {
  background-color: var(--success);
  color: white;
}
.btn-success:hover {
  background-color: var(--primary-hover);
}
.btn-danger {
  background-color: var(--danger);
  color: white;
}
.btn-danger:hover {
  background-color: #dc2626;
}
/* WA BANNER */
.wa-reminder-banner {
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: white;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-lg);
  display: none;
  align-items: center;
  gap: 1rem;
  position: relative;
}
.wa-reminder-banner.show {
  display: flex;
}
.wa-icon {
  background-color: rgba(255, 255, 255, 0.2);
  padding: 8px;
  border-radius: 50%;
  display: flex;
}
.wa-text h4 {
  font-size: 0.85rem;
  font-weight: 800;
  margin-bottom: 0.15rem;
}
.wa-text p {
  font-size: 0.7rem;
  opacity: 0.95;
  line-height: 1.3;
}
.wa-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: none;
  border: none;
  color: white;
  font-size: 1.1rem;
  cursor: pointer;
}
/* --- RIGHT PANEL FILTERING & SEARCH --- */
.filter-bar {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.search-input-wrapper {
  position: relative;
}
.search-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}
.search-input-wrapper input {
  width: 100%;
  padding: 0.65rem 1rem 0.65rem 2.25rem;
  border: 1px solid var(--border-color);
  background-color: var(--bg-card);
  border-radius: var(--radius-md);
  font-family: var(--font-family);
  font-size: 0.8rem;
  outline: none;
  transition: var(--transition);
}
.search-input-wrapper input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}
.filter-tabs {
  display: flex;
  gap: 0.4rem;
}
.tab-btn {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-subtitle);
  padding: 0.4rem 0.85rem;
  border-radius: 20px;
  cursor: pointer;
  font-family: var(--font-family);
  font-size: 0.75rem;
  font-weight: 600;
  transition: var(--transition);
}
.tab-btn.active {
  background-color: var(--primary);
  color: white;
  border-color: var(--primary);
}
/* --- TRANSACTION LIST --- */
.transaction-card-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-height: 400px;
  overflow-y: auto;
}
.transaction-item {
  background-color: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  border: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}
.transaction-item.clickable {
  cursor: pointer;
}
.transaction-item.clickable:hover {
  transform: translateX(3px);
  border-color: var(--border-focus);
}
.item-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.item-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.item-status-dot.pending {
  background-color: var(--warning);
}
.item-status-dot.berhasil {
  background-color: var(--success);
}
.item-status-dot.kedaluwarsa {
  background-color: var(--danger);
}
.item-info {
  display: flex;
  flex-direction: column;
}
.item-title {
  font-size: 0.8rem;
  font-weight: 700;
}
.item-subtitle {
  font-size: 0.65rem;
  color: var(--text-muted);
}
.item-right {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.2rem;
}
.item-amount {
  font-size: 0.8rem;
  font-weight: 800;
}
/* --- MODAL DIALOGS --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.modal-overlay.show {
  opacity: 1;
  pointer-events: auto;
}
.modal-card {
  background-color: var(--bg-card);
  width: 92%;
  max-width: 480px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(15px);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.modal-overlay.show .modal-card {
  transform: translateY(0);
}
.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal-header h2 {
  font-size: 1.15rem;
  font-weight: 800;
}
.modal-header p {
  font-size: 0.7rem;
  color: var(--text-muted);
}
.close-modal-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
}
.modal-body {
  padding: 1.25rem 1.5rem;
  overflow-y: auto;
  max-height: 65vh;
}
.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 0.75rem;
  background-color: var(--bg-app);
}
/* BILLING SUMMARY */
.billing-summary-card {
  background-color: var(--primary-light);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  border: 1px solid rgba(16, 185, 129, 0.15);
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
}
.summary-row span {
  color: var(--text-subtitle);
}
.summary-row strong {
  color: var(--text-main);
}
.summary-row strong.text-primary {
  color: var(--primary);
  font-size: 1.05rem;
  font-weight: 800;
}
/* PAYMENT SELECT GRID */
.modal-body h3 {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  margin-bottom: 0.6rem;
  margin-top: 0.5rem;
}
.payment-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}
.payment-option-card {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.65rem 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
}
.payment-option-card:hover {
  background-color: var(--bg-app);
}
.payment-option-card.selected {
  border-color: var(--primary);
  background-color: var(--primary-light);
}
.option-icon {
  width: 68px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 4px;
  flex-shrink: 0;
}
.option-icon img,
.option-icon svg {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.option-details h4 {
  font-size: 0.8rem;
  font-weight: 700;
}
.option-details p {
  font-size: 0.65rem;
  color: var(--text-muted);
}
/* --- PAYMENT GATEWAY MODAL --- */
.gateway-card {
  max-width: 400px;
}
.gateway-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}
.gateway-timer-box {
  background-color: var(--bg-app);
  padding: 0.4rem 1rem;
  border-radius: 30px;
  border: 1px solid var(--border-color);
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.gateway-timer-box span {
  color: var(--text-subtitle);
}
.gateway-timer-box h2 {
  color: var(--danger);
  font-size: 0.85rem;
  font-weight: 800;
}
.gateway-instruction-card {
  width: 100%;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  background-color: white;
}
.mock-qris-code {
  width: 160px;
  height: 160px;
  margin: 0 auto 0.85rem auto;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 8px;
  background-color: white;
}
.qr-svg {
  width: 100%;
  height: 100%;
}
.instruction-text {
  font-size: 0.75rem;
  color: var(--text-subtitle);
  line-height: 1.4;
  text-align: center;
}
.va-code-box {
  background-color: var(--bg-app);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  border: 1px solid var(--border-focus);
  margin-bottom: 0.85rem;
  text-align: left;
}
.va-code-box span#gateway-bank-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}
.code-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.2rem;
}
.code-number {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
}
.btn-copy {
  background-color: white;
  border: 1px solid var(--border-focus);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
}
.va-steps {
  text-align: left;
}
.va-steps h5 {
  font-size: 0.75rem;
  font-weight: 800;
  margin-bottom: 0.3rem;
}
.va-steps ol {
  font-size: 0.7rem;
  color: var(--text-subtitle);
  padding-left: 0.85rem;
}
.va-steps li {
  margin-bottom: 0.2rem;
}
.gateway-simulation-controls {
  width: 100%;
  border-top: 1px dashed var(--border-color);
  padding-top: 1rem;
}
.gateway-simulation-controls h4 {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--warning);
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}
.gateway-simulation-controls p {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.sim-btn-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
/* --- RECEIPT PAPER STYLING --- */
.receipt-card {
  max-width: 380px;
}
.receipt-paper {
  background-color: white;
  border: 1px solid var(--border-focus);
  padding: 1.25rem;
  border-radius: var(--radius-md);
}
.receipt-header {
  text-align: center;
}
.receipt-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--primary);
  margin-bottom: 0.2rem;
}
.receipt-logo h3 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-main);
}
.receipt-header p {
  font-size: 0.7rem;
  color: var(--text-muted);
}
.receipt-status-badge {
  background-color: var(--success);
  color: white;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 10px;
  border-radius: 12px;
}
.receipt-divider {
  border-top: 1px dashed var(--border-focus);
  margin: 0.85rem 0;
  position: relative;
}
.receipt-details {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.detail-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
}
.detail-row span {
  color: var(--text-muted);
}
.detail-row strong {
  color: var(--text-main);
}
.receipt-items {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.item-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.item-desc {
  text-align: left;
}
.item-name {
  font-size: 0.75rem;
  font-weight: 700;
}
.item-sub {
  font-size: 0.65rem;
  color: var(--text-muted);
}
.item-price {
  font-size: 0.75rem;
  font-weight: 700;
}
.tax-row {
  font-size: 0.7rem;
  color: var(--text-muted);
}
.receipt-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.receipt-total span {
  font-size: 0.75rem;
  font-weight: 700;
}
.receipt-total h2 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
}
.receipt-thankyou {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.4;
  margin-top: 0.85rem;
}
/* --- ADMIN PANEL SIMULATOR --- */
.admin-panel {
  background-color: #0f172a;
  color: #f8fafc;
  padding: 1.25rem 2rem;
  border-top: 4px solid var(--warning);
}
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #1e293b;
  padding-bottom: 0.4rem;
  margin-bottom: 0.85rem;
}
.admin-title {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--warning);
}
.admin-title h3 {
  font-size: 0.95rem;
  font-weight: 800;
}
.badge-admin {
  background-color: rgba(245, 158, 11, 0.12);
  color: var(--warning);
  font-size: 0.6rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(245, 158, 11, 0.25);
}
.admin-content {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 1.5rem;
  align-items: center;
}
.admin-info-card p {
  font-size: 0.75rem;
  color: #94a3b8;
}
.admin-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.admin-btn {
  font-family: var(--font-family);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  color: white;
  transition: var(--transition);
}
.admin-btn.btn-warning {
  background-color: #d97706;
}
.admin-btn.btn-warning:hover {
  background-color: #b45309;
}
.admin-btn.btn-danger {
  background-color: #dc2626;
}
.admin-btn.btn-danger:hover {
  background-color: #b91c1c;
}
.admin-btn.btn-info {
  background-color: #0ea5e9;
}
.admin-btn.btn-info:hover {
  background-color: #0284c7;
}
.admin-btn.btn-secondary {
  background-color: #334155;
}
.admin-btn.btn-secondary:hover {
  background-color: #1e293b;
}
/* --- TOAST SIMULATOR --- */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 999;
  max-width: 320px;
  width: 100%;
}
.toast {
  background-color: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--primary);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.toast.toast-wa {
  border-left-color: #25d366;
}
.toast-body h4 {
  font-size: 0.75rem;
  font-weight: 800;
  margin-bottom: 0.15rem;
}
.toast-body p {
  font-size: 0.7rem;
  color: var(--text-subtitle);
  line-height: 1.3;
}
.toast-close {
  background: none;
  border: none;
  font-size: 1rem;
  color: var(--text-muted);
  cursor: pointer;
}
/* --- PRINT MEDIA STYLES --- */
@media print {
  body * {
    visibility: hidden;
  }
  #receipt-modal,
  #receipt-modal .modal-card,
  #receipt-modal .receipt-paper,
  #receipt-modal .receipt-paper * {
    visibility: visible;
  }
  #receipt-modal {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: auto;
    background: none;
    backdrop-filter: none;
  }
  #receipt-modal .modal-card {
    box-shadow: none;
    border: none;
    transform: none;
    max-width: 100%;
    margin: 0;
  }
  #receipt-modal .receipt-footer {
    display: none;
  }
}
/* --- RESPONSIVE --- */
@media (max-width: 900px) {
  .main-content {
    grid-template-columns: 1fr;
    padding: 1rem;
  }
  .admin-content {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
}
@media (max-width: 500px) {
  .navbar {
    padding: 1rem;
  }
  .user-profile {
    display: none;
  }
  .admin-actions-grid {
    grid-template-columns: 1fr;
  }
}
