/* Holdyah - all application styles.
 *
 * Every page's styles live here. Rules are scoped with :where() on <body>,
 * which adds no specificity, so each rule applies exactly where it used to:
 *   - body.layout-app   : pages using partials/head.ejs (logged-in app)
 *   - body.layout-auth  : pages using partials/mainHead.ejs (login, sign-up...)
 *   - body.page-<name>  : one page (set via include(head, { pageClass }))
 * Base rules apply to every page except .layout-auth / .layout-standalone,
 * matching the pages that loaded this file before it was centralized.
 */

@import url('https://fonts.googleapis.com/css?family=Roboto:300,400,400i,500');

/* ==========================================================================
   BASE
   Shared app styles (sidebar, print receipt, icons, settings cards)
   ========================================================================== */

/* Global reset (business settings sidebar styles live under PAGE: pages/business_settings.ejs) */
:where(html:has(> body:not(.layout-auth):not(.layout-standalone))),
body:where(:not(.layout-auth):not(.layout-standalone)),
:where(body:not(.layout-auth):not(.layout-standalone)) *{
  padding: 0;
  margin: 0;
  list-style: none;
  text-decoration: none;
}
body:where(:not(.layout-auth):not(.layout-standalone)) {
  font-family: 'Roboto', sans-serif;
}

@media only screen and (max-width: 767px) {
  :where(body:not(.layout-auth):not(.layout-standalone)) .container {
    width: 91%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}
}


/*---------------------------Main Page-----------------------------------*/ 

:where(body:not(.layout-auth):not(.layout-standalone)) .main-page {
  padding-top:50px;
}

:where(body:not(.layout-auth):not(.layout-standalone)) .price-form{
  padding-bottom:30px;
}

:where(body:not(.layout-auth):not(.layout-standalone)) div#custom-container {
  padding-top: 20px;
}

:where(body:not(.layout-auth):not(.layout-standalone)) div#cancel-message {
  padding-top: 75px;
}


:where(body:not(.layout-auth):not(.layout-standalone)) input#search-bar {
  border-radius: 50px;
  text-align: center;
}

:where(body:not(.layout-auth):not(.layout-standalone)) input#serchbar-button {
  width: 100px;
}
:where(body:not(.layout-auth):not(.layout-standalone)) #not_found_page{
  top:100px;
}

/* ============================
   RECEIPT‑STYLE PRINT LAYOUT
   ============================ */
@media print {

  /* Hide everything except the print area */
  body:where(:not(.layout-auth):not(.layout-standalone)) * {
    visibility: hidden !important;
  }

  :where(body:not(.layout-auth):not(.layout-standalone)) #print-area,
  :where(body:not(.layout-auth):not(.layout-standalone)) #print-area * {
    visibility: visible !important;
  }

  /* Position print area at top-left */
  :where(body:not(.layout-auth):not(.layout-standalone)) #print-area {
    position: absolute;
    top: 0;
    left: 0;
    width: 80mm; /* Receipt width */
    padding: 5mm;
    font-family: "Courier New", monospace; /* Receipt look */
    background: white !important;
  }

  /* Remove margins from the page */
  @page {
    size: 80mm auto; /* Thermal printer size */
    margin: 0;
  }

  /* Receipt text styling */
  :where(body:not(.layout-auth):not(.layout-standalone)) #print-area h1,
  :where(body:not(.layout-auth):not(.layout-standalone)) #print-area h2,
  :where(body:not(.layout-auth):not(.layout-standalone)) #print-area h3 {
    text-align: center;
    font-size: 16px;
    margin: 0 0 8px 0;
    padding: 0;
  }

  :where(body:not(.layout-auth):not(.layout-standalone)) #print-area .section-title {
    font-weight: bold;
    margin-top: 10px;
    border-top: 1px dashed black;
    padding-top: 5px;
  }

  :where(body:not(.layout-auth):not(.layout-standalone)) #print-area .line {
    border-bottom: 1px dashed black;
    margin: 6px 0;
  }

  :where(body:not(.layout-auth):not(.layout-standalone)) #print-area .row-item {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin: 2px 0;
  }

  /* Signature area */
  :where(body:not(.layout-auth):not(.layout-standalone)) #print-area .signature {
    margin-top: 20px;
    border-top: 1px solid black;
    padding-top: 10px;
    text-align: center;
    font-size: 12px;
  }
}


 :where(body:not(.layout-auth):not(.layout-standalone)) .action-icon {
    font-size: 1.7rem;
    color: #444;
    padding: 4px;
    border-radius: 6px;
    display: inline-block;
  }
  :where(body:not(.layout-auth):not(.layout-standalone)) .action-icon:active {
    opacity: 0.6;
  }
  :where(body:not(.layout-auth):not(.layout-standalone)) .action-icon.success { color: #28a745; }
  :where(body:not(.layout-auth):not(.layout-standalone)) .action-icon.primary { color: #0d6efd; }
  :where(body:not(.layout-auth):not(.layout-standalone)) .action-icon.warning { color: #ffc107; }
  :where(body:not(.layout-auth):not(.layout-standalone)) .action-icon.danger { color: #dc3545; }
  :where(body:not(.layout-auth):not(.layout-standalone)) .action-icon.secondary { color: #6c757d; }


  :where(body:not(.layout-auth):not(.layout-standalone)) .action-icon-wa-dropper {
  color: #25D366; /* WhatsApp green */
}

:where(body:not(.layout-auth):not(.layout-standalone)) .action-icon-wa-receiver {
  color: skyblue; /* Darker WhatsApp green */
}


/* Payment Method Toggle*/
 :where(body:not(.layout-auth):not(.layout-standalone)) .pm-row {
      display: flex;
      justify-content: space-between;
      padding: 10px;
      border-bottom: 1px solid #ddd;
    }
    :where(body:not(.layout-auth):not(.layout-standalone)) .toggle {
      transform: scale(1.3);
    }


/* ==========================================================================
   APP LAYOUT / NAVBAR
   From partials/head.ejs
   ========================================================================== */

body:where(.layout-app) {
  padding-top: 56px;
}

:where(body.layout-app) #main-menu .nav-link {
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

:where(body.layout-app) #main-menu .dropdown-item {
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}

:where(body.layout-app) #main-menu .navbar-brand h5 {
  margin-bottom: 0;
}

:where(body.layout-app) #main-menu .nav-link.active,
:where(body.layout-app) #main-menu .dropdown-item.active {
  font-weight: 600;
  color: #fff !important;
}

:where(body.layout-app) #main-menu .nav-link.active {
  border-bottom: 2px solid #0d6efd;
}

@media (max-width: 767.98px) {
  :where(body.layout-app) #main-menu.navbar {
    padding-bottom: env(safe-area-inset-bottom);
  }

  :where(body.layout-app) #navbarNav {
    max-height: calc(100vh - 56px);
    overflow-y: auto;
  }
}

