html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
  background: #f7f8fa;
  color: #1f2933;
}

body.sign-in-page,
body.location-menu-page {
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  min-height: 100vh;
}

body.sign-in-page {
  background-color: #e8eff3;
  background-image: url("../images/coastal-horizon-mist.png");
}

body.location-menu-page {
  background-color: #e9dfd0;
  background-image: url("../images/coastal-dune-dawn.png");
}

.app-shell {
  max-width: 1320px;
}

.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: flex-end;
}

.page-title {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 700;
}

.page-subtitle {
  color: #697386;
  margin: .25rem 0 0;
}

.purchases-nav {
  align-items: center;
  background: rgba(255, 255, 255, .78);
  border: 1px solid #d8e0e8;
  border-radius: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-bottom: 1rem;
  padding: .45rem;
}

.purchases-nav-link {
  border: 1px solid transparent;
  border-radius: 7px;
  color: #415466;
  font-size: .925rem;
  font-weight: 600;
  padding: .5rem .85rem;
  text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.purchases-nav-link:hover,
.purchases-nav-link:focus-visible {
  background: #edf3f7;
  border-color: #cbd8e2;
  color: #173f5f;
}

.purchases-nav-link.active {
  background: #1b6ec2;
  border-color: #1861ac;
  color: #fff;
}

.surface {
  background: #fff;
  border: 1px solid #dde3ea;
  border-radius: 8px;
  padding: 1rem;
}

.location-menu-shell {
  margin: 0 auto;
  max-width: 1080px;
}

.location-menu-hero {
  align-items: center;
  background:
    radial-gradient(circle at 92% 12%, rgba(39, 103, 176, .12), transparent 34%),
    linear-gradient(135deg, #fff 0%, #f5f8fb 100%);
  border: 1px solid #d8e0e8;
  border-radius: 16px;
  box-shadow: 0 .75rem 2rem rgba(31, 41, 51, .07);
  display: flex;
  gap: 2rem;
  justify-content: space-between;
  overflow: hidden;
  padding: 1.75rem 2rem;
}

.location-menu-brand {
  align-items: center;
  display: flex;
  gap: 1.5rem;
  min-width: 0;
}

.location-menu-logo {
  display: block;
  flex: 0 0 auto;
  height: 124px;
  width: auto;
}

.location-menu-kicker {
  color: #607084;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  margin-bottom: .35rem;
  text-transform: uppercase;
}

.location-menu-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 750;
  letter-spacing: -.025em;
  line-height: 1.05;
  margin: 0;
  overflow-wrap: anywhere;
}

.location-menu-address {
  color: #697386;
  margin: .55rem 0 0;
}

.location-menu-intro {
  border-left: 1px solid #d8e0e8;
  flex: 0 0 310px;
  padding: .5rem 0 .5rem 2rem;
}

.location-menu-intro h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 .35rem;
}

.location-menu-intro p {
  color: #697386;
  margin: 0;
}

.location-menu-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1.25rem;
}

.location-menu-card {
  align-items: center;
  appearance: none;
  background: #fff;
  border: 1px solid #d8e0e8;
  border-radius: 12px;
  color: #1f2933;
  display: grid;
  font: inherit;
  gap: 1rem;
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-height: 132px;
  padding: 1.25rem;
  text-align: left;
  text-decoration: none;
  width: 100%;
}

