/* ===== VARIABEL CSS WARNA PINK-PUTIH ===== */
:root {
  --primary-pink: #FF69B4;
  --light-pink: #FFB6C1;
  --soft-pink: #FFC0CB;
  --pale-pink: #FFCCCB;
  --white: #FFFFFF;
  --off-white: #FAFAFA;
  --light-gray: #F5F5F5;
  --medium-gray: #E8E8E8;
  --dark-gray: #666666;
  --text-dark: #333333;
  --success-green: #4CAF50;
  --warning-orange: #FF9800;
  --error-red: #F44336;
  --shadow-light: rgba(255, 105, 180, 0.1);
  --shadow-medium: rgba(255, 105, 180, 0.2);
  --shadow-dark: rgba(255, 105, 180, 0.3);
}

/* ===== RESET & BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: #f8fafc;
  min-height: 100vh;
  color: var(--text-dark);
  font-size: 14px;
  line-height: 1.6;
}

/* ===== CONTAINER UTAMA ===== */
.app-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
}

/* ===== HEADER ===== */
.app-header {
  background: linear-gradient(135deg, var(--primary-pink) 0%, var(--light-pink) 100%);
  border-radius: 20px;
  box-shadow: 0 10px 30px var(--shadow-medium);
  margin-bottom: 20px;
  overflow: hidden;
}

.header-content {
  padding: 25px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo-icon {
  background: var(--white);
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3);
}

.logo-icon i {
  font-size: 2.5rem;
  color: var(--primary-pink);
}

.logo-icon img {
  width: 54px;
  height: 54px;
  border-radius: 10px;
  background: var(--white);
  object-fit: contain;
}

.receipt-logo {
  display: block;
  width: auto;
  max-width: 92px;
  max-height: 54px;
  margin: 0 auto 9px;
  object-fit: contain;
}

.logo-text h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--white);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 5px;
}

.logo-text p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  font-weight: 400;
}

.header-info {
  display: flex;
  align-items: center;
  gap: 25px;
}

.datetime-display {
  background: rgba(255, 255, 255, 0.2);
  padding: 12px 20px;
  border-radius: 15px;
  color: var(--white);
  font-weight: 500;
  backdrop-filter: blur(10px);
}

.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 500;
}

.user-info i {
  font-size: 1.5rem;
}

/* ===== NAVIGATION ===== */
.main-navigation {
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 8px 25px var(--shadow-light);
  margin-bottom: 20px;
  padding: 15px;
}

.nav-container {
  display: flex;
  gap: 10px;
}

.nav-item {
  flex: 1;
  background: transparent;
  border: 2px solid transparent;
  padding: 18px 25px;
  border-radius: 15px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--dark-gray);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.nav-item:hover {
  background: var(--light-gray);
  border-color: var(--light-pink);
}

.nav-item.active {
  background: linear-gradient(135deg, var(--primary-pink) 0%, var(--light-pink) 100%);
  color: var(--white);
  border-color: var(--primary-pink);
  box-shadow: 0 5px 15px var(--shadow-medium);
}

.nav-item i {
  font-size: 1.2rem;
}

/* ===== MAIN CONTENT ===== */
.main-content {
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 8px 25px var(--shadow-light);
  min-height: 600px;
  overflow: hidden;
}

.tab-panel {
  display: none;
  padding: 30px;
  animation: fadeInUp 0.4s ease-out;
}

.tab-panel.active {
  display: block;
}

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

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 3px solid var(--light-pink);
}

.page-header h2 {
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 15px;
}

.page-header h2 i {
  color: var(--primary-pink);
}

.page-header p {
  color: var(--dark-gray);
  font-size: 1rem;
  margin-top: 5px;
}

/* ===== DASHBOARD STATS ===== */
.stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-bottom: 30px;
}

.stat-card {
  background: var(--white);
  border-radius: 18px;
  padding: 30px;
  box-shadow: 0 8px 25px var(--shadow-light);
  display: flex;
  align-items: center;
  gap: 25px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.stat-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px var(--shadow-medium);
  border-color: var(--light-pink);
}

.stat-card.revenue {
  background: linear-gradient(135deg, var(--success-green) 0%, #81C784 100%);
  color: var(--white);
}

.stat-card.transactions {
  background: linear-gradient(135deg, var(--primary-pink) 0%, var(--light-pink) 100%);
  color: var(--white);
}

.stat-card.menu-count {
  background: linear-gradient(135deg, var(--warning-orange) 0%, #FFB74D 100%);
  color: var(--white);
}

.stat-icon {
  background: rgba(255, 255, 255, 0.2);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

.stat-icon i {
  font-size: 2.5rem;
}

.stat-info h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
  opacity: 0.9;
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.stat-label {
  opacity: 0.8;
  font-size: 0.9rem;
}

/* ===== BUTTONS ===== */
.btn {
  padding: 12px 24px;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-family: inherit;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-pink) 0%, var(--light-pink) 100%);
  color: var(--white);
}

.btn-success {
  background: linear-gradient(135deg, var(--success-green) 0%, #81C784 100%);
  color: var(--white);
}

.btn-secondary {
  background: var(--medium-gray);
  color: var(--dark-gray);
}

.btn-danger {
  background: linear-gradient(135deg, var(--error-red) 0%, #EF5350 100%);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--light-pink);
  color: var(--primary-pink);
}
.payment-type-filter {
  margin: 20px 0;
  padding: 15px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #f8f9fa;
}

.payment-filter-options {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.payment-option {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 20px;
  transition: all 0.3s ease;
}

.payment-option:hover {
  background: var(--shadow-light);
}

.payment-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

.payment-summary-item {
  padding: 20px;
  border-radius: 10px;
  border: 2px solid transparent;
}

.cash-summary {
  background: linear-gradient(135deg, #f0f8f0, #e8f5e8);
  border-color: #28a745;
}

.noncash-summary {
  background: linear-gradient(135deg, #f0f0f8, #e8e8f5);
  border-color: #007bff;
}

.badge-cash {
  background: #28a745;
  color: white;
}

.badge-noncash {
  background: #007bff;
  color: white;
}

.row-cash {
  background-color: rgba(40, 167, 69, 0.1);
}

.row-noncash {
  background-color: rgba(0, 123, 255, 0.1);
}

.stat-value.cash {
  color: #28a745;
  font-weight: bold;
  font-size: 1.2em;
}

.stat-value.noncash {
  color: #007bff;
  font-weight: bold;
  font-size: 1.2em;
}
.btn-outline:hover {
  background: var(--light-pink);
  color: var(--white);
}

.btn-large {
  padding: 18px 30px;
  font-size: 1.1rem;
  width: 100%;
  justify-content: center;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.75rem;
  border-radius: 8px;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ===== MODAL ===== */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  background: rgba(0, 0, 0, 0.65);
  z-index: 1050;
  backdrop-filter: blur(4px);
  padding: 12px;
  overflow-y: auto;
  box-sizing: border-box;
}

.modal-overlay.show {
  display: flex !important;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}



@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(50px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ===== VARIABEL CSS WARNA PINK-PUTIH ===== */
:root {
  --primary-pink: #FF69B4;
  --light-pink: #FFB6C1;
  --soft-pink: #FFC0CB;
  --pale-pink: #FFCCCB;
  --white: #FFFFFF;
  --off-white: #FAFAFA;
  --light-gray: #F5F5F5;
  --medium-gray: #E8E8E8;
  --dark-gray: #666666;
  --text-dark: #333333;
  --success-green: #4CAF50;
  --warning-orange: #FF9800;
  --error-red: #F44336;
  --shadow-light: rgba(255, 105, 180, 0.1);
  --shadow-medium: rgba(255, 105, 180, 0.2);
  --shadow-dark: rgba(255, 105, 180, 0.3);
}

/* ===== RESET & BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: #f8fafc;
  min-height: 100vh;
  color: var(--text-dark);
  font-size: 14px;
  line-height: 1.6;
}

/* ===== CONTAINER UTAMA ===== */
.app-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
}

/* ===== HEADER ===== */
.app-header {
  background: linear-gradient(135deg, var(--primary-pink) 0%, var(--light-pink) 100%);
  border-radius: 20px;
  box-shadow: 0 10px 30px var(--shadow-medium);
  margin-bottom: 20px;
  overflow: hidden;
}

.header-content {
  padding: 25px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo-icon {
  background: var(--white);
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3);
}

.logo-icon i {
  font-size: 2.5rem;
  color: var(--primary-pink);
}

.logo-text h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--white);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 5px;
}

.logo-text p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  font-weight: 400;
}

.header-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.datetime-display {
  background: rgba(255, 255, 255, 0.2);
  height: 38px;
  padding: 0 16px;
  border-radius: 20px;
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 500;
  backdrop-filter: blur(8px);
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  white-space: nowrap;
}

.user-info {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.15);
  height: 38px;
  padding: 0 14px;
  border-radius: 20px;
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 500;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  white-space: nowrap;
}

.user-info i {
  font-size: 1.15rem;
}

.logout-btn {
  background: rgba(220, 38, 38, 0.9);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  height: 38px;
  padding: 0 16px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all 0.25s ease;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  white-space: nowrap;
  font-family: inherit;
}

.logout-btn:hover {
  background: #dc2626;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.35);
}

/* ===== BLUETOOTH QUICK STATUS INDICATOR ===== */
.header-bt-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  backdrop-filter: blur(8px);
  cursor: pointer;
  transition: all 0.25s ease;
  user-select: none;
  white-space: nowrap;
}

.header-bt-status.connected {
  background: rgba(16, 185, 129, 0.25);
  color: #ecfdf5;
  border: 1px solid rgba(52, 211, 153, 0.5);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}

.header-bt-status.connected:hover {
  background: rgba(16, 185, 129, 0.4);
  transform: translateY(-1px);
}

.header-bt-status.connecting {
  background: rgba(245, 158, 11, 0.25);
  color: #fffbeb;
  border: 1px solid rgba(251, 191, 36, 0.5);
  animation: pulse-bt 1.5s infinite ease-in-out;
}

.header-bt-status.disconnected {
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.header-bt-status.disconnected:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  transform: translateY(-1px);
}

/* Kasir Order Panel Bluetooth Badge */
.kasir-bt-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  padding: 4px 10px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  font-weight: 500;
}

.kasir-bt-badge.connected {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

.kasir-bt-badge.connecting {
  background: #fffbeb;
  color: #d97706;
  border: 1px solid #fde68a;
  animation: pulse-bt 1.5s infinite ease-in-out;
}

.kasir-bt-badge.disconnected {
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

.kasir-bt-badge:hover {
  filter: brightness(0.95);
  transform: translateY(-1px);
}

@keyframes pulse-bt {
  0%, 100% { opacity: 0.75; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.03); }
}

/* ===== NAVIGATION ===== */
.main-navigation {
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 8px 25px var(--shadow-light);
  margin-bottom: 20px;
  padding: 15px;
}

.nav-container {
  display: flex;
  gap: 10px;
}

.nav-item {
  flex: 1;
  background: transparent;
  border: 2px solid transparent;
  padding: 18px 25px;
  border-radius: 15px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--dark-gray);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.nav-item:hover {
  background: var(--light-gray);
  border-color: var(--light-pink);
}

.nav-item.active {
  background: linear-gradient(135deg, var(--primary-pink) 0%, var(--light-pink) 100%);
  color: var(--white);
  border-color: var(--primary-pink);
  box-shadow: 0 5px 15px var(--shadow-medium);
}

.nav-item i {
  font-size: 1.2rem;
}

/* ===== MAIN CONTENT ===== */
.main-content {
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 8px 25px var(--shadow-light);
  min-height: 600px;
  overflow: hidden;
}

.tab-panel {
  display: none;
  padding: 30px;
  animation: fadeInUp 0.4s ease-out;
}

.tab-panel.active {
  display: block;
}

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

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 3px solid var(--light-pink);
}

