/* ============================================================
   Logisti Admin Redesign theme
   Loaded last: overrides AdminLTE 4 / Bootstrap 5 / custom-css.
   Tokens and patterns come from "Logisti Admin Redesign.dc.html".
   ============================================================ */

:root {
  --lg-red: #d50000;
  --lg-red-dark: #ad0202;
  --lg-red-soft: #fff0ef;
  --lg-red-border: #ffd7d3;
  --lg-ink: #10172a;
  --lg-body: #475467;
  --lg-muted: #667085;
  --lg-faint: #98a2b3;
  --lg-line: #eceef2;
  --lg-line-strong: #e3e6ec;
  --lg-line-faint: #f2f4f7;
  --lg-bg: #f5f6f8;
  --lg-bg-thead: #fafbfc;
  --lg-card-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
  --lg-pop-shadow: 0 16px 40px -12px rgba(16, 24, 40, 0.28);
  --lg-radius: 16px;
  --lg-radius-sm: 10px;
  --lg-font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --lg-green-bg: #ecfdf3;
  --lg-green-fg: #027a48;
  --lg-amber-bg: #fffaeb;
  --lg-amber-fg: #b54708;
  --lg-blue-bg: #eef4ff;
  --lg-blue-fg: #2d5bd7;
  --lg-violet-bg: #f4f3ff;
  --lg-violet-fg: #5d4bd7;
  --lg-rose-bg: #fef3f2;
  --lg-rose-fg: #b42318;
  --lg-grey-bg: #f2f4f7;
  --lg-grey-fg: #475467;
}

/* ---------- Base ---------- */

body {
  font-family: var(--lg-font) !important;
  background-color: var(--lg-bg) !important;
  color: var(--lg-ink);
  font-size: 13.5px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--lg-font);
  letter-spacing: -0.02em;
  color: var(--lg-ink);
}

a {
  color: var(--lg-red);
  text-decoration: none;
}

a:not(.btn):hover {
  color: var(--lg-red-dark) !important;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-thumb {
  background: #d7dbe2;
  border-radius: 999px;
  border: 3px solid var(--lg-bg);
}

::-webkit-scrollbar-track {
  background: transparent;
}

input::placeholder,
textarea::placeholder {
  color: var(--lg-faint) !important;
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--lg-red);
  outline-offset: 2px;
}

.bg-body-tertiary {
  background-color: var(--lg-bg) !important;
}

/* ---------- App header ---------- */

.app-header.navbar {
  background-color: #ffffff !important;
  border-bottom: 1px solid var(--lg-line);
  box-shadow: none;
  min-height: 72px;
}

.app-header .container-fluid {
  padding-left: 1.4rem;
  padding-right: 1.4rem;
  gap: 12px;
}

.app-header .nav-link {
  color: #344054 !important;
}

/* icon buttons in the header (sidebar toggle, fullscreen) */
.app-header .navbar-nav .nav-link {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--lg-line-strong);
  border-radius: var(--lg-radius-sm);
  background: #ffffff;
  color: #344054 !important;
  padding: 0;
  margin: 0 2px;
  font-size: 15px;
}

.app-header .navbar-nav .nav-link:hover {
  background: var(--lg-bg);
  color: var(--lg-ink) !important;
}

/* page identity block inside the header */
.lg-page-head {
  min-width: 0;
  line-height: 1.25;
  margin-left: 8px;
}

.lg-page-head h1 {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  color: var(--lg-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lg-page-head .breadcrumb {
  margin: 2px 0 0;
  padding: 0;
  background: transparent;
  font-size: 12.5px;
  --bs-breadcrumb-divider-color: var(--lg-faint);
}

.lg-page-head .breadcrumb-item,
.lg-page-head .breadcrumb-item a {
  color: var(--lg-faint);
  font-weight: 500;
}

.lg-page-head .breadcrumb-item.active {
  color: var(--lg-muted);
}

/* page info popover (moved Overview/Instructions blocks) */
.lg-info-btn {
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--lg-faint);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  font-size: 14px;
  flex: none;
}

.lg-info-btn:hover,
.lg-info-btn.open {
  color: var(--lg-red);
}

.lg-info-pop {
  position: absolute;
  top: calc(100% + 14px);
  inset-inline-start: 0;
  z-index: 80;
  width: 430px;
  max-width: 90vw;
  background: #ffffff;
  border: 1px solid var(--lg-line);
  border-radius: 14px;
  box-shadow: var(--lg-pop-shadow);
  padding: 18px 20px;
  font-size: 13.5px;
  color: var(--lg-body);
  white-space: normal;
}

.lg-info-pop strong {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--lg-muted);
  margin: 14px 0 6px;
}

.lg-info-pop strong:first-child {
  margin-top: 0;
}

.lg-info-pop p {
  margin: 0 0 4px;
  line-height: 1.5;
}

.lg-info-pop ul {
  margin: 0;
  padding-inline-start: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  line-height: 1.5;
}

.lg-date-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--lg-line-strong);
  border-radius: var(--lg-radius-sm);
  font-size: 13px;
  color: #344054;
  background: #ffffff;
}

.lg-date-chip i {
  color: var(--lg-muted);
  font-size: 14px;
}

.lg-header-divider {
  width: 1px;
  height: 30px;
  background: var(--lg-line);
  align-self: center;
  margin: 0 6px;
}

/* language toggle (EN / ع) */
.lg-lang-toggle {
  display: inline-flex;
  background: #f1f3f6;
  border-radius: 10px;
  padding: 3px;
}

.lg-lang-toggle button {
  border: 0;
  border-radius: 8px;
  background: transparent;
  font-family: var(--lg-font);
  font-size: 12px;
  font-weight: 700;
  color: var(--lg-muted);
  cursor: pointer;
  padding: 6px 11px;
}

.lg-lang-toggle button.active {
  background: #ffffff;
  color: var(--lg-ink);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06);
}

/* notifications bell */
.lg-bell-dot {
  position: absolute;
  top: 8px;
  inset-inline-end: 9px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--lg-red);
  border: 1.5px solid #ffffff;
}

.lg-bell-menu {
  width: 380px;
  max-width: 92vw;
  padding: 0 !important;
  overflow: hidden;
}

.lg-bell-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--lg-ink);
  padding: 14px 16px;
  border-bottom: 1px solid var(--lg-line-faint);
}

