:root {
  --bg: #f6f9fd;
  --panel: rgba(255, 255, 255, 0.92);
  --panel-strong: #ffffff;
  --ink: #08275c;
  --muted: #5e7191;
  --line: rgba(37, 99, 235, 0.14);
  --accent: #0b63ce;
  --accent-strong: #063a83;
  --accent-soft: #eaf4ff;
  --aegan: #159bd7;
  --sun: #f5aa18;
  --warning: #d99516;
  --danger: #b24c43;
  --shadow: 0 22px 60px rgba(8, 39, 92, 0.10);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "IBM Plex Sans", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(13, 124, 102, 0.14), transparent 28%),
    radial-gradient(circle at right 20%, rgba(204, 138, 40, 0.1), transparent 25%),
    linear-gradient(180deg, #f8f4ec 0%, #ece6db 100%);
  min-height: 100vh;
}

.shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}

.sidebar {
  padding: 28px;
  border-right: 1px solid var(--line);
  background: rgba(255, 249, 240, 0.75);
  backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 28px;
}

.brand-mark {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: white;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand h1,
.topbar h2,
.hero-copy h3,
.section-head h3 {
  margin: 0;
}

.eyebrow {
  margin: 0 0 6px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.nav {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
}

.nav-link,
button,
input,
select {
  font: inherit;
}

.nav-link,
.primary,
.secondary,
select {
  border-radius: 16px;
}

.nav-link,
.primary,
.secondary {
  border: 0;
  cursor: pointer;
}

.nav-link {
  padding: 12px 14px;
  text-align: left;
  background: transparent;
  color: var(--ink);
}

.nav-link.active {
  background: var(--panel-strong);
  box-shadow: inset 0 0 0 1px var(--line);
}

.sidebar-card,
.panel {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}

.sidebar-card {
  padding: 18px;
  margin-top: 18px;
}

.compact-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.55;
}

.small-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.main {
  padding: 28px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-pill,
.status-chip {
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--panel-strong);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.message-bar {
  margin-bottom: 16px;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--panel-strong);
}

.message-bar.error {
  color: var(--danger);
  border-color: rgba(178, 76, 67, 0.2);
  background: rgba(178, 76, 67, 0.06);
}

.message-bar.success {
  color: var(--accent-strong);
  border-color: rgba(13, 124, 102, 0.2);
  background: rgba(13, 124, 102, 0.06);
}

.hidden {
  display: none !important;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.panel {
  padding: 24px;
}

.hero-panel {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
}

.hero-copy p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

.form-grid {
  display: grid;
  gap: 16px;
}

.search-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.auth-form {
  align-content: start;
}

label,
.portal-box {
  display: grid;
  gap: 8px;
}

.run-panel {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(13, 124, 102, 0.08), rgba(255, 255, 255, 0.95));
  border: 1px solid rgba(13, 124, 102, 0.18);
}

.run-metric {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
}

.run-metric span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  margin-bottom: 6px;
}

label span,
.portal-box legend {
  font-size: 0.93rem;
  font-weight: 600;
}

input,
select {
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.portal-box {
  grid-column: 1 / -1;
  margin: 0;
  padding: 16px;
  border: 1px dashed rgba(13, 124, 102, 0.28);
  border-radius: 18px;
  background: rgba(217, 241, 234, 0.35);
}

.checkbox {
  grid-template-columns: auto 1fr;
  align-items: center;
}

.checkbox input {
  height: auto;
}

.action-row {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.primary {
  padding: 14px 18px;
  color: white;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
}

.primary:disabled,
.secondary:disabled {
  opacity: 0.6;
  cursor: wait;
}

.secondary {
  padding: 10px 14px;
  background: white;
  border: 1px solid var(--line);
}

.form-hint {
  margin: 0;
  color: var(--muted);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  gap: 12px;
}

.summary-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.summary-card {
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--panel-strong);
  border: 1px solid var(--line);
}

.summary-card span {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
  margin-bottom: 6px;
}

.table-wrap {
  overflow: auto;
  border-radius: 18px;
  border: 1px solid var(--line);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--panel-strong);
}

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  font-size: 0.84rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(242, 239, 232, 0.75);
}

td {
  font-size: 0.96rem;
}

.portal-tags {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.tag,
.badge {
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
}

.tag {
  background: rgba(13, 124, 102, 0.1);
  color: var(--accent-strong);
}

.badge {
  background: rgba(204, 138, 40, 0.12);
  color: var(--warning);
}

.badge.good {
  background: rgba(13, 124, 102, 0.12);
  color: var(--accent-strong);
}

a {
  color: var(--accent-strong);
}

@media (max-width: 1080px) {
  .shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .hero-panel,
  .search-form,
  .summary-strip,
  .run-panel {
    grid-template-columns: 1fr;
  }
}

/* PATCH_APP_PUBLIC_RESULT_COLUMN_WIDTHS_V1
   Improve readability of result table columns after renderer/template alignment. */
#results-body td[data-col="rank"] {
  width: 44px;
  min-width: 44px;
  text-align: center;
}