:where(body.layout-app) #logoutLink {
  color: #ff8080 !important;
}

/* ==========================================================================
   PAGE: main_page.ejs
   Scoped to body.page-main
   ========================================================================== */

:where(body.page-main) #main-page .pricing-header {
  max-width: 700px;
}

:where(body.page-main) #main-page .pricing-header .eyebrow {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 600;
  color: #9ca3af;
}

:where(body.page-main) #main-page .pricing-header h1 {
  font-size: 2rem;
  font-weight: 600;
  color: #212529;
}

:where(body.page-main) #main-page .pricing-header .lead {
  font-size: 1rem;
}

/* Pin search */
:where(body.page-main) #main-page .pin-search-wrap {
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

:where(body.page-main) #main-page .search-bar-form {
  display: flex;
  border: 1px solid #ced4da;
  border-radius: 0.4rem;
  overflow: hidden;
  background: #fff;
}

:where(body.page-main) #main-page .search-bar-group {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  padding-left: 0.85rem;
}

:where(body.page-main) #main-page .search-bar-icon {
  width: 17px;
  height: 17px;
  color: #9ca3af;
  flex-shrink: 0;
}

:where(body.page-main) #main-page #search-bar {
  border: none;
  outline: none;
  box-shadow: none;
  flex: 1;
  min-width: 0;
  font-size: 16px; /* prevents iOS auto-zoom on focus */
  min-height: 48px;
  padding: 0.75rem 0.6rem;
}

:where(body.page-main) #main-page #serchbar-button {
  border: none;
  border-left: 1px solid #e9ecef;
  background: #e9ecef;
  color: #212529;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0 1.25rem;
  min-height: 48px;
  min-width: 90px;
  cursor: pointer;
  transition: background 0.15s ease;
}

:where(body.page-main) #main-page #serchbar-button:hover {
  background: #dde1e4;
}

/* Options section */
:where(body.page-main) #main-page .options-eyebrow {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 600;
  color: #9ca3af;
}

:where(body.page-main) #main-page .option-card {
  background: #fff;
  border: 1px solid #eef0f2;
  border-top: 4px solid var(--accent, #6c757d);
  border-radius: 0.5rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

:where(body.page-main) #main-page .option-card .icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft, #eef0f2);
  color: var(--accent, #6c757d);
  font-size: 1.4rem;
  flex-shrink: 0;
}

:where(body.page-main) #main-page .option-card h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #212529;
}

:where(body.page-main) #main-page .option-card p {
  font-size: 0.92rem;
  color: #6b7280;
}

:where(body.page-main) #main-page .option-card--self {
  --accent: #495057;
  --accent-soft: #eceeef;
}

:where(body.page-main) #main-page .option-card--other {
  --accent: #6c757d;
  --accent-soft: #eef0f1;
}

:where(body.page-main) #main-page .option-card--bus {
  --accent: #7b8a97;
  --accent-soft: #eef1f3;
}

/* Make the whole card feel tappable */
:where(body.page-main) #main-page .option-card:active {
  transform: scale(0.99);
}

@media (min-width: 768px) {
  :where(body.page-main) #main-page .option-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.08);
  }
}

/* Buttons: tall, thumb-friendly tap targets */
:where(body.page-main) #main-page .btn-hold-action {
  min-height: 50px;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 0.4rem;
}

@media (max-width: 767.98px) {
  :where(body.page-main) #main-page .pricing-header {
    padding-top: 1.5rem !important;
    padding-bottom: 1rem !important;
  }

  :where(body.page-main) #main-page .pricing-header h1 {
    font-size: 1.5rem;
  }

  :where(body.page-main) #main-page .option-card {
    margin-bottom: 1rem;
  }

  :where(body.page-main) #main-page .container.main-options .row > div:last-child .option-card {
    margin-bottom: 0.5rem;
  }
}

/* Respect iPhone notch / home indicator */
:where(body.page-main) #main-page {
  padding-bottom: env(safe-area-inset-bottom);
}

/* ==========================================================================
   PAGE: pages/active-holds.ejs
   Scoped to body.page-active-holds
   ========================================================================== */

:where(body.page-active-holds) #custom-container {
  padding-bottom: env(safe-area-inset-bottom);
}

:where(body.page-active-holds) .table-responsive {
  -webkit-overflow-scrolling: touch;
}

:where(body.page-active-holds) .action-btn {
  border: none;
  background: none;
  cursor: pointer;
  font-size: 1.15rem;
  line-height: 1;
  padding: 10px;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
}

:where(body.page-active-holds) .action-btn:focus-visible {
  outline: 2px solid #0d6efd;
  outline-offset: 2px;
}

:where(body.page-active-holds) .action-btn:active {
  background-color: rgba(0, 0, 0, 0.06);
}

:where(body.page-active-holds) .print-btn {
  margin-right: 4px;
}

:where(body.page-active-holds) .close-btn {
  color: #c0392b;
  font-weight: bold;
}

:where(body.page-active-holds) .close-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

:where(body.page-active-holds) .actions-cell {
  white-space: nowrap;
}

:where(body.page-active-holds) .empty-state td {
  text-align: center;
  padding: 2rem 1rem;
  color: #6c757d;
}

@media (max-width: 576px) {
  :where(body.page-active-holds) .table th,
  :where(body.page-active-holds) .table td {
    font-size: 0.9rem;
    vertical-align: middle;
  }
}

