@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --aol-bg: #f8fafc;
  --aol-surface: #ffffff;
  --aol-text: #0f172a;
  --aol-muted: #64748b;
  --aol-border: #e2e8f0;
  --aol-border-soft: #edf2f7;
  --aol-primary: #00709e;
  --aol-primary-soft: #e0f3fc;
  --aol-radius: 14px;
  --aol-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 4px 12px rgba(15, 23, 42, .04);
  --aol-switch-width: 2.5rem;
  --aol-switch-height: 1.35rem;
  --aol-switch-knob: 1.05rem;
  --aol-switch-padding: .15rem;
  --aol-switch-bg: var(--bs-gray-200);
  --aol-switch-checked-bg: var(--aol-primary);
  --aol-switch-knob-bg: var(--bs-paper-bg, #fff);
}

html.theme-preload *,
html.theme-preload *::before,
html.theme-preload *::after {
  transition: none !important;
}

body,
.aol-app-body {
  --bs-scrollbar-width: 15px;
  overflow: auto;
  background: var(--aol-bg) !important;
  color: var(--aol-text);
  font-family: "Plus Jakarta Sans", "Public Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

#layout-menu,
#layout-menu .menu-inner {
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
}

#layout-menu {
  touch-action: pan-y;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

#layout-menu .menu-inner {
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  overflow-x: hidden;
}

#header,
#layout-navbar.bg-navbar-theme,
#layout-navbar.aol-topbar,
#layout-navbar.bg-navbar-theme.aol-topbar {
  background: var(--aol-bg) !important;
  background-image: none !important;
  backdrop-filter: none !important;
}

html.layout-menu-fixed .layout-page {
  height: auto;
  min-height: 100vh;
  overflow: visible;
}

html.layout-menu-fixed .content-wrapper {
  justify-content: flex-start;
  overflow: visible;
}

.content-wrapper {
  background: var(--aol-bg);
}

.container-p-y {
  padding-top: 1.25rem !important;
  padding-bottom: 1.25rem !important;
}

.pagetitle h1:empty {
  display: none;
}

.card,
.modal-content,
.dropdown-menu {
  border: 1px solid var(--aol-border-soft);
  border-radius: var(--aol-radius);
  box-shadow: var(--aol-shadow);
}

.card {
  background: var(--aol-surface);
}

.card-header,
.modal-header,
.modal-footer {
  border-color: var(--aol-border-soft);
}

.card-header {
  background: transparent;
  padding: 1rem 1.25rem;
}

.card-body {
  padding: 1.25rem;
}

.table {
  --bs-table-bg: transparent;
  --bs-table-striped-bg: #f8fafc;
  color: var(--aol-text);
}

.table th {
  color: var(--aol-muted);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
}

.table td {
  vertical-align: middle;
}

.table-responsive {
  border-radius: 12px;
}

.form-control,
.form-select,
.input-group-text,
.select2-container--bootstrap-5 .select2-selection {
  border-color: var(--aol-border);
  border-radius: 10px;
}

.form-control:focus,
.form-select:focus,
.select2-container--bootstrap-5.select2-container--focus .select2-selection {
  border-color: var(--aol-primary);
  box-shadow: 0 0 0 .18rem rgba(0, 112, 158, .12);
}

.aol-app-body .form-switch {
  min-height: var(--aol-switch-height);
  padding-inline-start: calc(var(--aol-switch-width) + .65rem);
}

.aol-app-body .form-switch .form-check-input {
  appearance: none !important;
  -webkit-appearance: none !important;
  width: var(--aol-switch-width) !important;
  height: var(--aol-switch-height) !important;
  min-width: var(--aol-switch-width) !important;
  margin-top: 0 !important;
  margin-inline-start: calc((var(--aol-switch-width) + .65rem) * -1) !important;
  border: 0 !important;
  border-radius: 999rem !important;
  cursor: pointer;
  background-color: var(--aol-switch-bg) !important;
  background-image: radial-gradient(circle, var(--aol-switch-knob-bg) 0 62%, transparent 64%) !important;
  background-repeat: no-repeat !important;
  background-size: var(--aol-switch-knob) var(--aol-switch-knob) !important;
  background-position: var(--aol-switch-padding) center !important;
  box-shadow: inset 0 0 .25rem rgba(34, 48, 62, .16) !important;
  transition: background-color .15s ease, background-position .15s ease, box-shadow .15s ease;
}