.lg-bell-list {
  max-height: 380px;
  overflow-y: auto;
  padding: 6px;
}

.lg-bell-item {
  display: flex;
  gap: 11px;
  padding: 10px 10px;
  border-radius: 10px;
  color: var(--lg-ink);
  text-decoration: none;
}

.lg-bell-item:hover {
  background: var(--lg-bg);
  color: var(--lg-ink) !important;
}

.lg-bell-item .lg-bell-ic {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--lg-red-soft);
  color: var(--lg-red);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  font-size: 15px;
}

.lg-bell-item.read .lg-bell-ic {
  background: var(--lg-grey-bg);
  color: var(--lg-muted);
}

.lg-bell-item .lg-bell-title {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.3;
}

.lg-bell-item .lg-bell-desc {
  font-size: 12.5px;
  color: var(--lg-muted);
  margin-top: 2px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.lg-bell-item .lg-bell-time {
  font-size: 11.5px;
  color: var(--lg-faint);
  margin-top: 3px;
}

.lg-bell-empty {
  padding: 26px 12px;
  text-align: center;
  color: var(--lg-faint);
  font-size: 13.5px;
}

.lg-bell-foot {
  display: flex;
  justify-content: flex-end;
  padding: 11px 16px;
  background: var(--lg-bg-thead);
  border-top: 1px solid var(--lg-line-faint);
}

.lg-bell-foot a {
  font-size: 12.5px;
  font-weight: 700;
}

.lg-bell-unread-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--lg-red);
  flex: none;
  margin-top: 6px;
}

.lg-inbox-list .lg-bell-item {
  border-bottom: 1px solid var(--lg-line-faint);
  border-radius: 0;
  padding: 13px 16px;
}

.lg-inbox-list .lg-bell-item:last-child {
  border-bottom: 0;
}

/* user chip */
.app-header .user-menu > .nav-link {
  width: auto;
  height: auto;
  border: 0;
  background: transparent !important;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 4px 6px;
}

.app-header .user-menu .user-image {
  width: 36px;
  height: 36px;
  margin: 0;
  box-shadow: none !important;
}

.app-header .user-menu .lg-user-meta {
  line-height: 1.3;
  text-align: start;
}

.app-header .user-menu .lg-user-meta .lg-user-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--lg-ink);
  display: block;
}

.app-header .user-menu .lg-user-meta .lg-user-role {
  font-size: 12px;
  color: var(--lg-faint);
  display: block;
}

.app-header .user-menu .dropdown-menu {
  border: 1px solid var(--lg-line);
  border-radius: 12px;
  box-shadow: var(--lg-pop-shadow);
  padding: 6px;
  min-width: 220px;
  margin-top: 10px;
}

.app-header .user-menu .dropdown-menu .dropdown-item,
.app-header .user-menu .dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 9px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--lg-ink);
  padding: 9px 10px;
}

.app-header .user-menu .dropdown-menu a:hover {
  background: var(--lg-bg);
  color: var(--lg-ink) !important;
}

.app-header .user-menu .dropdown-menu .lg-menu-danger {
  color: var(--lg-rose-fg);
}

.app-header .user-menu .dropdown-menu .lg-menu-danger:hover {
  background: var(--lg-rose-bg);
  color: var(--lg-rose-fg) !important;
}

.app-header .user-menu .dropdown-divider {
  margin: 4px 6px;
  border-color: var(--lg-line-faint);
  opacity: 1;
}

/* ---------- Sidebar ---------- */

.app-sidebar {
  background-color: #ffffff !important;
  border-right: 1px solid var(--lg-line);
  box-shadow: none !important;
}

.app-sidebar .sidebar-brand {
  background-color: #ffffff !important;
  border-bottom: 0;
  height: 72px;
  display: flex;
  align-items: center;
  padding: 0 20px;
}

.app-sidebar .sidebar-brand .brand-link {
  padding: 0;
}

.app-sidebar .sidebar-brand .brand-image {
  height: 26px;
  max-height: 26px;
  width: auto;
  margin: 0;
}

.lg-sidebar-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--lg-faint);
  padding: 10px 14px 8px;
}

.sidebar-mini.sidebar-collapse .app-sidebar:not(:hover) .lg-sidebar-label {
  visibility: hidden;
}

.app-sidebar .sidebar-wrapper {
  padding: 0 10px 16px;
}

.app-sidebar .nav-link,
.app-sidebar .sidebar-menu > .nav-item > .nav-link {
  color: var(--lg-body) !important;
  font-size: 13.5px;
  font-weight: 500;
  border-radius: var(--lg-radius-sm);
  margin: 1px 0;
  padding-top: 0.52rem;
  padding-bottom: 0.52rem;
  position: relative;
}

.app-sidebar .nav-link:hover {
  background-color: var(--lg-bg) !important;
  color: var(--lg-ink) !important;
}

.app-sidebar .nav-icon {
  color: var(--lg-faint);
  font-size: 1.05rem;
}

.app-sidebar .nav-link:hover .nav-icon {
  color: var(--lg-muted);
}

/* active state: soft red pill + left marker */
.app-sidebar .sidebar-menu .nav-item > .nav-link.active {
  background-color: var(--lg-red-soft) !important;
  color: var(--lg-red) !important;
  font-weight: 700;
  box-shadow: none;
}

.app-sidebar .sidebar-menu .nav-item > .nav-link.active .nav-icon {
  color: var(--lg-red);
}

.app-sidebar .sidebar-menu > .nav-item > .nav-link.active::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 11px;
  bottom: 11px;
  width: 3px;
  border-radius: 999px;
  background: var(--lg-red);
}

/* open parents of the active submenu keep a quiet style */
.app-sidebar .sidebar-menu .nav-item.menu-open > .nav-link.active:not(:hover) {
  background-color: transparent !important;
  color: var(--lg-ink) !important;
}

.app-sidebar .sidebar-menu .nav-item.menu-open > .nav-link.active::before {
  display: none;
}

/* submenu tree — v4 design: level 1 sits in a soft grey container,
   level 2+ hangs off a thin inline rule */
.sidebar-wrapper .sidebar-menu.sidebar-structured .nav-treeview {
  margin: 3px 0 6px;
  padding: 4px;
  background: #f7f8fa;
  border-radius: 10px;
  border-left: 0;
}

.sidebar-wrapper .sidebar-menu.sidebar-structured .nav-treeview .nav-link {
  font-size: 13px;
  min-height: 34px;
  border-radius: 8px;
}

