/* =========================================================
   Prime Pulse Photo — Quote Page (grey premium, dark)
   Accent grey: #D3D3D3
   Scoped to #quoterequest so it never affects other pages.
   ========================================================= */
@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Jost:wght@300;400;500;600&display=swap");

/* ---------- Whole page black ---------- */
html,
html body {
  background: #000000 !important;
  min-height: 100vh;
}

/* Ensure navbar and sticky top components stay above body content */
.navbar,
nav.navbar,
.navbar.sticky-top,
.sticky-top {
  position: sticky;
  top: 0;
  z-index: 2000 !important;
}

main,
#content {
  position: relative;
  z-index: 1;
}

.nav-pills .nav-link.active, .nav-pills .show>.nav-link {
    background-color: var(--bs-primary);
}
.nav-pills .nav-link:hover:not(.active) {
    background-color: rgba(255, 255, 255, 0.1);
}

#sidebarMenu .nav-link {
    font-size: 0.85rem;
}

#quoterequest {
  background: #000000;
  color: #e3e3e3;
  font-family: "Jost", "Open Sans", sans-serif;
  font-weight: 300;
  line-height: 1.7;
  letter-spacing: 0.2px;
  min-height: 100vh;
}

#quoterequest h1,
#quoterequest h2,
#quoterequest h3,
#quoterequest h4,
#quoterequest h5,
#quoterequest h6 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  color: #f5f5f5;
  letter-spacing: 0.3px;
}

#quoterequest .text-muted,
#quoterequest small,
#quoterequest .muted {
  color: #b3b3b3 !important;
}

#quoterequest a {
  color: #cfcfcf;
}

/* =========================================================
   FORCE DARK — guarantees no surface renders white/light.
   ========================================================= */
#quoterequest,
#quoterequest body,
#quoterequest .main,
#quoterequest section,
#quoterequest .container,
#quoterequest .container-fluid,
#quoterequest .panel-body,
#quoterequest .panel,
#quoterequest .well {
  background-color: #000000 !important;
}

#quoterequest .table,
#quoterequest table {
  background-color: transparent !important;
}

#quoterequest .table thead th,
#quoterequest .table thead td,
#quoterequest thead tr td,
#quoterequest thead tr th {
  background-color: #383838 !important;
  color: #f5f5f5 !important;
}

#quoterequest .table tbody tr,
#quoterequest .table tbody td {
  background-color: transparent !important;
  color: #e0e0e0 !important;
}

#quoterequest .modal-content,
#quoterequest .dropdown-menu,
#quoterequest .popover,
#quoterequest .offcanvas,
#quoterequest .accordion-item,
#quoterequest .toast,
#quoterequest .card-footer,
#quoterequest .tooltip-inner,
#quoterequest .alert,
#quoterequest .breadcrumb,
#quoterequest .badge,
#quoterequest .navbar,
#quoterequest .navbar-collapse,
#quoterequest .card-header {
  background-color: #383838 !important;
  color: #e3e3e3 !important;
  border-color: #4a4a4a !important;
}

#quoterequest .card,
#quoterequest .card-body,
#quoterequest .panel-heading {
  background-color: #343434 !important;
  color: #e3e3e3 !important;
}

#quoterequest .img-thumbnail {
  background-color: #343434 !important;
  border-color: #4a4a4a !important;
}

#quoterequest .bg-white,
#quoterequest .bg-light,
#quoterequest .bg-body,
#quoterequest [bgcolor] {
  background-color: #343434 !important;
}

#quoterequest .text-dark,
#quoterequest .text-black,
#quoterequest [color="FFFFFF"],
#quoterequest [color="FFFFFFF"] {
  color: #f5f5f5 !important;
}

/* =========================================================
   Grey themed surfaces (accent #D3D3D3)
   ========================================================= */

/* Brand hero / logo row */
#quoterequest .top-brand {
  padding: 22px 0 12px;
  text-align: center;
  border-bottom: 1px solid #4a4a4a;
  margin-bottom: 18px;
}

/* Logo rendered in #D3D3D3 grey */
#quoterequest .top-brand img {
  max-width: 300px;
  height: auto;
  filter: brightness(0) invert(0.83);
  -webkit-filter: brightness(0) invert(0.83);
}

#quoterequest .brand-tagline {
  margin: 8px 0 0;
  font-family: "Jost", sans-serif;
  font-size: 15px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: #D3D3D3;
  font-weight: 400;
}

/* Pending / status hero */
#quoterequest .quote-status-hero {
  text-align: center;
  padding: 18px 12px 22px;
}

#quoterequest .quote-status-hero .quote-hero-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 30px;
  font-weight: 600;
  color: #f5f5f5;
  letter-spacing: 1px;
}

#quoterequest .quote-status-hero .quote-hero-sub {
  font-family: "Jost", sans-serif;
  font-size: 15px;
  font-weight: 300;
  color: #b3b3b3;
  letter-spacing: 1px;
  margin-top: 4px;
}