#results-body td[data-col="hotel"] {
  min-width: 190px;
}

#results-body td[data-col="destination"] {
  min-width: 105px;
}

#results-body td[data-col="dates"] {
  min-width: 120px;
  white-space: nowrap;
}

#results-body td[data-col="nights"] {
  width: 70px;
  min-width: 70px;
  text-align: center;
}

#results-body td[data-col="pax"] {
  min-width: 90px;
  white-space: nowrap;
}

#results-body td[data-col="price"] {
  min-width: 110px;
  white-space: nowrap;
}

#results-body td[data-col="availability"] {
  min-width: 120px;
  white-space: nowrap;
}

#results-body td[data-col="bestPortal"] {
  min-width: 140px;
  white-space: nowrap;
}

#results-body td[data-col="comparedPortals"] {
  min-width: 170px;
}

#results-body td[data-col="offerCount"] {
  width: 70px;
  min-width: 70px;
  text-align: center;
}

/* PATCH_APP_PUBLIC_RESULTS_COMPACT_SUMMARY_V1
   Reduce wasted vertical space in Results summary area. */
#results-view .section-header {
  margin-bottom: 14px;
}

#results-view .summary-strip {
  gap: 10px 14px;
  margin-bottom: 14px;
}

#results-view .summary-card {
  min-height: 58px;
  padding: 14px 18px;
}

#results-view .summary-card span {
  margin-bottom: 6px;
}

#results-view .table-wrap {
  margin-top: 8px;
}

#results-view h3 {
  margin-top: 0;
  margin-bottom: 0;
}


/* PATCH_APP_PUBLIC_RESULTS_VIEWPORT_WIDTH_FIX_V1
   Keep customer results inside visible viewport; table scrolls inside its card instead of widening the page. */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

.shell,
.content,
.view,
.card,
#results-view {
  max-width: 100%;
  min-width: 0;
}

#results-view .table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
}

#results-view table {
  width: max-content;
  min-width: 100%;
}

#results-view .summary-strip {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

#results-view .summary-card {
  min-width: 0;
}

#results-view .summary-card strong {
  overflow-wrap: anywhere;
}



/* PATCH_ADMIN_OPS_STYLES_V1 */
.admin-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.admin-pre {
  white-space: pre-wrap;
  overflow: auto;
  max-height: 360px;
  font-size: 12px;
}

#admin-rejected-body td:last-child {
  max-width: 520px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


/* PATCH_ADMIN_ANDON_VISUALS_STYLES_V11 */
.admin-andon-panel {
  margin: 18px 0 24px;
}

.andon-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.andon-card {
  border-radius: 16px;
  padding: 16px 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.andon-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #526575;
  margin-bottom: 8px;
}

.andon-value {
  font-size: 24px;
  font-weight: 800;
  color: #10212b;
}

.andon-detail {
  margin-top: 8px;
  font-size: 12px;
  color: #526575;
  min-height: 16px;
}

.andon-green {
  background: #e9f8ef;
  border-color: #94d3aa;
}

.andon-yellow {
  background: #fff4d7;
  border-color: #e7bd55;
}

.andon-red {
  background: #ffe4e4;
  border-color: #e77a7a;
}

.admin-chart-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(260px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.admin-chart-card {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  padding: 16px;
}

.admin-chart-card h4 {
  margin: 0 0 12px;
}

.admin-bar-row {
  display: grid;
  grid-template-columns: 130px 1fr 42px;
  align-items: center;
  gap: 10px;
  margin: 8px 0;
  font-size: 13px;
}

.admin-bar-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-bar-track {
  height: 12px;
  background: rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.admin-bar-fill {
  height: 100%;
  border-radius: 999px;
}

.andon-bg-green {
  background: #23a35b;
}

.andon-bg-yellow {
  background: #d49a00;
}

.andon-bg-red {
  background: #d33a3a;
}

.admin-bar-value {
  text-align: right;
  font-weight: 700;
}

#admin-summary-strip {
  margin-top: 12px;
}

@media (max-width: 1200px) {
  .andon-row {
    grid-template-columns: repeat(3, minmax(150px, 1fr));
  }

  .admin-chart-grid {
    grid-template-columns: 1fr;
  }
}


/* PATCH_ADMIN_HIDE_DUPLICATE_SUMMARY_STRIP_V11
   The Andon cards and charts replace the old repeated admin summary cards. */
#admin-summary-strip {
  display: none !important;
}


/* PATCH_FRONTEND_CHILD_AGES_STYLE_V1 */
.children-ages {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.children-ages[hidden] {
  display: none;
}

.children-ages-title {
  grid-column: 1 / -1;
  font-size: 12px;
  font-weight: 700;
  opacity: 0.8;
}

.child-age-field {
  margin: 0;
}


/* PATCH_RESTORE_RESULTS_LAYOUT_WIDTH_COMPACT_V1
   Restore customer results to viewport-width layout while preserving compact summary and table scroll. */
#results-view {
  width: 100%;
  max-width: 100%;
}