.location-menu-card-active {
  box-shadow: 0 .35rem 1.2rem rgba(31, 41, 51, .06);
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.location-menu-card-active:hover,
.location-menu-card-active:focus {
  border-color: #6f91b7;
  box-shadow: 0 .75rem 1.75rem rgba(39, 103, 176, .13);
  color: #1f2933;
  transform: translateY(-2px);
}

.location-menu-card:disabled {
  background: #f8f9fb;
  color: #647180;
  cursor: not-allowed;
  opacity: 1;
}

.location-menu-icon {
  align-items: center;
  background: #edf4fb;
  border-radius: 12px;
  color: #2767b0;
  display: flex;
  height: 54px;
  justify-content: center;
  width: 54px;
}

.location-menu-card:disabled .location-menu-icon {
  background: #eceff3;
  color: #7a8794;
}

.location-menu-icon svg {
  fill: none;
  height: 27px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
  width: 27px;
}

.location-menu-card-copy {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  min-width: 0;
}

.location-menu-card-copy strong {
  font-size: 1.15rem;
}

.location-menu-card-copy > span {
  color: #697386;
  font-size: .88rem;
  line-height: 1.45;
}

.location-menu-arrow {
  color: #2767b0;
  font-size: 1.5rem;
  transition: transform .15s ease;
}

.location-menu-card-active:hover .location-menu-arrow,
.location-menu-card-active:focus .location-menu-arrow {
  transform: translateX(3px);
}

.location-menu-badge {
  align-self: start;
  background: #e9edf2;
  border-radius: 999px;
  color: #657180;
  font-size: .7rem;
  font-weight: 700;
  padding: .3rem .55rem;
  white-space: nowrap;
}

.location-menu-footer {
  margin-top: 1.25rem;
  text-align: center;
}

.location-menu-footer a {
  color: #526273;
  font-weight: 600;
  text-decoration: none;
}

.location-menu-footer a:hover,
.location-menu-footer a:focus {
  color: #2767b0;
  text-decoration: underline;
}

.auth-shell {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: min(680px, calc(100vh - 190px));
}

.auth-card {
  background: transparent;
  display: grid;
  grid-template-columns: minmax(220px, .9fr) minmax(320px, 1fr);
  max-width: 860px;
  overflow: hidden;
  padding: 0;
  width: 100%;
}

.auth-brand-panel {
  align-items: center;
  background: #f1f4f7;
  border-right: 1px solid #dde3ea;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  justify-content: center;
  min-height: 420px;
  padding: 2rem;
  text-align: center;
}

.auth-logo {
  display: block;
  height: auto;
  max-height: 220px;
  max-width: 150px;
  width: 45%;
}

.auth-kicker {
  color: #697386;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.auth-brand-title {
  color: #1f2933;
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1.2;
}

.auth-form-panel {
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  background: rgba(255, 255, 255, 0.145);
  padding: 2.25rem;
}

.invite-card {
  max-width: 720px;
  width: 100%;
}

.invite-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: .75rem;
}

.metric {
  background: #fff;
  border: 1px solid #dde3ea;
  border-radius: 8px;
  padding: .9rem;
}

.metric-link {
  color: inherit;
  display: block;
  text-decoration: none;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.metric-link:hover,
.metric-link:focus {
  border-color: #8aa4c0;
  box-shadow: 0 .35rem 1rem rgba(31, 41, 51, .08);
  color: inherit;
  transform: translateY(-1px);
}

.metric-danger {
  border-color: #dc3545;
}

.metric-danger:hover,
.metric-danger:focus {
  border-color: #b02a37;
  box-shadow: 0 .35rem 1rem rgba(220, 53, 69, .14);
}

.metric-label {
  color: #697386;
  font-size: .85rem;
}

.metric-value {
  font-size: 1.4rem;
  font-weight: 700;
}

.table-actions {
  white-space: nowrap;
}

.appliance-link-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
}

.appliance-link-icon-button {
  align-items: center;
  display: inline-flex;
  height: 2rem;
  justify-content: center;
  padding: 0;
  width: 2rem;
}

.appliance-link-icon {
  fill: none;
  height: 1rem;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.4;
  width: 1rem;
}

.appliance-link-icon-fill {
  fill: currentColor;
  stroke: none;
}

.table-sort-link {
  color: inherit;
  text-decoration: none;
}

.table-sort-link:hover,
.table-sort-link:focus {
  color: inherit;
  text-decoration: underline;
}

.detail-list-nav {
  align-items: center;
  display: flex;
  gap: .75rem;
  justify-content: space-between;
}

.detail-list-position {
  color: #697386;
  font-size: .9rem;
  font-weight: 600;
}