.sidebar-wrapper .nav-treeview > .nav-item > .nav-link.active {
  background-color: #ffffff !important;
  color: var(--lg-red) !important;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06);
}

/* third level and deeper */
.sidebar-wrapper .sidebar-menu.sidebar-structured .nav-treeview .nav-treeview {
  background: transparent;
  border-radius: 0;
  margin: 1px 0 4px;
  margin-inline-start: 15px;
  padding: 0 0 0 12px;
  border-inline-start: 1.5px solid #e6e9ef;
}

.sidebar-wrapper .sidebar-menu.sidebar-structured .nav-treeview .nav-treeview .nav-link {
  min-height: 30px;
  font-size: 12.5px;
  border-radius: 7px;
}

.sidebar-wrapper .sidebar-menu.sidebar-structured .nav-treeview .nav-treeview .nav-link.active {
  background-color: #ffffff !important;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06);
}

/* bullet placeholder for icon-less items */
.sidebar-wrapper .sidebar-menu.sidebar-structured .nav-icon.nav-bullet::before {
  background-color: #cbd2dd;
  width: 0.32rem;
  height: 0.32rem;
}

.app-sidebar .nav-link.active .nav-bullet::before {
  background-color: var(--lg-red) !important;
}

.app-sidebar .nav-arrow {
  color: #b6bece;
}

/* pending-count badge (driver approvals) */
.app-sidebar .badge,
.app-sidebar .badge-red {
  font-size: 11px;
  font-weight: 700;
  color: var(--lg-red);
  background-color: var(--lg-red-soft) !important;
  border-radius: 999px;
  padding: 2px 7px;
}

/* sidebar footer: fixed sign-out (design) */
.app-sidebar {
  display: flex;
  flex-direction: column;
}

.app-sidebar .sidebar-wrapper {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.lg-sidebar-footer {
  border-top: 1px solid var(--lg-line);
  padding: 0 12px;
  height: 62px;
  min-height: 62px;
  display: flex;
  align-items: center;
  flex: none;
  background: #ffffff;
}

.lg-sidebar-footer .lg-sidebar-signout {
  width: 100%;
}

.lg-sidebar-signout {
  display: flex;
  align-items: center;
  gap: 11px;
  height: 38px;
  padding: 0 10px;
  border-radius: 10px;
  font-size: 13.5px;
  color: var(--lg-muted) !important;
  text-decoration: none;
}

.lg-sidebar-signout i {
  font-size: 16px;
  color: var(--lg-faint);
}

.lg-sidebar-signout:hover {
  background: var(--lg-rose-bg);
  color: var(--lg-rose-fg) !important;
}

.lg-sidebar-signout:hover i {
  color: var(--lg-rose-fg);
}

.sidebar-mini.sidebar-collapse .app-sidebar:not(:hover) .lg-sidebar-signout span {
  display: none;
}

/* collapsed rail keeps a clean white look */
.sidebar-mini.sidebar-collapse .app-sidebar {
  background-color: #ffffff !important;
}

/* ---------- Content & footer ---------- */

.app-content {
  padding-top: 8px;
}

.app-main {
  background-color: var(--lg-bg);
}

.app-footer {
  background-color: #ffffff;
  border-top: 1px solid var(--lg-line);
  color: var(--lg-faint);
  font-size: 12.5px;
  font-weight: 400;
  height: 62px;
  min-height: 62px;
  display: flex;
  align-items: center;
  padding: 0 28px;
}

.app-footer strong {
  font-weight: 400;
}

.app-footer a {
  font-weight: 600;
}

/* ---------- Cards ---------- */

.card {
  border: 1px solid var(--lg-line);
  border-radius: var(--lg-radius);
  box-shadow: var(--lg-card-shadow);
  background: #ffffff;
}

.card.card-outline,
.card.card-primary.card-outline {
  border-top: 1px solid var(--lg-line) !important;
}

.card > .card-header {
  background: #ffffff;
  border-bottom: 1px solid var(--lg-line-faint);
  border-radius: var(--lg-radius) var(--lg-radius) 0 0 !important;
  padding: 16px 20px;
}

.card .card-title {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--lg-ink);
}

.card > .card-body {
  padding: 20px;
}

.card > .card-footer {
  background: var(--lg-bg-thead);
  border-top: 1px solid var(--lg-line);
  border-radius: 0 0 var(--lg-radius) var(--lg-radius) !important;
}

/* ---------- Buttons ---------- */

.btn {
  font-family: var(--lg-font);
  border-radius: var(--lg-radius-sm);
  font-size: 13.5px;
  font-weight: 600;
  padding: 0.52rem 1rem;
  box-shadow: none !important;
}

.btn-sm {
  border-radius: 8px;
  font-size: 12.5px;
  padding: 0.32rem 0.75rem;
}

.btn-primary,
.btn-success {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--lg-red);
  --bs-btn-border-color: var(--lg-red);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--lg-red-dark);
  --bs-btn-hover-border-color: var(--lg-red-dark);
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--lg-red-dark);
  --bs-btn-active-border-color: var(--lg-red-dark);
  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: #e98a8a;
  --bs-btn-disabled-border-color: #e98a8a;
  font-weight: 700;
}

.btn-secondary,
.btn-default,
.btn-light,
.btn-outline-secondary {
  --bs-btn-color: #344054;
  --bs-btn-bg: #ffffff;
  --bs-btn-border-color: var(--lg-line-strong);
  --bs-btn-hover-color: var(--lg-ink);
  --bs-btn-hover-bg: var(--lg-bg);
  --bs-btn-hover-border-color: var(--lg-line-strong);
  --bs-btn-active-color: var(--lg-ink);
  --bs-btn-active-bg: var(--lg-bg);
  --bs-btn-active-border-color: var(--lg-line-strong);
  --bs-btn-disabled-color: var(--lg-faint);
  --bs-btn-disabled-bg: #ffffff;
  --bs-btn-disabled-border-color: var(--lg-line-strong);
}

.btn-danger {
  --bs-btn-bg: #b42318;
  --bs-btn-border-color: #b42318;
  --bs-btn-hover-bg: #912018;
  --bs-btn-hover-border-color: #912018;
  --bs-btn-active-bg: #912018;
  --bs-btn-active-border-color: #912018;
}