/* ==========================================================================
   PAGE: partials/holder-settings.ejs
   Scoped to body.page-business-settings
   ========================================================================== */

:where(body.page-business-settings) .bp-wrap { max-width: 760px; }
:where(body.page-business-settings) .bp-card {
  border: 0;
  border-radius: 14px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}
:where(body.page-business-settings) .bp-card .card-header {
  background: transparent;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  font-weight: 600;
  padding: 0.9rem 1.1rem;
}
:where(body.page-business-settings) .bp-card .card-body { padding: 1.1rem; }
:where(body.page-business-settings) .bp-wrap .form-label {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}
:where(body.page-business-settings) .bp-wrap .form-control,
:where(body.page-business-settings) .bp-wrap .input-group-text {
  font-size: 16px; /* prevents iOS auto-zoom */
  min-height: 48px;
  border-radius: 10px;
}
:where(body.page-business-settings) .bp-wrap .input-group > .form-control { border-radius: 10px 0 0 10px; }
:where(body.page-business-settings) .bp-wrap .input-group > .input-group-text { border-radius: 0 10px 10px 0; }
:where(body.page-business-settings) .bp-wrap textarea.form-control { min-height: 110px; }
:where(body.page-business-settings) .bp-submit-bar {
  position: sticky;
  bottom: 0;
  z-index: 10;
  background: #fff;
  padding: 0.75rem 0;
  padding-bottom: calc(0.75rem + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  margin-top: 1rem;
}
:where(body.page-business-settings) .bp-submit-bar .btn {
  min-height: 50px;
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: 12px;
}
@media (min-width: 768px) {
  :where(body.page-business-settings) .bp-submit-bar {
    position: static;
    border-top: 0;
    padding-bottom: 0.75rem;
  }
  :where(body.page-business-settings) .bp-submit-bar .btn { width: auto; min-width: 200px; }
}

/* Toast */
:where(body.page-business-settings) .bp-toast {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translate(-50%, -140%);
  z-index: 2000;
  width: calc(100% - 32px);
  max-width: 420px;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.9rem 1.1rem;
  border-radius: 12px;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  pointer-events: none;
}
:where(body.page-business-settings) .bp-toast.bp-toast-show {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}
:where(body.page-business-settings) .bp-toast.bp-toast-success { background: #198754; }
:where(body.page-business-settings) .bp-toast.bp-toast-error { background: #dc3545; }
:where(body.page-business-settings) .bp-toast .bp-toast-close {
  margin-left: auto;
  background: none;
  border: 0;
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  padding: 0 0.25rem;
  cursor: pointer;
}

/* ==========================================================================
   PAGE: pages/business_settings.ejs
   Scoped to body.page-business-settings
   ========================================================================== */

/* Layout: full-width page, content offset by the fixed sidebar. Colors match
   the dark navbar (bg-dark) and the neutral cards used on the main page. */
:where(body.page-business-settings) #bsettings-div {
  max-width: none;
  width: 100%;
  padding: 0;
}

/* Sidebar (dark, same as the navbar) */
:where(body.page-business-settings) #bsettings-div .sidebar {
  position: fixed;
  top: 56px;
  bottom: 0;
  left: -240px;
  z-index: 1020;
  width: 240px;
  overflow-y: auto;
  background: #343a40;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  transition: left 0.3s ease;
}
:where(body.page-business-settings) #bsettings-div .sidebar header {
  padding: 1.5rem 1.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9ca3af;
  user-select: none;
}
:where(body.page-business-settings) #bsettings-div .sidebar ul a.nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 44px;
  padding: 0.6rem 1.25rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  border-left: 3px solid transparent;
  transition: background-color 0.15s ease, color 0.15s ease;
}
:where(body.page-business-settings) #bsettings-div .sidebar ul a.nav-link i {
  width: 1.1rem;
  font-size: 1.05rem;
  text-align: center;
}
:where(body.page-business-settings) #bsettings-div .sidebar ul a.nav-link:hover {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.05);
}
:where(body.page-business-settings) #bsettings-div .sidebar ul a.nav-link.active {
  color: #fff;
  font-weight: 600;
  background-color: rgba(255, 255, 255, 0.08);
  border-left-color: #0d6efd;
}
:where(body.page-business-settings) #bsettings-div .nav-link:focus-visible,
:where(body.page-business-settings) #bsettings-div #sidebar-toggle-label:focus-visible {
  outline: 2px solid #0d6efd;
  outline-offset: -2px;
}

/* Mobile toggle (checkbox hack) */
:where(body.page-business-settings) #bsettings-div #check { display: none; }
:where(body.page-business-settings) #bsettings-div #sidebar-toggle-label {
  position: fixed;
  top: 68px;
  left: 12px;
  z-index: 1025;
  margin: 0;
  cursor: pointer;
  transition: left 0.3s ease;
}
:where(body.page-business-settings) #bsettings-div #sidebar-toggle-label i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  font-size: 1.1rem;
  color: #fff;
  background: #343a40;
  border-radius: 0.4rem;
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.15);
}
:where(body.page-business-settings) #bsettings-div #sidebar-toggle-label #cancel { display: none; }
:where(body.page-business-settings) #bsettings-div #check:checked ~ .sidebar { left: 0; }
:where(body.page-business-settings) #bsettings-div #check:checked ~ #sidebar-toggle-label { left: 188px; }
:where(body.page-business-settings) #bsettings-div #check:checked ~ #sidebar-toggle-label #btn { display: none; }
:where(body.page-business-settings) #bsettings-div #check:checked ~ #sidebar-toggle-label #cancel {
  display: flex;
  box-shadow: none;
}

/* Content sections */
:where(body.page-business-settings) #bsettings-div section.settings-section {
  min-height: calc(100vh - 56px);
  padding: 2rem 1.5rem calc(2rem + env(safe-area-inset-bottom, 0px));
  background: #fff;
  transition: margin-left 0.3s ease;
}
:where(body.page-business-settings) #bsettings-div section.settings-section:focus {
  outline: none;
}

