/* Guest Pilot base styles */
:root {
  --gp-brand: #002060;
  --gp-brand-soft: #EEF2F7;
  --gp-accent: #F89800;
  --gp-success: #25d080;
  --gp-warning: #F8B800;
  --gp-danger: #e5534b;
  --gp-info: #103078;
  --gp-ink: #0A1228;
  --gp-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --gp-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --gp-shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --gp-radius: 12px;
  --gp-radius-sm: 8px;
  --gp-radius-lg: 16px;
}

body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background-color: var(--gp-brand-soft);
  min-height: 100vh;
}

/* Navbar polish */
.navbar-brand { font-weight: 700; letter-spacing: 0.3px; }
.navbar-brand img { height: 28px; width: auto; }
.navbar {
  position: relative;
  z-index: 1030;
  backdrop-filter: blur(8px);
}

.navbar .dropdown-menu {
  z-index: 1060;
}

main.container-fluid { max-width: 1400px; }

/* ===== CARDS ===== */
.card {
  border-radius: var(--gp-radius);
  border-color: #e5e9ee;
  box-shadow: var(--gp-shadow-sm);
  transition: box-shadow 0.2s ease;
}

.card:hover {
  box-shadow: var(--gp-shadow-md);
}

.card-header {
  background: #fff;
  border-bottom: 1px solid #e5e9ee;
  border-radius: var(--gp-radius) var(--gp-radius) 0 0 !important;
  padding: 1rem 1.25rem;
}

.card-header h5,
.card-header h6 {
  margin: 0;
  font-weight: 600;
  color: var(--gp-brand);
}

/* ===== STAT CARDS ===== */
.stat-card .card {
  border-top: 3px solid var(--gp-brand);
  border-left: none;
  border-right: none;
  border-bottom: none;
}

.stat-card .card:hover {
  transform: translateY(-2px);
  box-shadow: var(--gp-shadow-lg);
}

.stat-icon {
  font-size: 1.8rem;
  color: var(--gp-brand);
  opacity: 0.55;
}

/* ===== MODULE CARDS ===== */
.module-card {
  border-radius: var(--gp-radius);
  border-color: transparent;
  background: #fff;
  box-shadow: var(--gp-shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.module-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--gp-shadow-lg);
  border-color: var(--gp-accent);
}

.module-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  font-size: 1.4rem;
  color: #fff;
  background: linear-gradient(135deg, var(--gp-brand), var(--gp-accent));
}