.btn-outline-primary {
  --bs-btn-color: var(--lg-red);
  --bs-btn-border-color: var(--lg-red-border);
  --bs-btn-hover-color: var(--lg-red);
  --bs-btn-hover-bg: var(--lg-red-soft);
  --bs-btn-hover-border-color: var(--lg-red-border);
  --bs-btn-active-color: var(--lg-red);
  --bs-btn-active-bg: var(--lg-red-soft);
  --bs-btn-active-border-color: var(--lg-red-border);
}

.btn-info,
.btn-warning {
  border-radius: var(--lg-radius-sm);
}

/* ---------- Forms ---------- */

label,
.form-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--lg-ink);
  margin-bottom: 7px;
}

.form-control,
.form-select {
  border: 1px solid var(--lg-line-strong);
  border-radius: var(--lg-radius-sm);
  font-family: var(--lg-font);
  font-size: 13.5px;
  color: var(--lg-ink);
  min-height: 42px;
  padding: 0.5rem 0.85rem;
}

textarea.form-control {
  min-height: 88px;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--lg-red);
  box-shadow: 0 0 0 3px rgba(213, 0, 0, 0.08);
}

.form-control[readonly],
.form-control:disabled,
.form-select:disabled {
  background-color: var(--lg-bg-thead);
  color: var(--lg-muted);
}

.form-floating > .form-control {
  min-height: 52px;
}

.form-floating > label {
  color: var(--lg-faint);
  font-weight: 500;
}

.form-check-input {
  width: 16px;
  height: 16px;
  border: 1px solid #d0d5dd;
  border-radius: 5px;
  margin-top: 0.18em;
}

.form-check-input:checked {
  background-color: var(--lg-red);
  border-color: var(--lg-red);
}

.form-check-input:focus {
  border-color: var(--lg-red);
  box-shadow: 0 0 0 3px rgba(213, 0, 0, 0.08);
}

.form-switch .form-check-input {
  width: 2.6em;
  height: 1.45em;
  border-radius: 999px;
}

.input-group-text {
  border: 1px solid var(--lg-line-strong);
  border-radius: var(--lg-radius-sm) 0 0 var(--lg-radius-sm);
  background: var(--lg-bg-thead);
  color: var(--lg-muted);
  font-size: 13px;
}

.required-label::after {
  color: var(--lg-red);
}

/* select2 to match inputs */
.select2-container--bootstrap-5 .select2-selection,
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
  border: 1px solid var(--lg-line-strong) !important;
  border-radius: var(--lg-radius-sm) !important;
  min-height: 42px;
  font-family: var(--lg-font);
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 40px;
  color: var(--lg-ink);
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 40px;
}

.select2-dropdown {
  border: 1px solid var(--lg-line) !important;
  border-radius: 12px !important;
  box-shadow: var(--lg-pop-shadow);
  overflow: hidden;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
  background-color: var(--lg-red-soft);
  color: var(--lg-red);
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
  background-color: var(--lg-grey-bg);
  border: 0;
  border-radius: 6px;
  color: var(--lg-grey-fg);
  font-size: 12px;
  font-weight: 600;
}

/* validation */
.text-danger,
.field-validation-error {
  color: #b42318 !important;
  font-size: 12.5px;
}

.needs-validation .input-validation-error:not([type="checkbox"]) {
  border-color: #f04438;
}

.needs-validation .input-validation-error:focus {
  border-color: #f04438;
  box-shadow: 0 0 0 3px rgba(240, 68, 56, 0.12);
}

.needs-validation .valid:not([type="checkbox"]) {
  border-color: var(--lg-line-strong);
  background-image: none;
}

.needs-validation .valid:focus {
  border-color: var(--lg-red);
  box-shadow: 0 0 0 3px rgba(213, 0, 0, 0.08);
}

/* ---------- Tables / DataTables ---------- */

.table {
  font-size: 13.5px;
  color: var(--lg-ink);
  --bs-table-striped-bg: transparent;
  margin-bottom: 0.4rem;
}

.table > :not(caption) > * > * {
  padding: 13px 14px;
  border-bottom-color: var(--lg-line-faint);
}

/* header: quiet grey instead of the legacy red */
.cus-table-header,
.cus-table-header th,
.cus-table-header tr th,
.table thead th,
table.dataTable thead th {
  background-color: var(--lg-bg-thead) !important;
  color: var(--lg-muted) !important;
  font-size: 12.5px;
  font-weight: 600 !important;
  text-align: start;
  border-bottom: 1px solid var(--lg-line) !important;
  white-space: nowrap;
  padding: 12px 14px;
}

.table-striped > tbody > tr:nth-of-type(odd) > * {
  --bs-table-accent-bg: transparent;
}

.table tbody tr:hover > * {
  background-color: var(--lg-bg-thead);
}

.table td {
  vertical-align: middle;
  color: var(--lg-ink);
}

/* legacy zebra classes applied by dataTablesHelper */
tr.rowstyle td,
tr.Altrowstyle td {
  background-color: transparent;
}

/* kill striping across bootstrap/adminlte variable generations — design rows are white */
.table-striped > tbody > tr:nth-of-type(odd) > *,
.table-striped > tbody > tr:nth-of-type(odd) > td,
.table-striped > tbody > tr:nth-of-type(odd) > th {
  --bs-table-bg-type: transparent;
  --bs-table-accent-bg: transparent;
  background-color: transparent;
}

/* wide tables scroll INSIDE their card (design: overflow-x on the table wrap) */
.card-body > .dataTables_wrapper > .row > [class*="col-"]:has(> .dataTable),
.card-body > .dataTables_wrapper > .row > [class*="col-"]:has(> table) {
  overflow-x: auto;
}

.card-body > .dataTables_wrapper {
  max-width: 100%;
}

/* fallback containment for tables placed straight into a card body */
.card-body:has(> table),
.card-body:has(> .dataTables_wrapper) {
  overflow-x: auto;
}

.table-responsive {
  overflow-x: auto;
}

/* sort glyphs */
table.dataTable thead th.sorting:after,
table.dataTable thead th.sorting_asc:after,
table.dataTable thead th.sorting_desc:after {
  color: var(--lg-faint);
}

/* DataTables chrome */
.dataTables_wrapper .dataTables_paginate {
  padding-top: 14px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
  border: 0 !important;
  background: transparent !important;
  padding: 0;
  margin: 0 2px;
}