#results-view .summary-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px 14px;
  margin-bottom: 14px;
}

#results-view .summary-card {
  min-height: 52px;
  padding: 10px 14px;
}

#results-view .summary-card span {
  margin-bottom: 4px;
}

#results-view .table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
}

#results-view table {
  width: 100%;
  min-width: 1180px;
}

@media (max-width: 1200px) {
  #results-view .summary-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  #results-view .summary-strip {
    grid-template-columns: 1fr;
  }
}


/* PATCH_RESULTS_WIDTH_FIT_100_PERCENT_V2
   Fit Results page at 100% browser zoom while keeping table readable. */
#results-view .card,
#results-view.card {
  max-width: 100%;
  overflow: hidden;
}

#results-view .summary-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

#results-view .summary-card {
  padding: 9px 12px;
  min-height: 50px;
}

#results-view .table-wrap {
  max-width: 100%;
  overflow-x: auto;
}

#results-view table {
  width: 100%;
  min-width: 1040px;
}

#results-view th,
#results-view td {
  padding-left: 14px;
  padding-right: 14px;
}


/* PATCH_HELIOSTAY_FRONTEND_REBRAND_V1 */
body {
  background:
    radial-gradient(circle at 8% 8%, rgba(21, 155, 215, 0.12), transparent 30%),
    radial-gradient(circle at 92% 16%, rgba(245, 170, 24, 0.10), transparent 24%),
    linear-gradient(180deg, #ffffff 0%, #f4f8fd 58%, #eef6ff 100%);
}

.shell {
  grid-template-columns: 320px 1fr;
}

.sidebar {
  position: relative;
  overflow: hidden;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(238,247,255,0.94) 100%);
}

.brand-card {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin-bottom: 28px;
  padding: 22px 16px 18px;
  border-radius: 20px;
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(37, 99, 235, 0.14);
  box-shadow: 0 18px 44px rgba(8, 39, 92, 0.10);
}

.heliostay-logo {
  position: relative;
  width: 128px;
  height: 94px;
}

.heliostay-monogram {
  position: absolute;
  inset: 22px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: -0.12em;
  color: var(--accent-strong);
  font-size: 4.25rem;
  line-height: 1;
}

.heliostay-sun {
  position: absolute;
  top: 0;
  right: 18px;
  width: 58px;
  height: 34px;
  border: 5px solid var(--sun);
  border-bottom: 0;
  border-radius: 58px 58px 0 0;
}

.heliostay-sun::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -19px;
  width: 5px;
  height: 14px;
  border-radius: 999px;
  background: var(--sun);
  transform: translateX(-50%);
  box-shadow:
    -28px 11px 0 var(--sun),
    28px 11px 0 var(--sun),
    -17px -3px 0 var(--sun),
    17px -3px 0 var(--sun);
}

.heliostay-wave {
  position: absolute;
  left: 18px;
  bottom: 6px;
  width: 78px;
  height: 18px;
  border-bottom: 5px solid var(--aegan);
  border-radius: 0 0 70px 70px;
  transform: rotate(-2deg);
}

.hs-lens {
  position: absolute;
  right: 20px;
  bottom: 6px;
  width: 22px;
  height: 22px;
  border: 4px solid var(--accent);
  border-radius: 999px;
  background: #fff;
}

.hs-lens::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 4px;
  right: -10px;
  bottom: -5px;
  border-radius: 999px;
  background: var(--accent);
  transform: rotate(45deg);
}

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

.brand-copy h1 {
  margin: 0;
  color: var(--accent);
  font-size: 2rem;
  letter-spacing: -0.04em;
}

.brand-copy p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.nav {
  gap: 12px;
}

.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  color: var(--ink);
  font-weight: 600;
  border-radius: 18px;
}

.nav-link::before {
  width: 24px;
  text-align: center;
  color: var(--accent);
  font-size: 1.12rem;
}

.nav-link[data-view-target="login-view"]::before { content: "◎"; }
.nav-link[data-view-target="search-view"]::before { content: "⌕"; }
.nav-link[data-view-target="history-view"]::before { content: "↺"; }
.nav-link[data-view-target="results-view"]::before { content: "▥"; }
.nav-link[data-view-target="admin-view"]::before { content: "◇"; }