/* Cards */
#quoterequest .card {
  background: #343434;
  border: 1px solid #4a4a4a;
  border-radius: 4px;
  -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 16px 40px -20px rgba(0, 0, 0, 0.7);
          box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 16px 40px -20px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  margin-bottom: 20px;
}

/* Premium panel header */
#quoterequest .card-header.quote-panel-header {
  background: #3a3a3a;
  border-bottom: 1px solid #4a4a4a;
  padding: 13px 22px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 21px;
  font-weight: 600;
  color: #f7f7f7;
  letter-spacing: 0.5px;
}

#quoterequest .card-header.quote-panel-header::after {
  content: "";
  display: block;
  width: 36px;
  height: 2px;
  background: #D3D3D3;
  margin-top: 6px;
}

#quoterequest .quote-panel-header .quote-sub {
  font-family: "Jost", sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.5px;
  color: #c0c0c0;
  margin-left: 6px;
}

#quoterequest .card-body {
  padding: 22px;
  color: #e3e3e3;
}

/* Info label rows */
#quoterequest .quote-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px 24px;
}

#quoterequest .quote-info-item .quote-label {
  display: block;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #D3D3D3;
  font-weight: 500;
  margin-bottom: 2px;
}

#quoterequest .quote-info-item .quote-value {
  font-size: 18px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  color: #f5f5f5;
}

/* Review note */
#quoterequest .quote-review-note {
  font-family: "Jost", sans-serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.8;
  color: #e3e3e3;
  margin-bottom: 4px;
}

#quoterequest .quote-review-phone {
  font-family: "Jost", sans-serif;
  font-size: 20px;
  font-weight: 400;
  color: #D3D3D3;
  letter-spacing: 1px;
  margin-bottom: 14px;
}

/* Tables */
#quoterequest .table {
  --bs-table-bg: transparent;
  --bs-table-color: #e0e0e0;
  color: #e0e0e0;
}

#quoterequest .table thead th {
  font-family: "Jost", sans-serif;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #D3D3D3;
  font-weight: 500;
  border-bottom: 1px solid #4a4a4a;
  padding: 12px 16px;
}

#quoterequest .table tbody td {
  border-color: #414141;
  padding: 12px 16px;
  vertical-align: middle;
}

#quoterequest .table-striped > tbody > tr:nth-of-type(odd) {
  --bs-table-striped-bg: #3a3a3a;
}

#quoterequest .table-hover > tbody > tr:hover {
  --bs-table-hover-bg: #414141;
}

#quoterequest .table-responsive {
  border: none;
}

/* Pricing summary */
#quoterequest .quote-pricing {
  background: #3a3a3a;
  border: 1px solid #4a4a4a;
}

#quoterequest .quote-price-row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: baseline;
      -ms-flex-align: baseline;
          align-items: baseline;
  padding: 8px 0;
  font-size: 17px;
  color: #e3e3e3;
}

#quoterequest .quote-price-row .amount {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 20px;
  font-weight: 600;
  color: #f5f5f5;
}

#quoterequest .quote-price-row.total {
  border-top: 1px solid #555555;
  margin-top: 4px;
  padding-top: 12px;
}

#quoterequest .quote-price-row.total .amount {
  font-size: 26px;
  color: #e2e2e2;
}

#quoterequest .quote-deposit {
  margin-top: 6px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 20px;
  color: #f5f5f5;
}

/* Generic headings */
#quoterequest .heading-block {
  text-align: center;
  margin: 22px 0 8px;
}

#quoterequest .heading-block h2 {
  font-size: 34px;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

#quoterequest .heading-block .heading-rule {
  width: 56px;
  height: 2px;
  background: #D3D3D3;
  margin: 10px auto 0;
}

/* Buttons — #D3D3D3 grey */
#quoterequest .btn {
  border-radius: 2px;
  letter-spacing: 1px;
  font-weight: 400;
}

#quoterequest .btn-primary,
#quoterequest .btn-success {
  background: #D3D3D3;
  border-color: #D3D3D3;
  color: #0d0d0d;
}

#quoterequest .btn-primary:hover,
#quoterequest .btn-success:hover {
  background: #e6e6e6;
  border-color: #e6e6e6;
  color: #0d0d0d;
}

#quoterequest .btn-outline-secondary {
  border-color: #D3D3D3;
  color: #e9e9e9;
}

#quoterequest .btn-outline-secondary:hover {
  background: #D3D3D3;
  border-color: #D3D3D3;
  color: #0d0d0d;
}

#quoterequest .btn-warning {
  --bs-btn-color: #0d0d0d;
  --bs-btn-bg: #D3D3D3;
  --bs-btn-border-color: #D3D3D3;
}

