html,
body {
  height: 100%;
}
body {
  /* make page a flex column */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.page-main {
  /* the middle content should take remaining space */
  flex: 1 0 auto;
}
.app-body {
  flex: 1 0 auto;
  background-color: #ededed;
  color: #000000;
  font-family: 'Segoe UI', sans-serif;
  min-height: 100vh;
}
.custom-form-wrapper {
  background-color: #ffffff;
}
.validation-message {
  color: red;
}
input.invalid,
select.invalid,
textarea.invalid {
  border: 1px solid red;
}
.layout-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: row;
  gap: 1rem;
}
.sidebar {
  background-color: #ffffff;
  padding: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  flex: 0 0 250px;
}
.sidebar .nav-link {
  color: #333;
  margin-bottom: 0.5rem;
  border-radius: 0.375rem;
  transition: background-color 0.2s;
}
.sidebar .nav-link:hover,
.sidebar .nav-link.active {
  background-color: #f1f3f5;
  color: #000;
}
.main-content {
  background-color: #ffffff;
  flex-grow: 1;
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}
@media (min-width: 1400px) {
  .container,
  .container-lg,
  .container-md,
  .container-sm,
  .container-xl,
  .container-xxl {
    max-width: 1600px !important;
  }
}
@media (max-width: 768px) {
  .layout-wrapper {
    flex-direction: column;
  }
  .sidebar,
  .main-content {
    width: 100%;
  }
}
.legend-block {
  position: relative;
  padding-top: 1.5rem;
  border: 1px solid #dee2e6;
  border-radius: 0.375rem;
}
.legend-title {
  position: absolute;
  top: 0;
  left: 1rem;
  transform: translateY(-50%);
  background-color: #fff;
  padding: 0 0.5rem;
  font-weight: 500;
  font-size: 1rem;
  color: #495057;
}
.bg-yellow {
  background-color: #ffff00;
}
/* Brand w/ logo */
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.brand-logo {
  height: 42px;
  width: 42px;
  object-fit: contain;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 2px #fff, 0 2px 8px rgba(0, 0, 0, 0.12);
}
.brand-copy {
  line-height: 1.1;
}
.brand-copy .title {
  font-weight: 700;
  color: var(--mud-palette-text-primary);
}
.brand-copy .subtitle {
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--mud-palette-text-secondary);
  white-space: nowrap;
}
/* Optional: make navbar a bit crisper */
.navbar {
  border-bottom: 1px solid var(--mud-palette-divider);
}
.app-footer {
  background-color: var(--mud-palette-background-gray);
  color: var(--mud-palette-text-secondary);
  font-size: 0.875rem;
  margin-top: 3rem;
  border-top: 1px solid var(--mud-palette-divider);
  flex: 0 0 auto;
  margin-top: auto;
}
.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}
.footer-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.footer-logo {
  height: 40px;
  width: 40px;
  border-radius: 50%;
  object-fit: contain;
  background: #fff;
  box-shadow: 0 0 0 2px #fff, 0 2px 8px rgba(0, 0, 0, 0.12);
}
.footer-right a {
  color: var(--mud-palette-text-secondary);
  text-decoration: none;
  margin-left: 1rem;
  transition: color 0.2s ease;
}
.footer-right a:hover {
  color: var(--mud-palette-primary);
}
.footer-bottom {
  text-align: center;
  padding: 0.5rem 0;
  background-color: var(--mud-palette-surface);
  border-top: 1px solid var(--mud-palette-divider);
  font-size: 0.75rem;
}
@media (max-width: 576px) {
  .footer-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .footer-right a {
    margin-left: 0;
    margin-right: 1rem;
  }
}
.permit-tables-container table {
  border-collapse: collapse;
  width: 100%;
}
.permit-tables-container table,
.permit-tables-container th,
.permit-tables-container td {
  border: 1px solid #dee2e6;
}
.permit-tables-container th,
.permit-tables-container td {
  padding: 0.75rem;
  vertical-align: top;
}
.table-no-border table {
  border-collapse: collapse;
  width: 100%;
}
.table-no-border table,
.table-no-border th,
.table-no-border td {
  border: 0;
}
.table-no-border th,
.table-no-border td {
  padding: 0.75rem;
  vertical-align: top;
}
.autocomplete-row {
  display: flex;
  width: 100%;
  font-size: 12px;
}
.autocomplete-row .grid-cell {
  flex: 1;
  border: 1px solid #dee2e6;
  padding: 12px;
  text-align: center;
}
.mud-popover:has(.autocomplete-row) .mud-list {
  padding: 0;
}
.mud-popover:has(.autocomplete-row) .mud-list .mud-list-item {
  padding: 0;
  background-color: #f1f1f1 !important;
}
.mud-popover:has(.autocomplete-row) .mud-list .mud-list-item .mud-list-item-text {
  padding: 0;
  margin: 0;
}
.mud-popover:has(.autocomplete-row) .mud-list .mud-list-item:nth-child(even) {
  background-color: #fff !important;
  margin: 0;
}
.mud-input-label {
  line-height: unset !important;
}
.mud-tabs-panels {
  padding: 15px;
}
@media (min-width: 992px) {
  .col-form-label {
    text-align: right;
  }
}
.w-70 {
  width: 70%;
}
.w-100px {
  width: 100px;
}
.w-65px {
  width: 65px;
}
.form-small-text {
  font-size: 0.8rem;
}
.form-extra-small-text {
  font-size: 0.5rem;
}
.table-bordered th,
.table-bordered td {
  border: 1px solid #dee2e6 !important;
}
.table-padding th,
.table-padding td {
  padding: 2px;
}
.table-bordered-black th,
.table-bordered-black td {
  border: 1px solid #000000 !important;
}
.bg-lightgrey {
  background-color: #efefef;
}
.font-blue {
  color: blue;
}
.even-row {
  background-color: white;
}
.odd-row {
  background-color: #dbe9f4;
}
.max-100-container {
  max-width: 100%;
  overflow-x: auto;
  display: block;
}
.full-height {
  height: calc(100vh - 64px);
  /* adjust if navbar height differs */
}
.w-200px {
  min-width: 250px !important;
}
.small-grid {
  font-size: 0.7rem;
}
.small-grid .mud-table-cell,
.small-grid .mud-table-header,
.small-grid .mud-table-row {
  font-size: 0.7rem;
  padding: 4px 4px !important;
  margin: 0 !important;
}
.small-grid .mud-table {
  border-spacing: 0 2px;
}
.bordered-grid .mud-table {
  border: 1px solid #ccc;
  border-collapse: collapse;
}
.bordered-grid .mud-table-row {
  border-bottom: 1px solid #ccc;
}
.bordered-grid .mud-table-row:last-child {
  border-bottom: none;
}
.bordered-grid .mud-table-cell,
.bordered-grid .mud-table-header {
  border: 1px solid #ccc;
  padding: 4px 8px;
}
.small-blue-text {
  color: blue;
  font-size: 0.5rem;
}
.min-width-80px {
  min-width: 80px !important;
}
.min-width-100px {
  min-width: 100px !important;
}
.eighty_percent {
  width: 80% !important;
}
.bg-alice-blue {
  background-color: aliceblue;
}
.w-30 {
  width: 30%;
}
.w-10 {
  width: 10%;
}
.yellow-back {
  background-color: yellow;
}
.text-orange {
  color: orangered;
}
table.equal-columns {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  /* This makes all columns equal width */
}
table.equal-columns td,
table.equal-columns th {
  border: 1px solid #000;
  padding: 4px;
  text-align: center;
}
.permit-card {
  max-width: 700px;
  margin: 3rem auto;
  border-radius: 1rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}
.permit-header {
  background-color: #0d6efd;
  color: white;
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
  padding: 1.5rem;
  text-align: center;
}
.permit-field-label {
  font-weight: 600;
  color: #495057;
}
.qr-section img {
  width: 140px;
  height: 140px;
}
#components-reconnect-modal {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
/* Invisible full-page blocker while disconnected */
html.blazor-disconnected::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  background: transparent;
  pointer-events: all;
}