.nav-link.active {
  color: var(--accent);
  background: linear-gradient(135deg, #eaf4ff, #dceeff);
  box-shadow: none;
}

.sidebar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 320px;
  pointer-events: none;
  background:
    radial-gradient(circle at 24% 82%, #ffffff 0 28px, transparent 29px),
    radial-gradient(circle at 9% 90%, #ffffff 0 36px, transparent 37px),
    radial-gradient(circle at 34% 93%, #ffffff 0 32px, transparent 33px),
    radial-gradient(circle at 24% 82%, #2f8ed8 0 14px, transparent 15px),
    radial-gradient(circle at 9% 90%, #2f8ed8 0 18px, transparent 19px),
    radial-gradient(circle at 34% 93%, #2f8ed8 0 16px, transparent 17px),
    linear-gradient(160deg, transparent 0 48%, rgba(99, 184, 230, 0.28) 49%, rgba(99, 184, 230, 0.14) 75%, transparent 76%),
    linear-gradient(180deg, transparent 0%, rgba(198, 230, 249, 0.45) 46%, rgba(125, 195, 234, 0.55) 100%);
  opacity: 0.92;
}

.live-platform::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 8px;
  border-radius: 50%;
  background: #23c4a8;
}

.topbar h2 {
  color: var(--ink);
  font-size: 2rem;
  letter-spacing: -0.04em;
}

.user-pill,
.status-chip {
  background: #fff;
  border-color: rgba(37, 99, 235, 0.16);
  color: var(--ink);
  box-shadow: 0 8px 24px rgba(8, 39, 92, 0.06);
}

.status-chip {
  color: #11a98f;
}

.panel {
  background: rgba(255,255,255,0.94);
  border-color: rgba(37, 99, 235, 0.12);
}

.run-panel {
  border-color: rgba(37, 99, 235, 0.18);
  background: linear-gradient(135deg, rgba(234,244,255,0.72), rgba(255,255,255,0.96));
}

.run-metric {
  background: transparent;
  border-right: 1px solid rgba(37, 99, 235, 0.14);
}

.run-metric:last-child {
  border-right: 0;
}

input,
select,
textarea {
  border-color: rgba(37, 99, 235, 0.16);
  border-radius: 16px;
  background: rgba(255,255,255,0.96);
  color: var(--ink);
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(21, 155, 215, 0.18);
  border-color: rgba(11, 99, 206, 0.55);
}

.primary {
  background: linear-gradient(135deg, #0873e1, #064da5);
  box-shadow: 0 14px 28px rgba(8, 99, 206, 0.24);
}

.primary:hover {
  filter: brightness(1.04);
}

.secondary {
  color: #fff;
  background: var(--accent-strong);
}

.action-row {
  align-items: center;
}

.action-row .primary {
  min-width: 168px;
}

@media (max-width: 980px) {
  .shell {
    grid-template-columns: 1fr;
  }

  .sidebar::after {
    display: none;
  }

  .brand-card {
    justify-items: start;
  }
}


/* PATCH_HELIOSTAY_VISUAL_ALIGNMENT_V2
   Align live UI closer to preferred mockup: no sheet label, stronger sun, visible Santorini sidebar. */

#search-view .section-head .eyebrow {
  display: none;
}

#search-view .section-head h3 {
  margin-top: 0;
}

/* clearer, more elegant sun around HS logo */
.heliostay-sun {
  top: -2px;
  right: 7px;
  width: 72px;
  height: 42px;
  border-width: 6px;
  border-color: var(--sun);
  border-bottom: 0;
  z-index: 1;
}

.heliostay-sun::before {
  top: -23px;
  width: 6px;
  height: 16px;
  box-shadow:
    -34px 13px 0 var(--sun),
    34px 13px 0 var(--sun),
    -22px -4px 0 var(--sun),
    22px -4px 0 var(--sun),
    -43px 32px 0 var(--sun),
    43px 32px 0 var(--sun);
}

.heliostay-monogram {
  z-index: 2;
  color: #07377f;
  text-shadow: 0 2px 0 rgba(255,255,255,0.72);
}

.heliostay-logo {
  height: 104px;
}

/* keep the sidebar illustration visible in the first viewport */
.sidebar {
  min-height: 100vh;
}

.sidebar::after {
  height: 410px;
  bottom: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 18% 72%, #ffffff 0 28px, transparent 29px),
    radial-gradient(circle at 6% 82%, #ffffff 0 38px, transparent 39px),
    radial-gradient(circle at 31% 86%, #ffffff 0 34px, transparent 35px),
    radial-gradient(circle at 44% 92%, #ffffff 0 26px, transparent 27px),
    radial-gradient(circle at 18% 72%, #2f8ed8 0 14px, transparent 15px),
    radial-gradient(circle at 6% 82%, #2f8ed8 0 18px, transparent 19px),
    radial-gradient(circle at 31% 86%, #2f8ed8 0 16px, transparent 17px),
    radial-gradient(circle at 44% 92%, #2f8ed8 0 12px, transparent 13px),
    linear-gradient(150deg, transparent 0 41%, rgba(255,255,255,0.92) 42% 51%, transparent 52%),
    linear-gradient(160deg, transparent 0 48%, rgba(99, 184, 230, 0.34) 49%, rgba(99, 184, 230, 0.16) 75%, transparent 76%),
    radial-gradient(circle at 70% 66%, rgba(126, 181, 215, 0.34), transparent 28%),
    linear-gradient(180deg, transparent 0%, rgba(225, 244, 255, 0.72) 33%, rgba(128, 198, 237, 0.58) 100%);
  opacity: 0.98;
}

/* keep sidebar content above illustration */
.brand-card,
.nav {
  position: relative;
  z-index: 2;
}

/* small bird accents like the mockup, without image assets */
.sidebar::before {
  content: "⌁   ⌁";
  position: absolute;
  left: 128px;
  bottom: 330px;
  z-index: 1;
  color: rgba(11, 99, 206, 0.55);
  font-size: 24px;
  letter-spacing: 22px;
  transform: rotate(-8deg);
  pointer-events: none;
}

/* improve vertical fit so the Santorini section appears without scrolling */
.brand-card {
  padding-top: 18px;
  padding-bottom: 16px;
  margin-bottom: 24px;
}

.nav-link {
  padding-top: 13px;
  padding-bottom: 13px;
}


/* PATCH_HELIOSTAY_PORTAL_GRID_V3
   Safe form compactness: keep Cancellation Policy, make portals 3-column, reduce vertical height without losing clarity. */

#search-view .panel {
  padding-top: 16px;
  padding-bottom: 16px;
}

#search-view .section-head {
  margin-bottom: 14px;
}

#search-form.search-form {
  gap: 10px 16px;
}

#search-form label,
#search-form .portal-box {
  gap: 5px;
}

#search-form label > span,
#search-form .portal-box legend {
  font-size: 0.9rem;
  line-height: 1.2;
}

#search-form input,
#search-form select {
  min-height: 42px;
  padding-top: 9px;
  padding-bottom: 9px;
}

#search-form .run-panel {
  padding: 11px 14px;
}

#search-form .run-metric {
  padding-top: 7px;
  padding-bottom: 7px;
}

.portal-box-compact {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 12px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(234, 244, 255, 0.48);
  border: 1px dashed rgba(21, 155, 215, 0.35);
}

.portal-box-compact legend {
  grid-column: 1 / -1;
  padding: 0 4px;
  color: var(--ink);
  font-weight: 700;
}

.portal-box-compact .checkbox {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 12px;
  background: rgba(255,255,255,0.76);
}

.portal-box-compact .checkbox input {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}

.portal-box-compact .checkbox span {
  font-size: 0.86rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#search-form .action-row {
  grid-column: 1 / -1;
  align-items: center;
  gap: 12px;
  margin-top: 0;
}

#search-form .action-row .primary {
  min-height: 44px;
}

#search-form .form-hint {
  line-height: 1.35;
  margin: 0;
}

@media (max-width: 1180px) {
  .portal-box-compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .portal-box-compact {
    grid-template-columns: 1fr;
  }
}


/* PATCH_HELIOSTAY_LOGO_SANTORINI_V4
   Final visual pass: closer mockup logo and real Santorini-style sidebar scene. */

.heliostay-logo,
.heliostay-sun,
.heliostay-monogram,
.heliostay-wave {
  display: none !important;
}

.heliostay-logo-svg {
  width: 158px;
  height: 116px;
  display: block;
  margin: 0 auto -2px;
  overflow: visible;
}

.logo-sun {
  color: #f2a60d;
}

.logo-hs {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 76px;
  font-weight: 700;
  fill: #07377f;
  letter-spacing: -8px;
}

.logo-wave {
  stroke: #159bd7;
}

.logo-lens {
  stroke: #0863c8;
}

.brand-card {
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand-copy h1 {
  font-size: 1.95rem;
  line-height: 1.02;
}

.brand-copy p {
  font-size: 0.78rem;
}

.sidebar {
  position: relative;
  overflow: hidden;
}

.sidebar::before,
.sidebar::after {
  content: none !important;
}

.brand-card,
.nav {
  position: relative;
  z-index: 5;
}

.santorini-scene-v4 {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 335px;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(224,244,255,0.65) 24%, rgba(124,199,238,0.60) 100%);
}

.sea-v4 {
  position: absolute;
  left: 76px;
  right: -34px;
  bottom: 0;
  height: 270px;
  background: linear-gradient(135deg, rgba(255,255,255,0.88), rgba(104,187,234,0.76));
  clip-path: polygon(0 66%, 100% 12%, 100% 100%, 0 100%);
}

.cliff-v4 {
  position: absolute;
  left: -16px;
  bottom: -8px;
  width: 178px;
  height: 184px;
  background: linear-gradient(145deg, #ffffff 0%, #eaf6ff 52%, #b8def3 100%);
  clip-path: polygon(0 26%, 58% 0, 100% 26%, 82% 100%, 0 100%);
  opacity: 0.98;
}

.cloud-v4 {
  position: absolute;
  background: rgba(255,255,255,0.82);
  border-radius: 999px;
  filter: blur(0.2px);
}

.cloud-v4::before,
.cloud-v4::after {
  content: "";
  position: absolute;
  background: inherit;
  border-radius: inherit;
}

.cloud-a {
  width: 78px;
  height: 30px;
  left: 118px;
  top: 76px;
}

.cloud-a::before {
  width: 42px;
  height: 42px;
  left: 12px;
  top: -18px;
}

.cloud-a::after {
  width: 52px;
  height: 52px;
  right: 4px;
  top: -26px;
}

.cloud-b {
  width: 58px;
  height: 22px;
  right: 16px;
  top: 96px;
  opacity: 0.72;
}

.cloud-b::before {
  width: 34px;
  height: 34px;
  left: 6px;
  top: -14px;
}

.cloud-b::after {
  width: 38px;
  height: 38px;
  right: 2px;
  top: -18px;
}

.island-v4 {
  position: absolute;
  right: 24px;
  bottom: 156px;
  width: 136px;
  height: 42px;
  border-radius: 50%;
  background: rgba(80, 137, 180, 0.32);
  transform: rotate(-8deg);
}

.island-b {
  right: 78px;
  bottom: 130px;
  width: 82px;
  height: 28px;
  opacity: 0.62;
}

.sail-v4 {
  position: absolute;
  right: 82px;
  bottom: 122px;
  width: 0;
  height: 0;
  border-left: 16px solid rgba(255,255,255,0.95);
  border-top: 38px solid transparent;
  filter: drop-shadow(0 8px 10px rgba(8,39,92,0.10));
}

.bird-v4 {
  position: absolute;
  color: rgba(8,99,206,0.62);
  font-size: 22px;
  font-weight: 700;
}

.bird-a {
  right: 138px;
  top: 68px;
}

.bird-b {
  right: 98px;
  top: 92px;
}

.village-v4 {
  position: absolute;
  left: -10px;
  bottom: -4px;
  width: 210px;
  height: 190px;
}

.house-v4 {
  position: absolute;
  width: 60px;
  height: 58px;
  background: #fff;
  border-radius: 10px 10px 5px 5px;
  box-shadow: 0 12px 28px rgba(8,39,92,0.11);
}

.house-v4::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -25px;
  width: 50px;
  height: 38px;
  transform: translateX(-50%);
  border-radius: 50px 50px 6px 6px;
  background: #fff;
}

.dome-v4::before {
  background: #2f8ed8;
}

.house-v4 i {
  position: absolute;
  left: 21px;
  bottom: 10px;
  width: 17px;
  height: 28px;
  border-radius: 9px 9px 3px 3px;
  background: #2f8ed8;
}

.h-a { left: 6px; bottom: 84px; transform: scale(0.88); }
.h-b { left: 60px; bottom: 100px; transform: scale(0.96); }
.h-c { left: 12px; bottom: 34px; transform: scale(1.06); }
.h-d { left: 78px; bottom: 42px; transform: scale(1.14); }
.h-e { left: 134px; bottom: 60px; transform: scale(0.84); }
.h-f { left: 128px; bottom: 8px; transform: scale(0.90); }

.stairs-v4 {
  position: absolute;
  left: 70px;
  bottom: 0;
  width: 74px;
  height: 46px;
  border-left: 8px solid rgba(255,255,255,0.98);
  border-bottom: 8px solid rgba(255,255,255,0.98);
  transform: skewX(-20deg);
  opacity: 0.95;
}

.flowers-v4 {
  position: absolute;
  left: 4px;
  bottom: 46px;
  width: 44px;
  height: 42px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 20% 40%, #f35e91 0 4px, transparent 5px),
    radial-gradient(circle at 46% 28%, #f35e91 0 4px, transparent 5px),
    radial-gradient(circle at 70% 48%, #f35e91 0 4px, transparent 5px),
    radial-gradient(circle at 40% 66%, #2f9b62 0 6px, transparent 7px),
    radial-gradient(circle at 65% 72%, #2f9b62 0 6px, transparent 7px);
  opacity: 0.9;
}


/* PATCH_HELIOSTAY_REAL_ASSET_VISUAL_V5
   Use real visual assets for mockup-like logo card and Santorini sidebar. */

.brand-card-image {
  padding: 0 !important;
  overflow: hidden;
  background: transparent !important;
  border: 0 !important;
  box-shadow: 0 18px 44px rgba(8, 39, 92, 0.10);
}

.brand-card-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
}

.heliostay-logo,
.heliostay-logo-svg,
.santorini-scene-v4 {
  display: none !important;
}

.sidebar {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(238,247,255,0.94) 100%),
    url("/assets/heliostay_santorini_scene.png");
  background-repeat: no-repeat, no-repeat;
  background-size: auto, 100% auto;
  background-position: center top, left bottom;
}

.sidebar::before,
.sidebar::after {
  content: none !important;
}


/* PATCH_HELIOSTAY_SANTORINI_VISIBILITY_V5B
   Increase visibility of the real Santorini artwork without affecting layout. */

.sidebar {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.94) 0%, rgba(240,247,255,0.90) 34%, rgba(228,241,252,0.82) 100%) !important;
  background-image: linear-gradient(180deg, rgba(255,255,255,0.94) 0%, rgba(240,247,255,0.90) 34%, rgba(228,241,252,0.82) 100%) !important;
}

.sidebar::after {
  content: "" !important;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 430px;
  background: url("/assets/heliostay_santorini_scene.png") no-repeat left bottom / 115% auto;
  opacity: 0.72;
  z-index: 1;
  pointer-events: none;
}

.brand-card,
.nav {
  position: relative;
  z-index: 5;
}

/* PATCH_HELIOSTAY_LOGO_UI_SIZE_V4
   Final polish: slightly larger logo illustration and sidebar icons. */

.brand-card-image {
  overflow: hidden;
}

.brand-card-image img {
  transform: scale(1.22);
  transform-origin: center center;
}

.nav-link {
  gap: 0.86rem;
}

.nav-link::before {
  width: 2.18rem;
  min-width: 2.18rem;
  font-size: 1.48rem;
  line-height: 1;
  text-align: center;
}

/* PATCH_RESULTS_COMPACT_LEFT_WIDTH_V1
   Keep customer results compact-left on wide desktop screens.
   The table may scroll inside the card, but the whole results card should not stretch edge-to-edge. */
@media (min-width: 1280px) {
  #results-view {
    width: min(100%, 1320px);
    max-width: 1320px;
    margin-right: auto;
    margin-left: 0;
  }

  #results-view .panel {
    width: 100%;
    max-width: 1320px;
  }

  #results-view .summary-strip {
    grid-template-columns: repeat(4, minmax(180px, 1fr));
  }

  #results-view table {
    min-width: 1040px;
  }
}