/* Forms */
#quoterequest .form-control,
#quoterequest .form-select {
  border-radius: 2px;
  border-color: #555555;
  background: #1a1a1a;
  color: #e9e9e9;
}

#quoterequest .form-control:focus,
#quoterequest .form-select:focus {
  border-color: #D3D3D3;
  -webkit-box-shadow: 0 0 0 0.2rem rgba(211, 211, 211, 0.18);
          box-shadow: 0 0 0 0.2rem rgba(211, 211, 211, 0.18);
}

#quoterequest .form-control::-webkit-input-placeholder {
  color: #7a7a7a;
}

#quoterequest .form-control::-moz-placeholder {
  color: #7a7a7a;
}

#quoterequest .form-control:-ms-input-placeholder {
  color: #7a7a7a;
}

#quoterequest .form-control::-ms-input-placeholder {
  color: #7a7a7a;
}

#quoterequest .form-control::placeholder {
  color: #7a7a7a;
}

#quoterequest .form-label,
#quoterequest .col-form-label {
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #D3D3D3;
  font-weight: 500;
}

/* List groups */
#quoterequest .list-group {
  --bs-list-group-bg: #343434;
  --bs-list-group-color: #e3e3e3;
  --bs-list-group-border-color: #4a4a4a;
}

#quoterequest .list-group-item {
  background: #343434;
  border-color: #4a4a4a;
  color: #e3e3e3;
}

/* Misc legacy cleanups */
#quoterequest .panel {
  margin-bottom: 20px;
}

#quoterequest img.img-rounded,
#quoterequest img.img-thumbnail {
  border-radius: 4px;
}

#quoterequest .masonry-image img {
  border-radius: 3px;
}

#quoterequest hr {
  border-color: #4a4a4a;
  opacity: 1;
}

#quoterequest .masonry-brick {
  margin-bottom: 12px;
}

#quoterequest .masonry-brick img {
  opacity: 0.92;
  -webkit-transition: opacity 0.25s ease;
  transition: opacity 0.25s ease;
}

#quoterequest .masonry-brick:hover img {
  opacity: 1;
}

/* Gallery Pagination */
.pagination .page-item.active .page-link {
  background-color: var(--bs-primary) !important;
  border-color: var(--bs-primary) !important;
  color: #ffffff !important;
}

.pagination .page-link:hover:not(.disabled) {
  background-color: rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
}

/* =========================================================
   Admin — quotes_results.php (Bootstrap 5, dark theme)
   Scoped to the #quoteresults admin page body.
   ========================================================= */
body#quoteresults {
  padding-top: 56px; /* offset fixed-top navbar */
  background-color: #181b1f;
  color: #e2e6ea;
  font-family: "Open Sans", "Segoe UI", Tahoma, sans-serif;
}

body#quoteresults h4,
body#quoteresults h5,
body#quoteresults h6,
body#quoteresults .card-header h5 {
  color: #f5f7fa;
}

/* Sidebar (included from menu_includes/left_menu.php) */
body#quoteresults aside {
  background: #202327;
  border: 1px solid #2f343a;
  border-radius: 0.375rem;
  padding-top: 0.5rem;
}

body#quoteresults aside h6 {
  color: #9ec5fe;
  font-size: 0.8rem;
}

body#quoteresults aside .nav-link {
  display: block;
  padding: 0.55rem 0.9rem;
  color: #cfd4da;
  text-decoration: none;
  font-size: 0.95rem;
  border-left: 3px solid transparent;
  white-space: nowrap;
}

body#quoteresults aside .nav-link:hover,
body#quoteresults aside .nav-link.active {
  background: #2c3138;
  border-left-color: #0d6efd;
  color: #ffffff;
}

body#quoteresults aside .nav-link .icon-bar-chart {
  color: #6ea8fe;
}

/* Cards */
body#quoteresults .card {
  background-color: #202327;
  border-color: #2f343a;
  color: #e2e6ea;
}

body#quoteresults .card-header {
  background-color: #262a30;
  border-bottom-color: #2f343a;
}

/* Forms */
body#quoteresults .form-label {
  color: #cfd4da;
}

body#quoteresults .form-control,
body#quoteresults .form-select {
  background-color: #262a30;
  border-color: #3a4047;
  color: #e8eaed;
}

body#quoteresults .form-control:focus,
body#quoteresults .form-select:focus {
  background-color: #262a30;
  color: #ffffff;
  border-color: #0d6efd;
  -webkit-box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
          box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

body#quoteresults .form-control::-webkit-input-placeholder {
  color: #8b939c;
}

body#quoteresults .form-control::-moz-placeholder {
  color: #8b939c;
}

body#quoteresults .form-control:-ms-input-placeholder {
  color: #8b939c;
}

body#quoteresults .form-control::-ms-input-placeholder {
  color: #8b939c;
}

body#quoteresults .form-control::placeholder {
  color: #8b939c;
}

