@font-face {
  font-family: "AIT Signer Name";
  src: url("../fonts/SignerName.ttf") format("truetype");
  font-display: swap;
  font-style: italic;
  font-weight: 400 700;
}

:root {
  --ait-primary: #2f6f44;
  --ait-primary-dark: #245737;
  --ait-primary-soft: #eaf4ed;
  --ait-accent: #8fb39b;
  --bs-primary: #2f6f44;
  --bs-primary-rgb: 47, 111, 68;
  --bs-link-color: #2f6f44;
  --bs-link-hover-color: #245737;
}

html,
body {
  min-height: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

.app-body {
  background: linear-gradient(180deg, #f4faf5 0%, #eef5ef 100%);
  color: #24362a;
}

.card,
.table,
.list-group-item,
.dropdown-menu {
  border-color: #dce8de;
}

.card {
  border-radius: .8rem;
}

.card-header.bg-white {
  background: #f9fcf9 !important;
}

.demo-account-box {
  padding: .75rem .85rem;
  border: 1px solid #d8e4db;
  border-radius: .65rem;
  background: #f7fbf8;
}

.demo-account-box summary {
  cursor: pointer;
  color: var(--ait-primary-dark);
}

.table > thead th {
  white-space: nowrap;
  background: #f2f7f3;
}

.alert-info {
  background: #eaf4ed;
  border-color: #cfe2d4;
  color: #234930;
}

.btn-primary,
.bg-primary {
  background-color: var(--ait-primary) !important;
  border-color: var(--ait-primary) !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background-color: var(--ait-primary-dark) !important;
  border-color: var(--ait-primary-dark) !important;
}

.btn-outline-primary {
  color: var(--ait-primary);
  border-color: var(--ait-primary);
}

.btn-outline-primary:hover {
  background: var(--ait-primary);
  border-color: var(--ait-primary);
}

.text-bg-primary {
  background-color: var(--ait-primary) !important;
}

.app-topbar {
  position: sticky;
  top: 0;
  z-index: 1025;
  min-height: 72px;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid #dce8de;
}

.app-topbar > .container-fluid {
  min-height: 72px;
}

.app-menu-button,
.app-icon-button {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ait-primary-soft);
  color: var(--ait-primary-dark);
  font-size: 1.55rem;
  transition: .18s ease;
}

.app-menu-button:hover,
.app-icon-button:hover {
  background: #dbeadf;
  transform: translateY(-1px);
}

.app-header-brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  min-width: 0;
  color: #173d26;
  text-decoration: none;
}

.app-header-brand:hover {
  color: #173d26;
}

.app-brand-logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .18rem .35rem;
  background: #fff;
  border: 1px solid #e3ebe4;
  border-radius: .7rem;
}

.app-brand-logo {
  height: 40px;
  width: auto;
  max-width: 150px;
  display: block;
}

.app-brand-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.05;
}

.app-brand-copy strong {
  font-size: 1.05rem;
}

.app-brand-copy small {
  color: #688071;
  font-size: .7rem;
  white-space: nowrap;
}

.app-user-button {
  border: 0;
  border-radius: 13px;
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .25rem .4rem;
  background: transparent;
  color: #203b29;
}

.app-user-button:hover {
  background: #eef5ef;
}

.app-user-button strong,
.app-user-button small {
  display: block;
  line-height: 1.1;
}

.app-user-button strong {
  font-size: .82rem;
}

.app-user-button small {
  color: #758178;
  font-size: .68rem;
}

.app-user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ait-primary);
  color: #fff;
  font-weight: 800;
}

.notification-bell {
  position: relative;
}

.notification-badge {
  position: absolute;
  top: -7px;
  right: -8px;
  font-size: .65rem;
}

.notification-unread {
  background: #edf6ef;
}

.live-notification-toasts {
  position: fixed;
  top: 78px;
  right: 1rem;
  z-index: 1095;
  width: min(390px, calc(100vw - 2rem));
}

.live-notification-toast {
  width: 100%;
  border: 1px solid rgba(35, 104, 62, .2);
  box-shadow: 0 12px 34px rgba(19, 53, 31, .2);
}

.live-notification-toast .toast-header {
  color: #234930;
}

.live-notification-toast .toast-body {
  color: #26352b;
  background: #fff;
}

.app-offcanvas {
  width: min(360px, 88vw);
}

.app-menu-list {
  display: grid;
  gap: .42rem;
}

.app-menu-list > a {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: .55rem;
  padding: .72rem .8rem;
  border-radius: 12px;
  color: #294434;
  font-weight: 600;
  text-decoration: none;
}

.app-menu-list > a i {
  color: var(--ait-primary);
  font-size: 1.15rem;
}

.app-menu-list > a:hover {
  background: var(--ait-primary-soft);
  color: var(--ait-primary-dark);
}

.app-menu-label {
  margin: .9rem .65rem .25rem;
  color: #87958a;
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.menu-count {
  min-width: 24px;
  height: 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #dc3545;
  color: #fff;
  font-size: .72rem;
}

.dashboard-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.6rem 1.8rem;
  border-radius: 24px;
  background: linear-gradient(135deg, #245737, #43855a);
  color: #fff;
  box-shadow: 0 14px 30px rgba(36, 87, 55, .18);
}

.dashboard-hero h1 {
  margin: .15rem 0 .35rem;
  font-size: clamp(1.45rem, 3vw, 2.25rem);
}

.dashboard-eyebrow {
  color: #d6ecd9;
  font-size: .75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .13em;
}

.dashboard-hero-icon {
  font-size: 3.5rem;
  opacity: .2;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.section-heading h2 {
  margin: 0;
  font-size: 1.25rem;
}

.app-function-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
  gap: 1rem;
}

.app-function-tile {
  position: relative;
  min-height: 145px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem;
  border: 1px solid #dce8de;
  border-radius: 22px;
  background: #fff;
  color: #213b2a;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(36, 87, 55, .07);
  transition: .2s ease;
}

.app-function-tile::before {
  content: "";
  position: absolute;
  top: -35px;
  right: -30px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--ait-primary-soft);
}

.app-function-tile:hover {
  transform: translateY(-4px);
  border-color: #b7d0be;
  color: #173d26;
  box-shadow: 0 14px 30px rgba(36, 87, 55, .15);
}

.app-function-icon {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 1;
  width: 48px;
  height: 48px;
  border-radius: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ait-primary);
  color: #fff;
  font-size: 1.35rem;
}

.app-function-title {
  z-index: 1;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.1;
}

.app-function-badge {
  position: absolute;
  top: .75rem;
  right: .75rem;
  z-index: 2;
  min-width: 26px;
  height: 26px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #dc3545;
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
}

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

.status-mini-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .9rem 1rem;
  border: 1px solid #dce8de;
  border-radius: 15px;
  background: #fff;
  color: #4e6154;
  text-decoration: none;
}

.status-mini-card strong {
  color: var(--ait-primary-dark);
  font-size: 1.4rem;
}

.status-mini-card:hover {
  background: #f8fcf9;
  color: #294434;
}

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

.empty-state {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.5rem;
  text-align: center;
  color: #6b7c70;
}

.empty-state.compact {
  min-height: 270px;
}