.page-item .page-link,
.dataTables_wrapper .dataTables_paginate .paginate_button .page-link {
  min-width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--lg-line-strong);
  border-radius: 8px !important;
  background: #ffffff;
  color: var(--lg-grey-fg) !important;
  font-size: 12.5px;
  font-weight: 500;
  margin: 0 2px;
  padding: 0 8px;
  box-shadow: none !important;
}

.page-item.active .page-link {
  background-color: var(--lg-red) !important;
  border-color: var(--lg-red) !important;
  color: #ffffff !important;
  font-weight: 700;
}

.page-item.disabled .page-link {
  color: var(--lg-faint) !important;
  background: #ffffff;
  border-color: var(--lg-line);
}

.dataTables_wrapper .dataTables_info {
  color: var(--lg-muted);
  font-size: 12.5px;
}

.dataTables_wrapper .dataTables_processing {
  border-radius: 12px;
  border: 1px solid var(--lg-line);
  box-shadow: var(--lg-pop-shadow);
  color: var(--lg-muted);
  font-size: 13px;
}

/* ---------- Table row actions (design: quiet 32px white buttons) ---------- */

.table .btn,
table.dataTable .btn {
  height: 32px;
  padding: 2px 12px;
  border: 1px solid var(--lg-line-strong);
  border-radius: 8px;
  background: #ffffff;
  color: #344054;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.6;
  box-shadow: none !important;
}

.table .btn:hover,
table.dataTable .btn:hover {
  background: var(--lg-bg);
  border-color: var(--lg-line-strong);
  color: var(--lg-ink);
}

/* destructive row actions keep a red hint without going solid */
.table .btn-danger,
table.dataTable .btn-danger {
  color: #b42318;
  border-color: #fecdca;
}

.table .btn-danger:hover,
table.dataTable .btn-danger:hover {
  background: var(--lg-rose-bg);
  color: #912018;
  border-color: #fecdca;
}

/* bare icon links in action columns (legacy `<a><i class="bi bi-pencil"/></a>` pattern)
   become the design's quiet 32px icon buttons */
.table td a:not(.btn):has(> i:only-child),
table.dataTable td a:not(.btn):has(> i:only-child) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--lg-line-strong);
  border-radius: 8px;
  background: #ffffff;
  color: #344054 !important;
  margin-inline-end: 4px;
  font-size: 14px;
  vertical-align: middle;
}

.table td a:not(.btn):has(> i:only-child):hover,
table.dataTable td a:not(.btn):has(> i:only-child):hover {
  background: var(--lg-bg);
  color: var(--lg-ink) !important;
  border-color: #d0d5dd;
}

/* ---------- Badges / status tags ---------- */

.badge {
  font-size: 12px;
  font-weight: 600;
  border-radius: 999px;
  padding: 4px 10px;
  letter-spacing: 0;
}

.badge.bg-success,
.badge.text-bg-success,
.badge.badge-success {
  background-color: var(--lg-green-bg) !important;
  color: var(--lg-green-fg) !important;
}

.badge.bg-danger,
.badge.text-bg-danger,
.badge.badge-danger {
  background-color: var(--lg-rose-bg) !important;
  color: var(--lg-rose-fg) !important;
}

.badge.bg-warning,
.badge.text-bg-warning,
.badge.badge-warning {
  background-color: var(--lg-amber-bg) !important;
  color: var(--lg-amber-fg) !important;
}

.badge.bg-info,
.badge.text-bg-info,
.badge.badge-info {
  background-color: var(--lg-blue-bg) !important;
  color: var(--lg-blue-fg) !important;
}

.badge.bg-primary,
.badge.text-bg-primary,
.badge.badge-primary {
  background-color: var(--lg-red-soft) !important;
  color: var(--lg-red) !important;
}

.badge.bg-secondary,
.badge.text-bg-secondary,
.badge.badge-secondary {
  background-color: var(--lg-grey-bg) !important;
  color: var(--lg-grey-fg) !important;
}

/* list chips (recipients, channels, tags): quiet grey squares per design */
.badge.bg-light,
.badge.bg-info-subtle,
.badge.text-bg-light {
  background-color: var(--lg-grey-bg) !important;
  color: var(--lg-grey-fg) !important;
  border: 0 !important;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 8px;
}

/* ---------- Alerts (soft note cards) ---------- */

.alert {
  border-radius: 12px;
  font-size: 13.5px;
  border-width: 1px;
}

.alert-warning {
  background-color: #fff8f7 !important;
  border-color: #ffe0dd !important;
  color: #98443c !important;
}

.alert-warning strong {
  color: #7c1005;
}

.alert-info {
  background-color: var(--lg-blue-bg);
  border-color: #d9e4ff;
  color: #2d5bd7;
}

.alert-success {
  background-color: var(--lg-green-bg);
  border-color: #bbf0d0;
  color: var(--lg-green-fg);
}

.alert-danger {
  background-color: var(--lg-rose-bg);
  border-color: #fecdca;
  color: var(--lg-rose-fg);
}

.alert-light {
  background-color: var(--lg-bg-thead);
  border-color: var(--lg-line) !important;
  color: var(--lg-muted);
}

/* ---------- Tabs ---------- */

/* bootstrap tab navs = the design's segmented control (dashboard-style).
   List-page filter tabs use .lg-list-tabs (underline style) instead. */
.nav-tabs {
  display: inline-flex;
  border-bottom: 0;
  background: #eef0f4;
  border-radius: 12px;
  padding: 4px;
  gap: 2px;
  flex-wrap: wrap;
}

.nav-tabs .nav-item {
  margin-bottom: 0;
}

.nav-tabs .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0 !important;
  border-radius: 9px !important;
  background: transparent !important;
  color: var(--lg-muted) !important;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 15px;
  margin-bottom: 0;
}

.nav-tabs .nav-link .lg-tab-ic {
  font-size: 14px;
  color: var(--lg-faint);
}

.nav-tabs .nav-link:hover {
  color: var(--lg-ink) !important;
  background: rgba(255, 255, 255, 0.6) !important;
}

.nav-tabs .nav-link.active,
.nav-tabs .nav-item.show .nav-link {
  color: var(--lg-ink) !important;
  background-color: #ffffff !important;
  font-weight: 700;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06);
}

.nav-tabs .nav-link.active .lg-tab-ic {
  color: var(--lg-red);
}