/* Results table */
body#quoteresults .table-responsive {
  background: #202327;
  border: 1px solid #2f343a;
  border-radius: 0.375rem;
  -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
          box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

body#quoteresults .table {
  --bs-table-bg: transparent;
  --bs-table-striped-bg: rgba(255, 255, 255, 0.04);
  --bs-table-hover-bg: rgba(255, 255, 255, 0.06);
  color: #e2e6ea;
}

body#quoteresults .table thead th {
  background: #262a30;
  color: #f5f7fa;
  white-space: nowrap;
}

body#quoteresults .table td,
body#quoteresults .table th {
  vertical-align: middle;
  border-color: #2f343a;
}

/* Footer */
body#quoteresults footer {
  color: #8b939c !important;
  border-color: #2f343a !important;
}

/* Dropdown dark */
body#quoteresults .dropdown-menu {
  background-color: #262a30;
  border-color: #2f343a;
}

body#quoteresults .dropdown-item {
  color: #cfd4da;
}

body#quoteresults .dropdown-item:hover {
  background-color: #2c3138;
  color: #ffffff;
}

/* Global Dropzone Styling */
.dmx-dropzone-container {
  display: block !important;
}
.dmx-dropzone-box {
  background-color: #181b1f !important;
  border: 2px dashed #495057 !important;
  min-height: 140px;
}
.dmx-dropzone-box:hover {
  border-color: #0d6efd !important;
  background-color: #212529 !important;
}

body#quoteresults .modal-content {
  background-color: #202327;
  color: #e2e6ea;
}

/* =========================================================
   Mobile Friendly Navigation Enhancements
   ========================================================= */
body[data-bs-theme="dark"],
body.admin-body {
  padding-top: 58px; /* offset fixed-top navbar on mobile & desktop */
}

@media (max-width: 991.98px) {
  .navbar .container-fluid {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  .navbar-collapse {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin-top: 0.5rem;
  }
  .navbar-nav .nav-item {
    width: 100%;
  }
  .navbar-nav .nav-link {
    padding: 0.6rem 0.75rem;
    border-radius: 0.25rem;
  }
  .navbar-nav .nav-link:hover,
  .navbar-nav .nav-link:focus {
    background-color: rgba(255, 255, 255, 0.08);
  }
  .navbar-nav .dropdown-menu {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: #212529;
    margin-top: 0.25rem;
    padding: 0.5rem;
  }
  #sidebarMenu .nav-link {
    font-size: 0.9rem;
    padding: 0.65rem 0.85rem;
  }
}
/* =========================================================
   Admin dark theme (shared) — applies to every admin page
   that sets data-bs-theme="dark" on <body>. These rules mirror
   the #quoteresults styles above but are id-agnostic.
   ========================================================= */
body[data-bs-theme="dark"] {
  padding-top: 56px; /* offset fixed-top navbar */
  background-color: #181b1f;
  color: #e2e6ea;
  font-family: "Open Sans", "Segoe UI", Tahoma, sans-serif;
}

body[data-bs-theme="dark"] h1,
body[data-bs-theme="dark"] h2,
body[data-bs-theme="dark"] h3,
body[data-bs-theme="dark"] h4,
body[data-bs-theme="dark"] h5,
body[data-bs-theme="dark"] h6,
body[data-bs-theme="dark"] .card-header h5 {
  color: #f5f7fa;
}

body[data-bs-theme="dark"] a {
  color: #9ec5fe;
}

/* Sidebar */
body[data-bs-theme="dark"] aside {
  background: #202327;
  border: 1px solid #2f343a;
  border-radius: 0.375rem;
  padding-top: 0.5rem;
}

body[data-bs-theme="dark"] aside h6 {
  color: #9ec5fe;
  font-size: 0.8rem;
}

body[data-bs-theme="dark"] aside .nav-link {
  display: block;
  padding: 0.55rem 0.9rem;
  color: #cfd4da;
  text-decoration: none;
  font-size: 0.95rem;
  border-left: 3px solid transparent;
  white-space: nowrap;
}

body[data-bs-theme="dark"] aside .nav-link:hover,
body[data-bs-theme="dark"] aside .nav-link.active {
  background: #2c3138;
  border-left-color: #0d6efd;
  color: #ffffff;
}

body[data-bs-theme="dark"] aside .nav-link .icon-bar-chart {
  color: #6ea8fe;
}

/* Cards / forms / tables */
body[data-bs-theme="dark"] .card {
  background-color: #202327;
  border-color: #2f343a;
  color: #e2e6ea;
}

body[data-bs-theme="dark"] .card-header {
  background-color: #262a30;
  border-bottom-color: #2f343a;
}

body[data-bs-theme="dark"] .form-label {
  color: #cfd4da;
}

body[data-bs-theme="dark"] .form-control,
body[data-bs-theme="dark"] .form-select {
  background-color: #262a30;
  border-color: #3a4047;
  color: #e8eaed;
}