@media (min-width: 1600px) {
  #results-view {
    max-width: 1380px;
  }

  #results-view .panel {
    max-width: 1380px;
  }
}

/* PATCH_RESULTS_TABLE_FIT_100PCT_V1
   Fit customer results table at 100% browser zoom.
   Keep all columns visible without requiring page/table horizontal scrolling. */
@media (min-width: 1100px) {
  #results-view .table-wrap {
    overflow-x: hidden;
  }

  #results-view table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
  }

  #results-view th,
  #results-view td {
    padding: 0.58rem 0.52rem;
    font-size: 0.88rem;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  #results-view th:nth-child(1),
  #results-view td:nth-child(1) {
    width: 3.2%;
  }

  #results-view th:nth-child(2),
  #results-view td:nth-child(2) {
    width: 16%;
  }

  #results-view th:nth-child(3),
  #results-view td:nth-child(3) {
    width: 7.5%;
  }

  #results-view th:nth-child(4),
  #results-view td:nth-child(4) {
    width: 11%;
  }

  #results-view th:nth-child(5),
  #results-view td:nth-child(5) {
    width: 5.5%;
  }

  #results-view th:nth-child(6),
  #results-view td:nth-child(6) {
    width: 8.5%;
  }

  #results-view th:nth-child(7),
  #results-view td:nth-child(7) {
    width: 15%;
  }

  #results-view th:nth-child(8),
  #results-view td:nth-child(8) {
    width: 12%;
  }

  #results-view th:nth-child(9),
  #results-view td:nth-child(9) {
    width: 17%;
  }

  #results-view th:nth-child(10),
  #results-view td:nth-child(10) {
    width: 4.3%;
  }

  #results-view .portal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
  }

  #results-view .tag {
    max-width: 100%;
    overflow-wrap: anywhere;
  }
}