.delivery-row {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.selection-toolbar {
  align-items: flex-start;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.room-selection-grid {
  display: grid;
  gap: .75rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.room-selection-card {
  align-items: flex-start;
  border: 1px solid #dde3ea;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  gap: .65rem;
  padding: .8rem;
}

.room-selection-card:hover,
.room-selection-card:focus-within {
  border-color: #8aa4c0;
}

.room-selection-name,
.room-selection-meta {
  display: block;
}

.room-selection-name {
  font-weight: 600;
}

.room-selection-meta {
  color: #697386;
  font-size: .85rem;
}

.dashboard-row-link {
  color: inherit;
  text-decoration: none;
}

.dashboard-row-link:hover,
.dashboard-row-link:focus {
  color: inherit;
  background: #f7f8fa;
}

.vendor-status-scroll {
  overflow-x: auto;
}

.vendor-status-grid {
  display: grid;
  gap: 0;
  grid-template-columns: minmax(160px, 1fr) repeat(4, minmax(86px, .4fr));
  min-width: 560px;
}

.vendor-status-header {
  border-bottom: 1px solid #dde3ea;
  color: #697386;
  font-size: .8rem;
  font-weight: 700;
  padding: .45rem .5rem;
  text-transform: uppercase;
}

.vendor-status-vendor,
.vendor-status-count {
  align-items: center;
  border-bottom: 1px solid #edf0f3;
  display: flex;
  min-height: 2.3rem;
  padding: .45rem .5rem;
}

.vendor-status-vendor {
  font-weight: 600;
}

.vendor-status-count {
  justify-content: flex-end;
  text-align: right;
}

.form-section {
  background: #fff;
  border: 1px solid #dde3ea;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.photo-drop-zone {
  align-items: center;
  background: #f8fafc;
  border: 2px dashed #aeb9c6;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 120px;
  padding: 1rem;
  text-align: center;
  transition: border-color .15s ease, background-color .15s ease;
}

.photo-drop-zone:hover,
.photo-drop-zone:focus,
.photo-drop-zone.is-dragging {
  background: #eef5ff;
  border-color: #2767b0;
  outline: none;
}

.photo-drop-zone-title {
  font-weight: 700;
}

.photo-preview-grid,
.photo-gallery {
  display: grid;
  gap: .75rem;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
}

.photo-preview-card,
.photo-gallery-item {
  background: #fff;
  border: 1px solid #dde3ea;
  border-radius: 8px;
  margin: 0;
  overflow: hidden;
  padding: .5rem;
}

.photo-preview-card img,
.photo-gallery-item img {
  aspect-ratio: 1;
  background: #eef2f6;
  border-radius: 5px;
  display: block;
  object-fit: cover;
  width: 100%;
}

.photo-preview-unavailable {
  visibility: hidden;
}

.photo-preview-name,
.photo-gallery-name {
  display: block;
  font-size: .8rem;
  margin: .5rem 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.photo-gallery-item figcaption {
  display: flex;
  flex-direction: column;
}

.appliance-document-preview-grid,
.appliance-document-gallery {
  display: grid;
  gap: .75rem;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

.appliance-document-preview-card,
.appliance-document-card {
  background: #fff;
  border: 1px solid #dde3ea;
  border-radius: 8px;
  margin: 0;
  overflow: hidden;
  padding: .6rem;
}

.appliance-document-preview-card img,
.appliance-document-card img,
.appliance-document-icon {
  aspect-ratio: 1;
  background: #eef2f6;
  border-radius: 5px;
  display: flex;
  object-fit: cover;
  width: 100%;
}

.appliance-document-icon {
  align-items: center;
  color: #2767b0;
  font-size: 1.2rem;
  font-weight: 800;
  justify-content: center;
  letter-spacing: .08em;
}

.appliance-document-card figcaption {
  display: flex;
  flex-direction: column;
  padding-top: .6rem;
}

.appliance-document-open {
  color: inherit;
  display: block;
  text-decoration: none;
}

.preserve-line-breaks {
  white-space: pre-wrap;
}

.guide-search-panel {
  background: linear-gradient(135deg, #fff, #f6f9fc);
}

.guide-card-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.guide-card {
  background: #fff;
  border: 1px solid #dde3ea;
  border-radius: 10px;
  box-shadow: 0 .25rem .85rem rgba(31, 41, 51, .045);
  display: flex;
  flex-direction: column;
  min-height: 240px;
  padding: 1rem;
}

.guide-card-emergency {
  border-left: 4px solid #dc3545;
}

.guide-card h2 {
  margin: .9rem 0 .5rem;
}

.guide-card h2 a {
  color: #1f2933;
  text-decoration: none;
}

.guide-card h2 a:hover,
.guide-card h2 a:focus {
  color: #2767b0;
  text-decoration: underline;
}

.guide-card-meta,
.guide-facts dl {
  display: grid;
  gap: .6rem;
  margin: .4rem 0 1rem;
}

.guide-card-meta > div,
.guide-facts dl > div {
  display: grid;
  gap: .1rem;
}

.guide-card-meta dt,
.guide-facts dt {
  color: #697386;
  font-size: .72rem;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.guide-card-meta dd,
.guide-facts dd {
  margin: 0;
}

.guide-card-footer {
  border-top: 1px solid #edf0f3;
  color: #697386;
  display: flex;
  font-size: .8rem;
  gap: 1rem;
  justify-content: space-between;
  margin-top: auto;
  padding-top: .75rem;
}

.guide-association-grid {
  display: grid;
  gap: .4rem;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
}

.guide-association-option {
  background: #f8fafc;
  border: 1px solid #e1e6eb;
  border-radius: 6px;
  margin: 0;
  padding: .55rem .65rem .55rem 2rem;
}

.guide-editor-row {
  background: #f8fafc;
  border: 1px solid #dde3ea;
  border-radius: 8px;
  padding: .85rem;
}

.guide-warning {
  border-left-width: 5px;
}

.guide-checklist {
  display: grid;
  gap: .65rem;
}

.guide-checklist-item {
  align-items: flex-start;
  background: #f8fafc;
  border: 1px solid #e1e6eb;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  gap: .75rem;
  padding: .8rem;
}

.guide-checklist-item > span {
  display: grid;
  gap: .2rem;
}

.guide-step-list {
  counter-reset: guide-step;
  display: grid;
  gap: 1rem;
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.guide-step-list > li {
  border-left: 3px solid #8aa4c0;
  counter-increment: guide-step;
  padding: .15rem 0 .15rem 3rem;
  position: relative;
}

.guide-step-list > li::before {
  align-items: center;
  background: #edf4fb;
  border-radius: 999px;
  color: #2767b0;
  content: counter(guide-step);
  display: flex;
  font-weight: 700;
  height: 2rem;
  justify-content: center;
  left: .45rem;
  position: absolute;
  top: 0;
  width: 2rem;
}

.guide-reference-list {
  display: grid;
  gap: 0;
  margin: 1rem 0 0;
}

.guide-reference-list > div {
  border-bottom: 1px solid #edf0f3;
  display: grid;
  gap: .75rem;
  grid-template-columns: minmax(120px, .35fr) minmax(0, 1fr);
  padding: .75rem 0;
}

.guide-reference-list > div:last-child {
  border-bottom: 0;
}

.guide-reference-list dd {
  margin: 0;
}

.collapsible-section-summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  list-style: none;
  min-height: 1.75rem;
}

.collapsible-section-summary::-webkit-details-marker {
  display: none;
}

.collapsible-section-arrow {
  border-color: #697386;
  border-style: solid;
  border-width: 0 2px 2px 0;
  display: inline-block;
  height: .55rem;
  transform: rotate(45deg);
  transition: transform .15s ease;
  width: .55rem;
}

.collapsible-section[open] .collapsible-section-arrow {
  transform: rotate(-135deg);
}

.collapsible-section-body {
  margin-top: 1rem;
}

.board {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 1fr);
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: .5rem;
}

.board-column {
  background: #eef2f6;
  border-radius: 8px;
  padding: .75rem;
  min-height: 240px;
}

.board-card {
  background: #fff;
  border: 1px solid #dde3ea;
  border-radius: 8px;
  padding: .75rem;
  margin-bottom: .75rem;
}

@media (max-width: 767.98px) {
  body {
    margin-bottom: 40px;
  }

  .app-shell {
    padding-left: .85rem;
    padding-right: .85rem;
  }

  .page-header {
    align-items: stretch;
    flex-direction: column;
  }

  .page-actions {
    justify-content: flex-start;
  }

  .selection-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .page-header > .btn,
  .page-actions .btn {
    flex: 1 1 auto;
  }

  .page-title {
    font-size: 1.5rem;
  }

  .location-menu-hero {
    align-items: stretch;
    flex-direction: column;
    gap: 1.25rem;
    padding: 1.25rem;
  }

  .location-menu-logo {
    height: 92px;
  }

  .location-menu-intro {
    border-left: 0;
    border-top: 1px solid #d8e0e8;
    flex-basis: auto;
    padding: 1rem 0 0;
  }

  .location-menu-grid {
    grid-template-columns: 1fr;
  }

  .location-menu-card {
    min-height: 116px;
    padding: 1rem;
  }

  .location-menu-badge {
    display: none;
  }

  .surface {
    padding: .85rem;
  }

  .auth-shell {
    align-items: flex-start;
    min-height: 0;
  }

  .auth-card {
    grid-template-columns: 1fr;
    padding: 0;
  }

  .auth-brand-panel {
    border-bottom: 1px solid #dde3ea;
    border-right: 0;
    flex-direction: row;
    justify-content: flex-start;
    min-height: 0;
    padding: 1rem;
    text-align: left;
  }

  .auth-logo {
    max-height: 84px;
    max-width: 68px;
    width: 20%;
  }

  .auth-brand-title {
    font-size: 1.25rem;
  }

  .auth-form-panel {
    padding: 1rem;
  }

  .invite-actions .btn {
    flex: 1 1 10rem;
  }

  .surface.table-responsive,
  .table-responsive {
    overflow-x: visible;
  }

  .responsive-table {
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 0;
  }

  .responsive-table thead {
    display: none;
  }

  .responsive-table tbody,
  .responsive-table tr,
  .responsive-table td {
    display: block;
  }

  .responsive-table tr {
    background: #fff;
    border: 1px solid #dde3ea;
    border-radius: 8px;
    display: grid;
    gap: .45rem .75rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: .75rem;
    padding: .85rem;
  }

  .responsive-table tbody tr:last-child {
    margin-bottom: 0;
  }

  .responsive-table td {
    border: 0;
    min-width: 0;
    overflow-wrap: anywhere;
    padding: 0 !important;
    white-space: normal;
  }

  .responsive-table td[data-label]::before {
    color: #697386;
    content: attr(data-label);
    display: block;
    font-size: .75rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: .1rem;
    text-transform: uppercase;
  }

  .responsive-table td[data-label=""]::before {
    content: none;
  }

  .responsive-table .responsive-primary,
  .responsive-table .responsive-marker,
  .responsive-table .responsive-actions {
    grid-column: 1 / -1;
  }

  .responsive-table .responsive-primary {
    font-size: 1.05rem;
  }

  .responsive-table .responsive-marker:empty {
    display: none;
  }

  .responsive-table .responsive-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    justify-content: flex-start !important;
    padding-top: .25rem !important;
  }

  .responsive-table .responsive-actions .btn {
    flex: 1 1 7rem;
  }

  .responsive-table .responsive-actions .appliance-link-icon-button {
    flex: 0 0 2rem;
  }

  .responsive-table .appliance-link-buttons::before {
    flex-basis: 100%;
  }
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

@media (max-width: 575.98px) {
  .guide-card-grid {
    grid-template-columns: 1fr;
  }

  .guide-reference-list > div {
    gap: .25rem;
    grid-template-columns: 1fr;
  }

  .guide-card-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: .2rem;
  }
}
