@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

html, body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after {
  text-decoration-line: none !important;
  text-decoration: none !important;
  -webkit-text-decoration-line: none !important;
}

a:hover,
button:hover,
.nav a:hover,
.foot a:hover,
.quiet:hover,
.choice:hover,
.mini-signin a:hover {
  text-decoration: none !important;
  text-decoration-line: none !important;
}

a.choice {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  box-sizing: border-box;
}
a.choice small {
  color: var(--muted);
}
.choice .carat {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.actions form { display: inline; }


/* Owner onboarding helpers */
.choice-card {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
  width: 100%;
  text-align: left;
  padding: 14px;
  border: 1px solid #cedbed;
  border-radius: 15px;
  background: #fff;
  cursor: pointer;
}
.choice-card input { margin-top: 4px; }
.choice-card strong, .choice-card small { display: block; }
.choice-card small { color: var(--muted); margin-top: 4px; }
.choice-group { display: grid; gap: 10px; }
.day-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.day {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  min-width: 52px;
  border: 1px solid var(--line, #cedbed);
  border-radius: 10px;
  padding: 8px 11px;
  cursor: pointer;
  background: #fff;
  color: var(--ink, #1b2b41);
  font-weight: 620;
  font-size: .84rem;
  user-select: none;
}
.day input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  inset: 0;
}
.day:has(input:checked),
.day[aria-pressed="true"] {
  background: #eaf2ff;
  border-color: #8dafe9;
  color: var(--dark, #173f8f);
  font-weight: 720;
}
.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 10px 0;
}
.check input { margin-top: 3px; }
.info-grid {
  display: grid;
  gap: 10px;
}
.info-grid > div {
  display: grid;
  gap: 2px;
}
.info-grid span { color: var(--muted); font-size: .84rem; }
.upload {
  display: flex;
  gap: 12px;
  align-items: center;
  border: 1px dashed #b7c9e4;
  border-radius: 14px;
  padding: 14px;
  background: #f8fbff;
  cursor: pointer;
}
.upload input[type=file] { display: none; }
.photos .photo {
  position: relative;
  width: 96px;
  height: 72px;
  border-radius: 10px;
  overflow: hidden;
  background: #e8eef8;
  border: 1px solid #d5e0f0;
}
.photos .photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photos .photo-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  min-height: 28px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 31, 55, 0.82);
  color: #fff;
  cursor: pointer;
}
.photos .photo-remove .icon {
  width: 14px;
  height: 14px;
}
.photos .photo-cover {
  position: absolute;
  left: 4px;
  bottom: 4px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 7px;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 31, 55, 0.82);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  cursor: pointer;
}
.photos .photo-cover.is-cover {
  cursor: default;
  background: rgba(19, 103, 82, 0.92);
}
#photo-required-hint { color: var(--bad); }
.category-grid form { margin: 0; }
.category-grid .category { width: 100%; }
.select2-container .select2-selection--single {
  min-height: 47px;
  border: 1px solid #c9d7eb;
  border-radius: 11px;
  padding: 8px 4px;
  background: #fbfdff;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 28px;
  color: var(--ink);
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 45px;
}

.tabs .tab[aria-pressed="true"],
.portal-filters .tab[aria-pressed="true"] {
  background: #eaf2ff;
  border-color: #9bbcff;
  color: #173f8f;
  font-weight: 720;
}
.stack { display: grid; gap: 18px; }

.calendar-grid > i {
  min-height: 44px;
  visibility: hidden;
}
a.calendar-day {
  cursor: pointer;
}