/* Welcome card: same look as the main page option cards */
:where(body.page-business-settings) .welcome-eyebrow {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 600;
  color: #9ca3af;
  margin-bottom: 0.5rem;
}
:where(body.page-business-settings) .welcome-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  max-width: 560px;
  padding: 1.5rem;
  background: #fff;
  border: 1px solid #eef0f2;
  border-top: 4px solid #6c757d;
  border-radius: 0.5rem;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}
:where(body.page-business-settings) .welcome-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 0.65rem;
  background: #eceeef;
  color: #495057;
  font-size: 1.6rem;
}
:where(body.page-business-settings) .welcome-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #212529;
  margin-bottom: 0.5rem;
}
:where(body.page-business-settings) .welcome-text {
  font-size: 0.95rem;
  color: #6b7280;
  margin: 0.15rem 0;
}

/* Reports section (partials/reports.ejs) */
:where(body.page-business-settings) .reports-wrap .form-control {
  min-height: 44px;
}
:where(body.page-business-settings) .report-quick-ranges,
:where(body.page-business-settings) .report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
:where(body.page-business-settings) .report-actions .btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
:where(body.page-business-settings) .report-table-wrap {
  max-height: 70vh;
  overflow: auto;
  border: 1px solid #eef0f2;
  border-radius: 0.5rem;
  background: #fff;
  -webkit-overflow-scrolling: touch;
}
:where(body.page-business-settings) .report-table {
  font-size: 0.875rem;
}
:where(body.page-business-settings) .report-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  white-space: nowrap;
  border-top: 0;
}
:where(body.page-business-settings) .report-table tfoot th {
  position: sticky;
  bottom: 0;
  background: #f8f9fa;
  border-top: 2px solid #dee2e6;
}

/* Desktop: sidebar always open */
@media (min-width: 768px) {
  :where(body.page-business-settings) #bsettings-div .sidebar { left: 0; }
  :where(body.page-business-settings) #bsettings-div #sidebar-toggle-label { display: none; }
  :where(body.page-business-settings) #bsettings-div section.settings-section {
    margin-left: 240px;
    padding: 2.5rem 2.5rem calc(2.5rem + env(safe-area-inset-bottom, 0px));
  }
}

/* Mobile: sidebar slides over the content; leave room for the toggle */
@media (max-width: 767.98px) {
  :where(body.page-business-settings) #bsettings-div section.settings-section {
    padding-top: 4.5rem;
  }
  :where(body.page-business-settings) .welcome-card {
    flex-direction: column;
    align-items: flex-start;
  }
  :where(body.page-business-settings) .welcome-title {
    font-size: 1.3rem;
  }
}

/* ==========================================================================
   PAGE: pages/forgot-password.ejs
   Scoped to body.page-forgot-password
   ========================================================================== */

:where(body.page-forgot-password) .login-page {
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding-top: 1rem;
    padding-bottom: calc(1rem + env(safe-area-inset-bottom));
}

:where(body.page-forgot-password) .login-card {
    border-radius: 1rem;
}

:where(body.page-forgot-password) .login-card .card-body {
    padding: 2.5rem 1.5rem;
}

@media (min-width: 768px) {
    :where(body.page-forgot-password) .login-card .card-body {
        padding: 3rem;
    }
}

/* Prevent iOS Safari auto-zoom on focus */
:where(body.page-forgot-password) .login-page input.form-control {
    font-size: 16px;
    min-height: 3.25rem;
}

:where(body.page-forgot-password) .login-page .form-label {
    color: rgba(255, 255, 255, 0.65);
}

:where(body.page-forgot-password) .login-page .btn-login {
    min-height: 3.25rem;
    font-size: 1.05rem;
    width: 100%;
}

@media (min-width: 576px) {
    :where(body.page-forgot-password) .login-page .btn-login {
        width: auto;
    }
}

:where(body.page-forgot-password) .login-page .form-control:focus-visible,
:where(body.page-forgot-password) .login-page .btn-login:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* ==========================================================================
   PAGE: pages/hold_info.ejs
   Scoped to body.page-hold-info
   ========================================================================== */

:where(body.page-hold-info) .gallery-thumb {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #ccc;
  cursor: pointer;
  transition: transform 0.15s ease;
}
:where(body.page-hold-info) .gallery-thumb:hover,
:where(body.page-hold-info) .gallery-thumb:focus-visible {
  transform: scale(1.03);
  outline: 2px solid #0d6efd;
}
:where(body.page-hold-info) #imageGallery {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}
:where(body.page-hold-info) #imageModal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 99999;
  justify-content: center;
  align-items: center;
}
:where(body.page-hold-info) #imageModal.open {
  display: flex;
}
:where(body.page-hold-info) #imageModal .modal-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
  background: none;
  border: none;
}
:where(body.page-hold-info) #imageModal .modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 50px;
  color: #fff;
  cursor: pointer;
  user-select: none;
  background: none;
  border: none;
}
:where(body.page-hold-info) #imageModal .modal-nav:disabled {
  opacity: 0.3;
  cursor: default;
}
:where(body.page-hold-info) #prevImage { left: 20px; }
:where(body.page-hold-info) #nextImage { right: 20px; }
:where(body.page-hold-info) #modalImage {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
}
body:where(.page-hold-info).modal-open {
  overflow: hidden;
}

/* ==========================================================================
   PAGE: pages/login.ejs
   Scoped to body.page-login
   ========================================================================== */

:where(body.page-login) .login-page {
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding: 1rem;
    padding-bottom: calc(1rem + env(safe-area-inset-bottom));
}

:where(body.page-login) .login-card {
    border-radius: 0.75rem;
}

:where(body.page-login) .login-card .card-body {
    padding: 2rem 1.25rem;
}

@media (min-width: 768px) {
    :where(body.page-login) .login-card .card-body {
        padding: 2.5rem;
    }
}

:where(body.page-login) .login-page .form-label {
    color: rgba(255, 255, 255, 0.65);
}

/* Prevent iOS Safari auto-zoom on focus, keep tap target tall */
:where(body.page-login) .login-page input.form-control {
    font-size: 16px;
    min-height: 3rem;
}

