﻿html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

html {
  position: relative;
  min-height: 100%;
}

body {
  background: #f5f6f8;
  color: #1f2933;
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
  min-height: 100vh;
}

a {
  color: #111;
}

.app-main {
  padding-top: 1.25rem;
}

body > .container {
  flex: 1 0 auto;
}

.navbar {
  background: #ffffff !important;
}

.navbar > .container,
.navbar > .container-fluid {
  flex-wrap: nowrap;
  gap: .5rem;
}

.navbar-brand {
  font-weight: 700;
  letter-spacing: 0;
}

.app-brand {
  align-items: center;
  display: inline-flex;
  gap: .75rem;
  min-width: 0;
  max-width: calc(100vw - 5.25rem);
}

.app-brand-logo {
  display: block;
  flex: 0 0 auto;
  height: 2.2rem;
  object-fit: contain;
  width: auto;
}

.app-brand-text {
  display: flex;
  flex-direction: column;
  gap: .08rem;
  line-height: 1.15;
  min-width: 0;
}

.app-brand-title {
  font-size: 1rem;
  font-weight: 800;
  white-space: nowrap;
}

.app-brand-title-mobile {
  display: none;
}

.app-brand-subtitle {
  color: #667085;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: 0;
  white-space: nowrap;
}

.navbar .nav-link {
  border-radius: .25rem;
  font-weight: 500;
  padding-left: .7rem !important;
  padding-right: .7rem !important;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
  background: #f1f3f5;
  color: #111827 !important;
}

.navbar .nav-link-accent {
  background: var(--brand-main);
  color: #111827 !important;
  font-weight: 800;
  margin-left: .25rem;
  margin-right: .25rem;
}

.navbar .nav-link-accent + .nav-link-accent {
  margin-left: .5rem;
}


.navbar .nav-link-accent:hover,
.navbar .nav-link-accent:focus {
  background: #e89800;
  color: #111827 !important;
}

@media (max-width: 575.98px) {
  .navbar > .container,
  .navbar > .container-fluid {
    align-items: center;
    flex-wrap: wrap;
  }

  .navbar-collapse {
    flex-basis: 100%;
    order: 3;
  }

  .app-brand {
    gap: .55rem;
  }

  .app-brand-logo {
    height: 1.85rem;
  }

  .app-brand-title-desktop,
  .app-brand-subtitle {
    display: none;
  }

  .app-brand-title-mobile {
    display: block;
    font-size: .96rem;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .navbar-toggler {
    flex: 0 0 auto;
    margin-left: auto;
  }
}

.page-shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.5rem 0 2.5rem;
}

.page-shell-narrow {
  max-width: 780px;
}

.page-shell-wide {
  max-width: 1400px;
}

.page-hero {
  background: #fff;
  border: 1px solid rgb(205, 205, 205);
  border-radius: .75rem;
  box-shadow: none;
  padding: 1.5rem;
}

.page-hero h1 {
  font-size: 1.65rem;
  line-height: 1.3;
  letter-spacing: 0;
}

.hero-kicker {
  color: #667085;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: .35rem;
}

.page-heading {
  margin-bottom: 1.5rem;
}

.page-heading h1,
.page-heading h2 {
  font-weight: 700;
  letter-spacing: 0;
  margin-bottom: .4rem;
}

.section-title {
  align-items: center;
  display: flex;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: .75rem;
  padding-bottom: .45rem;
  border-bottom: 1px solid rgb(205, 205, 205);
}

.section-title::before {
  content: none;
}

.info-card,
.step-card {
  background: #fff;
  border: 1px solid rgb(205, 205, 205);
  border-radius: .25rem;
  box-shadow: none;
}

.step-card {
  height: 100%;
  padding: 1rem;
}

.step-number {
  align-items: center;
  background: #f1f3f5;
  border: 1px solid rgb(205, 205, 205);
  border-radius: .25rem;
  color: #344054;
  display: inline-flex;
  font-size: .78rem;
  font-weight: 800;
  height: 1.55rem;
  justify-content: center;
  margin-bottom: .65rem;
  min-width: 1.55rem;
  padding: 0 .45rem;
}

.action-strip {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
}

.action-strip-split {
  justify-content: space-between;
}

.status-list {
  display: flex;
  flex-direction: column;
  gap: .7rem;
}