body[data-bs-theme="dark"] .form-control:focus,
body[data-bs-theme="dark"] .form-select:focus {
  background-color: #262a30;
  color: #ffffff;
  border-color: #0d6efd;
  -webkit-box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
          box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

body[data-bs-theme="dark"] .form-control::-webkit-input-placeholder {
  color: #8b939c;
}

body[data-bs-theme="dark"] .form-control::-moz-placeholder {
  color: #8b939c;
}

body[data-bs-theme="dark"] .form-control:-ms-input-placeholder {
  color: #8b939c;
}

body[data-bs-theme="dark"] .form-control::-ms-input-placeholder {
  color: #8b939c;
}

body[data-bs-theme="dark"] .form-control::placeholder {
  color: #8b939c;
}

body[data-bs-theme="dark"] .table-responsive {
  background: #202327;
  border: 1px solid #2f343a;
  border-radius: 0.375rem;
  -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
          box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

body[data-bs-theme="dark"] .table {
  --bs-table-bg: transparent;
  --bs-table-striped-bg: rgba(255, 255, 255, 0.04);
  --bs-table-hover-bg: rgba(255, 255, 255, 0.06);
  color: #e2e6ea;
}

body[data-bs-theme="dark"] .table thead th {
  background: #262a30;
  color: #f5f7fa;
  white-space: nowrap;
}

body[data-bs-theme="dark"] .table td,
body[data-bs-theme="dark"] .table th {
  vertical-align: middle;
  border-color: #2f343a;
}

/* Footer / dropdowns / modals */
body[data-bs-theme="dark"] footer {
  color: #8b939c !important;
  border-color: #2f343a !important;
}

body[data-bs-theme="dark"] .dropdown-menu {
  background-color: #262a30;
  border-color: #2f343a;
}

body[data-bs-theme="dark"] .dropdown-item {
  color: #cfd4da;
}

body[data-bs-theme="dark"] .dropdown-item:hover {
  background-color: #2c3138;
  color: #ffffff;
}

body[data-bs-theme="dark"] .modal-content {
  background-color: #202327;
  color: #e2e6ea;
}

/* Legacy Dreamweaver/WADA results content */
body[data-bs-theme="dark"] .page-content {
  min-height: 70vh;
}

body[data-bs-theme="dark"] .WADAResultsContainer,
body[data-bs-theme="dark"] form.DetailsPage {
  color: #e2e6ea;
}

body[data-bs-theme="dark"] .WADAResultsTable,
body[data-bs-theme="dark"] .WADAResultsTableHeader,
body[data-bs-theme="dark"] .WADAResultsTableCell {
  color: #d7dbe0;
}

body[data-bs-theme="dark"] .WADAResultsRowDark {
  background-color: #2c3138;
  color: #e2e6ea;
}

/* =========================================================
   Legacy Dreamweaver/WADA INSERT & UPDATE forms
   (quotes_insert.php, quotes_update.php, and similar).
   Make labels, legends and field text readable on the
   dark background.
   ========================================================= */
body[data-bs-theme="dark"] form.Basic_SOLISSTYLE7292014,
body[data-bs-theme="dark"] form.DetailsPage,
body[data-bs-theme="dark"] .lineGroup,
body[data-bs-theme="dark"] .buttonFieldGroup,
body[data-bs-theme="dark"] .DetailsPage p {
  color: #e2e6ea;
}

body[data-bs-theme="dark"] .groupHeader,
body[data-bs-theme="dark"] fieldset legend,
body[data-bs-theme="dark"] legend.groupHeader {
  color: #9ec5fe;
}

body[data-bs-theme="dark"] .sublabel,
body[data-bs-theme="dark"] label,
body[data-bs-theme="dark"] label.sublabel {
  color: #cfd4da;
}

body[data-bs-theme="dark"] input.formTextfield_Medium,
body[data-bs-theme="dark"] input.formTextfield,
body[data-bs-theme="dark"] input.formTextfield_Large,
body[data-bs-theme="dark"] select.formMenufield_Large,
body[data-bs-theme="dark"] select.formMenufield,
body[data-bs-theme="dark"] textarea.formTextArea,
body[data-bs-theme="dark"] input[type="text"],
body[data-bs-theme="dark"] select,
body[data-bs-theme="dark"] textarea {
  background-color: #262a30;
  border: 1px solid #3a4047;
  color: #e8eaed;
}

body[data-bs-theme="dark"] select option {
  background-color: #262a30;
  color: #e8eaed;
}

body[data-bs-theme="dark"] input.formTextfield_Medium:focus,
body[data-bs-theme="dark"] select:focus,
body[data-bs-theme="dark"] textarea:focus {
  border-color: #0d6efd;
  outline: none;
}

body[data-bs-theme="dark"] input.formButton.Soft,
body[data-bs-theme="dark"] input.formButton {
  color: #f5f7fa;
}

body[data-bs-theme="dark"] p {
  color: #e2e6ea;
}

/* =========================================================
   Multiple-file-upload INSERT forms
   (gallery_project_images_insert_mass.php) - hard overrides
   so the form text/fields/uploader match the other dark pages
   regardless of the legacy WADA / dwzMultiUpload stylesheets.
   ========================================================= */
body[data-bs-theme="dark"] fieldset.Basic_SOLISSTYLE7292014,
body[data-bs-theme="dark"] fieldset.wa_assist,
body[data-bs-theme="dark"] fieldset {
  color: #e2e6ea;
  border-color: #2f343a;
}

body[data-bs-theme="dark"] fieldset legend,
body[data-bs-theme="dark"] .groupHeader,
body[data-bs-theme="dark"] legend.groupHeader {
  color: #9ec5fe !important;
  border-color: #2f343a !important;
}

body[data-bs-theme="dark"] .lineGroup {
  color: #e2e6ea;
}

/* =========================================================
   Mobile Friendly Navigation Bar Styles
   ========================================================= */
body#quote_items_page,
body#quotes_page,
body#quote_type_page,
body#services_desired_page,
body#customer_images_admin,
body#gallery_images_admin,
body#gallery_projects_cat_page,
body#blank,
body#page_name {
  padding-top: 58px;
}

.navbar {
  z-index: 1040;
}

.navbar.sticky-top,
.navbar.fixed-top {
  min-height: 58px;
  z-index: 1040;
}

@media (max-width: 991.98px) {
  .navbar-expand-lg .navbar-collapse {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #181b1e;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.75rem 1.25rem;
    margin-top: 0;
    border-radius: 0 0 0.5rem 0.5rem;
    -webkit-box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.5);
            box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.5);
    z-index: 1050;
  }

  .navbar-expand-lg .navbar-nav .nav-link {
    padding: 0.65rem 1rem !important;
    border-radius: 0.375rem;
    -webkit-transition: background-color 0.15s ease-in-out;
    transition: background-color 0.15s ease-in-out;
  }

  .navbar-expand-lg .navbar-nav .nav-link:hover,
  .navbar-expand-lg .navbar-nav .nav-link:focus {
    background-color: rgba(255, 255, 255, 0.08);
  }

  .navbar-expand-lg .dropdown-menu {
    border: 1px solid rgba(255, 255, 255, 0.15);
    margin-top: 0.25rem;
    background-color: #1a1d20 !important;
  }
}
body[data-bs-theme="dark"] .buttonFieldGroup,
body[data-bs-theme="dark"] .form-group {
  color: #e2e6ea !important;
}