.aol-app-body .form-switch .form-check-input:checked {
  background-color: var(--aol-switch-checked-bg) !important;
  background-image: radial-gradient(circle, var(--aol-switch-knob-bg) 0 62%, transparent 64%) !important;
  background-position: calc(100% - var(--aol-switch-padding)) center !important;
}

.aol-app-body .form-switch .form-check-input:focus {
  background-image: radial-gradient(circle, var(--aol-switch-knob-bg) 0 62%, transparent 64%) !important;
  box-shadow: 0 0 0 .18rem rgba(0, 112, 158, .12), inset 0 0 .25rem rgba(34, 48, 62, .16) !important;
}

.aol-app-body .form-switch .form-check-input:disabled {
  cursor: not-allowed;
  opacity: .55;
}

.aol-app-body .form-switch .form-check-input.aol-check-sm {
  --aol-switch-width: 2rem;
  --aol-switch-height: 1.1rem;
  --aol-switch-knob: .86rem;
  --aol-switch-padding: .12rem;
}

.aol-app-body .form-switch:has(.aol-check-sm) {
  padding-inline-start: 2.65rem;
}

.aol-app-body .form-switch:has(.aol-check-sm) .form-check-input {
  margin-inline-start: -2.65rem !important;
}

.aol-switch-offset {
  position: relative;
  top: .625rem;
}

.aol-switch-toolbar {
  margin-top: .625rem;
}

.btn-primary,
.btn_primary_color,
.create-button {
  background: var(--aol-primary) !important;
  border-color: var(--aol-primary) !important;
  color: #fff !important;
  box-shadow: none !important;
}

.btn-primary:hover,
.btn_primary_color:hover,
.create-button:hover {
  background: #005f86 !important;
  border-color: #005f86 !important;
}

.btn-label-secondary,
.btn-outline-secondary {
  border-color: var(--aol-border);
}

.badge {
  letter-spacing: 0;
}

.toast-container,
.aol-toast-stack {
  z-index: 1080;
}

.aol-fixed-alert {
  position: fixed !important;
  z-index: 1080 !important;
  top: 20px !important;
  right: 20px !important;
  width: auto !important;
  max-width: 400px !important;
}

.aol-hidden {
  display: none !important;
}

.aol-min-w-220 {
  min-width: 220px;
}

.aol-min-w-260 {
  min-width: 260px;
}

.aol-max-w-260 {
  max-width: 260px;
}

.aol-max-w-780 {
  max-width: 780px;
}

.aol-max-w-520 {
  max-width: 520px;
}

.aol-max-w-78 {
  max-width: 78%;
}

.aol-text-break {
  word-break: break-word;
}

.aol-check-sm {
  --aol-switch-width: 2rem;
  --aol-switch-height: 1.1rem;
  --aol-switch-knob: .86rem;
  --aol-switch-padding: .12rem;
}

.aol-topbar {
  border-radius: 0;
  min-height: 72px;
  padding-left: 14px;
  padding-right: 14px;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

nav.layout-navbar.navbar-detached.aol-topbar {
  border: 0 !important;
  box-shadow: none !important;
}

.aol-topbar-search {
  position: relative;
  width: min(460px, 100%);
}

.aol-topbar-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--bs-secondary-color);
  opacity: .8;
  pointer-events: none;
  z-index: 2;
}

.aol-topbar-search-input {
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--aol-border);
  background: var(--bs-paper-bg, #fff);
  padding-left: 46px !important;
  padding-right: 12px;
  box-shadow: none !important;
  position: relative;
  z-index: 1;
}

.aol-topbar-search-input:focus,
.aol-topbar-search-input:focus-visible {
  padding-left: 46px !important;
  padding-right: 12px;
}

.aol-topbar-search-input::placeholder {
  color: var(--bs-secondary-color);
}

.aol-topbar-actions {
  gap: 10px;
}

.aol-topbar-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--bs-paper-bg, #fff);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--bs-body-color);
}