/* nav-pills become the design's segmented control (detail-page tabs) */
.nav-pills {
  display: inline-flex;
  background: #eef0f4;
  border-radius: 12px;
  padding: 4px;
  gap: 2px;
}

.nav-pills .nav-link {
  border-radius: 9px;
  font-size: 13px;
  font-weight: 500;
  color: var(--lg-muted);
  padding: 8px 15px;
}

.nav-pills .nav-link:hover {
  color: var(--lg-ink);
  background: rgba(255, 255, 255, 0.6);
}

.nav-pills .nav-link.active {
  background-color: #ffffff;
  color: var(--lg-ink);
  font-weight: 700;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06);
}

/* ---------- Modals ---------- */

.modal-content {
  border: 0;
  border-radius: 18px;
  box-shadow: 0 32px 64px -16px rgba(16, 24, 40, 0.36);
  overflow: hidden;
}

.modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--lg-line-faint);
}

.modal-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--lg-ink);
}

.modal-header .close,
.modal-header .btn-close {
  width: 34px;
  height: 34px;
  border: 1px solid var(--lg-line-strong);
  border-radius: 9px;
  background-color: #ffffff;
  color: var(--lg-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  font-size: 15px;
}

.modal-header .close:hover {
  color: var(--lg-ink) !important;
  background: var(--lg-bg);
}

.modal-body {
  padding: 22px 24px;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--lg-line-faint);
  background: var(--lg-bg-thead);
}

.modal-backdrop.show {
  opacity: 0.45;
  background-color: #101828;
}

/* ---------- Notification editor (design modal) ---------- */

.lg-lang-panel {
  background: var(--lg-bg-thead);
  border: 1px solid var(--lg-line);
  border-radius: 14px;
  padding: 16px 18px;
  height: 100%;
}

.lg-lang-panel .form-control {
  background: #ffffff;
}

.lg-lang-panel-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--lg-muted);
  margin-bottom: 14px;
}

.lg-matrix-wrap {
  border: 1px solid var(--lg-line);
  border-radius: 14px;
  overflow: hidden;
}

.lg-matrix-table thead th {
  padding: 11px 16px;
}

.lg-matrix-table tbody td {
  padding: 11px 16px;
  vertical-align: middle;
}

.lg-matrix-table tbody tr:last-child td {
  border-bottom: 0;
}

.lg-matrix-table .form-check-input {
  width: 17px;
  height: 17px;
  margin-top: 0;
  vertical-align: middle;
  float: none;
}

.lg-matrix-table td .form-check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-left: 0;
}

.lg-matrix-table td .form-check .form-check-input {
  margin-left: 0;
}

/* ---------- Dropdown menus (generic) ---------- */

.dropdown-menu {
  border: 1px solid var(--lg-line);
  border-radius: 12px;
  box-shadow: var(--lg-pop-shadow);
  font-size: 13px;
}

.dropdown-menu .dropdown-item {
  border-radius: 8px;
  font-weight: 500;
  color: var(--lg-ink);
}

.dropdown-menu .dropdown-item:hover {
  background: var(--lg-bg);
}

/* ---------- Misc plugin chrome ---------- */

.daterangepicker {
  font-family: var(--lg-font);
  border: 1px solid var(--lg-line);
  border-radius: 12px;
  box-shadow: var(--lg-pop-shadow);
}

.daterangepicker td.active,
.daterangepicker td.active:hover {
  background-color: var(--lg-red);
}

.swal2-popup {
  font-family: var(--lg-font) !important;
  border-radius: 18px !important;
}

.swal2-styled.swal2-confirm {
  background-color: var(--lg-red) !important;
  border-radius: var(--lg-radius-sm) !important;
  box-shadow: none !important;
}

/* ---------- Loading: skeletons + slim top progress (design) ---------- */

@keyframes lgSkelShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.lg-skel-bar {
  display: block;
  max-width: 100%;
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(90deg, #eef0f4 25%, #f7f8fa 37%, #eef0f4 63%);
  background-size: 200% 100%;
  animation: lgSkelShimmer 1.4s ease-in-out infinite;
}

.lg-skel-bar.sub {
  height: 10px;
  margin-top: 7px;
}

tr.lg-skel-row td {
  padding: 15px 18px;
  border-bottom: 1px solid var(--lg-line-faint);
}

/* refresh-in-place: keep current rows visible but dimmed while new data loads */
table.lg-refreshing tbody {
  opacity: 0.45;
  pointer-events: none;
  transition: opacity 0.15s ease-in-out;
}

/* legacy overlay (ShowLoader/HideLoader): transparent click-shield +
   slim indeterminate top progress bar — the gif spinner is gone */
.overlay {
  background: transparent !important;
  opacity: 1 !important;
}

.overlay::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 2001;
  background: linear-gradient(90deg, transparent 0%, #d50000 30%, #ff6b5e 50%, #d50000 70%, transparent 100%);
  background-size: 50% 100%;
  background-repeat: no-repeat;
  animation: lgTopBar 1.1s linear infinite;
}

@keyframes lgTopBar {
  0% { background-position: -60% 0; }
  100% { background-position: 160% 0; }
}

#loading-img {
  background: none !important;
}

/* breadcrumb (any page still rendering its own) */
.breadcrumb {
  font-size: 12.5px;
}

.breadcrumb-item a {
  color: var(--lg-faint);
}

.breadcrumb-item.active {
  color: var(--lg-muted);
}

/* progress bars */
.progress {
  border-radius: 999px;
  background-color: var(--lg-line-faint);
}

.progress-bar {
  background-color: var(--lg-red);
}

/* list groups */
.list-group-item:hover {
  background-color: var(--lg-bg-thead);
  color: var(--lg-ink);
}

.list-group-item.active {
  background-color: var(--lg-red-soft);
  border-color: var(--lg-red-border);
  color: var(--lg-red);
}

/* ---------- KPI cards + audience pills (referrals, finance) ---------- */

.lg-kpi-card {
  background: #ffffff;
  border: 1px solid var(--lg-line);
  border-radius: 16px;
  box-shadow: var(--lg-card-shadow);
  padding: 16px 18px;
}

.lg-kpi-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lg-kpi-ic {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  font-size: 15px;
}

.lg-kpi-value {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--lg-ink);
  margin-top: 12px;
}

.lg-kpi-unit {
  font-size: 13px;
  font-weight: 600;
  color: var(--lg-muted);
}