:where(body.page-login) .login-page .btn-login {
    min-height: 3rem;
    font-size: 1.05rem;
    width: 100%;
}

:where(body.page-login) .login-page .password-toggle {
    position: absolute;
    right: 0.25rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    min-width: 3rem;
    min-height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

:where(body.page-login) .login-page .password-toggle:focus-visible,
:where(body.page-login) .login-page .form-control:focus-visible,
:where(body.page-login) .login-page .btn-login:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

:where(body.page-login) .login-page .position-relative-input {
    position: relative;
}

/* ==========================================================================
   PAGE: pages/new-ticket-order.ejs
   Scoped to body.page-new-ticket
   ========================================================================== */

/* Mobile-friendly form overrides for #ticketForm */
:where(body.page-new-ticket) #ticketForm .form-control,
:where(body.page-new-ticket) #ticketForm .form-select {
  font-size: 16px;      /* prevents iOS auto-zoom on focus */
  min-height: 48px;     /* 44-50px tap target */
  padding: 10px 12px;
  border-radius: 8px;
}
:where(body.page-new-ticket) #ticketForm label {
  font-size: 0.85rem;
  margin-bottom: 4px;
}
:where(body.page-new-ticket) #ticketForm .form-text {
  font-size: 0.78rem;
}

/* Stack paired fields on narrow phones, sit side-by-side from sm up */
:where(body.page-new-ticket) #ticketForm .row > [class*="col-"] {
  margin-bottom: 0.5rem;
}

/* Sticky submit bar so the primary action stays reachable with one thumb */
:where(body.page-new-ticket) #submitBarWrapper {
  position: sticky;
  bottom: 0;
  background: inherit;
  padding-top: 8px;
  padding-bottom: calc(8px + env(safe-area-inset-bottom));
  margin-left: -20px;
  margin-right: -20px;
  padding-left: 20px;
  padding-right: 20px;
}

:where(body.page-new-ticket) #submitBtn {
  min-height: 50px;
  font-size: 1rem;
  border-radius: 10px;
}

@media (max-width: 420px) {
  :where(body.page-new-ticket) #custom-container { padding-left: 8px; padding-right: 8px; }
}

/* ==========================================================================
   PAGE: pages/reset-password.ejs
   Scoped to body.page-reset-password
   ========================================================================== */

:where(body.page-reset-password) .login-page {
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding-top: 1rem;
    padding-bottom: calc(1rem + env(safe-area-inset-bottom));
}

:where(body.page-reset-password) .login-card {
    border-radius: 1rem;
}

:where(body.page-reset-password) .login-card .card-body {
    padding: 2.5rem 1.5rem;
}

@media (min-width: 768px) {
    :where(body.page-reset-password) .login-card .card-body {
        padding: 3rem;
    }
}

/* Prevent iOS Safari auto-zoom on focus */
:where(body.page-reset-password) .login-page input.form-control {
    font-size: 16px;
    min-height: 3.25rem;
}

:where(body.page-reset-password) .login-page .form-label {
    color: rgba(255, 255, 255, 0.65);
}

:where(body.page-reset-password) .login-page .btn-login {
    min-height: 3.25rem;
    font-size: 1.05rem;
    width: 100%;
}

@media (min-width: 576px) {
    :where(body.page-reset-password) .login-page .btn-login {
        width: auto;
    }
}

:where(body.page-reset-password) .login-page .password-toggle {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    min-width: 2.75rem;
    min-height: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

:where(body.page-reset-password) .login-page .password-toggle:focus-visible,
:where(body.page-reset-password) .login-page .form-control:focus-visible,
:where(body.page-reset-password) .login-page .btn-login:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

:where(body.page-reset-password) .login-page .position-relative-input {
    position: relative;
}

/* ==========================================================================
   PAGE: pages/self-hold.ejs
   Scoped to body.page-self-hold
   ========================================================================== */

:where(body.page-self-hold) #custom-container { padding-left: 12px; padding-right: 12px; }
:where(body.page-self-hold) #custom-container .card { border: none; box-shadow: 0 2px 10px rgba(0,0,0,0.08); }
:where(body.page-self-hold) #custom-container .card.mt-2 { padding: 1.5rem !important; }
:where(body.page-self-hold) #custom-container .section-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: #333;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 6px;
  margin-bottom: 16px;
}
:where(body.page-self-hold) #custom-container .required-note { font-size: 0.85rem; color: #6c757d; }

/* Prevent iOS auto-zoom on focus by keeping inputs at 16px, and make tap targets taller */
:where(body.page-self-hold) #custom-container .form-control,
:where(body.page-self-hold) #custom-container select.form-control,
:where(body.page-self-hold) #custom-container textarea.form-control {
  font-size: 16px;
  min-height: 46px;
  padding: 10px 12px;
}
:where(body.page-self-hold) #custom-container textarea.form-control { min-height: 100px; }

:where(body.page-self-hold) #custom-container .form-control.is-invalid { border-color: #dc3545; }
:where(body.page-self-hold) #custom-container .invalid-feedback { display: none; font-size: 0.85rem; }
:where(body.page-self-hold) #custom-container .was-validated .form-control:invalid ~ .invalid-feedback,
:where(body.page-self-hold) #custom-container .form-control.is-invalid ~ .invalid-feedback { display: block; }

:where(body.page-self-hold) #custom-container label { font-size: 0.95rem; }

/* Payment toggle buttons */
:where(body.page-self-hold) .payment-toggle { display: flex; gap: 10px; }
:where(body.page-self-hold) .payment-toggle input[type="radio"] { display: none; }
:where(body.page-self-hold) .payment-toggle label {
  flex: 1;
  text-align: center;
  padding: 12px;
  border: 1px solid #ced4da;
  border-radius: 6px;
  cursor: pointer;
  margin: 0;
  font-weight: 500;
  font-size: 0.95rem;
  color: #495057;
  -webkit-tap-highlight-color: transparent;
  transition: all 0.15s ease-in-out;
}
:where(body.page-self-hold) .payment-toggle input[type="radio"]:checked + label {
  background-color: #198754;
  border-color: #198754;
  color: #fff;
}