.empty-state > i {
  margin-bottom: 1rem;
  color: var(--ait-primary);
  font-size: 3rem;
  opacity: .72;
}

.empty-state h2 {
  margin-bottom: .5rem;
  color: #294434;
  font-size: 1.25rem;
}

.empty-state p {
  max-width: 620px;
  margin-bottom: 1rem;
}

.login-product-name {
  margin-bottom: .5rem;
  color: var(--ait-primary-dark);
  font-size: .82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .09em;
}

.teams-account-focus {
  border: 2px solid #198754 !important;
  background: #f0fff6;
  box-shadow: 0 0 0 .25rem rgba(25, 135, 84, .14) !important;
}

.footer-app {
  background: #fff;
}

.footer-neax-brand {
  width: 100%;
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: .55rem;
  text-align: center;
}

.footer-neax-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: .25rem;
}

.footer-neax-link:focus-visible {
  outline: 2px solid #0d6efd;
  outline-offset: 3px;
}

.footer-neax-logo {
  width: 78px;
  height: 28px;
  display: block;
  object-fit: contain;
  object-position: center;
}

@media (max-width: 767.98px) {
  main {
    padding-right: .75rem !important;
    padding-left: .75rem !important;
  }

  .app-brand-copy small {
    display: none;
  }

  .app-brand-logo {
    height: 34px;
    max-width: 105px;
  }

  .app-topbar,
  .app-topbar > .container-fluid {
    min-height: 62px;
  }

  .app-function-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
  }

  .app-function-tile {
    min-height: 135px;
    border-radius: 18px;
  }

  .dashboard-hero {
    padding: 1.25rem;
    border-radius: 20px;
  }

  .dashboard-hero-icon {
    display: none;
  }

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

@media (max-width: 575.98px) {
  .footer-neax-brand {
    flex-wrap: nowrap;
    gap: .35rem;
  }

  .footer-neax-brand .text-muted {
    font-size: .75rem !important;
    white-space: nowrap;
  }

  .footer-neax-logo {
    width: 58px;
    height: 21px;
  }
}

@media (max-width: 359.98px) {
  .app-function-tile {
    padding: .8rem;
  }

  .app-function-icon {
    width: 42px;
    height: 42px;
  }

  .footer-neax-brand {
    flex-wrap: wrap;
  }

  .footer-neax-brand .text-muted {
    font-size: .72rem !important;
    white-space: normal;
  }
}

.approval-card {
  color: inherit;
  transition: transform .18s ease, box-shadow .18s ease;
}

.approval-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(36, 87, 55, .14) !important;
}

.document-preview-stack,
.signing-workspace {
  display: grid;
  gap: 1.5rem;
  padding: 1.5rem;
  background: #dfe6e1;
}

.document-page {
  width: min(100%, 880px);
  margin: 0 auto;
  overflow: hidden;
  border-radius: .35rem;
  background: #fff;
  box-shadow: 0 8px 24px rgba(27, 45, 33, .15);
}

.document-page img {
  width: 100%;
  height: auto;
  display: block;
}

.document-page figcaption {
  padding: .45rem .8rem;
  border-top: 1px solid #edf1ee;
  color: #768078;
  background: #fff;
  font-size: .75rem;
  text-align: center;
}

.document-side-stack {
  display: grid;
  gap: 1rem;
}

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

.document-meta > div {
  min-width: 0;
}

.document-meta > .full {
  grid-column: 1 / -1;
}

.document-meta dt {
  color: #7a887e;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.document-meta dd {
  margin: .18rem 0 0;
  overflow-wrap: anywhere;
}

.signed-summary {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .85rem;
  border: 1px solid #bce0c7;
  border-radius: .75rem;
  background: #eaf8ee;
  color: #216038;
}

.signed-summary > i {
  font-size: 1.75rem;
}

.comment-list {
  max-height: 560px;
  overflow-y: auto;
}