.page-header h2 {
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 15px;
}

.page-header h2 i {
  color: var(--primary-pink);
}

.page-header p {
  color: var(--dark-gray);
  font-size: 1rem;
  margin-top: 5px;
}

/* ===== DASHBOARD STATS ===== */
.stats-container {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 25px;
}

@media (max-width: 1200px) {
  .stats-container {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
}

@media (max-width: 768px) {
  .stats-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .stats-container {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

.stat-card {
  position: relative;
  background: var(--white);
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 120px;
  transition: all 0.25s ease;
  border: 1px solid rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.stat-card.revenue {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: var(--white);
}

.stat-card.transactions {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: var(--white);
}

.stat-card.expense {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: var(--white);
}

.stat-card.net-cash {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: var(--white);
}

.stat-card.menu-count {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: var(--white);
}

.stat-icon {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.22);
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  flex-shrink: 0;
  pointer-events: none;
}

.stat-icon i {
  font-size: 1.25rem;
  color: #ffffff;
}

.stat-info {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.stat-info h3 {
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0 0 10px 0;
  padding-right: 48px; /* Ruang untuk badge icon di kanan atas */
  opacity: 0.92;
  letter-spacing: 0.2px;
  line-height: 1.3;
}

.stat-value {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 5px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.5px;
  color: #ffffff;
}

.stat-label {
  opacity: 0.82;
  font-size: 0.75rem;
  line-height: 1.2;
  color: #ffffff;
}

/* ===== BUTTONS ===== */
.btn {
  padding: 12px 24px;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-family: inherit;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-pink) 0%, var(--light-pink) 100%);
  color: var(--white);
}

.btn-success {
  background: linear-gradient(135deg, var(--success-green) 0%, #81C784 100%);
  color: var(--white);
}

.btn-secondary {
  background: var(--medium-gray);
  color: var(--dark-gray);
}

.btn-danger {
  background: linear-gradient(135deg, var(--error-red) 0%, #EF5350 100%);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--light-pink);
  color: var(--primary-pink);
}

.btn-outline:hover {
  background: var(--light-pink);
  color: var(--white);
}

.btn-large {
  padding: 18px 30px;
  font-size: 1.1rem;
  width: 100%;
  justify-content: center;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.75rem;
  border-radius: 8px;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ===== MODAL ===== */


@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(50px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ===== PERBAIKAN TAMPILAN MODAL DAN FORM MENU ===== */

/* 1. Modal Content yang Lebih Baik */
.modal-content {
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 650px; /* Sedikit lebih lebar untuk form yang lebih nyaman */
  width: 95%;
  max-height: 90vh;
  overflow: hidden; /* Sembunyikan overflow utama */
  display: flex;
  flex-direction: column;
  animation: slideUp 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* 2. Header Modal yang Lebih Elegan */
.modal-header {
  padding: 25px 30px;
  border-bottom: 2px solid var(--light-gray); /* Garis pemisah yang lebih soft */
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.modal-header h3 {
  font-size: 1.6rem; /* Ukuran font lebih besar */
  font-weight: 600;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-header h3 i {
  color: var(--primary-pink);
}

/* 3. Form yang Lebih Terstruktur dan Rapi */
#addMenuForm {
  padding: 30px;
  overflow-y: auto; /* Scroll hanya pada area form jika konten panjang */
  flex-grow: 1;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px; /* Jarak antar kolom lebih besar */
  margin-bottom: 25px;
}

/* Untuk form group yang satu kolom */
.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  display: block;
  margin-bottom: 10px; /* Jarak lebih besar antara label dan input */
  font-weight: 500; /* Font weight lebih soft */
  color: var(--dark-gray);
  font-size: 0.9rem;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group select {
  width: 100%;
  padding: 15px 20px;
  border: 2px solid var(--medium-gray);
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
  background: var(--off-white);
  color: var(--text-dark);
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-pink);
  background: var(--white);
  box-shadow: 0 0 0 4px var(--shadow-light); /* Efek focus lebih jelas */
}

/* Placeholder yang lebih baik */
::placeholder {
  color: #aaa;
  opacity: 1;
}

/* 4. Checkbox Stok Tak Terbatas yang Lebih Stylish */
.form-group-checkbox {
  grid-column: 1 / -1; /* Mengambil lebar penuh */
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px;
  background: linear-gradient(135deg, var(--soft-pink) 0%, var(--pale-pink) 100%);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.form-group-checkbox:hover {
  border-color: var(--primary-pink);
  box-shadow: 0 5px 15px var(--shadow-light);
}

.form-group-checkbox input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: var(--primary-pink);
  cursor: pointer;
}

.form-group-checkbox label {
  cursor: pointer;
  margin-bottom: 0;
  font-weight: 600;
  color: var(--text-dark);
  font-size: 1rem;
}

/* Sembunyikan input stok jika tidak diperlukan dengan transisi */
#stokMenuContainer {
  transition: all 0.4s ease;
  overflow: hidden;
  max-height: 100px; /* Tinggi awal untuk transisi */
}

#stokMenuContainer.hidden {
  opacity: 0;
  max-height: 0;
  margin-bottom: -25px; /* Kompensasi margin-bottom dari .form-grid */
  pointer-events: none;
}


/* 5. Aksi Form (Tombol) yang Lebih Profesional */
.form-actions {
  padding: 25px 30px;
  border-top: 2px solid var(--light-gray);
  display: flex;
  gap: 15px;
  justify-content: flex-end;
  background-color: var(--off-white); /* Latar belakang yang sedikit berbeda */
  flex-shrink: 0;
}

.form-actions .btn {
  font-size: 1rem;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 12px;
}


/* ===== FORM STYLES ===== */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.9rem;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 15px 18px;
  border: 2px solid var(--medium-gray);
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
  background: var(--off-white);
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-pink);
  background: var(--white);
  box-shadow: 0 0 0 3px var(--shadow-light);
}

.form-actions {
  padding: 25px 30px;
  border-top: 2px solid var(--light-gray);
  display: flex;
  gap: 15px;
  justify-content: flex-end;
}

/* ===== MENU CATEGORIES ===== */
.menu-categories-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.category-panel {
  background: var(--off-white);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 5px 20px var(--shadow-light);
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.category-panel:hover {
  border-color: var(--light-pink);
  box-shadow: 0 10px 30px var(--shadow-medium);
}

.category-header {
  padding: 25px 30px;
  display: flex;
  align-items: center;
  gap: 15px;
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--white);
  position: relative;
}

.category-header.main-menu {
  background: linear-gradient(135deg, #FF6B35 0%, #FF8E53 100%);
}

.category-header.drinks {
  background: linear-gradient(135deg, var(--primary-pink) 0%, var(--light-pink) 100%);
}

.category-header.additional {
  background: linear-gradient(135deg, #9C27B0 0%, #BA68C8 100%);
}

.category-count {
  background: rgba(255, 255, 255, 0.3);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.9rem;
  margin-left: auto;
  backdrop-filter: blur(10px);
}

/* ===== IMPROVED MENU CARD STYLING ===== */
.menu-items-grid {
  padding: 25px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.menu-item-card {
  background: var(--white);
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border: 2px solid transparent;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 180px;
  max-height: 200px;
}

.menu-item-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border-color: var(--light-pink);
}

.menu-item-card h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 10px;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.menu-item-card .price {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-pink);
  margin-bottom: 15px;
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-item-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: auto;
}

.empty-category {
  text-align: center;
  padding: 60px 30px;
  color: var(--dark-gray);
}

.empty-category i {
  font-size: 4rem;
  margin-bottom: 20px;
  opacity: 0.5;
  color: var(--light-pink);
}

.empty-category p {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 10px;
}

.empty-category small {
  opacity: 0.7;
}

/* ===== KASIR LAYOUT ===== */
.kasir-container {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 30px;
  height: 700px;
}
/* ================== KARTU MENU DI HALAMAN KASIR ================= */

/* ===== PERBAIKAN KHUSUS CONTAINER MENU KASIR ===== */

/* Container utama menu kasir */
.menu-items-container {
  flex: 1;
  overflow: hidden;
  /* Tambahkan ini untuk memastikan container tidak meluber */
  min-height: 0;
}

/* Grid kategori menu di kasir */
/* ===== SOLUSI FINAL UNTUK CARD KASIR YANG TEKS TERPOTONG ===== */

/* Container grid kasir */
.menu-category-grid {
  display: none;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 15px;
  padding: 20px;
  height: 100%;
  overflow-y: auto;
  
  /* FIX: Set explicit width */
  width: 100%;
  min-width: 0;
}

.menu-category-grid.active {
  display: grid;
}

/* Card kasir - SOLUSI UTAMA */
.kasir-menu-item {
  background: var(--white);
  border-radius: 12px;
  padding: 15px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  
  /* Posisi relatif untuk badge */
  position: relative;
  
  /* GANTI FLEXBOX DENGAN GRID - Ini kunci utamanya */
  display: grid;
  grid-template-rows: auto 1fr auto;
  grid-template-areas: 
    "badge"
    "title" 
    "price";
  align-items: center;
  justify-items: center;
  
  /* Dimensi tetap */
  min-height: 100px;
  max-height: 120px;
  
  /* FIX overflow */
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  word-wrap: break-word;
}

.kasir-menu-item:hover {
  transform: translateY(-3px);
  border-color: var(--light-pink);
  box-shadow: 0 8px 20px var(--shadow-light);
}

/* Badge stok */
.stock-badge-kasir {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--success-green);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 8px;
  z-index: 2;
  grid-area: badge;
}

.stock-badge-kasir.infinite {
  background: var(--primary-pink);
}

/* Judul menu - FIX FINAL */
.kasir-menu-item h5 {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-dark);
  line-height: 1.2;
  
  /* Grid area */
  grid-area: title;
  
  /* SOLUSI TEKS TERPOTONG - Jangan gunakan webkit-line-clamp di flexbox/grid kompleks */
  /* Gunakan cara manual yang lebih reliable */
  overflow: hidden;
  word-break: break-word;
  hyphens: auto;
  
  /* Batasi tinggi secara manual */
  max-height: 2.4em; /* 2 baris × 1.2 line-height */
  
  /* Full width dalam grid */
  width: 100%;
  max-width: 100%;
  
  /* Margin dan padding */
  margin: 0;
  padding: 0 20px 0 0; /* Ruang untuk badge */
  
  /* Alignment */
  align-self: center;
  justify-self: center;
  text-align: center;
}

/* Harga */
.kasir-menu-item .price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-pink);
  
  /* Grid area */
  grid-area: price;
  
  /* Full width */
  width: 100%;
  max-width: 100%;
  margin: 0;
  
  /* Alignment */
  align-self: end;
  justify-self: center;
}
/* === KASIR SEARCH BOX =============================================== */
.kasir-search-box {
    margin: 15px 0 10px;
    position: relative;
    display: flex;
    align-items: center;
}