.status-list-row {
  align-items: center;
  background: #fff;
  border: 1px solid rgb(205, 205, 205);
  border-radius: .25rem;
  display: flex;
  justify-content: space-between;
  padding: .75rem .85rem;
}

.card {
  border: 1px solid rgb(205, 205, 205);
  border-radius: .25rem;
  box-shadow: none !important;
}

.card-header {
  background: #f8fafc;
  border-bottom: 1px solid rgb(205, 205, 205);
  border-radius: .25rem .25rem 0 0 !important;
  color: #172033;
  padding: .9rem 1.05rem;
}

.card-header.bg-dark {
  background: #d1d1d1 !important;
  color: #111827 !important;
}

.card-body {
  padding: 1.2rem;
}

.form-label {
  color: #26364f;
  font-weight: 700;
}

.form-control,
.form-select {
  border-color: rgb(205, 205, 205);
  border-radius: .25rem;
  min-height: 2.7rem;
}

.form-control:focus,
.form-select:focus {
  border-color: #2f78c4;
  box-shadow: 0 0 0 .2rem rgba(47, 120, 196, .16);
}

.btn {
  border-radius: .25rem;
  font-weight: 600;
}

.btn-dark {
  background: #ffa600;
  border-color: #ffa600;
  color: #111827;
}

.btn-dark:hover,
.btn-dark:focus {
  background: #e89800;
  border-color: #e89800;
  color: #111827;
}

.btn-outline-dark {
  border-color: #17324d;
  color: #17324d;
}

.btn-outline-dark:hover,
.btn-outline-dark:focus {
  background: #17324d;
  border-color: #17324d;
}

.table {
  color: #172033;
}

.table thead th {
  background: #f5f8fb;
  border-bottom-color: rgb(205, 205, 205);
  color: #41516a;
  font-size: .86rem;
  font-weight: 800;
}

.table > :not(caption) > * > * {
  border-bottom-color: rgb(205, 205, 205);
  padding: .75rem;
}

.table-hover tbody tr:hover {
  background: #f8fbff;
}

.alert {
  border-radius: .25rem;
}

.badge.status-badge {
  border-radius: .25rem;
  font-weight: 600;
  letter-spacing: 0;
  padding: .42rem .65rem;
}

.badge.status-request {
  background-color: #fff6e2 !important;
  color: #7a4f00 !important;
}

.badge.status-pending {
  background-color: #ffa600 !important;
  color: #212529 !important;
}

.badge.status-approved {
  background-color: #198754 !important;
  color: #fff !important;
}

.badge.status-rejected {
  background-color: #dc3545 !important;
  color: #fff !important;
}

.badge.status-cancelled,
.badge.status-unknown {
  background-color: #6c757d !important;
  color: #fff !important;
}

.portal-page {
  padding: 2.25rem 0 3rem;
}

.landing-shell {
  max-width: 1180px;
  margin: 0 auto;
}

.landing-hero {
  background: #fff;
  border: 1px solid rgb(205, 205, 205);
  border-radius: .75rem;
  box-shadow: 0 6px 18px rgba(31, 41, 55, .07);
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
  padding: 2rem;
}

.landing-eyebrow {
  color: #2563eb;
  font-size: .86rem;
  font-weight: 700;
  margin-bottom: .6rem;
}

.landing-title {
  font-size: clamp(1.9rem, 3vw, 2.7rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.25;
  margin-bottom: .8rem;
}

.landing-summary {
  color: #667085;
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1.4rem;
}

.landing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}

.landing-panel {
  background: #fff;
  border: 1px solid rgb(205, 205, 205);
  border-radius: .65rem;
  overflow: hidden;
}

.landing-panel-header {
  align-items: center;
  background: #f8fafc;
  border-bottom: 1px solid rgb(205, 205, 205);
  display: flex;
  font-weight: 800;
  justify-content: space-between;
  padding: .85rem 1rem;
}

.landing-panel-body {
  padding: 1rem;
}

.quick-menu {
  display: grid;
  gap: .75rem;
}

.quick-menu-item {
  align-items: center;
  border: 1px solid rgb(205, 205, 205);
  border-radius: .5rem;
  color: #111827;
  display: flex;
  gap: .8rem;
  padding: .85rem;
  text-decoration: none;
}

.quick-menu-item:hover {
  background: #f8fafc;
  color: #111827;
}