.comment-body {
  margin-top: .35rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.change-request-comment {
  border-left: 4px solid #dc3545 !important;
  background: #fff8f8;
}

.timeline-list {
  display: grid;
  gap: 1rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: .65rem;
}

.timeline-item > span,
.history-dot {
  width: 10px;
  height: 10px;
  margin-top: .35rem;
  display: inline-block;
  border-radius: 50%;
  background: var(--ait-primary);
  box-shadow: 0 0 0 4px var(--ait-primary-soft);
}

.history-dot {
  margin-right: .65rem;
}

.signature-checker {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  border: 1px solid #d2ddd4;
  border-radius: .8rem;
  background-color: #fff;
  background-image:
    linear-gradient(45deg, #edf1ee 25%, transparent 25%),
    linear-gradient(-45deg, #edf1ee 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #edf1ee 75%),
    linear-gradient(-45deg, transparent 75%, #edf1ee 75%);
  background-position: 0 0, 0 10px, 10px -10px, -10px 0;
  background-size: 20px 20px;
}

.signature-checker.compact {
  min-height: 150px;
}

.signature-checker img {
  width: min(100%, 360px);
  max-height: 170px;
  object-fit: contain;
}

.signature-checker.compact img {
  max-height: 100px;
}

.signature-name-preview {
  margin-top: .25rem;
  padding: .15rem .5rem;
  border-radius: .25rem;
  background: rgba(255, 255, 255, .86);
  color: #111;
  font-family: "AIT Signer Name", Georgia, serif;
  font-size: 1.12rem;
  font-style: italic;
  font-weight: 600;
  letter-spacing: .015em;
  text-align: center;
}

.signature-size-readout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  padding: .6rem .7rem;
  border: 1px solid #d8e4db;
  border-radius: .65rem;
  background: #fff;
  font-size: .85rem;
}

.signature-wheel-guide {
  display: grid;
  gap: .55rem;
  padding: .85rem 1rem;
  border-radius: 1rem;
  background: #e9f3ec;
  color: #225c3a;
  font-size: 1rem;
  font-weight: 750;
}

.signature-wheel-guide-icons {
  display: flex;
  align-items: center;
  gap: .7rem;
  font-size: 1.25rem;
}

.signature-wheel-guide kbd {
  padding: .45rem .7rem;
  border-radius: .55rem;
  background: #20262b;
  color: #fff;
  font-size: 1rem;
  letter-spacing: .04em;
  box-shadow: none;
}

.signature-wheel-guide .bi-mouse2 {
  font-size: 1.35rem;
}

.signature-count {
  padding: .55rem .7rem;
  border: 1px solid #d8e4db;
  border-radius: .65rem;
  background: #f8faf8;
  color: #34513e;
  font-size: .85rem;
  font-weight: 700;
}

.signing-controls {
  position: sticky;
  top: 92px;
}

.step-kicker {
  margin-bottom: .3rem;
  color: var(--ait-primary);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.signing-workspace {
  position: relative;
  border-radius: 1rem;
  background: #26352b;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}

.signing-banner {
  position: sticky;
  top: 84px;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .75rem 1rem;
  border-radius: .7rem;
  background: rgba(255, 255, 255, .94);
  color: #234930;
  font-weight: 700;
  box-shadow: 0 7px 20px rgba(0, 0, 0, .2);
}

.signing-page {
  position: relative;
  width: min(100%, 900px);
  margin: 0 auto;
  cursor: crosshair;
  user-select: none;
  touch-action: manipulation;
  background: #fff;
  box-shadow: 0 10px 32px rgba(0, 0, 0, .34);
}

.signing-page > img {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
}

.signing-page-label {
  position: absolute;
  right: .75rem;
  bottom: .6rem;
  z-index: 4;
  padding: .2rem .5rem;
  border-radius: 999px;
  background: rgba(20, 30, 23, .72);
  color: #fff;
  font-size: .7rem;
  pointer-events: none;
}

.signature-overlay {
  position: absolute;
  z-index: 5;
  display: none;
  flex-direction: column;
  align-items: stretch;
  pointer-events: none;
}

.signature-overlay.is-visible {
  display: flex;
}

.signature-ink-frame {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.signature-overlay img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.signature-overlay-name {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 .2rem;
  overflow: hidden;
  color: #111;
  background: rgba(255, 255, 255, .78);
  font-family: "AIT Signer Name", Georgia, serif;
  font-size: clamp(9px, 1.4vw, 17px);
  font-style: italic;
  font-weight: 600;
  letter-spacing: .015em;
  line-height: 1;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .28s ease, transform .28s ease;
  white-space: nowrap;
}

.signature-overlay.name-visible .signature-overlay-name,
.signature-hover .signature-overlay-name {
  opacity: 1;
  transform: translateY(0);
}

.signature-overlay.hide-signer-name .signature-overlay-name {
  display: none;
}

.signature-hover {
  z-index: 7;
  opacity: .58;
  outline: 0;
}

.signature-pinned {
  opacity: 1;
  outline: 0;
  filter: none;
  cursor: pointer;
  pointer-events: auto;
}

.signature-pinned.is-active {
  z-index: 6;
  filter: none;
}

.signature-edit-frame {
  position: absolute;
  inset: -4px;
  box-sizing: border-box;
  border: 2px dashed rgba(13, 110, 253, .72);
  border-radius: 2px;
  pointer-events: none;
}

.signature-pinned .signature-overlay-name {
  background: transparent;
}

.signature-pinned.signature-reveal .signature-static-image {
  animation: signature-image-reveal .82s cubic-bezier(.2, .8, .2, 1) both;
  will-change: clip-path, opacity, transform;
}

.signing-workspace.is-finalizing .signature-pinned {
  outline: 0;
  filter: none;
  cursor: default;
  pointer-events: none;
}

.signing-workspace.is-finalizing .signature-overlay-name {
  background: transparent;
}

.signing-workspace.is-finalizing .signature-edit-frame {
  display: none;
}

.signing-workspace.is-finalizing .signing-page-label {
  opacity: 0;
}

@keyframes signature-image-reveal {
  from {
    clip-path: inset(0 100% 0 0);
    opacity: .15;
    transform: translateX(-5px) scale(.98);
  }
  to {
    clip-path: inset(0 0 0 0);
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@media (max-width: 1199.98px) {
  .signing-controls {
    position: static;
  }
}

@media (max-width: 767.98px) {
  .document-preview-stack,
  .signing-workspace {
    gap: .9rem;
    padding: .75rem;
  }

  .document-meta {
    grid-template-columns: 1fr;
  }

  .signature-overlay-name {
    font-size: 8px;
  }
}

.source-choice {
  cursor: pointer;
  background: #fff;
  transition: border-color .15s ease, background-color .15s ease;
}

.source-choice:has(input:checked) {
  border-color: var(--bs-primary) !important;
  background: rgba(var(--bs-primary-rgb), .05);
}

.approval-step-list {
  display: grid;
  gap: .75rem;
}

.approval-step-row {
  display: flex;
  gap: .75rem;
  padding: .8rem;
  border: 1px solid var(--bs-border-color);
  border-radius: .7rem;
  background: #fff;
}

.approval-step-row.active {
  border-color: rgba(var(--bs-primary-rgb), .55);
  background: rgba(var(--bs-primary-rgb), .045);
}

.approval-step-icon {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  flex: 0 0 2rem;
  border-radius: 50%;
  color: var(--bs-primary);
  background: rgba(var(--bs-primary-rgb), .1);
}

.document-request-table th,
.document-request-table td {
  font-size: .88rem;
  vertical-align: middle;
}

.demo-accounts-card {
  max-height: min(760px, calc(100vh - 7rem));
}

.demo-accounts-card > .card-body {
  overflow: auto;
}

.demo-account-system,
.demo-account-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  border: 1px solid var(--bs-border-color);
  border-radius: .65rem;
  padding: .7rem .8rem;
  color: var(--bs-body-color);
  background: #fff;
  transition: border-color .15s ease, background-color .15s ease;
}

.demo-account-system {
  border-color: rgba(var(--bs-primary-rgb), .4);
  background: rgba(var(--bs-primary-rgb), .045);
}

.demo-account-system:hover,
.demo-account-item:hover {
  border-color: var(--bs-primary);
  background: rgba(var(--bs-primary-rgb), .07);
}

.demo-account-system span,
.demo-account-item span {
  min-width: 0;
}

.demo-account-system small,
.demo-account-item small {
  display: block;
  color: var(--bs-secondary-color);
}

.demo-account-system code,
.demo-account-item code {
  font-size: .76rem;
  text-align: right;
  overflow-wrap: anywhere;
}

.demo-account-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .5rem;
}

.company-cc-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .5rem;
  max-height: 330px;
  padding: .25rem;
  overflow: auto;
  border: 1px solid var(--bs-border-color);
  border-radius: .65rem;
  background: var(--bs-tertiary-bg);
}

.company-cc-item {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  min-width: 0;
  padding: .65rem;
  cursor: pointer;
  border: 1px solid var(--bs-border-color);
  border-radius: .55rem;
  background: #fff;
}

.company-cc-item:has(input:checked) {
  border-color: rgba(var(--bs-primary-rgb), .65);
  background: rgba(var(--bs-primary-rgb), .06);
}

.company-cc-item span {
  min-width: 0;
}

.company-cc-item small {
  display: block;
  color: var(--bs-secondary-color);
  overflow-wrap: anywhere;
}

@media (max-width: 767.98px) {
  .demo-accounts-card {
    max-height: none;
  }

  .demo-account-grid {
    grid-template-columns: 1fr;
  }

  .company-cc-list {
    grid-template-columns: 1fr;
  }
}


.approval-level-card {
  background: linear-gradient(180deg, #ffffff 0%, #fbfdfb 100%);
  border-color: #d7e3d9 !important;
}

.smart-picker {
  position: relative;
}

.smart-picker-shell {
  display: flex;
  flex-direction: column;
  gap: .65rem;
  min-height: 68px;
  padding: .75rem .85rem;
  border: 1px solid #ced7cf;
  border-radius: 1rem;
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
  transition: border-color .18s ease, box-shadow .18s ease;
  cursor: text;
}

.smart-picker.is-open .smart-picker-shell,
.smart-picker-shell:focus-within {
  border-color: rgba(47, 111, 68, .55);
  box-shadow: 0 0 0 .22rem rgba(47, 111, 68, .12);
}

.smart-picker-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
}

.smart-picker-chips.is-empty {
  display: none;
}

.smart-picker-input-row {
  display: flex;
  align-items: center;
  gap: .55rem;
}

.smart-picker-search-icon {
  color: #7a897d;
  font-size: .95rem;
}

.smart-picker-input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 0;
  font-size: .98rem;
  color: #203b29;
}

.smart-picker-input::placeholder {
  color: #8e9990;
}

.smart-picker-meta {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  margin-top: .45rem;
  padding-inline: .15rem;
  font-size: .79rem;
  color: #6e7e72;
}

.smart-picker-count {
  white-space: nowrap;
  font-weight: 600;
  color: #476553;
}

.smart-picker-dropdown {
  position: absolute;
  top: calc(100% + .5rem);
  left: 0;
  right: 0;
  z-index: 35;
  overflow: hidden;
  border: 1px solid #d6e2d8;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 18px 40px rgba(27, 57, 38, .15);
}

.smart-picker-dropdown-scroll {
  max-height: 260px;
  overflow: auto;
  padding: .45rem;
}

.smart-picker-empty {
  padding: 1rem;
  font-size: .9rem;
  color: #6f7f73;
}

.smart-option {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .75rem .8rem;
  border: 0;
  border-radius: .85rem;
  background: transparent;
  text-align: left;
  transition: background-color .15s ease, transform .15s ease;
}

.smart-option:hover,
.smart-option.is-active {
  background: #f2f7f3;
}

.smart-option.is-selected {
  background: #eaf4ed;
}

.smart-option-copy {
  display: flex;
  flex-direction: column;
  gap: .12rem;
  min-width: 0;
}

.smart-option-title {
  font-weight: 700;
  color: #1e3526;
}

.smart-option-meta {
  font-size: .8rem;
  color: #6f7d72;
}

.smart-option-check {
  flex: 0 0 auto;
  color: #2f6f44;
  opacity: 0;
  font-size: 1rem;
}

.smart-option.is-selected .smart-option-check {
  opacity: 1;
}

.smart-pill {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  max-width: 100%;
  padding: .5rem .72rem;
  border: 1px solid #cfd7d1;
  border-radius: .9rem;
  background: #f7f8f7;
  color: #203128;
  font-weight: 700;
  line-height: 1.1;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.92);
}

.smart-pill-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.smart-pill-remove {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #5f6f65;
}

.smart-pill-remove:hover {
  background: #e7ece8;
  color: #31493a;
}

.smart-pill-remove i {
  font-size: .72rem;
}

@media (max-width: 767.98px) {
  .smart-picker-meta {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* V5: make request/report content the visual focus on the detail page. */
.request-report-card {
  border-radius: 1.1rem;
  overflow: hidden;
  background: #fff;
}

.request-report-card::before {
  content: "";
  display: block;
  height: 4px;
  background: var(--ait-primary);
}

.request-report-eyebrow {
  margin-bottom: .35rem;
  color: var(--ait-primary);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
}

.request-report-title {
  color: #1f2d24;
  font-size: clamp(1.45rem, 2vw, 2rem);
  font-weight: 800;
}

.request-report-icon {
  color: #9ab3a1;
  font-size: 2rem;
}

.request-report-label {
  color: #69756d;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .02em;
}

.request-report-subject {
  padding-bottom: 1.15rem;
  border-bottom: 1px solid #e3ebe4;
}

.request-report-subject-text {
  margin-top: .3rem;
  color: #202b24;
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  font-weight: 800;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.request-report-details {
  min-height: 190px;
  padding: 1.25rem 1.35rem;
  border: 1px solid #dfe8e1;
  border-radius: .95rem;
  background: #fbfdfb;
}

.request-report-details-text {
  color: #25332a;
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.8;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.request-report-meta-box {
  height: 100%;
  padding: 1rem 1.1rem;
  border: 1px solid #e0e8e2;
  border-radius: .85rem;
  background: #f8fbf8;
}

.request-report-meta-value {
  margin-top: .3rem;
  color: #202c24;
  font-size: 1.05rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.approval-detail-level {
  transition: border-color .18s ease, box-shadow .18s ease;
}

.approval-detail-level.is-active {
  box-shadow: 0 0 0 .12rem rgba(47, 111, 68, .08);
}

.approval-person-name {
  font-size: 1.02rem;
}

@media (max-width: 767.98px) {
  .request-report-details {
    min-height: 150px;
    padding: 1rem;
  }

  .request-report-meta-box {
    padding: .9rem 1rem;
  }
}

/* V5: completed requests are immutable and clearly marked read-only. */
.completed-lock-banner {
  border: 1px solid #cfded3;
  border-radius: 1rem;
  background: #f5f9f6;
  color: #294333;
  box-shadow: 0 6px 18px rgba(31, 66, 43, .06);
}

.completed-lock-banner .bi-lock-fill {
  color: var(--ait-primary);
}

.admin-record-manager {
  background: linear-gradient(180deg, #fff 0%, #fff8f8 100%);
}

.admin-select-column {
  width: 52px;
}

.request-select,
#selectAllRequests {
  width: 1.05rem;
  height: 1.05rem;
  cursor: pointer;
}

/* V8 · Director company requests */
.company-request-kicker {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-bottom: .45rem;
  color: var(--ait-primary-dark);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.company-compose-card,
.company-main-content {
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdfb 100%);
}

.company-compose-icon,
.company-summary-icon {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  background: var(--ait-primary-soft);
  color: var(--ait-primary-dark);
  font-size: 1.35rem;
}

.company-details-input {
  min-height: 280px;
  line-height: 1.65;
  resize: vertical;
}

.company-audience-badge {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .65rem .9rem;
  border-radius: 999px;
  background: #edf6ef;
  color: #244f32;
  font-size: .9rem;
}

.company-deadline-card {
  background: linear-gradient(145deg, #f4faf5, #ffffff);
}

.company-alert-line {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.company-alert-line > div {
  display: flex;
  flex-direction: column;
}

.company-alert-line small {
  color: #738078;
  margin-top: .08rem;
}

.company-alert-dot {
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  margin-top: .35rem;
  border-radius: 50%;
  background: var(--ait-primary);
  box-shadow: 0 0 0 5px rgba(47,111,68,.1);
}

.company-main-content {
  border: 1px solid rgba(47,111,68,.08) !important;
}

.company-main-subject-label {
  margin-bottom: .6rem;
  color: #758178;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.company-main-subject {
  max-width: 1050px;
  margin: 0;
  color: #183423;
  font-size: clamp(2rem, 4vw, 3.7rem);
  font-weight: 780;
  letter-spacing: -.035em;
  line-height: 1.06;
  overflow-wrap: anywhere;
}

.company-main-divider {
  height: 1px;
  margin: 2rem 0;
  background: linear-gradient(90deg, #d9e5db, transparent);
}

.company-main-details {
  max-width: 1180px;
  color: #283d30;
  font-size: clamp(1.05rem, 1.3vw, 1.24rem);
  line-height: 1.8;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.company-deadline-summary {
  border: 1px solid rgba(47,111,68,.08) !important;
}

.company-deadline-summary.is-overdue {
  border-color: rgba(220,53,69,.24) !important;
  background: #fffafa;
}

.company-action-card {
  border: 1px solid rgba(47,111,68,.1) !important;
}

.company-response-flow {
  position: relative;
}

.company-response-step {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 82px;
  padding: 1rem 1.1rem;
  border: 1px solid #dce7de;
  border-radius: 1rem;
  background: #fff;
}

.company-response-step > div:not(.company-response-number) {
  display: flex;
  flex-direction: column;
}

.company-response-step small {
  color: #748078;
}

.company-response-step.is-current {
  border-color: rgba(47,111,68,.4);
  box-shadow: 0 8px 22px rgba(31,76,45,.08);
}

.company-response-step.is-done {
  background: #f2f8f4;
  border-color: #cde0d2;
}

.company-response-step.is-locked {
  opacity: .62;
  background: #f7f9f7;
}

.company-response-number {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #edf3ee;
  color: #405a48;
  font-weight: 800;
}

.company-response-step.is-current .company-response-number,
.company-response-step.is-done .company-response-number {
  background: var(--ait-primary);
  color: #fff;
}

.company-response-connector {
  width: 2px;
  height: 18px;
  margin-left: 30px;
  background: #d6e2d8;
}

.company-step-check {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #dff2e4;
  color: #24703c;
  font-size: 1.1rem;
}

.company-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: .32rem .7rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 800;
  white-space: nowrap;
}

.company-status-large {
  min-height: 38px;
  padding-inline: .9rem;
  font-size: .86rem;
}

.status-pending,
.status-active {
  background: #fff5d9;
  color: #7a5b00;
  border: 1px solid #f0d78c;
}

.status-received {
  background: #e8f1ff;
  color: #215b9a;
  border: 1px solid #bdd4f1;
}

.status-completed {
  background: #e5f6e9;
  color: #24673a;
  border: 1px solid #bfe1c8;
}

.status-cancelled {
  background: #f8e6e8;
  color: #8a2630;
  border: 1px solid #e7b8bd;
}

.company-progress-bar {
  height: 12px;
  border-radius: 999px;
  background: #e8efe9;
}

.company-progress-bar .progress-bar {
  background: var(--ait-primary);
  border-radius: 999px;
}

.company-stat {
  padding: .9rem;
  border: 1px solid #e0e9e2;
  border-radius: .9rem;
  background: #fbfdfb;
}

.company-stat strong,
.company-stat span {
  display: block;
}

.company-stat strong {
  font-size: 1.45rem;
  color: #1d3c28;
}

.company-stat span {
  color: #758178;
  font-size: .78rem;
}

.company-progress-search {
  display: flex;
  align-items: center;
  gap: .5rem;
  width: min(360px, 100%);
  padding: .55rem .8rem;
  border: 1px solid #d6e1d8;
  border-radius: .85rem;
  background: #fff;
}

.company-progress-search i {
  color: #768178;
}

.company-progress-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
}

.recipient-avatar {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: var(--ait-primary-soft);
  color: var(--ait-primary-dark);
  font-weight: 800;
}

.company-request-table > tbody > tr > td,
.company-recipient-table > tbody > tr > td {
  padding-top: .9rem;
  padding-bottom: .9rem;
}

.attachment-pill {
  max-width: min(100%, 420px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 767.98px) {
  .company-response-step {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .company-response-step form,
  .company-response-step .company-step-check,
  .company-response-step .badge {
    width: 100%;
    margin-left: 54px !important;
  }
  .company-response-step form .btn {
    width: 100%;
  }
}

/* V9 · Director assignment recipient picker */
.assignment-recipient-card {
  position: relative;
  z-index: 20;
  overflow: visible !important;
}

.assignment-selected-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: .3rem .7rem;
  border: 1px solid #d9e3db;
  border-radius: 999px;
  background: #f6f9f7;
  color: #708078;
  font-size: .78rem;
  font-weight: 800;
  white-space: nowrap;
}

.assignment-selected-count.has-selection {
  border-color: #bfdbc7;
  background: #eaf4ed;
  color: var(--ait-primary-dark);
}

.assignment-picker .smart-picker-shell {
  min-height: 82px;
  border-radius: 1rem;
}

.assignment-picker .smart-picker-dropdown {
  z-index: 1100;
}

.assignment-picker-invalid .smart-picker-shell {
  border-color: #dc3545;
  box-shadow: 0 0 0 .22rem rgba(220,53,69,.12);
}

.assignment-recipient-pill {
  min-height: 42px;
  padding: .38rem .55rem .38rem .42rem;
}

.recipient-avatar-sm {
  width: 27px;
  height: 27px;
  flex-basis: 27px;
  border-radius: 9px;
  font-size: .76rem;
}

.assignment-option {
  gap: .7rem;
  padding-block: .72rem;
}


/* V12 · Assignment comments */
.assignment-comments-card {
  overflow: hidden;
}

.assignment-comment-list {
  max-height: 520px;
  overflow-y: auto;
  padding-right: .15rem;
}

.assignment-comment-item {
  padding: 1rem 1.1rem;
  border: 1px solid #dce7de;
  border-radius: 1rem;
  background: #fbfdfb;
}

.assignment-comment-avatar {
  width: 34px;
  height: 34px;
  font-size: .82rem;
}

.assignment-comment-body {
  padding-left: 42px;
  color: #26362b;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.assignment-comment-empty {
  min-height: 92px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  border: 1px dashed #d5e0d7;
  border-radius: 1rem;
  background: #fafcfa;
  color: #718077;
}

.assignment-comment-empty i {
  font-size: 1.4rem;
}

.assignment-comment-compose {
  padding: 1rem;
  border: 1px solid #d7e2d9;
  border-radius: 1rem;
  background: #f8fbf8;
}

.assignment-comment-compose textarea {
  min-height: 94px;
  resize: vertical;
}

.assignment-comment-locked {
  padding: .85rem 1rem;
  border-radius: .85rem;
  background: #f3f6f4;
  color: #667169;
  font-size: .9rem;
}

@media (max-width: 575.98px) {
  .assignment-comment-body {
    padding-left: 0;
  }
}

/* V14 · Unified dashboard */
.dashboard-stat-card {
  background: linear-gradient(180deg, #ffffff 0%, #fbfdfb 100%);
}

.dashboard-work-grid > [class*="col-"] {
  display: flex;
}

.dashboard-work-card {
  width: 100%;
  min-height: 320px;
}

.dashboard-work-card .card-header,
.dashboard-notification-card .card-header {
  min-height: 58px;
  border-bottom-color: #dce8de;
}

.dashboard-work-table thead th {
  height: 52px;
  vertical-align: middle;
}

.dashboard-work-table tbody td {
  height: 72px;
  vertical-align: middle;
}

.dashboard-work-table td:first-child {
  min-width: 210px;
}

.dashboard-work-table td:nth-child(2) {
  white-space: nowrap;
}

.dashboard-notification-card .list-group-item {
  border-color: #e4ece5;
}

@media (max-width: 1199.98px) {
  .dashboard-work-card {
    min-height: 0;
  }
}


/* V15 · Sender final confirmation before an assignment closes */
.status-ready_for_close {
  background: #fff2cc;
  color: #735a00;
  border: 1px solid #ead080;
}

.assignment-final-review-card {
  border: 1px solid #d6e5da !important;
  background: linear-gradient(135deg, #f7fbf8 0%, #ffffff 58%, #f3faf5 100%);
  overflow: hidden;
}

.assignment-final-review-icon,
.assignment-closed-icon {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: #dff2e4;
  color: #24703c;
  font-size: 1.5rem;
}

.assignment-closed-card {
  border: 1px solid #cce1d1 !important;
  background: #f4faf6;
}

.assignment-closed-card strong {
  color: #215c34;
  font-size: 1.05rem;
}

/* V16 · Submit review modal, assignment delete, and comment attachments */
.submit-check-modal,
.action-confirm-modal {
  border-radius: 1.35rem;
  overflow: hidden;
}

.action-confirm-icon {
  width: 66px;
  height: 66px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  background: var(--ait-primary-soft);
  color: var(--ait-primary-dark);
  font-size: 1.75rem;
  box-shadow: inset 0 0 0 1px #d4e6d8;
}

.action-confirm-icon.is-danger {
  background: #fff0f1;
  color: #b4232f;
  box-shadow: inset 0 0 0 1px #f3cbd0;
}

.submit-check-summary {
  display: grid;
  gap: .65rem;
  padding: .9rem;
  border: 1px solid #dce7de;
  border-radius: 1rem;
  background: #f8fbf8;
}

.submit-check-summary > div {
  display: grid;
  grid-template-columns: minmax(105px, .36fr) 1fr;
  gap: .75rem;
  align-items: start;
  padding: .55rem .65rem;
  border-radius: .75rem;
  background: #fff;
}

.submit-check-summary span {
  color: #6d7b71;
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .025em;
}

.submit-check-summary strong {
  color: #24362a;
  overflow-wrap: anywhere;
}

.smart-picker-shell.is-invalid-picker {
  border-color: #dc3545 !important;
  box-shadow: 0 0 0 .22rem rgba(220, 53, 69, .12) !important;
}

.comment-compose-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .7rem;
  margin-top: .75rem;
}

.comment-file-button {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 38px;
  padding: .45rem .75rem;
  border: 1px solid #ccd9cf;
  border-radius: .75rem;
  background: #fff;
  color: #355342;
  font-size: .88rem;
  font-weight: 700;
  cursor: pointer;
  transition: .16s ease;
}

.comment-file-button:hover {
  border-color: #9eb9a5;
  background: #f0f7f2;
  color: var(--ait-primary-dark);
}

.comment-file-summary {
  min-width: 0;
  max-width: min(360px, 100%);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.comment-attachment-list {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-top: .75rem;
  padding-left: 42px;
}

.comment-attachment-chip {
  min-width: 0;
  max-width: min(100%, 430px);
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .55rem .7rem;
  border: 1px solid #d1ddd4;
  border-radius: .8rem;
  background: #fff;
  color: #2b4635;
  text-decoration: none;
  font-size: .86rem;
  font-weight: 700;
  transition: .15s ease;
}

.comment-attachment-chip:hover {
  border-color: #a9c3b0;
  background: #f0f7f2;
  color: var(--ait-primary-dark);
  transform: translateY(-1px);
}

.comment-attachment-icon {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: .6rem;
  background: var(--ait-primary-soft);
  color: var(--ait-primary-dark);
}

.comment-attachment-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 575.98px) {
  .submit-check-summary > div {
    grid-template-columns: 1fr;
    gap: .15rem;
  }

  .comment-attachment-list {
    padding-left: 0;
  }

  .comment-compose-toolbar .btn {
    width: 100%;
    margin-left: 0 !important;
  }
}


/* V17 · Per-recipient completion review and rework */
.status-rework_required {
  background: #fff0e1;
  color: #9a3f0b;
  border: 1px solid #efbf98;
}

.assignment-rework-banner {
  display: flex;
  align-items: flex-start;
  gap: .8rem;
  padding: .95rem 1rem;
  border: 1px solid #efc39f;
  border-radius: .9rem;
  background: #fff8f1;
  color: #7a3812;
}

.assignment-rework-banner > i {
  flex: 0 0 auto;
  margin-top: .05rem;
  font-size: 1.25rem;
}

.assignment-rework-banner strong,
.assignment-rework-banner span {
  display: block;
}

.assignment-rework-banner span {
  margin-top: .2rem;
  color: #79533b;
  font-size: .9rem;
}

.company-stat-rework {
  border-color: #efd2b9;
  background: #fff9f3;
}

.assignment-rework-modal textarea {
  min-height: 118px;
  resize: vertical;
}

.company-recipient-table td:last-child .btn {
  white-space: nowrap;
}

/* V20 · Shared UI aligned with AIT Document Approval V33. */
.department-picker-list {
  display: block;
  max-height: 360px;
  padding: 0;
  overflow: auto;
}
.department-picker-group + .department-picker-group { border-top: 1px solid var(--bs-border-color); }
.department-picker-heading {
  display: flex;
  align-items: baseline;
  gap: .5rem;
  padding: .55rem .7rem;
  background: #eef2f6;
  color: var(--bs-emphasis-color);
}
.department-picker-heading strong { font-size: .78rem; letter-spacing: .03em; }
.department-picker-heading span { color: var(--bs-secondary-color); font-size: .76rem; }
.department-picker-items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .5rem;
  padding: .55rem;
}
.approval-person-option strong,
.company-recipient-item strong { display: block; }
.approval-person-option small,
.company-recipient-item small { font-size: .78rem; }
.picker-required-invalid { border-color: #dc3545 !important; box-shadow: 0 0 0 .16rem rgba(220,53,69,.08); }
.final-approval-card {
  padding: 1rem;
  border: 1px solid #dce5de;
  border-radius: .8rem;
  background: #f8faf8;
}
.request-send-card { top: 92px; }
.send-summary-list { display: grid; gap: .25rem; }
.send-summary-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .72rem 0;
  border-bottom: 1px solid #e5ece7;
}
.send-summary-list > div:last-child { border-bottom: 0; }
.send-summary-list span { color: #718077; font-size: .82rem; }
.send-summary-list strong { color: #26362b; text-align: right; }

.request-priority-card .card-body { overflow: hidden; }
.request-priority-grid {
  display: grid;
  grid-template-columns: minmax(180px, .8fr) minmax(320px, 1.8fr) minmax(180px, .75fr);
  gap: .75rem;
}
.request-priority-field {
  min-width: 0;
  padding: .8rem .9rem;
  border: 1px solid #e1e9e3;
  border-radius: .8rem;
  background: #fbfdfb;
}
.request-priority-label {
  display: block;
  margin-bottom: .25rem;
  color: #748079;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .045em;
  text-transform: uppercase;
}
.request-priority-field strong { display: block; line-height: 1.35; }
.request-details-text { color: #243129; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.request-due-date { font-variant-numeric: tabular-nums; }
.request-priority-field.deadline-warning { border-color: #e9c86d; background: #fffaf0; }
.request-priority-field.deadline-overdue { border-color: #e2a1a7; background: #fff6f6; }
.request-secondary-meta { display: flex; flex-wrap: wrap; gap: .4rem .65rem; color: #657168; font-size: .78rem; }
.request-secondary-meta > span { padding: .3rem .5rem; border-radius: .55rem; background: #f3f6f4; }
.request-secondary-meta b { margin-right: .2rem; color: #334039; }
.request-inline-attachments { padding-top: .75rem; border-top: 1px solid #e5ece7; }

.signing-flow-priority-card .card-body { padding: 1rem 1.25rem; }
.signing-flow-priority-card .approval-step-list { display: grid; gap: .65rem; }
.approval-detail-level { background: #fff; transition: border-color .15s ease, background-color .15s ease; }
.approval-detail-level.is-active { border-color: rgba(var(--bs-primary-rgb), .55) !important; background: rgba(var(--bs-primary-rgb), .035); }
.approval-level-people { display: grid; gap: .55rem; }
.approval-step-person {
  display: flex;
  gap: .75rem;
  padding: .8rem;
  border: 1px solid var(--bs-border-color);
  border-radius: .7rem;
  background: #fff;
}
.approval-step-icon {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  flex: 0 0 2rem;
  border-radius: 50%;
  color: var(--bs-primary);
  background: rgba(var(--bs-primary-rgb), .1);
}
.approval-action-panel { max-width: 980px; }

.assignment-comments-card { overflow: hidden; }
.assignment-comment-list { max-height: 520px; overflow-y: auto; padding-right: .15rem; }
.assignment-comment-item {
  padding: 1rem 1.1rem;
  border: 1px solid #dce7de;
  border-radius: 1rem;
  background: #fbfdfb;
}
.assignment-comment-avatar { width: 34px; height: 34px; font-size: .82rem; }
.min-w-0 { min-width: 0; }
.grouped-comment-entries { display: grid; gap: 0; }
.grouped-comment-entry { padding: .82rem 0 .15rem; border-top: 1px dashed #dce7de; }
.grouped-comment-entry:first-child { margin-top: .35rem; }
.grouped-comment-time-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding-left: 42px;
  margin-bottom: .3rem;
}
.grouped-comment-time-row time {
  color: #2f7d23;
  font-size: .8rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.assignment-comment-body {
  padding-left: 42px;
  color: #26362b;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.grouped-comment-body { padding-bottom: .65rem; }
.grouped-comment-attachments { margin-left: 42px; margin-top: .5rem; }
.grouped-comment-see-more,
.audit-log-see-more {
  width: 100%;
  margin-top: .55rem;
  padding: .55rem .25rem .1rem;
  border: 0;
  border-top: 1px solid #e3ebe5;
  background: transparent;
  color: var(--ait-primary-dark);
  font-size: .84rem;
  font-weight: 700;
  text-align: center;
}
.grouped-comment-see-more:hover,
.grouped-comment-see-more:focus-visible,
.audit-log-see-more:hover,
.audit-log-see-more:focus-visible { color: var(--ait-primary); }
.assignment-comment-empty {
  min-height: 92px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  border: 1px dashed #d5e0d7;
  border-radius: 1rem;
  background: #fafcfa;
  color: #718077;
}
.assignment-comment-compose { padding: 1rem; border: 1px solid #d7e2d9; border-radius: 1rem; background: #f8fbf8; }
.assignment-comment-compose textarea { min-height: 94px; resize: vertical; }
.comment-compose-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; margin-top: .75rem; }
.assignment-comment-locked { padding: .85rem 1rem; border-radius: .85rem; background: #f3f6f4; color: #667169; font-size: .9rem; }
.audit-log-card .timeline-list { gap: .75rem; }
.request-tools-row > [class*="col-"] > .card { height: 100%; }

@media (max-width: 991.98px) {
  .request-priority-grid { grid-template-columns: 1fr 1fr; }
  .request-priority-grid .details-field { grid-column: 1 / -1; grid-row: 2; }
  .request-priority-grid .due-field { grid-column: 2; grid-row: 1; }
  .request-send-card { position: static !important; }
}
@media (max-width: 767.98px) { .department-picker-items { grid-template-columns: 1fr; } }
@media (max-width: 575.98px) {
  .request-priority-grid { grid-template-columns: 1fr; }
  .request-priority-grid .requester-field,
  .request-priority-grid .details-field,
  .request-priority-grid .due-field { grid-column: 1; grid-row: auto; }
  .grouped-comment-time-row,
  .assignment-comment-body { padding-left: 0; }
  .grouped-comment-attachments { margin-left: 0; }
  .comment-compose-toolbar .btn { width: 100%; margin-left: 0 !important; }
}


/* V22: an employee can belong to only one approval level in a request. */
.approval-person-option.approver-unavailable,
.director-person-option.approver-unavailable {
  opacity: .48;
  cursor: not-allowed;
  background: #f3f5f3;
  border-style: dashed;
}
.approval-person-option.approver-unavailable:hover,
.director-person-option.approver-unavailable:hover {
  background: #f3f5f3;
}
.approval-person-option.approver-unavailable input,
.director-person-option.approver-unavailable input {
  cursor: not-allowed;
}

/* V23: Assignment content is the primary information; progress is compact. */
.assignment-content-card {
  border: 1px solid rgba(47,111,68,.10) !important;
}

.assignment-details-primary {
  min-height: 170px;
  padding: 1.25rem 1.35rem;
  border: 1px solid #dbe6dd;
  border-radius: 1rem;
  background: #fbfdfb;
}

.assignment-details-text {
  margin-top: .45rem;
  color: #223229;
  font-size: clamp(1.08rem, 1.35vw, 1.35rem);
  line-height: 1.75;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.assignment-meta-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: .7rem;
}

.assignment-meta-item {
  min-width: 0;
  padding: .75rem .85rem;
  border: 1px solid #e1e9e3;
  border-radius: .8rem;
  background: #fff;
}

.assignment-meta-item > span {
  display: block;
  margin-bottom: .2rem;
  color: #748079;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.assignment-meta-item > strong {
  display: block;
  color: #26362b;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.assignment-meta-item.is-overdue {
  border-color: #e2a1a7;
  background: #fff6f6;
}

.assignment-progress-compact {
  border: 1px solid rgba(47,111,68,.09) !important;
}

.assignment-progress-compact-grid {
  display: grid;
  grid-template-columns: minmax(130px, .6fr) minmax(220px, 1.2fr) minmax(360px, 2fr);
  align-items: center;
  gap: 1rem;
}

.assignment-progress-percent > span {
  display: block;
  color: #748079;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .035em;
  text-transform: uppercase;
}

.assignment-progress-percent > strong {
  display: block;
  margin-top: .1rem;
  color: #1d3c28;
  font-size: 1.8rem;
  line-height: 1;
}

.assignment-progress-track .company-progress-bar {
  margin: 0;
  height: 9px;
}

.assignment-progress-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .45rem;
}

.assignment-progress-stats > span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  min-height: 38px;
  padding: .4rem .55rem;
  border: 1px solid #e1e9e3;
  border-radius: .7rem;
  background: #fbfdfb;
  color: #6b786f;
  font-size: .75rem;
  white-space: nowrap;
}

.assignment-progress-stats b {
  color: #234930;
  font-size: 1rem;
}

.assignment-progress-stats .is-rework {
  background: #fff9e9;
  border-color: #ecd88e;
}

@media (max-width: 991.98px) {
  .assignment-meta-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .assignment-progress-compact-grid { grid-template-columns: 130px 1fr; }
  .assignment-progress-stats { grid-column: 1 / -1; }
}

@media (max-width: 575.98px) {
  .assignment-details-primary { min-height: 145px; padding: 1rem; }
  .assignment-meta-grid { grid-template-columns: 1fr; }
  .assignment-progress-compact-grid { grid-template-columns: 1fr; }
  .assignment-progress-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* V25 · Assignment CC recipients */
.company-cc-item.is-unavailable {
  cursor: not-allowed;
  background: #f5f6f5;
  color: #8a938d;
  opacity: .72;
}
.company-cc-item.is-unavailable input { cursor: not-allowed; }
.company-cc-item.is-unavailable strong { color: #68736b; }
.assignment-cc-block {
  padding-top: .9rem;
  border-top: 1px solid #e5ece7;
}
.assignment-cc-pill {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  max-width: 100%;
  padding: .5rem .7rem;
  border: 1px solid #d2ddd5;
  border-radius: .8rem;
  background: #f7faf8;
  color: #2b3a31;
  font-weight: 700;
  line-height: 1.15;
}
.assignment-cc-pill i { color: var(--ait-primary); }
.assignment-cc-pill span { overflow-wrap: anywhere; }


/* V27 · Compact V45-style workflow status + search-first people pickers. */
.viewer-status-badge {
  --viewer-status-bg: #eef4ff;
  --viewer-status-border: #d8e5fb;
  --viewer-status-text: #285987;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  max-width: 100%;
  min-height: 28px;
  padding: .27rem .58rem;
  border: 1px solid var(--viewer-status-border);
  border-radius: .62rem;
  background: var(--viewer-status-bg);
  color: var(--viewer-status-text);
  font-size: .78rem;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
  vertical-align: middle;
}
.viewer-status-badge.viewer-status-action {
  --viewer-status-bg: #fff0b8;
  --viewer-status-border: #ffc107;
  --viewer-status-text: #18130a;
}
.viewer-status-badge.viewer-status-waiting {
  --viewer-status-bg: #eaf3ff;
  --viewer-status-border: #cfe0f5;
  --viewer-status-text: #285987;
}
.viewer-status-badge.viewer-status-danger {
  --viewer-status-bg: #ffe5e5;
  --viewer-status-border: #f4c4c4;
  --viewer-status-text: #9a2e2e;
}
.viewer-status-badge.viewer-status-complete {
  --viewer-status-bg: #168a52;
  --viewer-status-border: #168a52;
  --viewer-status-text: #fff;
}
.viewer-status-badge.viewer-status-neutral {
  --viewer-status-bg: #f1f3f2;
  --viewer-status-border: #d9dedb;
  --viewer-status-text: #59645d;
}

/* Keep Assignment statuses visually identical to the compact V45 status family. */
.company-status-badge {
  min-height: 28px;
  padding: .27rem .58rem;
  border-radius: .62rem;
  font-size: .78rem;
  line-height: 1.05;
}
.company-status-large {
  min-height: 32px;
  padding: .36rem .7rem;
  border-radius: .68rem;
  font-size: .82rem;
}

.smart-picker-view-all.active {
  color: var(--bs-btn-active-color);
  background-color: var(--bs-btn-active-bg);
  border-color: var(--bs-btn-active-border-color);
}
.search-first-picker-list.d-none {
  display: none !important;
}
.search-first-picker-list {
  margin-top: .45rem;
}

@media (max-width: 767.98px) {
  .viewer-status-badge {
    max-width: 190px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .smart-picker-view-all {
    padding-inline: .65rem;
  }
}

/* V28: explicit Director On/Off control. */
.optional-director-card {
  transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}
.optional-director-card.director-enabled {
  border-color: #b9d7c2;
  background: #fbfefc;
  box-shadow: inset 0 0 0 1px rgba(47,111,68,.04);
}
.director-approval-switch {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-width: 86px;
  justify-content: flex-end;
}
.director-approval-switch .form-check-input {
  width: 3rem;
  height: 1.55rem;
  margin-top: 0;
  cursor: pointer;
}
.director-approval-switch .form-check-label {
  min-width: 26px;
  color: #6c757d;
}
.optional-director-card.director-enabled .director-approval-switch .form-check-label {
  color: var(--ait-primary-dark);
}
#directorPickerPanel {
  padding-top: .9rem;
  border-top: 1px solid #e2ebe4;
}


/* Details is the visual center of an Approval Request. */
.approval-content-focus-card {
  border: 1px solid rgba(47,111,68,.10) !important;
}
.approval-content-focus {
  width: min(1120px, 100%);
}
.approval-details-centered {
  min-height: 220px;
  padding: 1.5rem 1.65rem;
  background: #fbfdfb;
}
.approval-details-centered .request-report-details-text {
  font-size: clamp(1.1rem, 1.45vw, 1.35rem);
  line-height: 1.85;
}
.approval-content-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: .7rem;
}
.flow-validation-message {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .7rem .85rem;
  border: 1px solid rgba(220,53,69,.28);
  border-radius: .75rem;
  background: rgba(220,53,69,.055);
  color: #a52431;
  font-size: .88rem;
  font-weight: 700;
}
@media (max-width: 1199.98px) {
  .approval-content-meta-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767.98px) {
  .approval-details-centered { min-height: 170px; padding: 1rem; }
  .approval-content-meta-grid { grid-template-columns: 1fr; }
}


/* Quiet live character counter inside editable Details fields. */
.details-textarea-wrap {
  position: relative;
}

.details-textarea-wrap .details-textarea {
  padding-bottom: 2rem;
}

.details-character-count {
  position: absolute;
  right: .8rem;
  bottom: .55rem;
  z-index: 2;
  pointer-events: none;
  user-select: none;
  font-size: .72rem;
  font-weight: 500;
  line-height: 1;
  color: rgba(70, 84, 74, .42);
  letter-spacing: .01em;
}

.details-character-count.is-near-limit {
  color: rgba(151, 97, 29, .62);
}

/* Selected people are shown consistently as one chip per person across all create forms. */
.selected-person-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  min-height: 34px;
}

.selected-person-chip {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  max-width: 100%;
  min-height: 34px;
  padding: .3rem .42rem .3rem .35rem;
  border: 1px solid #cfddd2;
  border-radius: .75rem;
  background: #f7faf8;
  color: #263b2e;
  font-size: .82rem;
  font-weight: 700;
  line-height: 1.1;
}

.selected-person-chip-avatar {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--ait-primary-soft);
  color: var(--ait-primary-dark);
  font-size: .72rem;
  font-weight: 800;
}

.selected-person-chip-name {
  min-width: 0;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.selected-person-chip-remove {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #718078;
  font-size: .72rem;
}

.selected-person-chip-remove:hover,
.selected-person-chip-remove:focus-visible {
  background: #e7eee9;
  color: #9f2d38;
}

.selected-person-empty {
  color: #849087;
  font-size: .8rem;
  font-weight: 600;
}

@media (max-width: 575.98px) {
  .selected-person-chips {
    gap: .4rem;
  }
  .selected-person-chip-name {
    max-width: min(220px, 62vw);
  }
}