.kasir-search-box i {
    position: absolute;
    left: 14px;
    color: #bbb;
    font-size: 0.9rem;
}

.kasir-search-box input {
    width: 100%;
    padding: 10px 15px 10px 38px;
    border: 2px solid #eee;
    border-radius: 10px;
    transition: all 0.25s;
    font-family: inherit;
}

.kasir-search-box input:focus {
    border-color: #ff69b4;
    box-shadow: 0 0 0 3px var(--shadow-medium);
    outline: none;
}


/* === MENU MANAGEMENT SEARCH =============================== */
.menu-search-container {
  margin: 20px 0;
  padding: 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border-left: 4px solid #ff69b4;
}

.menu-search-box {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.menu-search-box i {
  position: absolute;
  left: 14px;
  color: #bbb;
  font-size: 1rem;
  z-index: 2;
}

.menu-search-box input {
  width: 100%;
  padding: 14px 18px 14px 42px;
  border: 2px solid #f0f0f0;
  border-radius: 10px;
  transition: all 0.3s ease;
  font-family: inherit;
  font-size: 1rem;
  background: #fafafa;
}

.menu-search-box input:focus {
  border-color: #ff69b4;
  box-shadow: 0 0 0 3px var(--shadow-medium);
  outline: none;
  background: white;
}

.search-filters {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.search-filters select {
  padding: 10px 15px;
  border: 2px solid #f0f0f0;
  border-radius: 8px;
  background: white;
  font-family: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 160px;
}

.search-filters select:focus {
  border-color: #ff69b4;
  box-shadow: 0 0 0 3px var(--shadow-medium);
  outline: none;
}

/* Search Results Info */
.search-results-info {
  margin: 15px 0;
  padding: 15px 20px;
  background: linear-gradient(135deg, #fff5f8, #ffeef2);
  border-left: 4px solid #ff69b4;
  border-radius: 8px;
  font-size: 0.95rem;
  color: #333;
  display: none;
  align-items: center;
  justify-content: space-between;
}

.search-results-info.active {
  display: flex;
}

.search-results-info i {
  color: #ff69b4;
  margin-right: 8px;
}

.clear-filters-btn {
  background: #ff69b4;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.clear-filters-btn:hover {
  background: #ff1493;
  transform: translateY(-1px);
}

/* Hidden items during search */
.menu-item-card.search-hidden {
  display: none !important;
}

/* Category count with filters */
.category-count.filtered {
  background: #ff69b4;
  color: white;
  font-weight: 600;
}

/* Empty state during search */
.category-panel.all-hidden .menu-items-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  color: #888;
  font-style: italic;
  text-align: center;
}

.category-panel.all-hidden .menu-items-grid::after {
  content: "Tidak ada menu yang cocok dengan filter";
}

/* Stock warnings */
.stock-warning {
  position: absolute;
  bottom: 45px;
  right: 10px;
  background: #ff4757;
  color: white;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
}

.stock-warning.low {
  background: #ffa502;
}

/* Enhanced stock badges */
.stock-badge.low {
  background: linear-gradient(135deg, #ffa502, #ff7f50);
  color: white;
}

.stock-badge.unavailable {
  background: linear-gradient(135deg, #ff4757, #ff3742);
}

.stock-badge.available {
  background: linear-gradient(135deg, #2ed573, #7bed9f);
}

.stock-badge.infinite {
  background: linear-gradient(135deg, #70a1ff, #5352ed);
}

/* Responsive */
/* ===== PERBAIKAN CATEGORY TABS MOBILE ===== */
@media (max-width: 768px) {
  .app-container {
    padding: 15px;
  }
  
  .header-content {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  
  .logo-text h1 {
    font-size: 2rem;
  }
  
  .nav-container {
    flex-direction: column;
    gap: 8px;
  }
  
  .nav-item {
    padding: 15px;
    font-size: 0.9rem;
  }
  
  .tab-panel {
    padding: 20px;
  }
  
  .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  
  .stats-container {
    grid-template-columns: 1fr;
  }
  
  .form-grid,
  .date-inputs {
    grid-template-columns: 1fr;
  }
  
  .menu-items-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
    padding: 20px;
  }
  
  .menu-item-card {
    padding: 15px;
    min-height: 160px;
    max-height: 180px;
  }
  
  .menu-item-card h4 {
    font-size: 1rem;
  }
  
  .menu-item-card .price {
    font-size: 1.2rem;
  }
  
  .menu-item-actions {
    flex-direction: row;
    gap: 5px;
  }
  
  .btn-sm {
    padding: 8px;
    font-size: 0.7rem;
  }
  /* ===== CATEGORY TABS UNIVERSAL (SEMUA DEVICE) ===== */
.category-tabs {
  display: flex;
  background: var(--white);
  padding: 15px;
  gap: 10px;
  /* PENTING: Selalu horizontal di semua device */
  flex-direction: row;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.category-tabs::-webkit-scrollbar {
  display: none;
}

.category-tab {
  /* Base styling untuk semua device */
  flex: 1;
  min-width: 80px;
  padding: 12px 20px;
  background: var(--light-gray);
  border: none;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--dark-gray);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  box-sizing: border-box;
}

.category-tab:hover {
  background: var(--medium-gray);
}

.category-tab.active {
  background: linear-gradient(135deg, var(--primary-pink) 0%, var(--light-pink) 100%);
  color: var(--white);
}

  
  .modal-content {
    width: 95%;
    margin: 20px;
  }
  
  .form-actions {
    flex-direction: column;
  }
  
  .receipt-actions {
    flex-direction: row;
  }
  
  .quick-filter-buttons {
    flex-direction: column;
  }
  
  .quick-filter-buttons .btn {
    width: 100%;
  }
  
  .report-actions {
    flex-direction: column;
  }
  
  .report-actions .btn {
    width: 100%;
    margin: 5px 0;
  }
  
  .receipt-item {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 5px;
  }
  
  .summary-stats {
    grid-template-columns: 1fr;
  }
}

/* ===== TABEL PESANAN ===== */
.order-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 30px;
  background-color: var(--off-white);
  border-radius: 12px;
  box-shadow: 0 5px 20px var(--shadow-light);
}

.order-table th,
.order-table td {
  padding: 18px 25px;
  text-align: left;
  border-bottom: 1px solid var(--light-gray);
  font-size: 1rem;
  color: var(--text-dark);
}

.order-table th {
  background: var(--light-pink);
  font-weight: 600;
  color: var(--white);
}

.order-table tbody tr:hover {
  background: var(--light-gray);
}

.order-table .order-status {
  font-weight: 500;
  color: var(--primary-pink);
  text-align: center;
}

/* Baris Total */
.order-table .total-row {
  background: linear-gradient(135deg, var(--soft-pink) 0%, var(--pale-pink) 100%);
  font-weight: 700;
  color: var(--primary-pink);
}

/* ===== KONTROL PILIHAN PEMBAYARAN ===== */
.payment-options {
  margin-top: 30px;
  background: var(--off-white);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 5px 20px var(--shadow-light);
}

.payment-options h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 15px;
}

.payment-options label {
  font-weight: 500;
  font-size: 1rem;
  color: var(--dark-gray);
  margin-right: 15px;
}

.payment-options input[type="radio"] {
  accent-color: var(--primary-pink);
  margin-right: 8px;
}

.payment-options .payment-method {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
}

.payment-options .payment-method input[type="radio"]:checked + label {
  font-weight: 600;
  color: var(--primary-pink);
}

/* Menonaktifkan tombol jika belum memilih metode pembayaran */
.payment-options .btn-large:disabled {
  background: var(--medium-gray);
  color: var(--dark-gray);
  cursor: not-allowed;
}

/* ===== BUTTON CLEAR ORDER ===== */
#clearOrderBtn {
  background: linear-gradient(135deg, var(--error-red) 0%, #F44336 100%);
  color: var(--white);
  padding: 12px 25px;
  border-radius: 10px;
  font-weight: 600;
  margin-top: 20px;
  box-shadow: 0 8px 25px rgba(244, 67, 54, 0.2);
  transition: all 0.3s ease;
}

#clearOrderBtn:hover {
  background: linear-gradient(135deg, #D32F2F 0%, #E57373 100%);
}

#clearOrderBtn:disabled {
  background: var(--medium-gray);
  color: var(--dark-gray);
  cursor: not-allowed;
  box-shadow: none;
}

.menu-selection-panel,
.order-panel {
  background: var(--off-white);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 5px 20px var(--shadow-light);
}

.panel-header {
  background: linear-gradient(135deg, var(--primary-pink) 0%, var(--light-pink) 100%);
  color: var(--white);
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.panel-header h3 {
  font-size: 1.3rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
}
/* Category Tabs */
.category-tabs {
  display: flex;
  background: var(--white);
  padding: 15px;
  gap: 10px;
}

.category-tab {
  flex: 1;
  padding: 12px 20px;
  background: var(--light-gray);
  border: none;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--dark-gray);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.category-tab:hover {
  background: var(--medium-gray);
}

.category-tab.active {
  background: linear-gradient(135deg, var(--primary-pink) 0%, var(--light-pink) 100%);
  color: var(--white);
}




/* Menu Items Container */
.menu-items-container {
  flex: 1;
  overflow: hidden;
}

.menu-category-grid {
  display: none;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 15px;
  padding: 20px;
  height: 100%;
  overflow-y: auto;
}

.menu-category-grid.active {
  display: grid;
}

/* Kasir Menu Items - Lebih Compact */
.kasir-menu-item {
  background: var(--white);
  border-radius: 12px;
  padding: 15px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100px;
  max-height: 120px;
}

.kasir-menu-item:hover {
  transform: translateY(-3px);
  border-color: var(--light-pink);
  box-shadow: 0 8px 20px var(--shadow-light);
}

.kasir-menu-item h5 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.kasir-menu-item .price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-pink);
  margin-top: auto;
}

/* Order Panel */
.order-items-container {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
}

.empty-order {
  text-align: center;
  padding: 80px 20px;
  color: var(--dark-gray);
}

.empty-order i {
  font-size: 3rem;
  margin-bottom: 15px;
  color: var(--light-pink);
  opacity: 0.6;
}

.empty-order p {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 8px;
}

.empty-order small {
  opacity: 0.7;
}

.order-item {
  background: var(--white);
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.order-item:hover {
  border-color: var(--light-pink);
}

.order-item-info h5 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 5px;
}

.order-item-info small {
  color: var(--dark-gray);
  font-size: 0.85rem;
}

.order-item-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--light-gray);
  border-radius: 8px;
  padding: 5px;
}

.quantity-btn {
  width: 30px;
  height: 30px;
  border: none;
  background: var(--white);
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  color: var(--primary-pink);
  font-weight: 600;
}

.quantity-btn:hover {
  background: var(--primary-pink);
  color: var(--white);
}

.quantity-display {
  font-weight: 600;
  color: var(--text-dark);
  min-width: 25px;
  text-align: center;
}

.order-item-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-pink);
}

.order-summary {
  background: var(--white);
  padding: 25px;
  border-top: 2px solid var(--light-pink);
}

.total-section {
  text-align: center;
  margin-bottom: 20px;
}