/* PATCH_RESULTS_UI_POLISH_V1
   Compact Results summary cards and rebalance table columns at 100% zoom. */
@media (min-width: 1100px) {
  #results-view .panel {
    padding-top: 1.25rem;
  }

  #results-view .section-header {
    margin-bottom: 0.9rem;
  }

  #results-view .summary-strip {
    gap: 0.65rem;
    grid-template-columns: 1.15fr 1.15fr 0.75fr 1.05fr;
    margin-bottom: 0.95rem;
  }

  #results-view .summary-card {
    padding: 0.55rem 0.75rem;
    min-height: 52px;
    align-content: center;
  }

  #results-view .summary-card span {
    font-size: 0.78rem;
    margin-bottom: 0.12rem;
  }

  #results-view .summary-card strong {
    font-size: 0.95rem;
    line-height: 1.12;
  }

  #results-view table {
    table-layout: fixed;
    min-width: 0;
    width: 100%;
  }

  #results-view th,
  #results-view td {
    padding: 0.58rem 0.5rem;
    font-size: 0.88rem;
  }

  #results-view th {
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: normal;
  }

  #results-view th:nth-child(1),
  #results-view td:nth-child(1) {
    width: 3.1%;
  }

  #results-view th:nth-child(2),
  #results-view td:nth-child(2) {
    width: 16.4%;
  }

  #results-view th:nth-child(3),
  #results-view td:nth-child(3) {
    width: 8.1%;
  }

  #results-view th:nth-child(4),
  #results-view td:nth-child(4) {
    width: 10.2%;
  }

  #results-view th:nth-child(5),
  #results-view td:nth-child(5) {
    width: 6.2%;
  }

  #results-view th:nth-child(6),
  #results-view td:nth-child(6) {
    width: 8.7%;
  }

  #results-view th:nth-child(7),
  #results-view td:nth-child(7) {
    width: 12.4%;
  }

  #results-view th:nth-child(8),
  #results-view td:nth-child(8) {
    width: 13.4%;
  }

  #results-view th:nth-child(9),
  #results-view td:nth-child(9) {
    width: 16.5%;
  }

  #results-view th:nth-child(10),
  #results-view td:nth-child(10) {
    width: 5%;
    min-width: 62px;
    text-align: center;
  }

  #results-view td:nth-child(10) {
    font-variant-numeric: tabular-nums;
  }
}

