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;
}

.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;
}

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

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

.auth-card {
  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 {
  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;
}

.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;
}

.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;
  }

  .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;
  }
}

.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;
}