.quick-menu-icon {
  align-items: center;
  background: #edf4ff;
  border-radius: .45rem;
  color: #1d5fa7;
  display: inline-flex;
  flex: 0 0 auto;
  height: 2.25rem;
  justify-content: center;
  width: 2.25rem;
}

.quick-menu-icon svg {
  height: 1.25rem;
  width: 1.25rem;
}

.quick-menu-title {
  display: block;
  font-weight: 800;
  line-height: 1.3;
}

.quick-menu-text {
  color: #667085;
  display: block;
  font-size: .88rem;
  margin-top: .2rem;
}

.landing-section {
  margin-top: 1.25rem;
}

.landing-section-title {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: .75rem;
}

.flow-strip {
  align-items: center;
  background: #fff;
  border: 1px solid rgb(205, 205, 205);
  border-radius: .75rem;
  box-shadow: 0 4px 14px rgba(31, 41, 55, .05);
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr auto 1fr;
  padding: 1.15rem;
}

.flow-strip-four {
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
}

.flow-step {
  align-items: center;
  color: #111827;
  display: flex;
  flex-direction: column;
  font-size: .9rem;
  font-weight: 700;
  gap: .45rem;
  text-align: center;
}

.flow-step svg {
  color: #49515a;
  height: 2.1rem;
  stroke-width: 1.7;
  width: 2.1rem;
}

.flow-arrow {
  color: #cfd6df;
  font-size: 1.8rem;
  line-height: 1;
  place-self: center;
}

.notice-list {
  color: #475467;
  margin: 0;
  padding-left: 1.1rem;
}

.notice-list li + li {
  margin-top: .45rem;
}

