html {
  scrollbar-gutter: stable;
}

@supports not (scrollbar-gutter: stable) {
  html {
    overflow-y: scroll;
  }
}

body {
  background: #f4f7f8;
}

.portal-section {
  padding-bottom: 40px;
  padding-top: 110px;
}

.portal-card {
  background: #fff;
  border: 1px solid #d7e2e7;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(44, 62, 80, .06);
  margin-bottom: 16px;
  padding: 18px;
}

.portal-detail-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.portal-detail-item {
  background: #f8fbfa;
  border: 1px solid #dbe6e3;
  border-radius: 8px;
  padding: 12px 14px;
}

.portal-detail-label {
  color: #5d6b68;
  display: block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.portal-upcoming-list {
  display: grid;
  gap: 10px;
}

.portal-upcoming-item {
  align-items: center;
  background: #eef6ff;
  border: 1px solid #c9dbef;
  border-left: 5px solid #2f74b5;
  border-radius: 8px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 12px 14px;
}

.portal-property-action {
  border-bottom: 1px solid #e5ecea;
  margin: 0 -16px;
  padding: 12px 16px;
}

.portal-payment-status {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: .75rem;
  font-weight: 700;
  line-height: 1;
  padding: 6px 9px;
}

.portal-payment-status-paid {
  background: #e6f4ea;
  color: #287a3e;
}

.portal-payment-status-payment-due {
  background: #fff4d6;
  color: #7a5200;
}

.portal-status {
  border-radius: 999px;
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  padding: 3px 8px;
}

.portal-status-appointment-approved {
  background: #e6f4ea;
  color: #287a3e;
}

.portal-status-appointment-denied,
.portal-status-appointment-declined {
  background: #fdecec;
  color: #a83232;
}

.portal-status-awaiting-landlord-approval {
  background: #fff4d6;
  color: #7a5200;
}

.portal-status-sent-to-pompey-plumb,
.portal-status-sent-to-landlord {
  background: #e7f0f6;
  color: #245f9e;
}

@media (max-width: 575.98px) {
  .portal-upcoming-item {
    align-items: flex-start;
    flex-direction: column;
  }
}

.portal-card-narrow {
  margin-left: auto;
  margin-right: auto;
  max-width: 480px;
}

.portal-card-medium {
  margin-left: auto;
  margin-right: auto;
  max-width: 540px;
}

.portal-footer {
  margin-top: auto;
  padding-bottom: 2rem;
  padding-top: 2rem;
}

.portal-footer-links {
  align-items: center;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.portal-form-group {
  border: 1px solid #d8e0de;
  border-radius: 8px;
  margin-bottom: 1rem;
  overflow: hidden;
}

.portal-form-group h2 {
  background: #2f4844;
  color: #fff;
  font-size: 1rem;
  margin: 0;
  padding: .75rem 1rem;
}

.portal-form-body {
  padding: 1rem;
}

.portal-field-group {
  background: #fbfcfc;
  border: 1px solid #d8e0de;
  margin-bottom: 1rem;
  padding: 1rem;
}

.portal-field-group h2 {
  color: #2c3e50;
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 1rem;
  text-transform: uppercase;
}

.callback-summary,
.portal-area-note {
  background: #eef6f3;
  border-left: 4px solid #8aa79e;
  padding: .85rem 1rem;
}

.preferred-arrival-option {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  margin-bottom: .75rem;
  padding: 1rem;
}

.portal-estimate-panel {
  background: #2c3e50;
  border: 1px solid #243342;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(44, 62, 80, .16);
  color: #fff;
  padding: 1.5rem;
}

.portal-estimate-panel h2 {
  color: #fff;
}

.portal-estimate-panel #estimateAmount,
.portal-estimate-panel strong,
.portal-estimate-panel a {
  color: #f4d03f;
}

.portal-estimate-panel .small {
  color: rgba(255, 255, 255, .86);
}

.portal-note-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.portal-note-list li {
  border-top: 1px solid rgba(255, 255, 255, .2);
  padding: .75rem 0;
}

.portal-note-list li:first-child {
  border-top: 0;
  padding-top: 0;
}

.portal-inline-access-panel {
  background: #f7faf9;
  border: 1px solid #d8e0de;
  border-radius: 8px;
  margin: 4px 0 16px;
  padding: 14px;
}

.portal-inline-access-panel[hidden] {
  display: none !important;
}

.portal-access-map {
  background: #eef3f5;
  border-radius: 8px;
  height: 220px;
  margin-bottom: 12px;
  overflow: hidden;
  width: 100%;
}

.portal-access-map > div {
  height: 100%;
  width: 100%;
}

.portal-tenant-property-list,
.portal-report-list,
.portal-tenant-list {
  display: grid;
  gap: 12px;
}

.portal-report-item,
.portal-tenant-row,
.portal-tenant-manager-header {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.portal-report-item {
  background: #f8fbfa;
  border: 1px solid #dbe6e3;
  border-radius: 8px;
  padding: 12px 14px;
}

.portal-tenant-manager {
  background: #f8fbfa;
  border: 1px solid #d8e0de;
  border-radius: 8px;
  margin: 14px 0;
  padding: 14px;
}

.portal-tenant-manager-header {
  border-bottom: 1px solid #d8e0de;
  margin-bottom: 12px;
  padding-bottom: 10px;
}

.portal-tenant-count {
  align-items: center;
  background: #2f4844;
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: .85rem;
  font-weight: 700;
  height: 30px;
  justify-content: center;
  min-width: 30px;
  padding: 0 9px;
}

.portal-tenant-row {
  background: #fff;
  border: 1px solid #e0e8e6;
  border-radius: 8px;
  padding: 10px 12px;
}

.portal-tenant-invite {
  margin-top: 12px;
}

.portal-tenant-invite > summary {
  cursor: pointer;
  list-style: none;
}

.portal-tenant-invite > summary::-webkit-details-marker {
  display: none;
}

.portal-tenant-invite-form {
  border-top: 1px solid #d8e0de;
  margin-top: 12px;
  padding-top: 12px;
}

.appointment-photo-picker {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.appointment-photo-picker input[type="file"] {
  height: 1px;
  opacity: 0;
  overflow: hidden;
  position: absolute;
  width: 1px;
}

.appointment-photo-picker .btn {
  align-items: center;
  display: inline-flex;
  gap: .45rem;
  min-height: 42px;
}

.appointment-photo-picker .appointment-photo-selected {
  background: #27604f;
  border-color: #27604f;
  color: #fff;
}

.appointment-photo-selection-status {
  background: #f8f9fa;
  border: 1px solid #d8e1e5;
  border-radius: 999px;
  color: #5f6f7a;
  display: inline-flex;
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.25;
  max-width: 100%;
  padding: .45rem .75rem;
}

.appointment-photo-selection-status.has-photos {
  background: #e8f5ee;
  border-color: #27604f;
  color: #1f4d3f;
}

.appointment-photo-selection-status.has-error,
.appointment-window-booked,
select option.appointment-window-booked {
  color: #b42318;
  font-weight: 700;
}

.appointment-photo-selection-status.has-error {
  background: #fff3f3;
  border-color: #b42318;
}

@media (min-width: 992px) {
  .portal-estimate-panel {
    position: sticky;
    top: 110px;
  }
}

@media (max-width: 575.98px) {
  .portal-report-item,
  .portal-tenant-row,
  .portal-tenant-manager-header {
    align-items: flex-start;
    flex-direction: column;
  }
}