body[data-bs-theme="dark"] .sublabel,
body[data-bs-theme="dark"] label,
body[data-bs-theme="dark"] .sublabel {
  color: #cfd4da !important;
}

body[data-bs-theme="dark"] input.formTextfield,
body[data-bs-theme="dark"] input.formTextfield_Medium,
body[data-bs-theme="dark"] input.formTextfield_Large,
body[data-bs-theme="dark"] select.formMenufield,
body[data-bs-theme="dark"] select.formMenufield_Medium,
body[data-bs-theme="dark"] select.formMenufield_Large,
body[data-bs-theme="dark"] input[type="text"],
body[data-bs-theme="dark"] input[type="number"],
body[data-bs-theme="dark"] input[type="file"],
body[data-bs-theme="dark"] select,
body[data-bs-theme="dark"] textarea {
  background-color: #262a30 !important;
  border: 1px solid #3a4047 !important;
  color: #e8eaed !important;
}

body[data-bs-theme="dark"] select option {
  background-color: #262a30 !important;
  color: #e8eaed !important;
}

body[data-bs-theme="dark"] input.formButton,
body[data-bs-theme="dark"] input.formButton.Soft,
body[data-bs-theme="dark"] button,
body[data-bs-theme="dark"] .buttonFieldGroup input {
  color: #f5f7fa !important;
}

/* Multiple file upload widget + progress overlays */
body[data-bs-theme="dark"] .multipleFileUpload,
body[data-bs-theme="dark"] .uploadPanel,
body[data-bs-theme="dark"] .blockUIOverlay,
body[data-bs-theme="dark"] .progress,
body[data-bs-theme="dark"] .ProgressBar,
body[data-bs-theme="dark"] .upFilename {
  color: #e2e6ea !important;
  background-color: #202327 !important;
}

body[data-bs-theme="dark"] .messageContainer,
body[data-bs-theme="dark"] .messageContainer {
  color: #e2e6ea !important;
}

/* Gallery Card Hover Overlay */
.gallery-card .gallery-overlay {
  opacity: 0;
  -webkit-transition: opacity 0.25s ease-in-out;
  transition: opacity 0.25s ease-in-out;
}
.gallery-card:hover .gallery-overlay {
  opacity: 1 !important;
}