.lg-aud-pill {
  display: inline-flex;
  font-size: 12.5px;
  font-weight: 600;
  border-radius: 999px;
  padding: 4px 10px;
  white-space: nowrap;
}

.lg-aud-pill.aud-user {
  background: var(--lg-blue-bg);
  color: var(--lg-blue-fg);
}

.lg-aud-pill.aud-freelancer {
  background: var(--lg-violet-bg);
  color: var(--lg-violet-fg);
}

/* ============================================================
   List pages: status tabs + filter toolbar (design list pattern)
   ============================================================ */

/* list status tabs — segmented control with icons + count pills (design) */
.lg-list-tabs {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
  background: #eef0f4;
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 18px;
}

.lg-list-tabs .lg-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  font-family: var(--lg-font);
  font-size: 13px;
  font-weight: 500;
  color: var(--lg-muted);
  cursor: pointer;
  padding: 8px 14px;
  text-decoration: none;
}

.lg-list-tabs .lg-tab i {
  font-size: 14px;
  color: var(--lg-faint);
}

.lg-list-tabs .lg-tab:hover {
  color: var(--lg-ink) !important;
  background: rgba(255, 255, 255, 0.6);
}

.lg-list-tabs .lg-tab .lg-tab-count {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--lg-muted);
  background: #e6e9ef;
  border-radius: 999px;
  padding: 2px 8px;
  min-width: 18px;
  text-align: center;
}

.lg-list-tabs .lg-tab.active {
  color: var(--lg-ink) !important;
  font-weight: 700;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06);
}

.lg-list-tabs .lg-tab.active i {
  color: var(--lg-red);
}

.lg-list-tabs .lg-tab.active .lg-tab-count {
  color: var(--lg-red);
  background: var(--lg-red-soft);
}

.lg-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.lg-toolbar .lg-search {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 300px;
  max-width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--lg-line-strong);
  border-radius: var(--lg-radius-sm);
  background: #ffffff;
}

.lg-toolbar .lg-search i {
  color: var(--lg-faint);
  font-size: 14px;
  flex: none;
}

.lg-toolbar .lg-search input,
.lg-toolbar .lg-search input.form-control {
  flex: 1;
  min-width: 0;
  border: 0 !important;
  background: transparent !important;
  font-family: var(--lg-font);
  font-size: 13.5px;
  outline: none !important;
  box-shadow: none !important;
  color: var(--lg-ink);
  min-height: 0;
  height: 100%;
  padding: 0;
}

.lg-toolbar .lg-filter {
  height: 40px;
  min-height: 40px;
}

.lg-toolbar select.lg-filter,
.lg-toolbar .lg-filter.form-select,
.lg-toolbar .lg-filter.form-control {
  width: auto;
  min-width: 150px;
  font-weight: 500;
  color: #344054;
}

.lg-toolbar .lg-spacer {
  flex: 1;
}

.lg-toolbar .btn {
  height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

/* ============================================================
   Design components (v3): KPI tiles, claims grid, upload,
   confirm dialog, toast, empty state, date range
   ============================================================ */

/* Payments KPI cards (PaymentRequests) */
.pr-kpi-card {
  border: 1px solid var(--lg-line) !important;
  border-radius: 16px !important;
  box-shadow: var(--lg-card-shadow) !important;
}

.pr-kpi-card .pr-kpi-icon.bg-primary-subtle {
  background: var(--lg-red-soft) !important;
  color: var(--lg-red) !important;
}

.pr-kpi-card .pr-kpi-icon.bg-warning-subtle {
  background: var(--lg-amber-bg) !important;
  color: var(--lg-amber-fg) !important;
}

.pr-kpi-card .pr-kpi-icon.bg-success-subtle {
  background: var(--lg-green-bg) !important;
  color: var(--lg-green-fg) !important;
}

.pr-kpi-card .pr-kpi-icon.bg-danger-subtle {
  background: var(--lg-rose-bg) !important;
  color: var(--lg-rose-fg) !important;
}

.pr-kpi-card .pr-kpi-icon.bg-info-subtle {
  background: var(--lg-blue-bg) !important;
  color: var(--lg-blue-fg) !important;
}

.pr-kpi-card .text-primary { color: var(--lg-red) !important; }
.pr-kpi-card .text-warning { color: var(--lg-amber-fg) !important; }
.pr-kpi-card .text-success { color: var(--lg-green-fg) !important; }
.pr-kpi-card .text-danger { color: var(--lg-rose-fg) !important; }
.pr-kpi-card .text-info { color: var(--lg-blue-fg) !important; }

.pr-offcanvas {
  border-inline-start: 1px solid var(--lg-line);
}

/* Roles & claims permission cards (Masonry grid) */
.grid-item .list-group {
  border: 1px solid var(--lg-line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--lg-card-shadow);
}

.grid-item .list-group-item {
  border-color: var(--lg-line-faint);
  font-size: 13.5px;
  padding: 9px 14px;
}

.grid-item .list-group-item.active,
.grid-item .list-group-item.active.disabled {
  background: var(--lg-bg-thead);
  border-color: var(--lg-line);
  color: var(--lg-ink);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 1;
}

.grid-item .form-check {
  margin-bottom: 0;
}

/* Upload zones (dropzone + custom drops) */
.dropzone,
.pm-drop {
  border: 1.5px dashed #d0d5dd !important;
  border-radius: 14px !important;
  background: var(--lg-bg-thead) !important;
  color: var(--lg-muted);
  font-family: var(--lg-font);
}

.dropzone:hover,
.pm-drop:hover {
  background: var(--lg-bg) !important;
  border-color: var(--lg-faint) !important;
}

.dropzone .dz-message {
  color: var(--lg-muted);
  font-size: 13.5px;
  font-weight: 500;
}

/* Confirm dialog + toast (sweetalert2 / bootstrap-notify) */
.swal2-title {
  font-size: 19px !important;
  font-weight: 700 !important;
  color: var(--lg-ink) !important;
}

.swal2-html-container {
  font-size: 14px !important;
  color: var(--lg-muted) !important;
}

.swal2-styled.swal2-cancel {
  background-color: #ffffff !important;
  color: #344054 !important;
  border: 1px solid var(--lg-line-strong) !important;
  border-radius: var(--lg-radius-sm) !important;
  box-shadow: none !important;
  font-weight: 600 !important;
}

.swal2-styled.swal2-deny {
  border-radius: var(--lg-radius-sm) !important;
  box-shadow: none !important;
}

.swal2-icon.swal2-warning {
  border-color: var(--lg-amber-fg) !important;
  color: var(--lg-amber-fg) !important;
}

[data-notify="container"] {
  border-radius: 12px !important;
  border: 1px solid var(--lg-line) !important;
  box-shadow: var(--lg-pop-shadow) !important;
  font-family: var(--lg-font) !important;
  font-size: 13.5px;
}

/* Empty states (DataTables + generic) */
.dataTables_empty {
  padding: 44px 20px !important;
  color: var(--lg-faint) !important;
  font-size: 13.5px;
  text-align: center;
}

/* Date range picker */
.daterangepicker .calendar-table {
  font-family: var(--lg-font);
}

.daterangepicker td.in-range {
  background-color: var(--lg-red-soft);
  color: var(--lg-ink);
}

.daterangepicker td.active,
.daterangepicker td.active:hover {
  background-color: var(--lg-red) !important;
  border-radius: 8px;
}

.daterangepicker .ranges li.active {
  background-color: var(--lg-red);
}

.daterangepicker .drp-buttons .btn.applyBtn {
  background-color: var(--lg-red);
  border-color: var(--lg-red);
  border-radius: 8px;
}

/* ============================================================
   Auth screens (login / forgot / reset) — split card
   ============================================================ */

body.lg-auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
  background: var(--lg-bg) !important;
}