.aol-topbar-icon-btn:hover {
  border-color: var(--aol-border);
}

.aol-topbar-user {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.aol-topbar-user-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.1;
}

.aol-topbar-user-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--bs-heading-color);
}

.aol-topbar-user-role {
  margin-top: 2px;
  font-size: 12px;
  color: var(--bs-secondary-color);
}

.aol-alert-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  display: none;
  min-width: 18px;
  font-size: .65rem;
}

.aol-alert-menu {
  min-width: 340px;
}

.aol-alert-list {
  max-height: 360px;
  overflow: auto;
}

.env-badge {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99999;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: .35px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 77, 79, .18);
  border: 1px solid rgba(255, 77, 79, .55);
  color: #ff4d4f;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .22);
  pointer-events: none;
}

.env-badge__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #ff4d4f;
  box-shadow: 0 0 0 3px rgba(255, 77, 79, .22);
}

.drop-zone {
  border: 2px dashed var(--aol-border);
  border-radius: 12px;
  padding: 1.25rem;
  text-align: center;
  cursor: pointer;
  background: #fff;
  transition: background-color .15s ease, border-color .15s ease;
}

.drop-zone.dragover,
.drop-zone:hover {
  background-color: var(--aol-primary-soft);
  border-color: var(--aol-primary);
}

.drop-zone i {
  font-size: 1.5rem;
  display: block;
  margin: 0 auto .25rem;
}

.file-names {
  margin-top: .5rem;
  font-size: .9rem;
}

.doc-thumb {
  height: 120px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bs-body-bg);
  border-radius: 10px;
  overflow: hidden;
}

.doc-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.doc-file-icon {
  font-size: 1.5rem;
}

.tagify__dropdown {
  z-index: 2000;
  border: 1px solid var(--bs-border-color);
  border-radius: 10px;
  background-color: var(--bs-card-bg);
  box-shadow: var(--aol-shadow);
}

.tagify__dropdown__wrapper {
  max-height: 320px;
  overflow: auto;
}

.tagify__dropdown__item {
  padding: .5rem .75rem;
  cursor: pointer;
}

.tagify__dropdown__item--active {
  background-color: var(--bs-primary-bg-subtle);
}

.who-wrap .tagify {
  min-height: 2.5rem;
}

.who-wrap .tagify__input {
  line-height: 1.5;
}

.who-wrap .tagify__tag {
  margin-top: 5px;
  margin-bottom: 0;
}

.focus-soft {
  outline: 0;
  transition: box-shadow .2s ease, background-color .2s ease;
}

.focus-soft-anim {
  box-shadow: 0 0 0 .2rem rgba(0, 112, 158, .18);
  background-color: var(--bs-tertiary-bg);
}

.stop-row {
  position: relative;
  padding-left: 1.75rem;
}

.stop-row .drag-handle {
  cursor: move;
  color: var(--bs-secondary-color);
}

.stop-row.dragging {
  opacity: .7;
}

.stop-row::before {
  content: "\22EE\22EE";
  position: absolute;
  left: .25rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.1rem;
  line-height: 1;
  cursor: move;
  color: var(--bs-secondary-color);
  opacity: .8;
}

.tt-menu,
.ac-menu {
  position: absolute;
  z-index: 1061;
  display: none;
  background-color: var(--bs-body-bg);
  color: var(--bs-body-color);
  border: 1px solid var(--bs-border-color);
  border-radius: 10px;
  box-shadow: var(--aol-shadow);
  padding: .25rem;
  min-width: 100%;
  transition: opacity .08s ease;
  opacity: 1;
}

.tt-menu[style*="display: none"] {
  opacity: 0;
}