.total-section h4 {
  font-size: 1.1rem;
  color: var(--dark-gray);
  margin-bottom: 10px;
}

.total-amount {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary-pink);
  margin-bottom: 20px;
}

/* ===== LAPORAN STYLES ===== */
.report-controls {
  background: var(--off-white);
  border-radius: 18px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 5px 20px var(--shadow-light);
}

.date-range-selector h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.date-range-selector h3 i {
  color: var(--primary-pink);
}

.date-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 25px;
}

/* Quick Date Filters */
.quick-date-filters {
  margin-top: 25px;
  padding-top: 25px;
  border-top: 2px solid var(--light-pink);
}

.quick-date-filters h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.quick-date-filters h4 i {
  color: var(--primary-pink);
}

.quick-filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.quick-filter-buttons .btn.active {
  background: linear-gradient(135deg, var(--primary-pink) 0%, var(--light-pink) 100%);
  color: var(--white);
  border-color: var(--primary-pink);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px var(--shadow-medium);
}

.quick-filter-buttons .btn.active:hover {
  background: linear-gradient(135deg, var(--primary-pink) 0%, var(--light-pink) 100%);
  color: var(--white);
}

.report-result {
  background: var(--white);
  border-radius: 18px;
  box-shadow: 0 5px 20px var(--shadow-light);
  overflow: hidden;
}

.report-header {
  background: linear-gradient(135deg, var(--primary-pink) 0%, var(--light-pink) 100%);
  color: var(--white);
  padding: 25px 30px;
}

.report-header h3 {
  font-size: 1.5rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
}

.report-table-container {
  overflow-x: auto;
  margin-bottom: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 20px var(--shadow-light);
}

.report-table {
  width: 100%;
  border-collapse: collapse;
}

.report-table th,
.report-table td {
  padding: 18px 25px;
  text-align: left;
  border-bottom: 1px solid var(--light-gray);
}

.report-table th {
  background: var(--off-white);
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.95rem;
}

.report-table tbody tr:hover {
  background: var(--off-white);
}

.report-table .total-row {
  background: linear-gradient(135deg, var(--soft-pink) 0%, var(--pale-pink) 100%);
  font-weight: 700;
}

.report-summary {
  padding: 30px;
  background: var(--off-white);
}

.summary-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.summary-item {
  background: var(--white);
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.summary-item:hover {
  border-color: var(--light-pink);
  transform: translateY(-3px);
}

.summary-item h4 {
  color: var(--dark-gray);
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.summary-item .value {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-pink);
}

.badge {
  background: linear-gradient(135deg, var(--primary-pink) 0%, var(--light-pink) 100%);
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-block;
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.text-pink {
  color: var(--primary-pink);
}

.empty-report {
  text-align: center;
  padding: 60px 30px;
  color: var(--dark-gray);
}

.empty-report i {
  font-size: 4rem;
  margin-bottom: 20px;
  color: var(--light-pink);
  opacity: 0.6;
}

.empty-report h4 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--text-dark);
}

.report-actions {
  text-align: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 2px solid var(--light-gray);
  display: flex;
  justify-content: center;
  gap: 15px;
}

/* ===== RECEIPT STYLES (ARSITEKTUR ANTI-POTONG HORIZONTAL) ===== */
.modal-content.receipt-modal {
  width: 100%;
  max-width: 490px;
  max-height: 90vh;
  max-height: 90dvh;
  display: flex !important;
  flex-direction: column !important;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
  overflow: hidden !important;
  margin: auto;
  box-sizing: border-box;
}

.modal-content.receipt-modal .modal-header {
  flex-shrink: 0;
  padding: 14px 20px;
  background: linear-gradient(135deg, var(--primary-pink) 0%, var(--light-pink) 100%);
  color: var(--white);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.modal-content.receipt-modal .modal-header h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--white);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.receipt-modal .receipt-content {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 18px 22px;
  background: #f8fafc;
}

.receipt {
  font-family: 'Courier New', monospace;
  background: var(--white);
  border: 2px dashed var(--primary-pink);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
}

.receipt-header {
  border-bottom: 2px dashed var(--light-pink);
  padding-bottom: 20px;
  margin-bottom: 20px;
}

.receipt-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-pink);
  margin-bottom: 10px;
}

.receipt-items {
  margin: 20px 0;
}

.receipt-item {
  display: grid;
  grid-template-columns: 2fr auto 1fr;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dotted var(--medium-gray);
  align-items: center;
}

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

.receipt-total {
  border-top: 2px dashed var(--light-pink);
  padding-top: 15px;
  margin-top: 15px;
}

.receipt-total .receipt-item {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-pink);
  border-top: 2px dashed var(--light-pink);
  padding-top: 15px;
  margin-top: 15px;
}

.receipt-footer {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px dashed var(--medium-gray);
  color: var(--dark-gray);
  font-size: 0.9rem;
}

.receipt-actions {
  flex-shrink: 0;
  padding: 14px 20px;
  border-top: 1px solid #e2e8f0;
  background: var(--white);
  box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.05);
  display: flex;
  gap: 12px;
  justify-content: center;
  z-index: 10;
}