/* Drag and drop upload zone */
:where(body.page-self-hold) .upload-dropzone {
  border: 2px dashed #ced4da;
  border-radius: 8px;
  padding: 24px 14px;
  text-align: center;
  cursor: pointer;
  background-color: #fafafa;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.15s ease-in-out, background-color 0.15s ease-in-out;
}
:where(body.page-self-hold) .upload-dropzone:hover,
:where(body.page-self-hold) .upload-dropzone.dragover,
:where(body.page-self-hold) .upload-dropzone:active {
  border-color: #198754;
  background-color: #f0fff4;
}
:where(body.page-self-hold) .upload-dropzone .upload-icon { font-size: 1.8rem; margin-bottom: 6px; display: block; }
:where(body.page-self-hold) .upload-dropzone small { color: #6c757d; }
:where(body.page-self-hold) #imageUpload { display: none; }

:where(body.page-self-hold) #previewContainer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
:where(body.page-self-hold) .preview-item {
  position: relative;
  width: 100px;
}
:where(body.page-self-hold) .preview-item img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #ddd;
  display: block;
}
:where(body.page-self-hold) .preview-item .file-name {
  font-size: 0.7rem;
  color: #6c757d;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 3px;
}
:where(body.page-self-hold) .preview-item .remove-btn {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #dc3545;
  color: #fff;
  border: 2px solid #fff;
  border-radius: 50%;
  cursor: pointer;
  width: 28px;
  height: 28px;
  line-height: 1;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}
:where(body.page-self-hold) .upload-feedback { font-size: 0.85rem; margin-top: 8px; }
:where(body.page-self-hold) .upload-feedback.error { color: #dc3545; }
:where(body.page-self-hold) .upload-feedback.info { color: #6c757d; }

/* Bigger, thumb-friendly submit button */
:where(body.page-self-hold) .btn-send {
  min-height: 50px;
  font-size: 1.05rem;
  font-weight: 600;
}
:where(body.page-self-hold) .btn-send[disabled] { opacity: 0.7; cursor: not-allowed; }

/* ===== MOBILE-SPECIFIC ADJUSTMENTS ===== */
@media (max-width: 576px) {
  :where(body.page-self-hold) #custom-container { padding-left: 8px; padding-right: 8px; }
  :where(body.page-self-hold) #custom-container h1 { font-size: 1.5rem; }
  :where(body.page-self-hold) #custom-container .text-center.mt-5 { margin-top: 1.75rem !important; }
  :where(body.page-self-hold) #custom-container .card.mt-2 { padding: 1rem !important; }

  /* Stack name/email/phone fields with normal spacing instead of cramped columns */
  :where(body.page-self-hold) #custom-container .row > [class^="col-"],
  :where(body.page-self-hold) #custom-container .row > [class*=" col-"] {
    margin-bottom: 4px;
  }

  :where(body.page-self-hold) .payment-toggle { flex-direction: column; }

  :where(body.page-self-hold) .preview-item { width: 90px; }
  :where(body.page-self-hold) .preview-item img { width: 90px; height: 90px; }

  :where(body.page-self-hold) .upload-dropzone { padding: 20px 10px; }
}

/* ==========================================================================
   PAGE: pages/ticket-confirmation.ejs
   Scoped to body.page-ticket-confirmation
   ========================================================================== */

:where(body.page-ticket-confirmation) #print-receipt { display: none; }

@media print {
  body:where(.page-ticket-confirmation) * { visibility: hidden !important; }
  :where(body.page-ticket-confirmation) #print-receipt,
  :where(body.page-ticket-confirmation) #print-receipt * { visibility: visible !important; }

  :where(body.page-ticket-confirmation) #print-receipt {
    display: block !important;
    position: absolute;
    left: 0;
    top: 0;
    width: 280px;
    margin: 0 auto;
    padding: 10px 15px;
    font-family: "Courier New", monospace;
    font-size: 13px;
    line-height: 1.4;
    color: #000;
  }

  :where(body.page-ticket-confirmation) .receipt-title { text-align: center; font-size: 16px; font-weight: bold; margin-bottom: 10px; }
  :where(body.page-ticket-confirmation) .receipt-line { border-bottom: 1px dashed #000; margin: 8px 0; }
  :where(body.page-ticket-confirmation) .receipt-row { display: flex; justify-content: space-between; margin: 4px 0; }
  :where(body.page-ticket-confirmation) .receipt-section { margin-top: 10px; font-weight: bold; text-transform: uppercase; font-size: 12px; }
  :where(body.page-ticket-confirmation) .signature-line { margin-top: 25px; border-top: 1px solid #000; padding-top: 5px; text-align: center; font-size: 12px; }
}

:where(body.page-ticket-confirmation) .action-bar {
  display: flex;
  justify-content: center;
  gap: 35px;
  margin-top: 25px;
  margin-bottom: 10px;
}

:where(body.page-ticket-confirmation) .action-icon {
  font-size: 34px;
  cursor: pointer;
  transition: 0.2s ease;
}

:where(body.page-ticket-confirmation) .action-icon:hover { opacity: 0.6; }

:where(body.page-ticket-confirmation) .icon-print { color: #333; }
:where(body.page-ticket-confirmation) .icon-whatsapp { color: #25D366; }
:where(body.page-ticket-confirmation) .icon-new { color: #0d6efd; }
:where(body.page-ticket-confirmation) .icon-pay { color: #198754; }
:where(body.page-ticket-confirmation) .icon-cancel { color: #dc3545; }

/* ==========================================================================
   PAGE: partials/create-hold.ejs
   Scoped to body.page-create-hold
   ========================================================================== */

:where(body.page-create-hold) #custom-container {
  --accent: #2f6f4f;
  --accent-dark: #234f38;
  --accent-soft: #e8f3ee;
  --border: #dde3e0;
  --text-muted: #6b7280;
}

:where(body.page-create-hold) #custom-container .page-header p {
  color: var(--text-muted);
  margin-top: -4px;
}

:where(body.page-create-hold) #custom-container .hold-card {
  border: none;
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(20, 30, 25, 0.06);
}

/* Section headers with step numbers */
:where(body.page-create-hold) #custom-container .section-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 32px 0 18px;
}

:where(body.page-create-hold) #custom-container .section-heading:first-of-type {
  margin-top: 4px;
}

:where(body.page-create-hold) #custom-container .step-badge {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

:where(body.page-create-hold) #custom-container .section-heading h2 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
  color: #22302a;
}

:where(body.page-create-hold) #custom-container .section-heading .subtext {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-left: 42px;
  margin-top: -12px;
  margin-bottom: 4px;
}