.module-arrow { font-size: 1.2rem; color: #adb5bd; transition: transform 0.15s ease; }
.module-card:hover .module-arrow { transform: translateX(4px); color: var(--gp-accent); }

/* ===== TABLES ===== */
.table {
  --bs-table-hover-bg: rgba(44, 110, 158, 0.04);
  margin-bottom: 0;
}

.table thead th {
  background: #f8f9fb;
  color: #495057;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid #e5e9ee;
  padding: 0.875rem 1rem;
  white-space: nowrap;
}

.table tbody td {
  padding: 0.875rem 1rem;
  vertical-align: middle;
  border-bottom: 1px solid #f0f2f5;
}

.table tbody tr {
  transition: background-color 0.15s ease;
}

.table tbody tr:hover {
  background-color: rgba(44, 110, 158, 0.04);
}

.table tbody tr:last-child td {
  border-bottom: none;
}

/* ===== ROOM STATUS (room window) =====
   Green highlight for available rooms, red for occupied ones; the other
   statuses get their own tint. ``--bs-table-bg-type`` colours the cells
   (Bootstrap paints cell backgrounds), background-color covers the row. */
.table > tbody > tr.room-available {
  background-color: rgba(25, 135, 84, 0.14);
  --bs-table-bg-type: rgba(25, 135, 84, 0.14);
}

.table > tbody > tr.room-reserved {
  background-color: rgba(255, 193, 7, 0.16);
  --bs-table-bg-type: rgba(255, 193, 7, 0.16);
}

.table > tbody > tr.room-occupied {
  background-color: rgba(220, 53, 69, 0.14);
  --bs-table-bg-type: rgba(220, 53, 69, 0.14);
}

.table > tbody > tr.room-cleaning {
  background-color: rgba(13, 202, 240, 0.14);
  --bs-table-bg-type: rgba(13, 202, 240, 0.14);
}

.table > tbody > tr.room-maintenance,
.table > tbody > tr.room-out {
  background-color: rgba(108, 117, 125, 0.16);
  --bs-table-bg-type: rgba(108, 117, 125, 0.16);
}

/* Table action buttons */
.table .btn-sm {
  padding: 0.25rem 0.5rem;
  font-size: 0.8rem;
  border-radius: var(--gp-radius-sm);
}

.table .btn-sm i {
  font-size: 0.875rem;
}

/* Empty state in tables */
.table-empty-state {
  text-align: center;
  padding: 3rem 1rem !important;
  color: #6c757d;
}

.table-empty-state i {
  font-size: 2.5rem;
  color: #dee2e6;
  display: block;
  margin-bottom: 0.75rem;
}

/* ===== BADGES ===== */
.badge {
  font-weight: 500;
  padding: 0.4em 0.75em;
  border-radius: 6px;
  font-size: 0.75rem;
}

.badge.bg-success {
  background: linear-gradient(135deg, #34d894, #1da676) !important;
}

.badge.bg-danger {
  background: linear-gradient(135deg, #e5534b, #c9302c) !important;
}

.badge.bg-warning {
  background: linear-gradient(135deg, #f0ad4e, #ec971f) !important;
}

.badge.bg-info {
  background: linear-gradient(135deg, #5bc0de, #31b0d5) !important;
}

.badge.bg-primary {
  background: linear-gradient(135deg, var(--gp-brand), var(--gp-accent)) !important;
}

/* Status badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.status-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* ===== BUTTONS ===== */
.btn {
  font-weight: 500;
  border-radius: var(--gp-radius-sm);
  padding: 0.5rem 1rem;
  transition: all 0.15s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gp-brand), var(--gp-accent));
  border: none;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #152d47, #255d85);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(44, 110, 158, 0.3);
}

.btn-success {
  background: linear-gradient(135deg, #34d894, #1da676);
  border: none;
}

.btn-success:hover {
  background: linear-gradient(135deg, #2cc07a, #18956a);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 208, 128, 0.3);
}

.btn-danger {
  background: linear-gradient(135deg, #e5534b, #c9302c);
  border: none;
}

.btn-danger:hover {
  background: linear-gradient(135deg, #d9433b, #b52b23);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(229, 83, 75, 0.3);
}

.btn-outline-primary {
  border-color: var(--gp-accent);
  color: var(--gp-accent);
}

.btn-outline-primary:hover {
  background: var(--gp-accent);
  border-color: var(--gp-accent);
  transform: translateY(-1px);
}

.btn-outline-secondary {
  border-color: #d0d7de;
}

.btn-outline-secondary:hover {
  background: #f8f9fa;
  border-color: #adb5bd;
  transform: translateY(-1px);
}

.btn-outline-danger {
  border-color: #e5534b;
  color: #e5534b;
}

.btn-outline-danger:hover {
  background: #e5534b;
  border-color: #e5534b;
  transform: translateY(-1px);
}

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.85rem;
}

/* ===== FORMS ===== */
.form-control, .form-select {
  border-radius: 10px;
  border: 2px solid #e5e9ee;
  padding: 0.625rem 1rem;
  background-color: #fff;
  transition: all 0.15s ease;
}

.form-control:focus, .form-select:focus {
  border-color: var(--gp-accent);
  box-shadow: 0 0 0 0.2rem rgba(44, 110, 158, 0.15);
  outline: none;
}

.form-label {
  font-weight: 500;
  color: #495057;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.form-text {
  color: #6c757d;
  font-size: 0.8rem;
}

/* Input group polish */
.input-group .form-control {
  border-right: none;
}

.input-group .btn {
  border-color: #d0d7de;
}

.input-group .btn:hover {
  border-color: var(--gp-accent);
}

/* ===== INPUT ICONS (login-style) ===== */
.input-icon-wrapper {
  position: relative;
}

.input-icon-wrapper .input-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9aa4b1;
  pointer-events: none;
  font-size: 1rem;
  z-index: 3;
}

/* Left padding only makes sense when a leading icon is actually rendered
   (either via the .has-left-icon marker or an icon sibling before the input). */
.input-icon-wrapper.has-left-icon .form-control,
.input-icon-wrapper .input-icon + .form-control {
  padding-left: 2.75rem;
}

.input-icon-wrapper .form-control:focus ~ .input-icon {
  color: var(--gp-accent);
}

/* A field with an inline action on the right (e.g. password toggle) — keep
   the leading icon and add room on the right so text never underlaps. */
.input-icon-wrapper.has-toggle .form-control {
  padding-right: 2.75rem;
}

/* Right-aligned icon (e.g. search, toggle) */
.input-icon-wrapper.has-right-icon .form-control {
  padding-left: 1rem;
  padding-right: 2.75rem;
}

.input-icon-wrapper .input-icon--right {
  left: auto;
  right: 1rem;
}

/* Password reveal toggle */
.input-icon-wrapper .password-toggle {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #6c757d;
  padding: 0.5rem;
  cursor: pointer;
  border-radius: 8px;
  z-index: 4;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.input-icon-wrapper .password-toggle:hover {
  color: var(--gp-accent);
  background: rgba(44, 110, 158, 0.1);
}

.input-icon-wrapper .password-toggle:focus {
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(44, 110, 158, 0.25);
}

/* ===== FORM SECTION TITLE ===== */
.form-section-title {
  color: var(--gp-brand);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e9edf1;
}

/* ===== AUTH PAGE (shared login look) ===== */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background: linear-gradient(135deg, #1b3a5b 0%, #2c6e9e 50%, #1b3a5b 100%);
  font-family: "Segoe UI", system-ui, sans-serif;
}

.auth-card {
  max-width: 420px;
  width: 100%;
  border: none;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.auth-card__header {
  background: linear-gradient(135deg, #1b3a5b, #2c6e9e);
  padding: 2rem 2rem 1.5rem;
  text-align: center;
  position: relative;
}

.auth-card__header::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 0;
  right: 0;
  height: 40px;
  background: white;
  border-radius: 50% 50% 0 0;
}

.auth-card__logo {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 8px;
}

.auth-card__logo i {
  font-size: 2rem;
  color: #fff;
}

.auth-card__logo .auth-logo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.auth-card__title {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: 0.5px;
}

.auth-card__subtitle {
  color: rgba(255, 255, 255, 0.8);
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
}

.auth-card__body {
  padding: 2rem;
  background: #fff;
}

.auth-card__footer {
  background: #f8f9fb;
  border-top: 1px solid #e9edf1;
  padding: 1rem 0.75rem;
  text-align: center;
  color: #6c757d;
  font-size: 0.8rem;
}

/* Centered, professional language selector on auth screens. */
.auth-card__lang {
  display: flex;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.auth-card__lang form {
  width: 100%;
  max-width: 220px;
}

.auth-card__lang .input-group-text {
  background: #fff;
  border: 2px solid #e5e9ee;
  border-right: 0;
  border-radius: 10px 0 0 10px;
  color: var(--gp-accent);
}

.auth-card__lang .form-select {
  border: 2px solid #e5e9ee;
  border-left: 0;
  border-radius: 0 10px 10px 0;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  background-position: right 0.6rem center;
}

.auth-card__lang .form-select:hover {
  border-color: var(--gp-accent);
}

.auth-card__lang .form-select:focus {
  border-color: var(--gp-accent);
  box-shadow: 0 0 0 0.2rem rgba(44, 110, 158, 0.15);
}
/* ===== SEARCH & FILTER BAR ===== */
.search-filter-bar {
  background: #fff;
  border-radius: var(--gp-radius);
  padding: 1rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--gp-shadow-sm);
}

/* ===== PAGE HEADER ===== */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.page-header h2 {
  font-weight: 700;
  color: var(--gp-brand);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.page-header h2 i {
  color: var(--gp-accent);
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
  background: #fff;
  border-radius: var(--gp-radius-sm);
  padding: 0.75rem 1rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--gp-shadow-sm);
}

.breadcrumb a {
  color: var(--gp-accent);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* ===== CONFIRM DELETE ===== */
.delete-confirm-card {
  max-width: 500px;
  margin: 2rem auto;
  border: none;
  border-radius: var(--gp-radius-lg);
  box-shadow: var(--gp-shadow-lg);
  overflow: hidden;
}

.delete-confirm-header {
  background: linear-gradient(135deg, #e5534b, #c9302c);
  padding: 1.5rem;
  text-align: center;
  color: white;
}

.delete-confirm-header i {
  font-size: 3rem;
  margin-bottom: 0.75rem;
  display: block;
}

.delete-confirm-header h4 {
  margin: 0;
  font-weight: 600;
}

.delete-confirm-body {
  padding: 1.5rem;
  text-align: center;
}

.delete-confirm-body p {
  color: #495057;
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.delete-confirm-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: #6c757d;
}

.empty-state i {
  font-size: 3rem;
  color: #dee2e6;
  margin-bottom: 1rem;
  display: block;
}

.empty-state h5 {
  color: #495057;
  margin-bottom: 0.5rem;
}

.empty-state p {
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .page-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .table-responsive {
    border-radius: var(--gp-radius);
  }

  .btn {
    padding: 0.5rem 0.875rem;
  }
}

/* ===== PRINT ===== */
@media print {
  .navbar, .btn, .breadcrumb, .search-filter-bar {
    display: none !important;
  }

  .card {
    box-shadow: none;
    border: 1px solid #dee2e6;
  }
}
.gp-alerts {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 1080;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: min(420px, calc(100vw - 2.5rem));
  pointer-events: none;
}

.gp-alert {
  position: relative;
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 2.5rem 1.05rem 1rem;
  background: #ffffff;
  border-radius: 14px;
  border-left: 4px solid var(--gp-accent);
  box-shadow: 0 10px 30px rgba(27, 58, 91, 0.16), 0 2px 6px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  animation: gp-alert-in 0.35s cubic-bezier(0.21, 1.02, 0.73, 1) forwards;
}

.gp-alert--success { border-left-color: #25d080; }
.gp-alert--danger  { border-left-color: #e5534b; }
.gp-alert--warning { border-left-color: #f0ad4e; }
.gp-alert--info    { border-left-color: var(--gp-accent); }
.gp-alert--secondary { border-left-color: #6c757d; }

.gp-alert__icon {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  font-size: 1.1rem;
}
.gp-alert--success .gp-alert__icon { background: linear-gradient(135deg, #34d894, #1da676); }
.gp-alert--danger  .gp-alert__icon { background: linear-gradient(135deg, #f26b6b, #d6424a); }
.gp-alert--warning .gp-alert__icon { background: linear-gradient(135deg, #f9c26b, #eb9a3c); }
.gp-alert--info    .gp-alert__icon { background: linear-gradient(135deg, var(--gp-brand), var(--gp-accent)); }
.gp-alert--secondary .gp-alert__icon { background: linear-gradient(135deg, #8a94a6, #5c6670); }

.gp-alert__body { flex: 1 1 auto; min-width: 0; padding-top: 0.5rem; }
.gp-alert__message {
  color: #1f2d3d;
  font-size: 0.925rem;
  line-height: 1.45;
  word-break: break-word;
}

.gp-alert__close {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  padding: 0.25rem;
  background: none;
  border: 0;
  border-radius: 6px;
  color: #98a2b3;
  font-size: 0.85rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}
.gp-alert__close:hover { color: #1f2d3d; background: #f1f3f6; }

.gp-alert__timer {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  transform: scaleX(1);
  transform-origin: left center;
  background: var(--gp-accent);
  animation: gp-alert-timer 5s linear forwards;
}
.gp-alert--success .gp-alert__timer { background: #27a080; }
.gp-alert--danger  .gp-alert__timer { background: #e5534b; }
.gp-alert--warning .gp-alert__timer { background: #f0ad4e; }

.gp-alert:hover .gp-alert__timer { animation-play-state: paused; }

.gp-alert--out { animation: gp-alert-out 0.35s ease forwards; }

@keyframes gp-alert-in {
  from { opacity: 0; transform: translateX(24px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes gp-alert-out {
  to { opacity: 0; transform: translateX(24px) scale(0.97); }
}

@keyframes gp-alert-timer {
  to { transform: scaleX(0); }
}

@media (max-width: 576px) {
  .gp-alerts { top: 0.75rem; right: 0.75rem; width: calc(100vw - 1.5rem); }
}

/* Navbar dropdowns inherit the dark navbar background look cleanly. */
.dropdown-item { border-radius: 6px; }
.dropdown-item i { color: var(--gp-accent); }

/* Tables */
.table thead th { background: var(--gp-brand); color: #fff; }
.table-hover tbody tr:hover { background: #eef3f8; }

/* POS table variant — lighter header with subtle zebra */
.pos-table thead th {
  background: #f8f9fa;
  color: #495057;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  border-bottom: 2px solid #e5e9ee;
}
.pos-table tbody tr {
  border-bottom: 1px solid #f0f2f5;
  transition: background 0.12s ease;
}
.pos-table tbody tr:hover {
  background: #f8f9fa;
}
.pos-table tbody tr.table-warning {
  background: #fff9e6;
}
.pos-table tbody tr.table-secondary {
  background: #f8f9fa;
}

/* Professional hosting-style full-page loader */
.gp-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #ffffff;
  font-family: "Segoe UI", system-ui, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gp-loader__spinner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.gp-loader__dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gp-brand);
  box-shadow: 0 0 0 0 rgba(27, 58, 91, 0.5);
  animation: gp-bounce 0.9s ease-in-out infinite both;
}

.gp-loader__dot:nth-child(1) { animation-delay: -0.24s; }
.gp-loader__dot:nth-child(2) { animation-delay: -0.12s; }
.gp-loader__dot:nth-child(3) { animation-delay: 0s; }

@keyframes gp-bounce {
  0%, 80%, 100% {
    transform: scale(0);
    box-shadow: 0 0 0 0 rgba(27, 58, 91, 0.5);
  }
  40% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(27, 58, 91, 0);
  }
}

.gp-loader__text {
  color: var(--gp-brand);
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* ===== POS premium UI ===== */
.pos-bg {
  background: linear-gradient(135deg, #f0f4f9 0%, #eef3f8 100%);
  min-height: 100vh;
}

.pos-card {
  border: none;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  background: #ffffff;
  transition: box-shadow 0.2s ease, transform 0.1s ease;
  overflow: hidden;
}

.pos-card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.pos-grid {
  grid-template-columns: 1fr 380px;
  gap: 16px;
}

.pos-section-title {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #6c757d;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.pos-input:focus, .payment-select:focus {
  border-color: var(--gp-accent);
  box-shadow: 0 0 0 0.2rem rgba(44, 110, 158, 0.12);
}

.pos-total-card .pos-card {
  background: linear-gradient(135deg, var(--gp-brand), var(--gp-accent));
}

.pos-total-card .pos-card .pos-section-title,
.pos-total-card .pos-card label,
.pos-total-card .pos-card dt {
  color: rgba(255, 255, 255, 0.8);
}

.pos-total-card .fw-bold {
  color: #fff;
}

.pos-total-display {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}

/* Product search and barcode */
.product-search-wr input {
  border: 2px solid #d0d7de;
  border-radius: 14px;
  padding: 12px 16px;
  font-size: 1.05rem;
  font-weight: 500;
  transition: all 0.15s ease;
}

.product-search-wr input:focus {
  border-color: var(--gp-accent);
  box-shadow: 0 0 0 0.25rem rgba(44, 110, 158, 0.15);
  outline: none;
}

.barcode-input {
  border: 2px solid #d0d7de;
  border-radius: 14px;
  padding: 10px 14px;
  font-size: 1.1rem;
  font-family: "Courier New", monospace;
  letter-spacing: 1px;
  transition: all 0.15s ease;
  background: #fff;
}

.barcode-input:focus {
  border-color: #25d080;
  box-shadow: 0 0 0 0.2rem rgba(37, 208, 130, 0.12);
  outline: none;
}

.barcode-badge {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.68rem;
  background: #e7f1fa;
  color: var(--gp-accent);
  padding: 3px 10px;
  border-radius: 12px;
  font-weight: 500;
}

/* Category tabs */
.quick-cat-btn {
  border-radius: 14px;
  border: 1.5px solid #d0d7de;
  background: #fff;
  padding: 8px 16px;
  transition: all 0.15s ease;
  font-size: 0.82rem;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.quick-cat-btn:hover,
.quick-cat-btn.active {
  background: linear-gradient(135deg, var(--gp-brand), var(--gp-accent));
  color: #fff;
  border-color: var(--gp-accent);
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(44, 110, 158, 0.2);
}

/* Product tiles */
.product-tile {
  border-radius: 14px;
  border: 1.5px solid #d0d7de;
  background: #fff;
  padding: 14px 16px;
  transition: all 0.15s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 3px;
  height: 100%;
}

.product-tile:hover {
  background: #e7f1fa;
  border-color: var(--gp-accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.07);
}

.product-tile .product-name {
  font-weight: 600;
  color: var(--gp-brand);
  font-size: 0.9rem;
}

.product-tile .product-meta {
  font-size: 0.72rem;
  color: #6c757d;
}

.product-tile .product-price {
  font-weight: 700;
  color: var(--gp-accent);
  margin-top: 4px;
  font-size: 0.95rem;
}

.product-tile.out-of-stock {
  opacity: 0.55;
  cursor: not-allowed;
}

.product-tile.out-of-stock:hover {
  transform: none;
  background: #fff;
  border-color: #d0d7de;
  box-shadow: none;
}

/* Items table */
.pos-table thead th {
  background: #f8f9fa;
  color: #495057;
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  border-bottom: 2px solid #e5e9ee;
}

.pos-table tbody tr {
  border-bottom: 1px solid #f0f2f5;
  transition: background 0.12s ease;
}

.pos-table tbody tr:hover {
  background: #f8f9fa;
}

.line-subtotal {
  font-size: 0.85rem;
  font-weight: 600;
}

.qty-input {
  width: 80px;
  text-align: center;
  font-size: 1rem;
}

.price-input {
  width: 100px;
  text-align: right;
}

.remove-line {
  opacity: 0.3;
  transition: all 0.15s ease;
}

.remove-line:hover {
  opacity: 1;
  color: #dc3545;
  transform: scale(1.15);
}

.empty-row td {
  background: #f8f9fa;
}

.nav-btn {
  border-radius: 12px;
  padding: 8px 18px;
  font-weight: 500;
  transition: all 0.15s ease;
}

.nav-btn:hover {
  transform: translateY(-1px);
}

/* Payment section */
.payment-select {
  border-radius: 12px;
  border: 1.5px solid #d0d7de;
  padding: 8px 12px;
  font-size: 0.95rem;
  background: #fff;
}

.payment-select:focus {
  border-color: var(--gp-accent);
  box-shadow: 0 0 0 0.2rem rgba(44, 110, 158, 0.12);
  outline: none;
}

.pos-split-input {
  border-radius: 10px;
}

/* Quick payment buttons */
#quickPayBtns .btn {
  border-radius: 12px;
  padding: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.15s ease;
}

#quickPayBtns .btn:hover {
  transform: translateY(-1px);
}

#quickPayBtns .btn-success {
  background: linear-gradient(135deg, #25d080, #1da676);
  border: none;
}

/* Split payment */
.split-row .remove-split {
  opacity: 0.4;
  transition: opacity 0.15s ease;
}

.split-row .remove-split:hover {
  opacity: 1;
  color: #dc3545;
}

/* ===== DataTables professional styling ===== */
.dataTables_wrapper {
  padding: 0.75rem 0;
}

.dataTables_length label {
  margin-bottom: 0;
  color: #6c757d;
  font-size: 0.875rem;
}

.dataTables_filter label {
  margin-bottom: 0;
  color: #6c757d;
  font-size: 0.875rem;
}

.dataTables_filter input {
  border-radius: 8px;
  border: 2px solid #d0d7de;
  padding: 6px 12px;
  transition: all 0.15s;
}

.dataTables_filter input:focus {
  border-color: var(--gp-accent);
  box-shadow: 0 0 0 0.2rem rgba(44, 110, 158, 0.12);
  outline: none;
}

.dataTables_info {
  color: #6c757d;
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

.dataTables_paginate .page-link {
  border-radius: 6px;
  margin: 0 2px;
  color: var(--gp-accent);
  border-color: #d0d7de;
}

.dataTables_paginate .page-link:hover {
  background-color: var(--gp-accent);
  border-color: var(--gp-accent);
  color: #fff;
}

.dataTables_paginate .page-link.active {
  background-color: var(--gp-accent);
  border-color: var(--gp-accent);
}

.dataTables_paginate .page-item.disabled .page-link {
  opacity: 0.5;
}

.dataTables_wrapper .btn-toolbar {
  margin-bottom: 0;
}

table.dataTable thead th {
  color: #212529 !important;
  background-color: #f8f9fa !important;
  font-weight: 600 !important;
  border-bottom: 2px solid #dee2e6 !important;
  white-space: nowrap;
}

table.dataTable thead th.sorting,
table.dataTable thead th.sorting_asc,
table.dataTable thead th.sorting_desc {
  color: #212529 !important;
  background-color: #f8f9fa !important;
}

table.dataTable thead th.sorting:after,
table.dataTable thead th.sorting_asc:after,
table.dataTable thead th.sorting_desc:after {
  opacity: 0.35;
}

table.dataTable thead th.sorting_asc:after {
  opacity: 1;
}

table.dataTable thead th.sorting_desc:after {
  opacity: 1;
}