.receipt-actions .btn {
  flex: 1;
  padding: 12px 16px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* Khusus Tampilan Layar Horizontal / Landscape (Tinggi Layar <= 640px) */
@media (max-height: 640px), (orientation: landscape) and (max-height: 720px) {
  .modal-overlay {
    padding: 6px !important;
  }
  .modal-content.receipt-modal {
    max-height: 96vh !important;
    max-height: 96dvh !important;
    max-width: 520px !important;
    border-radius: 12px !important;
  }
  .modal-content.receipt-modal .modal-header {
    padding: 8px 16px !important;
  }
  .modal-content.receipt-modal .modal-header h3 {
    font-size: 0.95rem !important;
  }
  .receipt-modal .receipt-content {
    padding: 10px 16px !important;
  }
  .thermal-receipt {
    padding: 12px 10px !important;
  }
  .thermal-receipt .thermal-header h2 {
    font-size: 1.05rem !important;
  }
  .receipt-actions {
    padding: 8px 14px !important;
    gap: 8px !important;
  }
  .receipt-actions .btn {
    padding: 8px 12px !important;
    font-size: 0.85rem !important;
  }
}

/* ===== NOTIFICATION ===== */
.notification {
  position: fixed;
  top: 25px;
  right: 25px;
  background: linear-gradient(135deg, var(--success-green) 0%, #81C784 100%);
  color: var(--white);
  padding: 18px 25px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(76, 175, 80, 0.3);
  transform: translateX(400px);
  transition: transform 0.4s ease;
  z-index: 1100;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 350px;
}

.notification.show {
  transform: translateX(0);
}

.notification.error {
  background: linear-gradient(135deg, var(--error-red) 0%, #EF5350 100%);
  box-shadow: 0 8px 25px rgba(244, 67, 54, 0.3);
}

.notification.warning {
  background: linear-gradient(135deg, var(--warning-orange) 0%, #FFB74D 100%);
  box-shadow: 0 8px 25px rgba(255, 152, 0, 0.3);
}

.notification i {
  font-size: 1.2rem;
}

/* ===== LOADING OVERLAY ===== */
.loading-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.9);
  z-index: 1200;
  backdrop-filter: blur(3px);
}

.loading-overlay.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.loading-spinner {
  text-align: center;
  color: var(--primary-pink);
}

.loading-spinner i {
  font-size: 3rem;
  margin-bottom: 15px;
}

.loading-spinner p {
  font-size: 1.2rem;
  font-weight: 500;
}

/* ===== LOADING STATES ===== */
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.loading-btn {
  position: relative;
}

.loading-btn::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  margin: auto;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}







@media (max-width: 480px) {
  .logo-icon {
    width: 50px;
    height: 50px;
  }
  
  .logo-icon i {
    font-size: 1.8rem;
  }
  
  .logo-text h1 {
    font-size: 1.5rem;
  }
  
  .stat-card {
    padding: 16px;
    min-height: 105px;
    text-align: left;
  }
  
  .stat-icon {
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }
  
  .stat-icon i {
    font-size: 1.1rem;
  }
  
  .stat-value {
    font-size: 1.45rem;
  }
  
  .notification {
    right: 15px;
    left: 15px;
    transform: translateY(-100px);
    max-width: none;
  }
  
  .notification.show {
    transform: translateY(0);
  }
  
  .menu-items-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
  
  .menu-item-card {
    min-height: 140px;
    max-height: 160px;
  }
}

/* ===== SCROLL STYLING ===== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--light-gray);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, var(--primary-pink) 0%, var(--light-pink) 100%);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-pink);
}

/* ===== UTILITIES ===== */
.text-center {
  text-align: center;
}

.text-pink {
  color: var(--primary-pink);
}

.bg-pink {
  background: linear-gradient(135deg, var(--primary-pink) 0%, var(--light-pink) 100%);
}

.hidden {
  display: none !important;
}

.fade-in {
  animation: fadeIn 0.3s ease;
}

.slide-up {
  animation: slideUp 0.3s ease;
}
/* ===== QUICK FILTER IMPROVEMENTS ===== */
.quick-filter-btn {
  position: relative;
  transition: all 0.3s ease;
}

.quick-filter-btn.active {
  background: linear-gradient(135deg, var(--primary-pink) 0%, var(--light-pink) 100%) !important;
  color: var(--white) !important;
  border-color: var(--primary-pink) !important;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px var(--shadow-medium);
}

.quick-filter-btn:not(.active):hover {
  background: var(--light-pink);
  color: var(--white);
  border-color: var(--light-pink);
}

/* PDF Export Button Styling */
.btn-danger {
  background: linear-gradient(135deg, #DC3545 0%, #E55A65 100%);
  color: var(--white);
}

.btn-danger:hover {
  background: linear-gradient(135deg, #C82333 0%, #DC3545 100%);
}
.modal-close {
  font-size: 1.5rem;
  cursor: pointer;
  background-color: #E8E8E8;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--primary-pink);
}

/* ===== FORM STYLES ===== */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.9rem;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 15px 18px;
  border: 2px solid var(--medium-gray);
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
  background: var(--off-white);
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-pink);
  background: var(--white);
  box-shadow: 0 0 0 3px var(--shadow-light);
}

.form-actions {
  padding: 25px 30px;
  border-top: 2px solid var(--light-gray);
  display: flex;
  gap: 15px;
  justify-content: flex-end;
}

/* ===== MENU CATEGORIES ===== */
.menu-categories-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.category-panel {
  background: var(--off-white);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 5px 20px var(--shadow-light);
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.category-panel:hover {
  border-color: var(--light-pink);
  box-shadow: 0 10px 30px var(--shadow-medium);
}

.category-header {
  padding: 25px 30px;
  display: flex;
  align-items: center;
  gap: 15px;
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--white);
  position: relative;
}

.category-header.main-menu {
  background: linear-gradient(135deg, #FF6B35 0%, #FF8E53 100%);
}

.category-header.drinks {
  background: linear-gradient(135deg, var(--primary-pink) 0%, var(--light-pink) 100%);
}

.category-header.additional {
  background: linear-gradient(135deg, #9C27B0 0%, #BA68C8 100%);
}

.category-count {
  background: rgba(255, 255, 255, 0.3);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.9rem;
  margin-left: auto;
  backdrop-filter: blur(10px);
}

/* ===== IMPROVED MENU CARD STYLING ===== */
.menu-items-grid {
  padding: 25px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.menu-item-card {
  background: var(--white);
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border: 2px solid transparent;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 180px;
  max-height: 200px;
}

.menu-item-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border-color: var(--light-pink);
}

.menu-item-card h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 10px;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.menu-item-card .price {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-pink);
  margin-bottom: 15px;
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-item-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: auto;
}

.empty-category {
  text-align: center;
  padding: 60px 30px;
  color: var(--dark-gray);
}

.empty-category i {
  font-size: 4rem;
  margin-bottom: 20px;
  opacity: 0.5;
  color: var(--light-pink);
}

.empty-category p {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 10px;
}

.empty-category small {
  opacity: 0.7;
}

/* ===== KASIR LAYOUT ===== */
.kasir-container {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 20px;
  height: calc(100vh - 180px);
  min-height: 620px;
  max-height: 950px;
}

.menu-selection-panel,
.order-panel {
  background: var(--off-white);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  box-shadow: 0 5px 20px var(--shadow-light);
}

.panel-header {
  background: linear-gradient(135deg, var(--primary-pink) 0%, var(--light-pink) 100%);
  color: var(--white);
  padding: 12px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.panel-header h3 {
  font-size: 1.15rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ===== BASE CATEGORY TABS (KONSISTEN SEMUA DEVICE) ===== */


/* Menu Items Container */
.menu-items-container {
  flex: 1;
  overflow: hidden;
}

.menu-category-grid {
  display: none;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 15px;
  padding: 20px;
  height: 100%;
  overflow-y: auto;
}

.menu-category-grid.active {
  display: grid;
}

/* Kasir Menu Items - Lebih Compact */
.kasir-menu-item {
  background: var(--white);
  border-radius: 12px;
  padding: 15px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100px;
  max-height: 120px;
}

.kasir-menu-item:hover {
  transform: translateY(-3px);
  border-color: var(--light-pink);
  box-shadow: 0 8px 20px var(--shadow-light);
}

.kasir-menu-item h5 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.kasir-menu-item .price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-pink);
  margin-top: auto;
}

/* Order Panel */
.order-items-container {
  flex: 1 1 200px;
  min-height: 160px;
  overflow-y: auto;
  padding: 12px 14px;
  background: #fdfafc;
  border-bottom: 2px solid #fceef3;
  -webkit-overflow-scrolling: touch;
}

.empty-order {
  text-align: center;
  padding: 40px 20px;
  color: var(--dark-gray);
}

.empty-order i {
  font-size: 2.5rem;
  margin-bottom: 12px;
  color: var(--light-pink);
  opacity: 0.6;
}

.empty-order p {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.empty-order small {
  opacity: 0.7;
}

.order-item {
  background: var(--white);
  border-radius: 10px;
  padding: 8px 12px;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  border: 1px solid #fce7f0;
  transition: all 0.2s ease;
}

.order-item:hover {
  border-color: var(--light-pink);
  box-shadow: 0 3px 8px rgba(255, 105, 180, 0.12);
}

.order-item-info {
  flex: 1;
  min-width: 0;
  padding-right: 8px;
}

.order-item-info h5 {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0 0 2px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.order-item-info small {
  color: #64748b;
  font-size: 0.76rem;
}

.order-item-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 3px;
  background: #f1f5f9;
  border-radius: 6px;
  padding: 2px;
}

.quantity-btn {
  width: 26px;
  height: 26px;
  border: none;
  background: var(--white);
  border-radius: 5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  color: var(--primary-pink);
  font-weight: 700;
  font-size: 0.76rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.quantity-btn:hover {
  background: var(--primary-pink);
  color: var(--white);
}

.quantity-display {
  font-weight: 700;
  color: var(--text-dark);
  min-width: 20px;
  text-align: center;
  font-size: 0.85rem;
}

.order-item-price {
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--primary-pink);
  min-width: 65px;
  text-align: right;
  white-space: nowrap;
}

.order-summary {
  background: var(--white);
  padding: 12px 16px;
  border-top: 1px solid #fce7f0;
  flex: 0 1 auto;
  overflow-y: auto;
  max-height: 60%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.total-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #fdf2f8 0%, #fff1f2 100%);
  border: 1.5px solid #fbcfe8;
  border-radius: 10px;
  padding: 8px 12px;
  margin: 0;
}

.total-section h4 {
  font-size: 0.82rem;
  font-weight: 700;
  color: #831843;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.total-amount {
  font-size: 1.35rem;
  font-weight: 800;
  color: #be185d;
  margin: 0;
  line-height: 1;
}

/* ===== LAPORAN STYLES ===== */
.report-controls {
  background: var(--off-white);
  border-radius: 18px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 5px 20px var(--shadow-light);
}

.date-range-selector h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.date-range-selector h3 i {
  color: var(--primary-pink);
}

.date-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 25px;
}

/* Quick Date Filters */
.quick-date-filters {
  margin-top: 25px;
  padding-top: 25px;
  border-top: 2px solid var(--light-pink);
}

.quick-date-filters h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.quick-date-filters h4 i {
  color: var(--primary-pink);
}

.quick-filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.quick-filter-buttons .btn.active {
  background: linear-gradient(135deg, var(--primary-pink) 0%, var(--light-pink) 100%);
  color: var(--white);
  border-color: var(--primary-pink);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px var(--shadow-medium);
}

.quick-filter-buttons .btn.active:hover {
  background: linear-gradient(135deg, var(--primary-pink) 0%, var(--light-pink) 100%);
  color: var(--white);
}

.report-result {
  background: var(--white);
  border-radius: 18px;
  box-shadow: 0 5px 20px var(--shadow-light);
  overflow: hidden;
}

.report-header {
  background: linear-gradient(135deg, var(--primary-pink) 0%, var(--light-pink) 100%);
  color: var(--white);
  padding: 25px 30px;
}

.report-header h3 {
  font-size: 1.5rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
}

.report-table-container {
  overflow-x: auto;
  margin-bottom: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 20px var(--shadow-light);
}

.report-table {
  width: 100%;
  border-collapse: collapse;
}

.report-table th,
.report-table td {
  padding: 18px 25px;
  text-align: left;
  border-bottom: 1px solid var(--light-gray);
}

.report-table th {
  background: var(--off-white);
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.95rem;
}

.report-table tbody tr:hover {
  background: var(--off-white);
}

.report-table .total-row {
  background: linear-gradient(135deg, var(--soft-pink) 0%, var(--pale-pink) 100%);
  font-weight: 700;
}

.report-summary {
  padding: 30px;
  background: var(--off-white);
}

.summary-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.summary-item {
  background: var(--white);
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.summary-item:hover {
  border-color: var(--light-pink);
  transform: translateY(-3px);
}

.summary-item h4 {
  color: var(--dark-gray);
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.summary-item .value {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-pink);
}

.badge {
  background: linear-gradient(135deg, var(--primary-pink) 0%, var(--light-pink) 100%);
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-block;
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.text-pink {
  color: var(--primary-pink);
}

.empty-report {
  text-align: center;
  padding: 60px 30px;
  color: var(--dark-gray);
}

.empty-report i {
  font-size: 4rem;
  margin-bottom: 20px;
  color: var(--light-pink);
  opacity: 0.6;
}

.empty-report h4 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--text-dark);
}

.report-actions {
  text-align: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 2px solid var(--light-gray);
  display: flex;
  justify-content: center;
  gap: 15px;
}

/* ===== RECEIPT STYLES ===== */
.receipt-modal {
  max-width: 500px;
}

.receipt-content {
  padding: 30px;
}

.receipt {
  font-family: 'Courier New', monospace;
  background: var(--white);
  border: 2px dashed var(--primary-pink);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
}

.receipt-header {
  border-bottom: 2px dashed var(--light-pink);
  padding-bottom: 20px;
  margin-bottom: 20px;
}

.receipt-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-pink);
  margin-bottom: 10px;
}

.receipt-items {
  margin: 20px 0;
}

.receipt-item {
  display: grid;
  grid-template-columns: 2fr auto 1fr;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dotted var(--medium-gray);
  align-items: center;
}

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

.receipt-total {
  border-top: 2px dashed var(--light-pink);
  padding-top: 15px;
  margin-top: 15px;
}

.receipt-total .receipt-item {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-pink);
  border-top: 2px dashed var(--light-pink);
  padding-top: 15px;
  margin-top: 15px;
}

.receipt-footer {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px dashed var(--medium-gray);
  color: var(--dark-gray);
  font-size: 0.9rem;
}

.receipt-actions {
  padding: 25px 30px;
  border-top: 2px solid var(--light-gray);
  display: flex;
  gap: 15px;
  justify-content: center;
}