:where(body.page-create-hold) #custom-container .form-group label {
  font-weight: 600;
  font-size: 0.86rem;
  color: #33403a;
  margin-bottom: 4px;
}

/* font-size 16px prevents iOS Safari from auto-zooming on focus */
:where(body.page-create-hold) #custom-container .form-control {
  border-radius: 8px;
  border: 1px solid var(--border);
  padding: 10px 12px;
  height: auto;
  font-size: 16px;
}

:where(body.page-create-hold) #custom-container .form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

:where(body.page-create-hold) #custom-container .form-control.is-invalid {
  border-color: #dc3545;
}

:where(body.page-create-hold) #custom-container .invalid-feedback {
  display: none;
  font-size: 0.78rem;
  color: #dc3545;
  margin-top: 4px;
}

:where(body.page-create-hold) #custom-container .form-control.is-invalid ~ .invalid-feedback {
  display: block;
}

/* Payment choice buttons */
:where(body.page-create-hold) #custom-container .payment-choice {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

:where(body.page-create-hold) #custom-container .payment-option {
  position: relative;
  flex: 1 1 140px;
}

:where(body.page-create-hold) #custom-container .payment-option input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}

:where(body.page-create-hold) #custom-container .payment-option .option-card {
  display: block;
  text-align: center;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 12px 18px;
  font-weight: 600;
  font-size: 0.9rem;
  color: #445049;
  background: #fff;
  transition: all 0.15s ease;
}

:where(body.page-create-hold) #custom-container .payment-option input:checked + .option-card {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-dark);
}

:where(body.page-create-hold) #custom-container .payment-option input:focus-visible + .option-card {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

:where(body.page-create-hold) #custom-container #paymentMethodContainer {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.25s ease, opacity 0.2s ease, margin 0.25s ease;
  margin-top: 0;
}

:where(body.page-create-hold) #custom-container #paymentMethodContainer.open {
  max-height: 200px;
  opacity: 1;
  margin-top: 14px;
}

:where(body.page-create-hold) #custom-container .char-count {
  font-size: 0.76rem;
  color: var(--text-muted);
  text-align: right;
  margin-top: 4px;
}

/* Upload dropzone */
:where(body.page-create-hold) #custom-container .dropzone {
  border: 2px dashed var(--border);
  border-radius: 10px;
  padding: 28px 16px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
  background: #fbfcfb;
}

:where(body.page-create-hold) #custom-container .dropzone:hover,
:where(body.page-create-hold) #custom-container .dropzone.dragover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

:where(body.page-create-hold) #custom-container .dropzone svg {
  width: 30px;
  height: 30px;
  color: var(--accent);
  margin-bottom: 8px;
}

:where(body.page-create-hold) #custom-container .dropzone .dz-title {
  font-weight: 600;
  color: #33403a;
  font-size: 0.92rem;
}

:where(body.page-create-hold) #custom-container .dropzone .dz-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

:where(body.page-create-hold) #custom-container #newImages {
  display: none;
}

:where(body.page-create-hold) #custom-container #newPreview {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}

:where(body.page-create-hold) #custom-container .preview-item {
  position: relative;
  width: 96px;
}

:where(body.page-create-hold) #custom-container .preview-item img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
  display: block;
}

:where(body.page-create-hold) #custom-container .preview-item .file-name {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

:where(body.page-create-hold) #custom-container .preview-item .remove-btn {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #33403a;
  color: #fff;
  border: 2px solid #fff;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

:where(body.page-create-hold) #custom-container .upload-error {
  font-size: 0.78rem;
  color: #dc3545;
  margin-top: 8px;
  display: none;
}

:where(body.page-create-hold) #custom-container .btn-send {
  background: var(--accent);
  border-color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.2px;
  border-radius: 8px;
  padding: 14px;
  font-size: 1rem;
}

:where(body.page-create-hold) #custom-container .btn-send:hover,
:where(body.page-create-hold) #custom-container .btn-send:focus {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

:where(body.page-create-hold) #custom-container .btn-send:disabled {
  opacity: 0.75;
  cursor: not-allowed;
}

:where(body.page-create-hold) #custom-container .spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-top-color: #fff;
  border-radius: 50%;
  display: inline-block;
  margin-right: 8px;
  vertical-align: -2px;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

:where(body.page-create-hold) #custom-container .required-note {
  font-size: 0.8rem;
  color: var(--text-muted);
}

:where(body.page-create-hold) #custom-container .submit-row {
  margin-top: 28px;
}

/* ============================
   MOBILE (≤576px)
   ============================ */