/* =========================================================
   Customer Gallery Page Styles
   ========================================================= */
.gallery-card {
  -webkit-transition: -webkit-transform 0.25s ease, -webkit-box-shadow 0.25s ease;
  transition: -webkit-transform 0.25s ease, -webkit-box-shadow 0.25s ease;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  transition: transform 0.25s ease, box-shadow 0.25s ease, -webkit-transform 0.25s ease, -webkit-box-shadow 0.25s ease;
}
.gallery-card:hover {
  -webkit-transform: translateY(-4px);
          transform: translateY(-4px);
  -webkit-box-shadow: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.15) !important;
          box-shadow: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.15) !important;
}
.gallery-card .gallery-img {
  -webkit-transition: -webkit-transform 0.35s ease;
  transition: -webkit-transform 0.35s ease;
  transition: transform 0.35s ease;
  transition: transform 0.35s ease, -webkit-transform 0.35s ease;
}
.gallery-card:hover .gallery-img {
  -webkit-transform: scale(1.05);
          transform: scale(1.05);
}
.gallery-card:hover .gallery-overlay {
  opacity: 1 !important;
}

/* =========================================================
   Gallery Project Images — native App Connect Dropzone
   (dark admin theme styling for the dmx-dropzone component)
   ========================================================= */
#form_add_image .dmxDropzone {
  background-color: #181b1f !important;
  border: 2px dashed var(--bs-secondary, #6c757d) !important;
  border-radius: var(--bs-border-radius, 0.375rem) !important;
  cursor: pointer;
  min-height: 150px;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-direction: row;
          flex-direction: row;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-transition: border-color 0.2s ease, background-color 0.2s ease;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

#form_add_image .dmxDropzone:hover {
  border-color: var(--bs-primary) !important;
}

#form_add_image .dmxDropzoneHover {
  border-color: var(--bs-primary) !important;
  background-color: rgba(255, 255, 255, 0.04) !important;
}

#form_add_image .dmxDropzoneMessage {
  color: var(--bs-secondary-color, #adb5bd) !important;
  font-size: 0.95rem;
  margin: 1rem !important;
}

#form_add_image .dmxDropzoneThumb {
  border: 1px solid var(--bs-secondary) !important;
  background-color: var(--bs-secondary-bg, #343a40) !important;
}

#form_add_image .dmxDropzoneThumb:hover::before,
#form_add_image .dmxDropzoneThumb .dmxDropzoneFilename {
  color: #fff !important;
  background-color: rgba(0, 0, 0, 0.7) !important;
}
body[data-bs-theme="dark"] .messageWrapper,
body[data-bs-theme="dark"] .messageContent {
  color: #e2e6ea !important;
  background-color: #262a30 !important;
  border-color: #2f343a !important;
}

/* =========================================================
   Job estimator accordion panels + inline form groups
   (job_calculator_dev.php). The page uses legacy Bootstrap 3
   .panel/.panel-heading classes that don't exist in BS5, so
   ========================================================= */

/* Hover Shadow for Cards */
.hover-shadow {
    -webkit-transition: -webkit-box-shadow 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out;
    transition: -webkit-box-shadow 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out;
    transition: box-shadow 0.3s ease-in-out, transform 0.3s ease-in-out;
    transition: box-shadow 0.3s ease-in-out, transform 0.3s ease-in-out, -webkit-box-shadow 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out;
}
.hover-shadow:hover {
    -webkit-box-shadow: 0 .5rem 1rem rgba(0,0,0,.15)!important;
            box-shadow: 0 .5rem 1rem rgba(0,0,0,.15)!important;
    -webkit-transform: translateY(-5px);
            transform: translateY(-5px);
}
   we render them as styled dark cards, with fields inline.
   ========================================================= */
body[data-bs-theme="dark"] .panel-group {
  margin-bottom: 1.5rem;
}

body[data-bs-theme="dark"] .panel {
  background-color: #202327;
  border: 1px solid #2f343a;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  overflow: hidden;
}

body[data-bs-theme="dark"] .panel-heading {
  background-color: #262a30;
  border-bottom: 1px solid #2f343a;
  padding: 0.75rem 1.25rem;
}

body[data-bs-theme="dark"] .panel-title {
  margin: 0;
}

body[data-bs-theme="dark"] .panel-title a {
  color: #9ec5fe !important;
  text-decoration: none;
  font-weight: 600;
}

/* panel-body is used as a flex row (class="panel-body row"):
   keep comfortable padding, neutralize the Bootstrap row
   negative margins and use BS gutters for even field spacing. */
body[data-bs-theme="dark"] .panel-body {
  padding: 1rem 0.5rem 0.5rem;
  --bs-gutter-x: 1.5rem;
  margin-left: 0;
  margin-right: 0;
}

/* Uniform column spacing (panels + bottom sections): every column
   gets the same bottom margin so wrapped rows stay even. */