/* ===== NOTIFICATION ===== */
.notification {
  position: fixed;
  top: 25px;
  right: 25px;
  background: linear-gradient(135deg, var(--success-green) 0%, #81C784 100%);
  color: var(--white);
  padding: 18px 25px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(76, 175, 80, 0.3);
  transform: translateX(400px);
  transition: transform 0.4s ease;
  z-index: 1100;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 350px;
}

.notification.show {
  transform: translateX(0);
}

.notification.error {
  background: linear-gradient(135deg, var(--error-red) 0%, #EF5350 100%);
  box-shadow: 0 8px 25px rgba(244, 67, 54, 0.3);
}

.notification.warning {
  background: linear-gradient(135deg, var(--warning-orange) 0%, #FFB74D 100%);
  box-shadow: 0 8px 25px rgba(255, 152, 0, 0.3);
}

.notification i {
  font-size: 1.2rem;
}

/* ===== LOADING OVERLAY ===== */
.loading-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.9);
  z-index: 1200;
  backdrop-filter: blur(3px);
}

.loading-overlay.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.loading-spinner {
  text-align: center;
  color: var(--primary-pink);
}

.loading-spinner i {
  font-size: 3rem;
  margin-bottom: 15px;
}

.loading-spinner p {
  font-size: 1.2rem;
  font-weight: 500;
}

/* ===== LOADING STATES ===== */
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.loading-btn {
  position: relative;
}

.loading-btn::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  margin: auto;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ===== RESPONSIVE DESIGN ===== */
/* ===== TABLET RESPONSIVE ===== */
@media (max-width: 1024px) and (min-width: 768px) {
  .category-tabs {
    padding: 12px;
    gap: 8px;
  }
  
  .category-tab {
    flex: 1;
    min-width: 70px;
    padding: 10px 16px;
    font-size: 0.85rem;
  }
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 767px) {
  .category-tabs {
    padding: 12px 15px;
    gap: 8px;
    /* PENTING: Tetap horizontal dengan scroll */
    justify-content: flex-start;
  }
  
  .category-tab {
    /* KUNCI: Jangan gunakan flex: 1 di mobile */
    flex: none;
    flex-shrink: 0;
    min-width: 85px;
    padding: 8px 12px;
    font-size: 0.75rem;
  }
}



/* ===== SCROLL STYLING ===== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--light-gray);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, var(--primary-pink) 0%, var(--light-pink) 100%);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-pink);
}

/* ===== UTILITIES ===== */
.text-center {
  text-align: center;
}

.text-pink {
  color: var(--primary-pink);
}

.bg-pink {
  background: linear-gradient(135deg, var(--primary-pink) 0%, var(--light-pink) 100%);
}

.hidden {
  display: none !important;
}

.fade-in {
  animation: fadeIn 0.3s ease;
}

.slide-up {
  animation: slideUp 0.3s ease;
}
/* ===== QUICK FILTER IMPROVEMENTS ===== */
.quick-filter-btn {
  position: relative;
  transition: all 0.3s ease;
}

.quick-filter-btn.active {
  background: linear-gradient(135deg, var(--primary-pink) 0%, var(--light-pink) 100%) !important;
  color: var(--white) !important;
  border-color: var(--primary-pink) !important;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px var(--shadow-medium);
}

.quick-filter-btn:not(.active):hover {
  background: var(--light-pink);
  color: var(--white);
  border-color: var(--light-pink);
}

/* PDF Export Button Styling */
.btn-danger {
  background: linear-gradient(135deg, #DC3545 0%, #E55A65 100%);
  color: var(--white);
}

.btn-danger:hover {
  background: linear-gradient(135deg, #C82333 0%, #DC3545 100%);
}
/* ===== TABLET RESPONSIVE ===== */
@media (max-width: 1024px) and (min-width: 768px) {
  .kasir-container {
    grid-template-columns: 1fr 340px;
    gap: 16px;
    height: auto;
    min-height: 600px;
  }
}

/* ===== MOBILE RESPONSIVE - LAYOUT VERTIKAL ===== */
@media (max-width: 767px) {
  .kasir-container {
    display: flex;
    flex-direction: column;
    height: auto;
    gap: 16px;
  }
  
  .menu-selection-panel {
    width: 100%;
    margin-bottom: 0;
    height: auto;
    min-height: 350px;
    order: 1;
  }

  .order-panel {
    width: 100%;
    height: auto;
    min-height: 300px;
    position: static;
    transform: none;
    border-radius: 18px;
    order: 2;
    max-height: none;
    z-index: auto;
  }
  
  .order-panel::before {
    display: none;
  }
  
  .panel-header {
    cursor: default;
  }
}

/* ===== GLOBAL SEARCH RESULTS STYLING ===== */
.search-results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #fff5f8, #ffeef2);
  border-radius: 12px;
  border: 2px solid var(--light-pink);
}

.search-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.search-info i {
  color: var(--primary-pink);
  font-size: 1.1rem;
}

.results-count {
  background: var(--primary-pink);
  color: white;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
}

.search-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 15px;
  padding: 0 20px;
}

.search-result-item {
  position: relative;
}

.category-badge-kasir {
  position: absolute;
  top: 8px;
  left: 8px;
  background: linear-gradient(135deg, #9C27B0, #BA68C8);
  color: white;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 8px;
  z-index: 1;
}

.no-search-result {
  text-align: center;
  padding: 40px 20px;
  color: var(--dark-gray);
}

.no-search-result i {
  font-size: 3rem;
  color: var(--light-pink);
  margin-bottom: 15px;
}

.no-search-result p {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.no-search-result small {
  display: block;
  margin-bottom: 20px;
  opacity: 0.8;
}

/* Mobile search responsive */
@media (max-width: 767px) {
  .search-results-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  
  .search-results-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    padding: 0 15px;
  }
  
  .category-badge-kasir {
    font-size: 0.6rem;
    padding: 1px 4px;
  }
}

/* ===== SMALL MOBILE ===== */
@media (max-width: 480px) {
  .menu-selection-panel {
    min-height: 350px;
  }
  
  .order-panel {
    min-height: 250px;
  }
}

/* ===== FITUR SHIFT & PENGATURAN ===== */

/* Tombol Shift di Header */
.btn-shift {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  height: 38px;
  padding: 0 16px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn-shift:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

/* Pengaturan Tab Grid */
.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 25px;
  margin-bottom: 35px;
}

.settings-card {
  background: var(--white);
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 8px 25px var(--shadow-light);
  border: 1px solid var(--shadow-medium);
}

.settings-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  padding-bottom: 12px;
  border-bottom: 2px solid #f0f0f0;
}

.settings-card-header i {
  font-size: 1.5rem;
  color: var(--primary-pink);
}

.settings-card-header h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-dark);
}

.btn-block {
  width: 100%;
  margin-top: 10px;
}

/* Riwayat Shift Table Section */
.shift-history-section {
  background: var(--white);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 8px 25px var(--shadow-light);
  border: 1px solid rgba(255, 105, 180, 0.12);
}

.shift-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 20px;
}

.header-text-group h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.section-subtitle {
  font-size: 0.85rem;
  color: #64748b;
  margin: 0;
}

.shift-history-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.shift-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  padding: 0 12px;
  height: 38px;
  transition: all 0.2s ease;
}

.shift-search-box:focus-within {
  border-color: var(--primary-pink);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(255, 105, 180, 0.15);
}

.shift-search-box i {
  color: #94a3b8;
  font-size: 0.85rem;
}

.shift-search-box input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.85rem;
  color: #0f172a;
  min-width: 170px;
}

.shift-limit-select {
  height: 38px;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  padding: 0 10px;
  font-size: 0.85rem;
  background: #f8fafc;
  color: #334155;
  outline: none;
  cursor: pointer;
  font-weight: 500;
}

.shift-limit-select:focus {
  border-color: var(--primary-pink);
}

/* KPI Summary Cards Grid */
.shift-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}

.shift-kpi-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: all 0.2s ease;
}

.shift-kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.kpi-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.kpi-blue .kpi-icon-wrap {
  background: #eff6ff;
  color: #2563eb;
}
.kpi-blue { border-left: 4px solid #2563eb; }

.kpi-green .kpi-icon-wrap {
  background: #f0fdf4;
  color: #16a34a;
}
.kpi-green { border-left: 4px solid #16a34a; }

.kpi-red .kpi-icon-wrap {
  background: #fef2f2;
  color: #dc2626;
}
.kpi-red { border-left: 4px solid #dc2626; }

.kpi-purple .kpi-icon-wrap {
  background: #faf5ff;
  color: #9333ea;
}
.kpi-purple { border-left: 4px solid #9333ea; }

.kpi-text-wrap {
  display: flex;
  flex-direction: column;
}

.kpi-text-wrap small {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 2px;
}

.kpi-text-wrap h4 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

/* Tabel Riwayat Shift */
.shift-history-table-container {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
}

.shift-history-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
}

.shift-history-table th {
  background: #f8fafc;
  color: #475569;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 12px 14px;
  border-bottom: 2px solid #e2e8f0;
}

.shift-history-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.86rem;
  vertical-align: middle;
}

.shift-history-table tbody tr:hover {
  background-color: #fdfafc;
}

/* Badges & Cell Formats */
.shift-badge-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.badge-shift-num {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  color: #ffffff;
  padding: 4px 8px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.78rem;
  display: inline-block;
  text-align: center;
  box-shadow: 0 2px 4px rgba(99, 102, 241, 0.25);
}

.badge-shift-status {
  font-size: 0.7rem;
  color: #16a34a;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.shift-cashier-cell {
  display: flex;
  align-items: center;
  gap: 9px;
}

.cashier-avatar {
  font-size: 1.5rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
}

.shift-cashier-cell strong {
  font-size: 0.92rem;
  color: #1e293b;
  display: block;
}

.shift-cell-note {
  font-size: 0.74rem;
  color: #64748b;
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 4px;
  margin-top: 3px;
  display: inline-block;
  max-width: 170px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shift-time-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.time-range-text {
  font-weight: 700;
  color: #1e293b;
  font-size: 0.84rem;
}

.time-date-text {
  font-size: 0.75rem;
  color: #64748b;
}

.time-duration-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  background: #fef3c7;
  color: #92400e;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
  width: fit-content;
  margin-top: 2px;
}

.badge-trx {
  background: #eff6ff;
  color: #2563eb;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid #dbeafe;
}

.text-purple {
  color: #9333ea !important;
}

.font-medium {
  font-weight: 600;
}

/* Box Uang Laci Fisik */
.shift-laci-box {
  background: #f0fdf4;
  border: 1.5px solid #bbf7d0;
  padding: 6px 10px;
  border-radius: 8px;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
}

.shift-laci-box strong {
  color: #15803d;
  font-size: 0.94rem;
  font-weight: 800;
  line-height: 1.1;
}

.shift-laci-box small {
  font-size: 0.68rem;
  color: #166534;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-top: 2px;
}

/* Tombol Struk Riwayat */
.btn-shift-receipt {
  padding: 6px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary-pink) 0%, #db2777 100%);
  color: #ffffff;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 2px 6px rgba(219, 39, 119, 0.25);
  transition: all 0.15s ease;
}

.btn-shift-receipt:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(219, 39, 119, 0.35);
}

/* Responsif Mobile & Tablet untuk Riwayat Shift */
@media (max-width: 992px) {
  .shift-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .shift-kpi-grid {
    grid-template-columns: 1fr;
  }
  .shift-section-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .shift-history-actions {
    width: 100%;
  }
  .shift-search-box {
    flex: 1;
    min-width: 0;
  }
  .shift-search-box input {
    min-width: 80px;
  }
}

/* Shift Modal Custom Styling */
.modal-content.shift-modal {
  max-width: 850px;
  width: 95%;
  border-radius: 22px;
  padding: 0;
  overflow: hidden;
}

.shift-modal-body {
  padding: 25px;
  max-height: 80vh;
  overflow-y: auto;
}

.shift-info-banner {
  background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
  color: #fff;
  padding: 18px 25px;
  border-radius: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}

.banner-title {
  font-size: 1.5rem;
  font-weight: 700;
  display: block;
}

.banner-subtitle {
  font-size: 0.9rem;
  opacity: 0.9;
}

.banner-badge {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(5px);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Shift Stats Grid */
.shift-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 15px;
  margin-bottom: 25px;
}

.shift-stat-card {
  background: #f8f9fa;
  border-radius: 14px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-left: 5px solid #ccc;
}