/* Booking cards + detail */
.booking-stack {
  display: grid;
  gap: 14px;
}
.booking-card {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  gap: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}
.booking-card__media {
  display: block;
  min-height: 100%;
  background: #eaf1fb;
}
.booking-card__media img,
.booking-detail__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.booking-card__placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 148px;
  color: #6f89ad;
  background: linear-gradient(160deg, #edf4ff, #f7fafc);
}
.booking-card__body {
  padding: 16px 18px 14px;
  display: grid;
  gap: 12px;
}
.booking-card__top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}
.booking-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  margin-bottom: 6px;
}
.booking-card__ref,
.booking-card__chip {
  font-size: .76rem;
  color: #5b7394;
}
.booking-card__chip {
  padding: 3px 8px;
  border-radius: 999px;
  background: #eef4ff;
  border: 1px solid #d4e2f8;
}
.booking-card__chip--partner {
  background: #e8f7f1;
  border-color: #b7e4d1;
  color: #0f6b52;
  font-weight: 700;
}
.booking-card__partner {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  align-items: baseline;
  padding: 10px 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, #eefbf5, #f4faf8);
  border: 1px solid #cfe9dc;
}
.booking-card__partner strong {
  font-size: .82rem;
  color: #0f6b52;
}
.booking-card__partner span {
  color: #355f50;
  font-size: .88rem;
}
.booking-partner-banner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 18px;
  align-items: center;
  margin-bottom: 14px;
  padding: 16px 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, #eafbf4, #f7fcfa);
  border: 1px solid #c6e8d8;
}
.booking-partner-banner strong {
  display: block;
  color: #0f6b52;
  margin-bottom: 4px;
}
.booking-partner-banner p {
  margin: 0;
  color: #355f50;
  font-size: .92rem;
}
.booking-partner-banner__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.booking-partner-banner__meta span {
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #cfe9dc;
  color: #0f6b52;
  font-size: .78rem;
  font-weight: 700;
}
.booking-card__title {
  margin: 0;
  font-size: 1.18rem;
  letter-spacing: -.02em;
}
.booking-card__title a {
  color: inherit;
}
.booking-card__place {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: .9rem;
}
.booking-card__price {
  text-align: right;
  flex: none;
}
.booking-card__price strong,
.booking-card__price small {
  display: block;
}
.booking-card__price strong {
  font-size: 1.05rem;
}
.booking-card__price small {
  margin-top: 3px;
  color: var(--muted);
}
.booking-card__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}
.booking-card__facts dt {
  color: var(--muted);
  font-size: .76rem;
  margin-bottom: 3px;
}
.booking-card__facts dd {
  margin: 0;
  font-weight: 650;
  font-size: .92rem;
}
.booking-card__facts small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-weight: 500;
}
.booking-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.booking-card__actions form {
  display: inline;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 700;
  background: #eef3f9;
  color: #4a607c;
}
.status-pill.good { background: #e7f7ef; color: #14735c; }
.status-pill.warn { background: #fff4df; color: #9a6700; }
.status-pill.bad { background: #fdecee; color: #b42318; }
.booking-card__actions .primary,
.booking-card__actions .secondary,
.booking-card__actions .quiet,
.booking-detail .primary,
.booking-detail .secondary,
.booking-detail .quiet,
.booking-detail .danger {
  min-height: 40px;
  padding: 8px 14px;
  font-size: .88rem;
}

.booking-detail {
  display: grid;
  gap: 14px;
}
.booking-detail__header .portal-copy {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.booking-detail__hero {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}
.booking-detail__cover {
  border-radius: 16px;
  overflow: hidden;
  min-height: 180px;
  background: #eaf1fb;
}
.booking-detail__summary h2,
.booking-detail .portal-panel h2 {
  margin: 0 0 14px;
  font-size: 1.05rem;
}
.booking-detail__grid,
.booking-detail__money {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
  margin: 0;
}
.booking-detail__grid dt,
.booking-detail__money dt {
  color: var(--muted);
  font-size: .78rem;
  margin-bottom: 3px;
}
.booking-detail__grid dd,
.booking-detail__money dd {
  margin: 0;
  font-weight: 650;
}
.booking-detail__grid dd small,
.booking-detail__money dd small {
  color: var(--muted);
  font-weight: 500;
}
.booking-detail__span {
  grid-column: 1 / -1;
}
.booking-detail__columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.booking-detail__money-total {
  grid-column: 1 / -1;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.booking-detail__money-total dd {
  font-size: 1.25rem;
}

.support-thread-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  margin-bottom: 14px;
}
.support-thread {
  display: grid;
  gap: 10px;
}
.support-bubble {
  padding: 12px 14px;
  border-radius: 14px;
  background: #f5f8fc;
  border: 1px solid var(--line);
}
.support-bubble--ops {
  background: #eef7ff;
  border-color: #c7ddf8;
}
.support-bubble header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}
.support-bubble header small {
  color: var(--muted);
}
.support-bubble p {
  margin: 0;
  white-space: pre-wrap;
}
.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 12px 0 16px;
  font-size: .92rem;
}
.grid2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.info-grid span {
  display: block;
  color: var(--muted);
  font-size: .78rem;
  margin-bottom: 3px;
}
.info-grid strong {
  display: block;
}
.portal-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.portal-stat small {
  display: block;
  margin-top: 4px;
  font-size: .78rem;
  color: var(--muted, #6b7c93);
  font-weight: 500;
}
.commission-highlight {
  margin-bottom: 12px;
}
.hire-phone-row select {
  min-height: 47px;
}
a.hire-nav-item,
a.hire-shortcut,
a.hire-thread-item {
  text-decoration: none;
}
.hire-filters .tab[aria-pressed="true"] {
  background: #eaf2ff;
  border-color: #9bbcff;
  color: #173f8f;
  font-weight: 720;
}
.customer-page .portal-panel h2 {
  margin-top: 0;
}

@media (max-width: 860px) {
  .grid2,
  .info-grid {
    grid-template-columns: 1fr;
  }
  .booking-card {
    grid-template-columns: 1fr;
  }
  .booking-card__media {
    min-height: 160px;
  }
  .booking-card__media img {
    height: 160px;
  }
  .booking-card__facts,
  .booking-detail__columns,
  .booking-detail__hero,
  .booking-detail__grid,
  .booking-detail__money {
    grid-template-columns: 1fr;
  }
  .booking-card__top {
    flex-direction: column;
  }
  .booking-card__price {
    text-align: left;
  }
}

.calendar-day.off {
  color: #8a97ab;
  background: #f3f5f8;
}
.calendar-key .part {
  color: #2f6fed;
}
.calendar-key .off {
  color: #8a97ab;
}
.calendar-side {
  display: grid;
  gap: 14px;
}

.staff-usage {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin: 0 0 14px;
  padding: 16px 20px;
  border: 1px solid #d5e2f6;
  border-radius: 16px;
  background: #eaf2ff;
  color: var(--dark);
}
.staff-usage strong,
.staff-usage small {
  display: block;
  line-height: 1.35;
}
.staff-usage strong {
  font-size: 1.18rem;
  font-variant-numeric: tabular-nums;
}
.staff-usage small {
  margin-top: 4px;
  color: var(--muted);
  font-size: .875rem;
}
.staff-usage meter {
  width: min(184px, 100%);
  height: 16px;
  accent-color: var(--blue);
}
.staff-usage.seat-total {
  padding: 12px 16px;
  margin-top: 10px;
}
.staff-usage.seat-total output {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.portal-scope {
  margin: 0 0 12px;
}
.portal-scope .field {
  max-width: 360px;
}
/* .field { display:grid } otherwise wins over the HTML hidden attribute */
.portal-scope [hidden],
.hire-account-grid [hidden],
.form [hidden] {
  display: none !important;
}
.hire-receipt-actions {
  display: flex;
  justify-content: flex-end;
  grid-column: 1 / -1;
  margin-top: 4px;
}
.finance-receipt .hire-receipt-actions .quiet {
  min-height: 42px;
}
.info-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: .88rem;
}
.info-row > span:first-child {
  color: var(--muted);
  max-width: 48%;
}
.info-row > span:last-child {
  text-align: right;
  font-weight: 630;
  overflow-wrap: anywhere;
}
.phone-control {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  align-items: stretch;
  min-width: 0;
}
.phone-control:focus-within {
  border-color: var(--blue);
}
.phone-control .phone-prefix {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  position: relative;
  min-width: 100px;
  padding: 0 10px;
  border-right: 1px solid var(--line);
  border-radius: 11px 0 0 11px;
  background: #f4f7fd;
  color: var(--dark);
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.field .phone-prefix select {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}
.field .phone-control input {
  border: 0;
  border-radius: 0 11px 11px 0;
  min-height: 48px;
  min-width: 0;
  background: #fff;
  padding: 10px 13px;
  font-size: 1rem;
}
.partner-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.partner-unit-checks {
  border: 0;
  padding: 0;
  margin: 12px 0;
}
.partner-unit-checks legend {
  font-weight: 700;
  margin-bottom: 8px;
}

/* Owner billing / unit plans */
.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: 12px;
  margin: 14px 0;
}
.price-unit {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
}
.price-unit h3 {
  font-size: 1.08rem;
  margin: 0;
}
.price-unit p {
  font-size: .91rem;
  line-height: 1.5;
  margin: 7px 0;
  color: var(--muted);
}
.price-unit-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.price-state {
  font-size: .875rem;
  color: #35506f;
  font-weight: 650;
  white-space: nowrap;
}
.price-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 8px 0 4px;
}
.price-metrics > div {
  background: #f7faff;
  border: 1px solid #e1ebfb;
  border-radius: 11px;
  padding: 10px;
}
.price-metrics small {
  display: block;
  font-size: .83rem;
  color: var(--muted);
}
.price-metrics strong {
  display: block;
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}
.price-details {
  font-size: .89rem;
  margin: 8px 0 0;
}
.price-details summary {
  cursor: pointer;
  color: var(--dark);
  padding: 10px 0;
  font-weight: 650;
  min-height: 42px;
}
.price-details p {
  max-width: 65ch;
  line-height: 1.55;
  margin: 0 0 9px;
  color: var(--muted);
}
.fleet-choice {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  min-height: 58px;
}
.fleet-choice input {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}
.fleet-choice span {
  flex: 1;
  min-width: 0;
}
.fleet-choice small {
  display: block;
}
.fleet-choice b,
.fleet-total output {
  white-space: nowrap;
}
.fleet-total {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  margin: 12px 0;
}
.portal-section {
  font-size: 1.05rem;
  margin: 0;
}
.inline-space {
  margin-top: 13px;
}
.day-row.inline-space {
  margin-top: 10px;
}

/* Control Operations · Reviews / Onboarding */
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0;
}
.metric {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
}
.metric strong {
  display: block;
  font-size: 1.55rem;
  font-weight: 760;
}
.metric small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}
.track {
  height: 6px;
  background: #e8eef8;
  border-radius: 99px;
  overflow: hidden;
  margin-top: 6px;
}
.track span {
  display: block;
  height: 100%;
  background: var(--blue, #2f6fed);
}
.dash-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
.journey-facts {
  margin-top: 4px;
}
.journey-facts .info-row:first-child {
  border-top: 0;
  padding-top: 0;
}
@media (max-width: 900px) {
  .dash-grid,
  .metrics {
    grid-template-columns: 1fr;
  }
}

/* Unit plan home banner (prototype .price-home) */
.price-offer,
.price-home,
.price-unit,
.price-invoice-line {
  min-width: 0;
}
.price-home {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 12px 0 16px;
  padding: 20px 24px;
  background: #f0f7fa;
  border: 1px solid #c9dce5;
  border-radius: 18px;
}
.price-home span {
  display: block;
  font-size: 0.79rem;
  color: #305564;
  font-weight: 650;
}
.price-home h2 {
  font-size: 1.25rem;
  margin: 4px 0 0;
}
.price-home p {
  font-size: 0.91rem;
  line-height: 1.5;
  margin: 7px 0;
  color: var(--muted, #5b6b7c);
}
.price-home .secondary,
.price-home a.secondary {
  flex: none;
  min-height: 44px;
}
@media (max-width: 600px) {
  .price-home {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
  }
}