.internal-landing-actions {
  display: grid;
  gap: .75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.footer {
  background: #fff;
  flex-shrink: 0;
}

.entry-page {
  padding: 2.5rem 0 3.5rem;
}

.entry-shell {
  margin: 0 auto;
  max-width: 1120px;
}

.entry-hero {
  background: #fff;
  border: 1px solid rgb(205, 205, 205);
  border-left: 6px solid #ffa600;
  border-radius: .9rem;
  color: #111827;
  box-shadow: 0 8px 18px rgba(31, 41, 55, .07);
  overflow: hidden;
  padding: 1.75rem 2rem;
  position: relative;
}

.entry-hero::after {
  display: none;
}

.entry-hero-content {
  align-items: center;
  display: flex;
  gap: 1.5rem;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.entry-eyebrow {
  color: #ffa600;
  font-size: .9rem;
  font-weight: 700;
  margin-bottom: .35rem;
}

.entry-title {
  font-size: clamp(1.65rem, 2.8vw, 2.4rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.25;
  margin: 0;
}

.entry-copy {
  color: #4b5563;
  margin: .7rem 0 0;
}

.entry-hero-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: .6rem;
  justify-content: flex-end;
}

.entry-hero .btn-light {
  color: #1b1b1b;
  font-weight: 800;
}

.entry-grid {
  align-items: start;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1.2fr .8fr;
  margin-top: 1rem;
}

.entry-grid-balanced {
  align-items: stretch;
}

.entry-grid-balanced > .entry-card {
  height: 100%;
}

.entry-card {
  background: #fff;
  border: 1px solid rgb(205, 205, 205);
  border-radius: .8rem;
  box-shadow: 0 8px 18px rgba(31, 41, 55, .07);
}

.entry-card-header {
  align-items: center;
  border-bottom: 1px solid rgb(205, 205, 205);
  display: flex;
  font-weight: 800;
  justify-content: space-between;
  padding: 1rem 1.15rem;
}

.entry-card-body {
  padding: 1.15rem;
}

.entry-tiles {
  display: grid;
  gap: .9rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.entry-tiles-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.entry-tile {
  background: #fff;
  border: 1px solid rgb(205, 205, 205);
  border-radius: .7rem;
  color: #111827;
  display: block;
  min-height: 9rem;
  overflow: hidden;
  padding: 1.15rem;
  position: relative;
  text-decoration: none;
}

.entry-tile:hover {
  border-color: #ffa600;
  border-width: 2px;
  box-shadow: 0 8px 18px rgba(31, 41, 55, .08);
  color: #111827;
}

.entry-tile-primary {
  background: #d1d1d1;
  border-color: #ffa600;
  border-width: 2px;
  color: #111827;
}

.entry-tile-primary:hover {
  color: #111827;
}

.entry-tile-title {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: .45rem;
}

.entry-tile-text {
  color: #667085;
  display: block;
  font-size: .92rem;
  line-height: 1.55;
}

.entry-tile-primary .entry-tile-text {
  color: #25364d;
}

.entry-tile-icon {
  bottom: .8rem;
  color: rgba(255, 166, 0, .48);
  height: 3.7rem;
  position: absolute;
  right: .8rem;
  stroke-width: 1.85;
  width: 3.7rem;
}

.entry-tile-primary .entry-tile-icon {
  color: rgba(255, 166, 0, .9);
  stroke-width: 2.1;
}

.entry-flow {
  align-items: stretch;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.entry-flow-four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.entry-flow-step {
  align-items: center;
  border-right: 1px solid rgb(205, 205, 205);
  display: flex;
  flex-direction: column;
  gap: .55rem;
  min-height: 7.2rem;
  padding: 1rem .5rem;
  position: relative;
  text-align: center;
}

.entry-flow-step:last-child {
  border-right: 0;
}

.entry-flow-step:not(:last-child)::after {
  color: #bcc6d1;
  content: "›";
  font-size: 1.8rem;
  position: absolute;
  right: -.35rem;
  top: 50%;
  transform: translateY(-50%);
}

.entry-flow-step svg {
  color: #ffa600;
  height: 2.2rem;
  stroke-width: 1.7;
  width: 2.2rem;
}

.entry-flow-step span {
  font-size: .92rem;
  font-weight: 800;
}

.entry-notice {
  color: #475467;
  line-height: 1.65;
  margin: 0;
  padding-left: 1rem;
}

.entry-notice li + li {
  margin-top: .35rem;
}

.entry-subsection {
  border-top: 1px solid rgb(205, 205, 205);
  margin-top: 1rem;
  padding-top: 1rem;
}

.entry-subsection-title {
  color: #172033;
  font-size: .98rem;
  font-weight: 800;
  margin-bottom: .7rem;
}

.guide-list {
  display: flex;
  flex-direction: column;
  gap: .65rem;
}

.guide-item {
  border-bottom: 1px solid rgb(205, 205, 205);
  color: #475467;
  display: grid;
  gap: .2rem;
  font-size: .95rem;
  line-height: 1.42;
  padding-bottom: .6rem;
}

.guide-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.guide-item strong {
  align-items: center;
  color: #172033;
  display: inline-flex;
  font-size: .95rem;
  gap: .4rem;
}

.guide-icon {
  align-items: center;
  color: #ffa600;
  display: inline-flex;
  flex: 0 0 auto;
  height: 1.05rem;
  position: relative;
  top: -.08rem;
  width: 1.05rem;
}

.guide-icon svg {
  height: 100%;
  stroke-width: 3;
  width: 100%;
}

.guide-item span {
  display: block;
}

.location-list {
  display: grid;
  gap: .85rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.location-list-compact {
  gap: .75rem;
}

.location-item {
  background: #fff;
  border: 1px solid rgb(205, 205, 205);
  border-radius: .7rem;
  display: grid;
  gap: .35rem;
  min-height: 4.7rem;
  padding: .9rem 1rem;
}

.location-item strong {
  color: #172033;
  font-size: 1rem;
}

.location-item span {
  color: #667085;
  line-height: 1.45;
}

.location-groups {
  column-gap: 1.4rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  row-gap: .9rem;
}

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

.location-group {
  border-top: 1px solid rgb(205, 205, 205);
  padding-top: .65rem;
}

.location-group strong {
  color: #172033;
  display: block;
  font-size: .92rem;
  margin-bottom: .35rem;
}

.location-group ul {
  display: grid;
  gap: .28rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.location-group li {
  color: #667085;
  display: grid;
  font-size: .83rem;
  gap: .15rem;
  grid-template-columns: 5.2rem minmax(0, 1fr);
  line-height: 1.35;
}

.location-group li span {
  color: #263548;
  font-weight: 700;
}

.location-group li em {
  font-style: normal;
}

.location-group-stacked {
  border-left: 0;
  border-top: 0;
  padding: .15rem 0 .45rem;
}

.location-group-stacked + .location-group-stacked {
  border-top: 1px solid rgb(205, 205, 205);
  padding-top: .75rem;
}

.location-group-stacked strong {
  align-items: center;
  color: #111827;
  display: inline-flex;
  font-size: .95rem;
  gap: .4rem;
  margin-bottom: .5rem;
  padding-left: 1.2rem;
  position: relative;
}

.location-group-stacked strong::before {
  border: 2px solid #ffa600;
  border-radius: 50% 50% 50% 0;
  content: "";
  height: .78rem;
  left: .05rem;
  position: absolute;
  top: .12rem;
  transform: rotate(-45deg);
  width: .78rem;
}

.location-group-stacked strong::after {
  background: #ffa600;
  border-radius: 50%;
  content: "";
  height: .22rem;
  left: .33rem;
  position: absolute;
  top: .4rem;
  width: .22rem;
}

.location-group-stacked ul {
  gap: .55rem;
}

.location-group-stacked li {
  display: grid;
  gap: .15rem;
  grid-template-columns: 5.6rem minmax(0, 1fr);
}

.location-group-stacked li span {
  font-weight: 800;
}

.location-group-stacked li em {
  line-height: 1.45;
}

.location-records {
  display: grid;
  gap: .65rem;
}

.location-record {
  border-left: 4px solid #ffa600;
  display: grid;
  gap: .12rem;
  padding: .2rem 0 .2rem .75rem;
}

.location-record strong {
  color: #202833;
  font-size: .78rem;
  font-weight: 800;
}

.location-record span {
  color: #111827;
  font-size: .95rem;
  font-weight: 800;
}

.location-record em {
  color: #667085;
  font-size: .82rem;
  font-style: normal;
  line-height: 1.35;
}

.entry-side-list {
  display: flex;
  flex-direction: column;
  gap: .7rem;
}

.entry-side-item {
  align-items: flex-start;
  border: 1px solid rgb(205, 205, 205);
  border-radius: .65rem;
  display: flex;
  gap: .75rem;
  padding: .9rem;
}

.entry-side-item svg {
  color: #ffa600;
  flex: 0 0 auto;
  height: 1.45rem;
  margin-top: .1rem;
  stroke-width: 1.8;
  width: 1.45rem;
}

@media (max-width: 991.98px) {
  .landing-hero {
    gap: 2rem;
    grid-template-columns: 1fr;
  }

  .entry-hero-content,
  .entry-grid {
    grid-template-columns: 1fr;
  }

  .entry-hero-content {
    align-items: flex-start;
    flex-direction: column;
  }

  .entry-hero-actions {
    justify-content: flex-start;
  }

  .entry-grid,
  .entry-tiles,
  .location-list {
    grid-template-columns: 1fr;
  }

  .location-group-stacked li {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575.98px) {
  .page-shell {
    padding: 1rem 0 2rem;
  }

  .page-hero {
    border-radius: .8rem;
  }

  .action-strip .btn {
    width: 100%;
  }

  .portal-page {
    padding-top: 1.5rem;
  }

  .flow-strip,
  .flow-strip-four,
  .internal-landing-actions {
    grid-template-columns: 1fr;
  }

  .flow-arrow {
    transform: rotate(90deg);
  }

  .entry-page {
    padding-top: 1rem;
  }

  .entry-hero {
    border-radius: .7rem;
    padding: 1.35rem;
  }

  .entry-flow,
  .entry-flow-four {
    grid-template-columns: 1fr;
  }

  .entry-flow-step {
    border-bottom: 1px solid rgb(205, 205, 205);
    border-right: 0;
  }

  .entry-flow-step:not(:last-child)::after {
    bottom: -.95rem;
    right: 50%;
    top: auto;
    transform: translateX(50%) rotate(90deg);
  }
}

/* Unified page tone for visitor, approval, and guard screens */
:root {
  --brand-blue: #d1d1d1;
  --brand-blue-dark: #bdbdbd;
  --brand-blue-soft: #f1f3f5;
  --brand-main: #ffa600;
  --brand-border: rgb(180, 180, 180);
  --brand-text: #172033;
  --brand-muted: #667085;
}

body {
  background: #f5f6f8;
  color: var(--brand-text);
}

.app-main {
  padding-top: 1.5rem;
}

.page-shell {
  padding: 1.35rem 0 3rem;
}

.page-shell-narrow {
  max-width: 980px;
}

.page-heading {
  background: #fff;
  border: 1px solid var(--brand-border);
  border-left: 5px solid var(--brand-main);
  border-radius: .85rem;
  box-shadow: 0 8px 20px rgba(31, 41, 55, .05);
  margin-bottom: 1.25rem;
  padding: 1.25rem 1.45rem;
}

.page-heading h1,
.page-heading h2 {
  color: #101828;
  font-size: clamp(1.45rem, 2.2vw, 1.9rem);
  letter-spacing: 0;
}

.page-heading .text-muted,
.page-heading p,
.page-heading div {
  color: var(--brand-muted);
}

.card {
  border-color: var(--brand-border);
  border-radius: .85rem;
  box-shadow: 0 8px 20px rgba(31, 41, 55, .05) !important;
  overflow: hidden;
}

.card-header {
  background: #f8fafc;
  border-bottom-color: rgb(205, 205, 205);
  border-radius: 0 !important;
  color: var(--brand-text);
  font-weight: 800;
  padding: 1rem 1.15rem;
}

.card-header.bg-dark {
  background: #f8fafc !important;
  color: var(--brand-text) !important;
  border-bottom-color: rgb(205, 205, 205) !important;
  border-left: 0;
}

.card-header.bg-dark.text-white,
.card-header.bg-dark .text-white,
.card-header.bg-dark .text-white-50,
.card-header.bg-dark .selected-date {
  color: #111827 !important;
  opacity: 1 !important;
}

.card-body {
  padding: 1.35rem;
}

.form-label {
  color: #25364d;
  font-size: .92rem;
  font-weight: 800;
}

.form-control,
.form-select {
  border-color: rgb(205, 205, 205);
  border-radius: .65rem;
  min-height: 3rem;
}

.form-control::placeholder {
  color: #98a2b3;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--brand-main);
  box-shadow: 0 0 0 .18rem rgba(255, 166, 0, .2);
}

.input-group .form-control:first-child {
  border-bottom-left-radius: .65rem;
  border-top-left-radius: .65rem;
}

.input-group .btn:last-child {
  border-bottom-right-radius: .65rem;
  border-top-right-radius: .65rem;
}

.btn {
  align-items: center;
  border-radius: .55rem;
  display: inline-flex;
  justify-content: center;
  line-height: 1.15;
  min-height: 2.65rem;
  padding-left: 1.05rem;
  padding-right: 1.05rem;
  text-align: center;
  white-space: nowrap;
}

.btn-sm {
  min-height: 2.25rem;
  padding: .35rem .75rem;
}

.btn-dark,
.btn-primary {
  background: var(--brand-main);
  border-color: var(--brand-main);
  color: #111827;
}

.btn-dark:hover,
.btn-dark:focus,
.btn-primary:hover,
.btn-primary:focus {
  background: #e89800;
  border-color: #e89800;
  color: #1b1b1b;
}

.btn-outline-dark,
.btn-outline-primary {
  border-color: #6b7280;
  color: #25364d;
}

.btn-outline-dark:hover,
.btn-outline-dark:focus,
.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background: var(--brand-main);
  border-color: var(--brand-main);
  color: #1b1b1b;
}

.bg-secondary {
  background-color: #f1f3f5 !important;
  color: #111827 !important;
}

.table {
  margin-bottom: 0;
}

.table thead th {
  background: #f4f8fc;
  border-bottom-color: rgb(205, 205, 205);
  color: #2d4058;
}

.table > :not(caption) > * > * {
  padding: .82rem .75rem;
}

.modal-content {
  border: 1px solid var(--brand-border);
  border-radius: .9rem;
  box-shadow: 0 18px 48px rgba(15, 35, 55, .18);
}

.modal-header {
  border-bottom-color: rgb(205, 205, 205);
}

.modal-footer {
  border-top-color: rgb(205, 205, 205);
}

.alert {
  border-radius: .65rem;
}

.required-consent-box {
  background: #fff5f5 !important;
  border: 2px solid #dc3545 !important;
  border-radius: .75rem !important;
}

.required-consent-box .form-check-label {
  color: var(--brand-text);
}

.submit-visit-btn {
  background: var(--brand-main);
  border-color: var(--brand-main);
  color: #111827;
  font-weight: 800;
}

.submit-visit-btn:hover,
.submit-visit-btn:focus {
  background: #e89800;
  border-color: #e89800;
  color: #111827;
}

.submit-visit-btn.is-ready {
  background: var(--brand-main);
  border-color: var(--brand-main);
  color: #111827;
}

.submit-visit-btn.is-ready:hover,
.submit-visit-btn.is-ready:focus {
  background: #e89800;
  border-color: #e89800;
  color: #111827;
}

.device-email-panel,
.device-item,
#nextApproverPanel {
  border-color: var(--brand-border) !important;
  border-radius: .75rem !important;
}

.device-email-panel.required {
  background: #fffaf0 !important;
  border-color: #e4b85c !important;
}

.application-steps {
  background: #fff;
  border: 1px solid var(--brand-border);
  border-radius: .85rem;
  box-shadow: 0 8px 20px rgba(31, 41, 55, .04);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
}

.application-step {
  align-items: center;
  color: #667085;
  display: flex;
  font-size: .95rem;
  font-weight: 800;
  justify-content: center;
  min-height: 3.4rem;
  position: relative;
  text-align: center;
}

.application-step + .application-step {
  border-left: 1px solid rgb(205, 205, 205);
}

.application-step.is-done {
  background: #f1f3f5;
  color: #667085;
}

.application-step.is-active {
  background: #ffa600;
  color: #111827;
}

.completion-mark {
  background: var(--brand-main) !important;
  color: #111827 !important;
  box-shadow: 0 10px 20px rgba(255, 166, 0, .22);
}

.guard-shell .guard-chip {
  border-color: var(--brand-border);
}

.guard-shell .guard-chip-device {
  background: #eef5fb;
  border-color: #9bb8d4;
  color: #0f4778;
}

.table-responsive {
  overflow-x: auto;
}

.table-responsive > .table {
  min-width: 100%;
  width: max-content;
}

.table th,
.table td,
.table td .small,
.badge.status-badge {
  white-space: nowrap;
}

.table td {
  vertical-align: middle;
}

.table .btn,
.table .btn-sm {
  align-items: center;
  display: inline-flex;
  justify-content: center;
  line-height: 1.15;
  text-align: center;
  white-space: nowrap;
}

.table .btn-sm {
  min-height: 2.25rem;
  padding: .35rem .8rem;
}

.table td.text-end {
  min-width: 8.5rem;
  white-space: nowrap;
}

.table td.text-end .d-inline-flex {
  align-items: center;
  flex-wrap: nowrap;
  justify-content: flex-end;
}

.table .cancel-approval-form {
  display: inline-flex !important;
  margin: 0;
}

.table .cancel-approval-form .btn {
  min-width: 7.5rem;
}

.guard-table {
  min-width: 1080px;
}

.guard-table th,
.guard-table td {
  white-space: nowrap;
}

.guard-table .guard-chip-row {
  flex-wrap: nowrap;
}

.guard-detail-btn {
  min-width: 4rem;
}

.terms-table-wrap > .terms-table {
  min-width: 760px;
  width: 100%;
}

.terms-table th,
.terms-table td {
  white-space: nowrap;
}

.terms-table .terms-title-cell {
  font-weight: 700;
  min-width: 18rem;
}

.terms-table .terms-check {
  align-items: center;
  display: inline-flex;
  gap: .45rem;
  margin: 0;
  min-height: 2.25rem;
}

.terms-table .terms-check .form-check-input {
  flex: 0 0 auto;
  margin: 0;
}

.terms-table .terms-check .form-check-label {
  color: #344054;
}

.agreement-summary-wrap > .agreement-summary-table {
  min-width: 720px;
  width: 100%;
}

.agreement-summary-table th,
.agreement-summary-table td {
  white-space: nowrap;
}

.agreement-summary-table .agreement-title-cell {
  font-weight: 700;
  min-width: 18rem;
}

.agreement-status-chip {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 999px;
  display: inline-flex;
  font-size: .82rem;
  font-weight: 800;
  justify-content: center;
  line-height: 1;
  min-height: 1.65rem;
  padding: .35rem .7rem;
  white-space: nowrap;
}

.agreement-status-yes {
  background: #e9f7ef;
  border-color: #b9e4ca;
  color: #146c43;
}

.agreement-status-no {
  background: #fff1f1;
  border-color: #f0b8bd;
  color: #b02a37;
}

.leader-list-table-wrap {
  overflow: visible;
  width: 100%;
}

.leader-list-table {
  table-layout: fixed;
  width: 100%;
}

.leader-list-table th:nth-child(1),
.leader-list-table td:nth-child(1) {
  overflow: visible;
  width: 14%;
}

.leader-list-table th:nth-child(2),
.leader-list-table td:nth-child(2) {
  width: 16%;
}

.leader-list-table th:nth-child(3),
.leader-list-table td:nth-child(3) {
  width: 20%;
}

.leader-list-table th:nth-child(4),
.leader-list-table td:nth-child(4) {
  width: 9%;
}

.leader-list-table th:nth-child(5),
.leader-list-table td:nth-child(5) {
  width: 10%;
}

.leader-list-table th:nth-child(6),
.leader-list-table td:nth-child(6) {
  width: 14%;
}

.leader-list-table th:nth-child(7),
.leader-list-table td:nth-child(7) {
  width: 17%;
}

.leader-list-table td:not(:last-child) {
  overflow: hidden;
  text-overflow: ellipsis;
}

.leader-list-table td:nth-child(6) {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

.leader-list-table td.text-end {
  min-width: 0;
}

.leader-list-table .cancel-approval-form .btn {
  min-width: auto;
}

.leader-list-table .btn-sm {
  padding-left: .65rem;
  padding-right: .65rem;
}

@media (max-width: 575.98px) {
  .page-heading {
    padding: 1.05rem 1.1rem;
  }

  .card-body {
    padding: 1.05rem;
  }

  .application-steps {
    grid-template-columns: 1fr;
  }

  .application-step + .application-step {
    border-left: 0;
    border-top: 1px solid rgb(205, 205, 205);
  }
}

.table-responsive,
.guard-table-wrap,
.leader-list-table-wrap,
.admin-location-table-wrap,
.terms-table-wrap,
.agreement-summary-wrap {
  overflow-x: auto !important;
  overflow-y: hidden;
  padding-bottom: .35rem;
  scrollbar-color: #8a8a8a #e5e7eb;
  scrollbar-width: thin;
}

.table-responsive.is-scrollable,
.guard-table-wrap.is-scrollable,
.leader-list-table-wrap.is-scrollable,
.admin-location-table-wrap.is-scrollable,
.terms-table-wrap.is-scrollable,
.agreement-summary-wrap.is-scrollable {
  cursor: grab;
}

.table-responsive.is-scrollable.is-dragging,
.guard-table-wrap.is-scrollable.is-dragging,
.leader-list-table-wrap.is-scrollable.is-dragging,
.admin-location-table-wrap.is-scrollable.is-dragging,
.terms-table-wrap.is-scrollable.is-dragging,
.agreement-summary-wrap.is-scrollable.is-dragging {
  cursor: grabbing;
  user-select: none;
}

.table-responsive::-webkit-scrollbar,
.guard-table-wrap::-webkit-scrollbar,
.leader-list-table-wrap::-webkit-scrollbar,
.admin-location-table-wrap::-webkit-scrollbar,
.terms-table-wrap::-webkit-scrollbar,
.agreement-summary-wrap::-webkit-scrollbar {
  height: .7rem;
}

.table-responsive::-webkit-scrollbar-track,
.guard-table-wrap::-webkit-scrollbar-track,
.leader-list-table-wrap::-webkit-scrollbar-track,
.admin-location-table-wrap::-webkit-scrollbar-track,
.terms-table-wrap::-webkit-scrollbar-track,
.agreement-summary-wrap::-webkit-scrollbar-track {
  background: #e5e7eb;
  border-radius: 999px;
}

.table-responsive::-webkit-scrollbar-thumb,
.guard-table-wrap::-webkit-scrollbar-thumb,
.leader-list-table-wrap::-webkit-scrollbar-thumb,
.admin-location-table-wrap::-webkit-scrollbar-thumb,
.terms-table-wrap::-webkit-scrollbar-thumb,
.agreement-summary-wrap::-webkit-scrollbar-thumb {
  background: #8a8a8a;
  border-radius: 999px;
}

.table-responsive > .table,
.guard-table-wrap > .table,
.leader-list-table-wrap > .table,
.admin-location-table-wrap > .table,
.terms-table-wrap > .table,
.agreement-summary-wrap > .table {
  width: max-content !important;
  min-width: 100% !important;
  max-width: none !important;
}