.shift-stat-card.tunai { border-left-color: #2e7d32; }
.shift-stat-card.non-tunai { border-left-color: #1976d2; }
.shift-stat-card.total { border-left-color: #d63384; }
.shift-stat-card.count { border-left-color: #f57c00; }

.shift-stat-card .stat-icon {
  width: 45px;
  height: 45px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.shift-stat-card.tunai .stat-icon { background: #e8f5e9; color: #2e7d32; }
.shift-stat-card.non-tunai .stat-icon { background: #e3f2fd; color: #1976d2; }
.shift-stat-card.total .stat-icon { background: #fce4ec; color: #d63384; }
.shift-stat-card.count .stat-icon { background: #fff3e0; color: #f57c00; }

.shift-stat-card .stat-detail small {
  display: block;
  color: #666;
  font-size: 0.78rem;
}

.shift-stat-card .stat-detail h4 {
  margin: 2px 0 0;
  font-size: 1.1rem;
  font-weight: 700;
}

/* Detail Menu Terjual Table */
.shift-items-section {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 22px;
}

.shift-items-section h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #444;
}

.shift-items-table-container {
  max-height: 220px;
  overflow-y: auto;
}

.category-badge {
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
}
.category-badge.main_menu { background: #fff3cd; color: #856404; }
.category-badge.drinks { background: #c1e7ff; color: #004085; }
.category-badge.additional { background: #d4edda; color: #155724; }

.shift-close-form {
  background: #fdf2f8;
  padding: 18px;
  border-radius: 14px;
  border: 1px dashed #f472b6;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 15px;
}

/* Laporan Shift Categorization Styling */
.shifts-overview-section {
  background: #faf5ff;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 25px;
  border: 1px solid #e9d5ff;
}

.shifts-overview-section h4 {
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 1.05rem;
  color: #6b21a8;
  display: flex;
  align-items: center;
  gap: 8px;
}

.shifts-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 15px;
}

.shift-summary-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0 4px 12px rgba(107, 33, 168, 0.08);
  border: 1px solid #f3e8ff;
}

.shift-summary-title {
  font-weight: 700;
  font-size: 1rem;
  color: #7e22ce;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.shift-summary-kasir {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 10px;
}

.shift-summary-values {
  font-size: 0.83rem;
  border-top: 1px dashed #e9d5ff;
  padding-top: 8px;
}

.shift-summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}

/* Table Shift Category Row Header */
.shift-category-row td {
  background: linear-gradient(135deg, #fdf2f8 0%, #fbcfe8 100%) !important;
  padding: 12px 18px !important;
  border-top: 2px solid #f472b6 !important;
  border-bottom: 2px solid #f472b6 !important;
}

.shift-category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.shift-label-badge {
  font-size: 0.98rem;
  color: #831843;
}

.shift-subtotal-info {
  font-size: 0.88rem;
  color: #500724;
}

/* Modal Password Laporan (PIN) */
.pin-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  animation: fadeIn 0.2s ease-out;
}

.pin-modal {
  background: white;
  border-radius: 16px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  animation: slideUp 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.pin-modal-header {
  background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
  color: white;
  padding: 20px;
  text-align: center;
}

.pin-modal-header h3 {
  margin: 0 0 10px 0;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.pin-modal-header p {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.9;
}

.pin-modal-body {
  padding: 25px 20px;
}

.pin-input-container {
  position: relative;
  margin-bottom: 15px;
}

.pin-input {
  width: 100%;
  padding: 12px 15px 12px 45px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  outline: none;
  transition: all 0.2s;
}

.pin-input:focus {
  border-color: #FF6B6B;
  box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.2);
}

.pin-input-icon {
  position: absolute;
  top: 50%;
  left: 15px;
  transform: translateY(-50%);
  color: #888;
}

.pin-hint {
  text-align: center;
  color: #666;
}

.pin-modal-footer {
  padding: 15px 20px;
  background: #f8f9fa;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid #e0e0e0;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

/* ===== PENGELUARAN & CASH STATS STYLES ===== */
.stat-card.expense {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: var(--white);
}

.stat-card.net-cash {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: var(--white);
}

.shift-stat-card.expense {
  border-left: 4px solid #e53935;
}

.shift-stat-card.expense .stat-icon {
  background: rgba(229, 57, 53, 0.12);
  color: #e53935;
}

.shift-stat-card.net-cash {
  border-left: 4px solid #1976d2;
}

.shift-stat-card.net-cash .stat-icon {
  background: rgba(25, 118, 210, 0.12);
  color: #1976d2;
}

.pengeluaran-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 25px;
}

.p-stat-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  gap: 18px;
  border: 1px solid #f0edf0;
  transition: transform 0.2s ease;
}

.p-stat-card:hover {
  transform: translateY(-3px);
}

.p-stat-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.p-stat-card.total .p-stat-icon {
  background: #fce4ec;
  color: #c2185b;
}

.p-stat-card.tunai .p-stat-icon {
  background: #e8f5e9;
  color: #2e7d32;
}

.p-stat-card.non-tunai .p-stat-icon {
  background: #e3f2fd;
  color: #1565c0;
}

.p-stat-info small {
  display: block;
  font-size: 0.85rem;
  color: #757575;
  font-weight: 500;
  margin-bottom: 4px;
}

.p-stat-info h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #212121;
  margin-bottom: 3px;
}

.p-stat-info span {
  font-size: 0.8rem;
  color: #9e9e9e;
}

.pengeluaran-filter-bar {
  background: #ffffff;
  border-radius: 14px;
  padding: 16px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 25px;
  border: 1px solid #f0edf0;
}

.pengeluaran-filter-bar .filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pengeluaran-filter-bar .filter-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #616161;
}

.pengeluaran-filter-bar .filter-group input,
.pengeluaran-filter-bar .filter-group select {
  padding: 8px 14px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 0.95rem;
  outline: none;
  background: #fafafa;
}

.pengeluaran-filter-bar .filter-group input:focus,
.pengeluaran-filter-bar .filter-group select:focus {
  border-color: var(--primary-pink);
  background: #fff;
}

.pengeluaran-filter-bar .filter-actions {
  display: flex;
  gap: 10px;
}

.pengeluaran-table-container {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
  overflow-x: auto;
  margin-top: 5px;
}

.pengeluaran-table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
  text-align: left;
}

.pengeluaran-table th {
  background: #f8fafc;
  color: #475569;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 14px 18px;
  border-bottom: 2px solid #e2e8f0;
  white-space: nowrap;
}

.pengeluaran-table td {
  padding: 14px 18px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.88rem;
  color: #1e293b;
  vertical-align: middle;
}

.pengeluaran-table tbody tr:hover {
  background-color: #fdfafc;
}

.exp-date-cell strong {
  color: #0f172a;
  font-size: 0.88rem;
  display: block;
}

.exp-date-cell small {
  color: #94a3b8;
  font-size: 0.74rem;
}

.badge-kategori {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: capitalize;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.badge-kategori.bahan_baku { background: #fff7ed; color: #c2410c; border: 1px solid #fed7aa; }
.badge-kategori.operasional { background: #f0f9ff; color: #0369a1; border: 1px solid #bae6fd; }
.badge-kategori.listrik_air { background: #faf5ff; color: #7e22ce; border: 1px solid #e9d5ff; }
.badge-kategori.gaji { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.badge-kategori.sewa { background: #fdf2f8; color: #be185d; border: 1px solid #fbcfe8; }
.badge-kategori.transportasi { background: #fdf4ff; color: #a21caf; border: 1px solid #f5d0fe; }
.badge-kategori.perawatan { background: #fefce8; color: #a16207; border: 1px solid #fef08a; }
.badge-kategori.lainnya { background: #f8fafc; color: #475569; border: 1px solid #cbd5e1; }

.badge.badge-cash {
  background: #f0fdf4 !important;
  color: #15803d !important;
  border: 1px solid #bbf7d0;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.badge.badge-noncash {
  background: #f5f3ff !important;
  color: #6d28d9 !important;
  border: 1px solid #ddd6fe;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.badge-shift-ref {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  padding: 4px 9px;
  border-radius: 8px;
  font-size: 0.76rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.exp-nominal {
  color: #dc2626 !important;
  font-size: 1rem;
  font-weight: 800;
}

.exp-user-cell {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #475569;
  font-size: 0.85rem;
}

.exp-user-cell i {
  color: #94a3b8;
  font-size: 1.1rem;
}

.exp-actions-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-action-edit {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-action-edit:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #0f172a;
}

.btn-action-delete {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #dc2626;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-action-delete:hover {
  background: #dc2626;
  border-color: #dc2626;
  color: #ffffff;
}

.shift-expenses-section {
  margin-top: 25px;
}

/* ===== THERMAL PRINTER & RECEIPT STYLES (58mm & 80mm) ===== */
.thermal-receipt {
  font-family: 'Consolas', 'Roboto Mono', 'Courier New', Courier, monospace;
  background: #ffffff;
  color: #000000;
  padding: 16px 14px;
  line-height: 1.35;
  font-size: 12px;
  box-sizing: border-box;
  max-width: 380px;
  margin: 0 auto;
  border-radius: 6px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border: 1px dashed #d1c7d1;
}

.thermal-header {
  text-align: center;
  margin-bottom: 8px;
}

.thermal-logo {
  max-width: 60px;
  max-height: 60px;
  object-fit: contain;
  margin-bottom: 4px;
  filter: grayscale(100%) contrast(150%);
}

.thermal-title {
  font-size: 15px;
  font-weight: 800;
  margin: 0 0 4px;
  color: #000;
}

.thermal-subtitle {
  font-size: 11px;
  font-weight: 700;
  margin: 2px 0;
  text-transform: uppercase;
}

.thermal-sub {
  font-size: 11px;
  margin: 1px 0;
  color: #444;
}

.thermal-divider-double {
  border-top: 2px solid #000;
  margin: 8px 0;
}

.thermal-divider-dashed {
  border-top: 1px dashed #000;
  margin: 8px 0;
}

.thermal-meta {
  font-size: 11.5px;
  margin-bottom: 6px;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  margin: 2px 0;
}

.thermal-badge {
  background: #000;
  color: #fff;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 10px;
}

.thermal-items-header {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 11px;
  padding: 2px 0;
}

.thermal-item-row {
  margin: 5px 0;
}

.item-name {
  font-weight: 600;
  word-break: break-word;
}

.item-calc {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #222;
}

.thermal-summary {
  margin-top: 4px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin: 3px 0;
  font-size: 11.5px;
}

.summary-row.font-bold {
  font-weight: 700;
}

.summary-row.total-highlight {
  font-size: 14px;
  font-weight: 800;
  padding: 5px 0;
  border-top: 1px dashed #000;
  border-bottom: 1px dashed #000;
  margin: 6px 0;
}

.thermal-section-title {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  margin: 8px 0 4px;
}

.thermal-footer {
  text-align: center;
  font-size: 11px;
  margin-top: 8px;
}

.thermal-footer p {
  margin: 4px 0;
}

.thermal-signatures {
  display: flex;
  justify-content: space-between;
  margin-top: 18px;
  padding-bottom: 6px;
  font-size: 11px;
  text-align: center;
}

/* ===== HEADER CASHIER SELECTOR & MANAGEMENT ===== */
.header-cashier-box {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.95);
  height: 38px;
  padding: 0 8px 0 14px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  box-sizing: border-box;
}

.header-cashier-box .cashier-icon {
  color: var(--primary-pink);
  font-size: 0.95rem;
}

.header-cashier-box .cashier-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #475569;
}

.header-cashier-select {
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  border-radius: 12px;
  height: 28px;
  padding: 0 8px;
  font-size: 0.84rem;
  font-weight: 600;
  color: #1e293b;
  outline: none;
  cursor: pointer;
  transition: all 0.2s;
  min-width: 110px;
}

.header-cashier-select:focus {
  border-color: var(--primary-pink);
  background: #ffffff;
}

.btn-cashier-action {
  background: var(--primary-pink);
  color: var(--white);
  border: none;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.75rem;
  transition: all 0.2s;
}

.btn-cashier-action:hover {
  transform: scale(1.1);
  opacity: 0.92;
}

.form-control-readonly {
  background: #f5f5f7 !important;
  color: #555 !important;
  cursor: not-allowed;
  border: 1px solid #e0e0e0 !important;
}

.cashier-list-box .cashier-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 6px;
  margin-bottom: 4px;
  background: #fafafa;
  transition: background 0.2s;
}

.cashier-list-box .cashier-item-row:hover {
  background: #f0f0f5;
}

.cashier-list-box .cashier-item-row .cashier-name {
  font-weight: 600;
  color: #333;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cashier-list-box .cashier-item-row .btn-delete-cashier {
  background: transparent;
  color: #dc3545;
  border: none;
  padding: 4px 8px;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s;
}

.cashier-list-box .cashier-item-row .btn-delete-cashier:hover {
  background: #fee2e2;
}

/* Area cetak tersembunyi saat di layar */
#thermalPrintArea {
  display: none;
}

/* ===== STRICT MEDIA PRINT RULES (HANYA AREA CETAK YANG KELUAR) ===== */
@media print {
  @page {
    size: auto;
    margin: 0mm !important;
  }

  html, body {
    background: #ffffff !important;
    color: #000000 !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  /* Sembunyikan seluruh UI web, header, navbar, modal, tombol */
  .app-container,
  header,
  nav,
  main,
  .modal-overlay,
  .notification,
  .loading-overlay,
  body > *:not(#thermalPrintArea) {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
  }

  /* Tampilkan HANYA #thermalPrintArea */
  #thermalPrintArea,
  .thermal-print-container {
    display: block !important;
    visibility: visible !important;
    position: relative !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
    color: #000000 !important;
    overflow: visible !important;
  }

  #thermalPrintArea * {
    visibility: visible !important;
  }

  /* Kertas Roll 58mm (Default Standar Thermal POS Warkop) */
  .thermal-print-container.size-58mm,
  .thermal-print-container:not(.size-80mm) {
    width: 48mm !important;
    max-width: 48mm !important;
    margin: 0 auto !important;
    font-size: 11px !important;
  }

  /* Kertas Roll 80mm */
  .thermal-print-container.size-80mm {
    width: 72mm !important;
    max-width: 72mm !important;
    margin: 0 auto !important;
    font-size: 12.5px !important;
  }

  .thermal-receipt {
    padding: 2mm 1mm 15mm 1mm !important; /* Bottom padding 15mm agar aman dari pisau cutter */
    box-shadow: none !important;
    border: none !important;
    max-width: 100% !important;
    margin: 0 !important;
    color: #000000 !important;
    background: #ffffff !important;
  }

  .thermal-badge {
    border: 1px solid #000 !important;
    color: #000 !important;
    background: transparent !important;
  }
}

/* ==========================================================================
   FITUR NOMOR MEJA, KALKULATOR PEMBAYARAN TUNAI & KEMBALIAN POS
   ========================================================================== */

.order-section-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.order-section-label i {
  color: var(--primary-pink, #d84e87);
  font-size: 0.9rem;
}

/* Nomor Meja Input & Chips */
.order-table-section {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 8px 10px;
  margin-bottom: 4px;
}

.table-input-wrap {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.table-input {
  width: 100%;
  height: 32px;
  padding: 0 10px;
  border: 1.5px solid #cbd5e1;
  border-radius: 6px;
  font-size: 0.84rem;
  background: #ffffff;
  color: #0f172a;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.table-input:focus {
  border-color: var(--primary-pink, #d84e87);
  box-shadow: 0 0 0 2px rgba(216, 78, 135, 0.15);
}

.quick-table-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.btn-table-chip {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  padding: 3px 8px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-table-chip:hover,
.btn-table-chip:active {
  background: #fdf2f8;
  border-color: var(--primary-pink, #d84e87);
  color: var(--primary-pink, #d84e87);
}

/* Metode Pembayaran Modern Pills */
.payment-buttons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 4px;
}

.payment-pill-label {
  cursor: pointer;
  margin: 0;
}

.payment-pill-label input[type="radio"] {
  display: none;
}

.payment-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 10px;
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #475569;
  transition: all 0.2s ease;
  user-select: none;
  height: 32px;
}

.payment-pill-label input[type="radio"]:checked + .payment-pill {
  background: linear-gradient(135deg, var(--primary-pink, #d84e87), var(--light-pink, #f1a2c2));
  border-color: var(--primary-pink, #d84e87);
  color: #ffffff;
  box-shadow: 0 3px 8px rgba(216, 78, 135, 0.25);
}

/* Kalkulator Bayar Tunai & Kembalian */
.cash-calc-section {
  background: #f0fdf4;
  border: 1.5px solid #bbf7d0;
  border-radius: 10px;
  padding: 8px 10px;
  margin: 4px 0;
  animation: fadeIn 0.2s ease-in-out;
}

.cash-input-wrap {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1.5px solid #86efac;
  border-radius: 6px;
  overflow: hidden;
  height: 34px;
}

.cash-input-prefix {
  padding: 0 8px;
  background: #dcfce7;
  color: #166534;
  font-weight: 700;
  font-size: 0.84rem;
  height: 100%;
  display: flex;
  align-items: center;
}

.cash-input {
  flex: 1;
  border: none;
  outline: none;
  height: 100%;
  padding: 0 8px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
}

.quick-cash-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 5px;
}

.btn-cash-chip {
  flex: 1;
  min-width: 44px;
  background: #ffffff;
  border: 1px solid #86efac;
  border-radius: 5px;
  padding: 3px 6px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #166534;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
}

.btn-cash-chip:hover,
.btn-cash-chip:active {
  background: #16a34a;
  border-color: #16a34a;
  color: #ffffff;
}

.change-result-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
  padding: 5px 8px;
  background: #ffffff;
  border-radius: 6px;
  border: 1px dashed #86efac;
}

.change-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #166534;
}

.change-val {
  font-size: 1.08rem;
  font-weight: 800;
  color: #16a34a;
}

.change-warning {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #dc2626;
  font-size: 0.76rem;
  font-weight: 600;
  margin-top: 4px;
  padding: 3px 6px;
  background: #fee2e2;
  border-radius: 5px;
}

/* Tombol Proses Pesanan - Selalu Terlihat & Bisa Diklik */
#processOrderBtn {
  width: 100%;
  height: 44px;
  min-height: 44px;
  padding: 10px 16px;
  font-size: 0.98rem;
  font-weight: 700;
  border-radius: 10px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff !important;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-shrink: 0;
  margin-top: 4px;
  transition: all 0.2s ease;
}

#processOrderBtn:hover:not(:disabled) {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.45);
}

#processOrderBtn:active:not(:disabled) {
  transform: translateY(1px);
}

#processOrderBtn:disabled {
  background: #cbd5e1 !important;
  color: #94a3b8 !important;
  cursor: not-allowed;
  box-shadow: none !important;
  transform: none !important;
}

/* Floating Bottom Bar untuk Layar Mobile */
@media (min-width: 769px) {
  .mobile-floating-cart {
    display: none !important;
  }
}

.mobile-floating-cart {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 999;
  background: #1e293b;
  color: #ffffff;
  border-radius: 16px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  animation: slideUp 0.3s ease-out;
}

.floating-cart-info {
  display: flex;
  flex-direction: column;
}

.floating-cart-items {
  font-size: 0.76rem;
  color: #94a3b8;
  font-weight: 600;
}

.floating-cart-total {
  font-size: 1.05rem;
  font-weight: 800;
  color: #f472b6;
}

.btn-floating-checkout {
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  background: var(--primary-pink, #d84e87);
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

/* ==========================================================================
   PENINGKATAN RESPONSIVE UNIVERSAL (HP, TABLET & BERBAGAI UKURAN DEVICE)
   ========================================================================== */

/* Tablet & Layar Menengah (<= 992px) */
@media (max-width: 992px) {
  .kasir-container {
    grid-template-columns: 1fr 340px;
    gap: 16px;
    height: auto;
  }

  .header-content {
    padding: 16px 20px;
  }

  .menu-items-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
  }
}

/* Layar Ponsel & Smartphone (<= 768px) */
@media (max-width: 768px) {
  .app-container {
    padding: 8px 10px 80px; /* Ruang ekstra di bawah untuk floating bar */
  }

  .app-header {
    border-radius: 14px;
    margin-bottom: 12px;
  }

  .header-content {
    flex-direction: column;
    padding: 14px 16px;
    gap: 12px;
  }

  .logo-section {
    justify-content: center;
    gap: 12px;
  }

  .logo-icon {
    width: 46px;
    height: 46px;
  }

  .logo-icon i {
    font-size: 1.5rem;
  }

  .logo-text h1 {
    font-size: 1.3rem;
  }

  .logo-text p {
    font-size: 0.75rem;
  }

  .header-info {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
  }

  .header-cashier-box {
    padding: 5px 10px;
    font-size: 0.78rem;
  }

  .header-cashier-select {
    font-size: 0.78rem;
    padding: 3px 6px;
  }

  .btn-shift {
    padding: 6px 10px;
    font-size: 0.78rem;
  }

  /* Navigasi Swipe Horizontal */
  .main-navigation {
    position: sticky;
    top: 0;
    z-index: 95;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    margin-bottom: 12px;
  }

  .nav-container {
    display: flex !important;
    flex-direction: row !important;
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    -webkit-overflow-scrolling: touch;
    padding: 6px 8px !important;
    gap: 6px !important;
    scrollbar-width: none;
  }

  .nav-container::-webkit-scrollbar {
    display: none;
  }

  .nav-item {
    flex: 0 0 auto !important;
    padding: 8px 12px !important;
    font-size: 0.8rem !important;
    white-space: nowrap !important;
    border-radius: 8px !important;
  }

  .nav-item i {
    font-size: 0.85rem;
  }

  /* Layout Kasir Vertikal Nyaman */
  .kasir-container {
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
    gap: 16px !important;
  }

  .menu-selection-panel {
    order: 1;
    width: 100% !important;
    min-height: auto !important;
    padding: 14px !important;
    border-radius: 14px !important;
  }

  .menu-items-grid {
    grid-template-columns: repeat(auto-fill, minmax(115px, 1fr)) !important;
    gap: 10px !important;
    padding: 4px 0 !important;
  }

  .menu-item-card {
    padding: 10px !important;
    min-height: 130px !important;
    border-radius: 12px !important;
  }

  .menu-item-card h4 {
    font-size: 0.82rem !important;
  }

  .menu-item-card .price {
    font-size: 0.88rem !important;
  }

  .order-panel {
    order: 2;
    width: 100% !important;
    min-height: auto !important;
    padding: 0 !important;
    border-radius: 14px !important;
    overflow: visible !important;
  }

  .order-items-container {
    max-height: 280px !important;
    min-height: 120px !important;
  }

  .order-summary {
    max-height: none !important;
    overflow: visible !important;
  }

  /* Modals di HP */
  .modal-content:not(.receipt-modal) {
    width: 95% !important;
    max-width: 95vw !important;
    padding: 16px !important;
    border-radius: 16px !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
  }

  .modal-content.receipt-modal {
    width: 95% !important;
    max-width: 520px !important;
    padding: 0 !important;
    border-radius: 16px !important;
    max-height: 92vh !important;
    max-height: 92dvh !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
  }
}

/* Smartphone Kecil (<= 480px) */
@media (max-width: 480px) {
  .menu-items-grid {
    grid-template-columns: 1fr 1fr !important; /* 2 Kolom pas di layar kecil */
    gap: 8px !important;
  }

  .category-tabs {
    padding: 6px !important;
    gap: 6px !important;
  }

  .category-tab {
    padding: 6px 10px !important;
    font-size: 0.72rem !important;
  }

  .quick-cash-chips {
    gap: 4px;
  }

  .btn-cash-chip {
    padding: 6px 4px;
    font-size: 0.74rem;
  }
}