/* PATCH_RESULTS_UI_FINAL_TWEAKS_V1
   Final polish: tighter summary boxes, better Run ID/Pax space, and no wrapped OFFERS header. */
@media (min-width: 1100px) {
  #results-view .summary-strip {
    gap: 0.55rem;
    grid-template-columns: 1.05fr 1.05fr 0.7fr 1.18fr;
    margin-bottom: 0.8rem;
  }

  #results-view .summary-card {
    min-height: 46px;
    padding: 0.45rem 0.7rem;
  }

  #results-view .summary-card span {
    font-size: 0.74rem;
  }

  #results-view .summary-card strong {
    font-size: 0.92rem;
  }

  #results-view th,
  #results-view td {
    padding-left: 0.42rem;
    padding-right: 0.42rem;
  }

  #results-view th:nth-child(2),
  #results-view td:nth-child(2) {
    width: 16.0%;
  }

  #results-view th:nth-child(3),
  #results-view td:nth-child(3) {
    width: 8.4%;
  }

  #results-view th:nth-child(4),
  #results-view td:nth-child(4) {
    width: 10.1%;
  }

  #results-view th:nth-child(5),
  #results-view td:nth-child(5) {
    width: 5.8%;
  }

  #results-view th:nth-child(7),
  #results-view td:nth-child(7) {
    width: 11.2%;
  }

  #results-view th:nth-child(8),
  #results-view td:nth-child(8) {
    width: 13.1%;
  }

  #results-view th:nth-child(9),
  #results-view td:nth-child(9) {
    width: 16.1%;
  }

  #results-view th:nth-child(10),
  #results-view td:nth-child(10) {
    width: 6.2%;
    min-width: 76px;
    white-space: nowrap;
  }
}