@media (max-width: 576px) {
  :where(body.page-create-hold) #custom-container {
    padding-left: 12px;
    padding-right: 12px;
  }

  :where(body.page-create-hold) #custom-container .page-header {
    margin-top: 20px !important;
  }

  :where(body.page-create-hold) #custom-container .page-header h1 {
    font-size: 1.5rem;
  }

  :where(body.page-create-hold) #custom-container .page-header p {
    font-size: 0.88rem;
  }

  :where(body.page-create-hold) #custom-container .hold-card {
    padding: 18px 14px !important;
    border-radius: 12px;
    margin-left: 0;
    margin-right: 0;
  }

  :where(body.page-create-hold) #custom-container .card-body {
    padding: 0 !important;
  }

  :where(body.page-create-hold) #custom-container .inner-form-wrap {
    padding: 0;
  }

  :where(body.page-create-hold) #custom-container .section-heading {
    margin: 24px 0 12px;
    gap: 10px;
  }

  :where(body.page-create-hold) #custom-container .step-badge {
    width: 26px;
    height: 26px;
    font-size: 0.78rem;
  }

  :where(body.page-create-hold) #custom-container .section-heading h2 {
    font-size: 0.98rem;
  }

  :where(body.page-create-hold) #custom-container .section-heading .subtext {
    margin-left: 36px;
    font-size: 0.78rem;
  }

  /* Stack label above full-width field, tighter row gaps */
  :where(body.page-create-hold) #custom-container .row {
    margin-left: -6px;
    margin-right: -6px;
  }

  :where(body.page-create-hold) #custom-container .row > [class*="col-"] {
    padding-left: 6px;
    padding-right: 6px;
  }

  :where(body.page-create-hold) #custom-container .form-group {
    margin-bottom: 14px;
  }

  :where(body.page-create-hold) #custom-container .dropzone {
    padding: 20px 12px;
  }

  :where(body.page-create-hold) #custom-container .preview-item {
    width: 84px;
  }

  :where(body.page-create-hold) #custom-container .preview-item img {
    width: 84px;
    height: 84px;
  }

  /* Keep submit reachable with the thumb without hunting for it */
  :where(body.page-create-hold) #custom-container .submit-row {
    position: sticky;
    bottom: 0;
    background: #f8f9fa;
    margin: 24px -14px -18px;
    padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
    box-shadow: 0 -6px 12px rgba(20, 30, 25, 0.06);
  }
}

/* ==========================================================================
   COMPONENTS
   Formerly inline style="" attributes. Kept last so they win ties, as inline styles did.
   ========================================================================== */

/* Shared helpers */
.clickable {
  cursor: pointer;
}

.inline-form {
  display: inline;
}

.inline-form--spaced {
  margin-right: 14px;
}

/* Hold lists (pending / past / cancelled): print link and icon buttons */
.hold-action-link {
  margin-right: 10px;
  cursor: pointer;
}

.hold-action-link--wide {
  margin-right: 14px;
}

.icon-btn {
  border: none;
  background: none;
  font-weight: bold;
  cursor: pointer;
}

.icon-btn--danger {
  color: red;
}

.icon-btn--success {
  color: green;
}

.prices-col-price {
  width: 160px;
}

.prices-col-action {
  width: 120px;
}

/* Edit hold: image thumbnails (server-rendered and JS previews) */
.image-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.image-grid--existing {
  margin-bottom: 20px;
}

.image-grid--preview {
  margin-top: 10px;
}

.image-thumb-wrap {
  position: relative;
}

.image-thumb {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.image-thumb--clickable {
  cursor: pointer;
}

.image-remove-btn {
  position: absolute;
  top: 2px;
  right: 2px;
  padding: 2px 6px;
}

.image-preview-remove {
  position: absolute;
  top: 2px;
  right: 2px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  width: 22px;
  height: 22px;
}

/* Edit hold: full-screen image viewer (shown by JS with display:flex) */
.image-viewer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 99999;
  justify-content: center;
  align-items: center;
}

.image-viewer__close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: white;
  cursor: pointer;
}

.image-viewer__nav {
  position: absolute;
  font-size: 50px;
  color: white;
  cursor: pointer;
  user-select: none;
}

.image-viewer__nav--prev {
  left: 20px;
}

.image-viewer__nav--next {
  right: 20px;
}

.image-viewer__img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
}

/* Hold info: payment method modal (shown by JS) */
.payment-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
}

.payment-modal__dialog {
  background: #fff;
  padding: 20px;
  width: 90%;
  max-width: 400px;
  margin: 100px auto;
  border-radius: 8px;
}

/* Create hold */
.payment-legend {
  font-size: 0.86rem;
  font-weight: 600;
  color: #33403a;
}

/* Tickets */
.ticket-form-card {
  border-radius: 12px;
}

.ticket-form-card__body {
  padding: 16px;
}

.ticket-card {
  width: 650px;
  border-radius: 12px;
}

.ticket-card__header {
  border-radius: 12px 12px 0 0;
}

.proof-thumb {
  width: 120px;
  height: auto;
  border-radius: 6px;
  border: 1px solid #ccc;
}

/* Misc pages */
.calculator-card {
  width: 18rem;
}

.no-access-wrap {
  min-height: 70vh;
}

.auth-card {
  border-radius: 1rem;
}

/* Transportation companies (partials/bus-module.ejs) */
.bm-alert {
  padding: 12px;
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  margin-bottom: 20px;
  border-radius: 4px;
}

.bm-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bm-panel {
  margin-bottom: 30px;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.bm-panel--edit {
  border-color: #aaa;
  background: #f7f7f7;
}

.bm-input {
  width: 100%;
  padding: 8px;
}

.bm-select {
  padding: 8px;
}

.bm-btn {
  padding: 8px 14px;
  color: white;
  border: none;
  border-radius: 4px;
  text-decoration: none;
}

/* The Cancel link is an <a>: keep it white and un-underlined on hover and in
   print, beating Bootstrap's a:hover / a:not(.btn) like the inline style did */
a.bm-btn,
a.bm-btn:hover {
  color: white;
  text-decoration: none;
}

.bm-btn--sm {
  padding: 6px 10px;
}

.bm-btn--add {
  padding: 6px 12px;
  font-size: 16px;
}

.bm-btn--primary {
  background: #0275d8;
}

.bm-btn--warning {
  background: #f0ad4e;
}

.bm-btn--danger {
  background: #d9534f;
}

.bm-btn--spaced {
  margin-left: 10px;
}

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

.bm-table__head {
  background: #f0f0f0;
}

.bm-table__cell {
  border: 1px solid #ccc;
  padding: 10px;
}


/* Hold categories: price breakdown under the category picker (hold forms) */
.category-charge {
  max-width: 320px;
  padding: 8px 12px;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  background: #f8f9fa;
}

.category-charge__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.category-charge__total {
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px solid #dee2e6;
  font-weight: 600;
}

/* Hold page: the amount to charge */
.hold-total {
  font-size: 1.25rem;
  font-weight: 600;
}

/* Business settings > Hold Categories table */
.hold-categories-table input[type="text"] {
  min-width: 160px;
}

.category-price-input {
  min-width: 100px;
}