.tt-suggestions {
  max-height: 320px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.tt-suggestion {
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tt-suggestion.tt-cursor,
.tt-suggestion:hover {
  background-color: var(--bs-tertiary-bg);
}

#hazmat_toggle,
#hazmat_toggle:focus,
#hazmat_toggle:active {
  transition: none !important;
  box-shadow: none !important;
  filter: none !important;
}

.alpha29-overdue-btn {
  border: 0;
  background: transparent;
  cursor: pointer;
  text-decoration: none !important;
  appearance: none;
  -webkit-appearance: none;
  line-height: 1;
  font: inherit;
  color: inherit;
  outline: none !important;
  box-shadow: none !important;
  user-select: none;
}

.commissions-shell .metric-card {
  border: 1px solid var(--aol-border);
  border-radius: 12px;
  background: var(--bs-card-bg);
}

.commissions-shell .metric-value {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
}

.commissions-shell .metric-label {
  font-size: .78rem;
  color: var(--bs-secondary-color);
}

.commissions-shell .aol-link {
  font-weight: 700;
  color: var(--bs-primary);
  text-decoration: none;
}

.commissions-shell .commission-toolbar {
  display: grid;
  grid-template-columns: minmax(120px, 140px) minmax(140px, 160px) minmax(180px, 1fr) auto auto auto;
  gap: .5rem;
  align-items: center;
}

.commissions-shell .notes-input {
  min-width: 0;
}

.commissions-shell .row-check {
  width: 1rem;
  height: 1rem;
}

.commissions-shell .status-pill {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  border-radius: 999px;
  padding: .25rem .55rem;
  font-size: .75rem;
  font-weight: 600;
  white-space: nowrap;
}

.commissions-shell .status-paid {
  background: rgba(40, 199, 111, .12);
  color: #28c76f;
}

.commissions-shell .status-pending {
  background: rgba(255, 159, 67, .14);
  color: #ff9f43;
}

.commissions-shell .status-ignored {
  background: rgba(130, 134, 139, .14);
  color: #82868b;
}

.commissions-shell .pagination {
  margin-bottom: 0;
}

.commissions-shell .pagination .page-link {
  border-radius: .5rem;
}

.commissions-shell .commissions-pagination nav {
  width: 100%;
}

.commissions-shell .commissions-pagination p {
  margin-bottom: 0;
}

.aol-footer-copy {
  color: var(--aol-muted);
}

html[data-bs-theme="dark"] body,
html[data-bs-theme="dark"] .aol-app-body {
  background: var(--bs-body-bg) !important;
}

html[data-bs-theme="dark"] {
  --aol-bg: var(--bs-body-bg);
  --aol-surface: var(--bs-paper-bg);
  --aol-text: var(--bs-body-color);
  --aol-muted: var(--bs-secondary-color);
  --aol-border: var(--bs-border-color);
  --aol-border-soft: var(--bs-border-color);
  --aol-primary: var(--bs-primary);
  --aol-primary-soft: color-mix(in srgb, var(--bs-body-bg) 86%, var(--bs-primary) 14%);
  --aol-switch-bg: color-mix(in srgb, var(--bs-paper-bg) 78%, #fff 22%);
  --aol-switch-knob-bg: var(--bs-body-bg);
}

html[data-bs-theme="dark"] .aol-topbar-icon-btn,
html[data-bs-theme="dark"] .aol-topbar-search-input,
html[data-bs-theme="dark"] .drop-zone {
  background: color-mix(in srgb, var(--bs-paper-bg) 92%, #000 8%);
}

html[data-bs-theme="dark"] .aol-topbar,
html.dark-mode .aol-topbar,
html[data-bs-theme="dark"] #header,
html.dark-mode #header,
html[data-bs-theme="dark"] #layout-navbar.bg-navbar-theme,
html.dark-mode #layout-navbar.bg-navbar-theme {
  background: var(--bs-body-bg) !important;
  background-image: none !important;
  backdrop-filter: none !important;
}

@media (max-width: 992px) {
  .aol-topbar {
    padding-left: 8px;
    padding-right: 8px;
  }

  .aol-topbar-user-meta {
    display: none;
  }

  .aol-topbar-search {
    max-width: 220px;
  }
}

@media (max-width: 767.98px) {
  .commissions-shell .commission-toolbar {
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .commissions-shell .commission-toolbar .notes-input-wide {
    grid-column: 1 / -1;
  }

  .commissions-shell .commission-toolbar .btn {
    width: 100%;
  }
}

@media (max-width: 576px) {
  .aol-topbar-search {
    display: none;
  }

  .aol-footer-copy {
    font-size: 12px;
    line-height: 1.25;
  }
}