.lg-auth-card {
  width: 100%;
  max-width: 960px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 24px 60px -24px rgba(16, 24, 40, 0.22);
  overflow: hidden;
}

.lg-auth-card.lg-auth-wide {
  max-width: 1080px;
}

.lg-auth-form {
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.lg-auth-form .lg-auth-logo {
  height: 26px;
  width: auto;
  align-self: flex-start;
  margin-bottom: 36px;
}

.lg-auth-form h2 {
  font-size: 26px;
  font-weight: 800;
  margin: 0 0 6px;
}

.lg-auth-form .lg-auth-lead,
.lg-auth-form .login-box-msg {
  font-size: 14px !important;
  color: var(--lg-muted);
  margin: 0 0 26px;
  padding: 0;
  text-align: start;
}

.lg-auth-side {
  background: linear-gradient(160deg, #d50000 0%, #8a0000 100%);
  color: #ffffff;
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  position: relative;
  overflow: hidden;
}

/* decorative brand mark bleeding off the panel, sits under the copy */
.lg-auth-side .lg-auth-mark {
  position: absolute;
  inset-inline-end: -24%;
  bottom: -16%;
  width: 95%;
  max-width: none;
  opacity: 0.13;
  pointer-events: none;
  user-select: none;
  transform: rotate(-8deg);
}

.lg-auth-side > :not(.lg-auth-mark) {
  position: relative;
  z-index: 1;
}

.lg-auth-side .lg-auth-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
}

.lg-auth-side h3 {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 12px;
  color: #ffffff;
}

.lg-auth-side p {
  font-size: 14px;
  opacity: 0.85;
  margin: 0;
}

.lg-auth-side .lg-auth-stats {
  display: flex;
  gap: 28px;
}

.lg-auth-side .lg-auth-stats .lg-stat-value {
  font-size: 22px;
  font-weight: 800;
}

.lg-auth-side .lg-auth-stats .lg-stat-label {
  font-size: 12px;
  opacity: 0.8;
}

@media (max-width: 860px) {
  .lg-auth-card {
    grid-template-columns: 1fr;
  }

  .lg-auth-side {
    display: none;
  }
}

/* ============================================================
   Command palette (sidebar search)
   ============================================================ */

.lg-search-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  width: calc(100% - 28px);
  margin: 2px 14px 10px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--lg-line-strong);
  border-radius: var(--lg-radius-sm);
  background: #ffffff;
  font-family: var(--lg-font);
  font-size: 13.5px;
  color: var(--lg-faint);
  cursor: pointer;
  text-align: start;
}

.lg-search-btn:hover {
  border-color: #d0d5dd;
  color: var(--lg-muted);
}

.lg-search-btn .lg-kbd {
  font-size: 11px;
  font-weight: 600;
  color: var(--lg-faint);
  background: var(--lg-bg);
  border-radius: 6px;
  padding: 2px 6px;
  margin-inline-start: auto;
}

.sidebar-mini.sidebar-collapse .app-sidebar:not(:hover) .lg-search-btn span {
  display: none;
}

.lg-palette-overlay {
  position: fixed;
  inset: 0;
  background: rgba(16, 24, 40, 0.45);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 13vh;
  z-index: 2000;
}

.lg-palette-overlay.open {
  display: flex;
}

.lg-palette {
  width: 620px;
  max-width: 92vw;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 24px 60px -12px rgba(16, 24, 40, 0.32);
  overflow: hidden;
}

.lg-palette-head {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--lg-line);
}

.lg-palette-head i {
  color: var(--lg-faint);
  font-size: 16px;
}

.lg-palette-head input {
  flex: 1;
  border: 0;
  background: transparent;
  font-family: var(--lg-font);
  font-size: 15px;
  outline: none;
  color: var(--lg-ink);
}

.lg-palette-head .lg-kbd {
  font-size: 11px;
  font-weight: 600;
  color: var(--lg-faint);
  background: var(--lg-bg);
  border-radius: 6px;
  padding: 3px 7px;
}

.lg-palette-list {
  padding: 8px;
  max-height: 46vh;
  overflow-y: auto;
}

.lg-palette-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--lg-faint);
  padding: 8px 12px 6px;
}

.lg-palette-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--lg-ink);
  text-decoration: none;
  font-size: 14px;
  cursor: pointer;
}

.lg-palette-item:hover,
.lg-palette-item.focused {
  background: var(--lg-bg);
  color: var(--lg-ink) !important;
}

.lg-palette-item .lg-palette-ic {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--lg-bg);
  color: var(--lg-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.lg-palette-item .lg-palette-title {
  flex: 1;
  font-weight: 500;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lg-palette-item .lg-palette-group {
  font-size: 12px;
  color: var(--lg-faint);
}

.lg-palette-empty {
  padding: 22px 12px;
  text-align: center;
  color: var(--lg-faint);
  font-size: 13.5px;
}