body[data-bs-theme="dark"] .panel-body > [class*="col-"],
body[data-bs-theme="dark"] form .row > [class*="col-"],
body[data-bs-theme="dark"] form [class*="col-md-"] {
  margin-bottom: 0.75rem;
}

/* Uniform field spacing: every form group gets 2px above and below,
   whether it lives in a panel or a bottom section. */
body[data-bs-theme="dark"] .form-group,
body[data-bs-theme="dark"] .panel-body .form-group {
  margin-top: 2px;
  margin-bottom: 2px;
  height: 100%;
}

/* Uniform label styling + spacing for every field label. */
body[data-bs-theme="dark"] form label,
body[data-bs-theme="dark"] .form-group label,
body[data-bs-theme="dark"] .panel-body label {
  color: #cfd4da;
  font-size: 0.82rem;
  font-weight: 600;
  display: block;
  margin-bottom: 0.35rem;
  letter-spacing: 0.02em;
}

/* Align inputs across each row: treat every field column as a flex
   column and push the control to the bottom, so all inputs line up
   regardless of varying label widths/heights. */
body[data-bs-theme="dark"] form .col-md-3 {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
}

body[data-bs-theme="dark"] form .col-md-3 .form-group {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-flex: 1;
      -ms-flex: 1 1 auto;
          flex: 1 1 auto;
}

body[data-bs-theme="dark"] form .col-md-3 .form-group select,
body[data-bs-theme="dark"] form .col-md-3 .form-group input,
body[data-bs-theme="dark"] form .col-md-3 .form-group textarea,
body[data-bs-theme="dark"] form .col-md-3 > select,
body[data-bs-theme="dark"] form .col-md-3 > input {
  width: 100%;
  margin-top: auto;
}

/* =========================================================
   admin_manage login page (login.php) - dark theme,
   consistent with the rest of the admin.
   ========================================================= */
body#login,
body#login_page {
  background-color: #121519;
  color: #e2e6ea;
  min-height: 100vh;
}

body#login .auth-card,
body#login_page .auth-card {
  background-color: #1e2227;
  border: 1px solid #2f343a;
  -webkit-box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.5);
          box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.5);
  color: #e2e6ea;
}

body#login .auth-brand,
body#login .auth-brand strong,
body#login .auth-brand small,
body#login .auth-footer,
body#login .auth-footer a,
body#login_page .auth-brand,
body#login_page .auth-brand strong,
body#login_page .auth-brand small,
body#login_page .auth-footer,
body#login_page .auth-footer a {
  color: #cfd4da;
}

body#login .eyebrow,
body#login_page .eyebrow {
  color: #9ec5fe;
}

body#login_page .auth-icon-badge,
body#login .auth-icon-badge {
  width: 56px;
  height: 56px;
  margin: 0 auto;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  background: rgba(13, 110, 253, 0.12);
  color: #0d6efd;
  border: 1px solid rgba(13, 110, 253, 0.25);
  border-radius: 50%;
  font-size: 1.35rem;
}

body#login .form-control,
body#login_page .form-control {
  background-color: #262a30;
  border-color: #3a4047;
  color: #e8eaed;
}

body#login .form-control:focus,
body#login_page .form-control:focus {
  background-color: #262a30;
  border-color: #0d6efd;
  color: #ffffff;
  -webkit-box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
          box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

body#login_page .input-group-text,
body#login .input-group-text {
  background-color: #202327;
  border-color: #3a4047;
  color: #8b939c;
}

body#login_page .input-group:focus-within .input-group-text,
body#login .input-group:focus-within .input-group-text {
  border-color: #0d6efd;
  color: #0d6efd;
}

body#login .form-label,
body#login_page .form-label {
  color: #cfd4da;
}

body#login a,
body#login_page a {
  color: #9ec5fe;
}

body#login_page .btn-primary,
body#login .btn-primary {
  background-color: #0d6efd;
  border-color: #0d6efd;
}

/* =========================================================
   Customer Portal — Dark theme buttons & links
   ========================================================= */
body#customer_portal_page,
body#customer_gallery_page,
body#customer_login_page {
  background-color: #121519 !important;
  color: #e2e6ea;
}

body#customer_portal_page a,
body#customer_gallery_page a,
body#customer_login_page a {
  color: #9ec5fe;
}

body#customer_portal_page a:hover,
body#customer_gallery_page a:hover,
body#customer_login_page a:hover {
  color: #c6e0ff;
}

body#customer_portal_page .btn-outline-light,
body#customer_gallery_page .btn-outline-light,
body#customer_login_page .btn-outline-light {
  color: #e2e6ea;
  border-color: #495057;
  background-color: #212529;
}

body#customer_portal_page .btn-outline-light:hover,
body#customer_gallery_page .btn-outline-light:hover,
body#customer_login_page .btn-outline-light:hover {
  color: #ffffff;
  background-color: #343a40;
  border-color: #6c757d;
}