/* PATCH_RESULTS_FILTER_BAR_RESTORE_V1 */
.results-filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 10px 0 12px;
  padding: 10px 12px;
  border: 1px solid rgba(31, 64, 104, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.results-filter-bar label {
  font-size: 12px;
  font-weight: 700;
  color: #244064;
}

.results-filter-bar input {
  height: 34px;
  min-width: 160px;
  max-width: 240px;
  border: 1px solid rgba(31, 64, 104, 0.16);
  border-radius: 10px;
  padding: 0 10px;
  background: #fff;
}

#max-price-filter {
  min-width: 96px;
  max-width: 120px;
}

#hotel-name-filter-count {
  margin-left: auto;
  font-size: 12px;
  font-weight: 700;
  color: #60718a;
}


/* PATCH_STYLES_VALIDATION_CONTROL_CENTER_V2_SIMPLE_UI */
.validation-control-panel {
  margin: 0 0 14px;
  padding: 14px;
  border-radius: 18px;
  background: var(--panel);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.validation-control-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.validation-control-head h4 {
  margin: 0;
  font-size: 18px;
}

.validation-control-body {
  display: grid;
  gap: 8px;
}

.validation-lane-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 14px;
  background: var(--panel-strong);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.validation-lane-main,
.validation-lane-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.validation-lane-subtext {
  margin-top: 3px;
  font-size: 12px;
  color: #60718a;
}

.validation-status {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
}

.validation-lane-free .validation-status {
  color: #0f5132;
}

.validation-lane-running .validation-status,
.validation-lane-ready .validation-status {
  color: #8a4b00;
}

.validation-lane-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px 10px;
  font-size: 12px;
}

.validation-open-browser {
  text-decoration: none;
}

.validation-release-lane:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

@media (max-width: 900px) {
  .validation-lane-main,
  .validation-lane-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .validation-lane-details {
    grid-template-columns: 1fr;
  }
}

/* PATCH_STYLES_VALIDATION_CONTROL_CENTER_V3_HIDE_WHILE_SEARCHING */
#validation-control-panel.hidden {
  display: none;
}

/* PATCH_STYLES_HIDE_MANUAL_SUPPLIER_PANEL_CUSTOMER_UI_V4
   Keep backend/manual validation infrastructure, but hide the technical supplier-window panel from customer Results UI. */
#validation-control-panel {
  display: none !important;
}


/* PATCH_RESULTS_DESTINATION_DATES_WIDTH_SAFE_V1
   Safe scoped override only for customer Results desktop table.
   Do not rewrite previous column layout blocks; only prevent Destination/Dates collision. */
@media (min-width: 1100px) {
  #results-view th:nth-child(3),
  #results-view td:nth-child(3) {
    width: 10.2%;
    min-width: 118px;
    overflow-wrap: normal;
    word-break: normal;
  }

  #results-view th:nth-child(4),
  #results-view td:nth-child(4) {
    width: 11.2%;
    min-width: 146px;
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: normal;
  }
}
