/* Fintrig shared UI — banners, cards, forms, kanban */
.ft-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 16px;
  border: 1px solid #e5e7eb;
  background: linear-gradient(160deg, #fff 0%, #f8fafc 100%);
  box-shadow: 0 10px 24px rgba(15, 23, 42, .06);
}
.ft-banner--warn { border-color: #fde68a; background: linear-gradient(160deg, #fff 0%, #fffbeb 100%); }
.ft-banner--danger { border-color: #fecaca; background: linear-gradient(160deg, #fff 0%, #fef2f2 100%); }
.ft-banner--ok { border-color: #bbf7d0; background: linear-gradient(160deg, #fff 0%, #f0fdf4 100%); }
.ft-banner h6 { margin: 0 0 4px; font-weight: 700; font-size: 14px; }
.ft-banner p { margin: 0; font-size: 13px; color: #4b5563; }

/* Period-over-period badge shown under KPI widgets */
.ft-delta {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  white-space: nowrap;
  cursor: help;
}
.ft-delta i { font-size: 14px; line-height: 1; }

.ft-card { border-radius: 14px; border: 1px solid #eef2f7; box-shadow: 0 8px 20px rgba(15,23,42,.05); }
.ft-label { font-size: 12px; font-weight: 600; color: #6b7280; margin-bottom: 6px; }
.ft-help { font-size: 12px; color: #9ca3af; }

.dashboard-main-body h2,
.dashboard-main-body h3,
.dashboard-main-body h4,
.dashboard-main-body h5 {
  text-transform: none;
  letter-spacing: 0;
}

/* 3D task board — five equal lanes fill the page; scroll only when they cannot fit */
.ft-kanban-stage {
  --ft-lane-h: max(420px, calc(100vh - 240px));
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 4px 0 12px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}
.ft-kanban-stage::-webkit-scrollbar { height: 10px; }
.ft-kanban-stage::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
}
.ft-kanban,
.ft-kanban-loading {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: stretch;
  gap: 14px;
  width: 100%;
  min-width: 0;
  perspective: none;
}
.ft-kanban-col {
  min-width: 0;
  width: auto;
  max-width: none;
  height: var(--ft-lane-h);
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(15, 23, 42, .08);
  box-shadow:
    0 1px 0 rgba(255,255,255,.9) inset,
    0 14px 28px rgba(15, 23, 42, .10),
    0 4px 0 rgba(15, 23, 42, .06);
  overflow: hidden;
  isolation: isolate;
}
.ft-kanban-col__head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  padding: 14px 12px 12px 12px;
  border-bottom: 1px solid rgba(15, 23, 42, .06);
  background: linear-gradient(180deg, rgba(255,255,255,.7), rgba(255,255,255,.2));
}
.ft-kanban-cube {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  perspective: 520px;
}
.ft-kanban-cube span {
  display: flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  transform: rotateX(16deg) rotateY(-14deg);
  box-shadow: 0 10px 16px rgba(15, 23, 42, .22);
}
.ft-kanban-col.is-pending .ft-kanban-cube span {
  background: linear-gradient(145deg, #fb923c, #c2410c);
}
.ft-kanban-col.is-progress .ft-kanban-cube span {
  background: linear-gradient(145deg, #60a5fa, #1d4ed8);
}
.ft-kanban-col.is-qa .ft-kanban-cube span {
  background: linear-gradient(145deg, #a78bfa, #6d28d9);
}
.ft-kanban-col.is-done .ft-kanban-cube span {
  background: linear-gradient(145deg, #4ade80, #15803d);
}
.ft-kanban-col.is-fail .ft-kanban-cube span {
  background: linear-gradient(145deg, #f87171, #b91c1c);
}
.ft-kanban-col.is-pending { box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 14px 28px rgba(194, 65, 12, .12), 0 4px 0 #fdba74; }
.ft-kanban-col.is-progress { box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 14px 28px rgba(29, 78, 216, .12), 0 4px 0 #93c5fd; }
.ft-kanban-col.is-qa { box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 14px 28px rgba(109, 40, 217, .12), 0 4px 0 #c4b5fd; }
.ft-kanban-col.is-done { box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 14px 28px rgba(21, 128, 61, .12), 0 4px 0 #86efac; }
.ft-kanban-col.is-fail { box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 14px 28px rgba(185, 28, 28, .12), 0 4px 0 #fca5a5; }
.ft-kanban-col__copy { min-width: 0; flex: 1; }
.ft-kanban-col__copy h6 {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  color: #111827;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ft-kanban-col__copy small {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: #6b7280;
  font-weight: 500;
}
.ft-kanban-col__count {
  flex-shrink: 0;
  min-width: 26px;
  height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  background: #f3f4f6;
  color: #374151;
}
.ft-kanban-col__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 10px 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ft-kanban-col__body::-webkit-scrollbar { width: 8px; }
.ft-kanban-col__body::-webkit-scrollbar-thumb {
  background: #e5e7eb;
  border-radius: 999px;
}
.ft-kanban-empty {
  margin: auto 0;
  text-align: center;
  padding: 18px 10px;
  border: 1px dashed #d1d5db;
  border-radius: 12px;
  color: #9ca3af;
  font-size: 12px;
  background: rgba(255,255,255,.55);
}
.ft-kanban-more {
  font-size: 11px;
  color: #6b7280;
  text-align: center;
  padding: 6px 4px 2px;
}
.ft-kanban-card {
  position: relative;
  content-visibility: auto;
  contain-intrinsic-size: 96px;
  -webkit-user-select: none;
  user-select: none;
  background: linear-gradient(165deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 14px;
  padding: 11px 12px 11px 14px;
  cursor: grab;
  box-shadow:
    0 1px 0 rgba(255,255,255,.95) inset,
    0 8px 16px rgba(15, 23, 42, .08);
  transition: transform .16s ease, box-shadow .16s ease;
  z-index: 1;
}
.ft-kanban-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: #cbd5e1;
}
.ft-kanban-card.is-pri-low::before { background: #22c55e; }
.ft-kanban-card.is-pri-medium::before { background: #3b82f6; }
.ft-kanban-card.is-pri-high::before { background: #f59e0b; }
.ft-kanban-card.is-pri-urgent::before { background: #ef4444; }
.ft-kanban-card:hover {
  transform: translateY(-2px);
  box-shadow:
    0 1px 0 rgba(255,255,255,.95) inset,
    0 14px 24px rgba(15, 23, 42, .14);
  z-index: 2;
}
.ft-kanban-card:active,
.ft-kanban-card.is-dragging {
  cursor: grabbing;
  opacity: .72;
  transform: scale(.98);
}
.ft-kanban-card .ttl {
  font-size: 13px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 6px;
  line-height: 1.35;
  word-break: break-word;
}
.ft-kanban-card .ttl a {
  color: inherit;
  text-decoration: none;
  -webkit-user-drag: none;
}
.ft-kanban-card .ttl a:hover { color: #6d28d9; text-decoration: underline; }
.ft-kanban-card .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}
.ft-kanban-chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .02em;
  background: #f3f4f6;
  color: #4b5563;
}
.ft-kanban-chip.is-qa { background: #ede9fe; color: #6d28d9; }
.ft-kanban-chip.is-qa-open { background: #ede9fe; color: #6d28d9; }
.ft-kanban-chip.is-qa-done { background: #dcfce7; color: #166534; }
.ft-kanban-chip.is-dev { background: #e0f2fe; color: #0369a1; }
.ft-kanban-chip.is-due { background: #fee2e2; color: #b91c1c; }
.ft-kanban-chip.is-pri-low { background: #dcfce7; color: #166534; }
.ft-kanban-chip.is-pri-medium { background: #dbeafe; color: #1d4ed8; }
.ft-kanban-chip.is-pri-high { background: #ffedd5; color: #c2410c; }
.ft-kanban-chip.is-pri-urgent { background: #fee2e2; color: #991b1b; }
.ft-kanban-card .meta {
  font-size: 11px;
  color: #6b7280;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ft-kanban-card.is-overdue .meta { color: #b91c1c; font-weight: 600; }
.ft-kanban-col.ft-drop {
  outline: none;
  background: linear-gradient(180deg, #f5f3ff 0%, #eef2ff 100%);
}
.ft-kanban-col.ft-drop .ft-kanban-col__body {
  box-shadow: inset 0 0 0 2px #7c3aed;
  border-radius: 0 0 16px 16px;
}
.ft-kanban-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-size: 12px;
  color: #6b7280;
}
.ft-kanban-skel {
  min-width: 0;
  height: var(--ft-lane-h);
  border-radius: 18px;
  background: linear-gradient(90deg, #f3f4f6 0%, #fff 50%, #f3f4f6 100%);
  background-size: 200% 100%;
  animation: ftKanbanShimmer 1.2s ease infinite;
}
@keyframes ftKanbanShimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
@media (max-width: 1199.98px) {
  .ft-kanban,
  .ft-kanban-loading {
    grid-template-columns: repeat(5, minmax(210px, 1fr));
    width: max(100%, calc(5 * 210px + 4 * 14px));
  }
}
@media (max-width: 767.98px) {
  .ft-kanban-stage {
    --ft-lane-h: 72vh;
    scroll-snap-type: x mandatory;
  }
  .ft-kanban,
  .ft-kanban-loading {
    grid-template-columns: repeat(5, minmax(78vw, 1fr));
    width: max-content;
  }
  .ft-kanban-col,
  .ft-kanban-skel { scroll-snap-align: start; }
}
@media (prefers-reduced-motion: reduce) {
  .ft-kanban-card,
  .ft-kanban-skel { animation: none; transition: none; }
}

.ft-collab { margin-top: 20px; }
.ft-comment { border-bottom: 1px solid #f3f4f6; padding: 10px 0; }
.ft-comment .who { font-weight: 700; font-size: 13px; }
.ft-comment .when { font-size: 11px; color: #9ca3af; margin-left: 8px; }
.ft-comment .body { font-size: 13px; color: #374151; white-space: pre-wrap; margin: 4px 0 0; }
.ft-file { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 0; border-bottom: 1px solid #f3f4f6; font-size: 13px; }

/* Print: hide dashboard chrome so any #print-section page can print cleanly */
@media print {
  .sidebar,
  .sidebar-close-btn,
  .navbar-header,
  .d-footer,
  .no-print {
    display: none !important;
  }
  .dashboard-main {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .dashboard-main-body {
    padding: 0 !important;
  }
}

/* Company overhead expense tiles */
.ft-ex3d-scene {
  perspective: 1400px;
  perspective-origin: 50% 20%;
}
.ft-ex3d-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(158px, 1fr));
  gap: 18px 14px;
  padding: 6px 2px 18px;
  transform-style: preserve-3d;
}
.ft-ex3d-wrap {
  position: relative;
  transform-style: preserve-3d;
}
.ft-ex3d {
  appearance: none;
  position: relative;
  overflow: hidden;
  border: 0;
  width: 100%;
  text-align: left;
  color: #fff;
  border-radius: 18px;
  padding: 18px 14px 16px;
  min-height: 132px;
  cursor: pointer;
  transform: rotateX(11deg) rotateY(-8deg) translateZ(0);
  transform-style: preserve-3d;
  box-shadow:
    0 22px 36px rgba(15, 23, 42, .28),
    0 4px 0 rgba(0,0,0,.18),
    inset 0 1px 0 rgba(255,255,255,.42);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.ft-ex3d::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, rgba(255,255,255,.38) 0%, rgba(255,255,255,0) 42%);
  pointer-events: none;
}
.ft-ex3d::after {
  content: '';
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 8px;
  height: 10px;
  border-radius: 50%;
  background: rgba(0,0,0,.18);
  filter: blur(6px);
  pointer-events: none;
}
.ft-ex3d:hover,
.ft-ex3d.is-active {
  transform: rotateX(0) rotateY(0) translateY(-8px) translateZ(16px);
  box-shadow:
    0 28px 42px rgba(15, 23, 42, .32),
    0 2px 0 rgba(0,0,0,.12),
    inset 0 1px 0 rgba(255,255,255,.5);
  filter: brightness(1.06);
  z-index: 2;
}
.ft-ex3d-ico {
  display: flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255,255,255,.16);
  font-size: 20px;
  margin-bottom: 10px;
}
.ft-ex3d .lab { display: block; font-size: 12px; font-weight: 700; letter-spacing: .03em; opacity: .95; }
.ft-ex3d .amt { display: block; margin-top: 8px; font-size: 18px; font-weight: 800; line-height: 1.2; }
.ft-ex3d .hint { display: block; margin-top: 6px; font-size: 10px; opacity: .75; font-weight: 600; }
.ft-ex3d-add {
  position: absolute;
  top: -6px;
  right: -4px;
  z-index: 3;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #111827;
  font-size: 18px;
  line-height: 1;
  font-weight: 700;
  box-shadow: 0 8px 16px rgba(15,23,42,.2);
  cursor: pointer;
}
.ft-ex3d-add:hover { transform: scale(1.08); }
.ft-ex3d-total {
  min-width: 140px;
  padding: 10px 16px;
  border-radius: 14px;
  background: linear-gradient(160deg, #fff 0%, #eef2ff 100%);
  box-shadow: 0 12px 24px rgba(15,23,42,.1), inset 0 1px 0 #fff;
  transform: perspective(600px) rotateX(6deg);
}
.ft-ex3d-total .lab { display: block; font-size: 11px; color: #64748b; font-weight: 600; }
.ft-ex3d-total strong { font-size: 18px; }
.ft-ex3d-tablecard {
  box-shadow: 0 18px 40px rgba(15,23,42,.08);
  transform: perspective(1400px) rotateX(1.5deg);
}
.ft-ex3d-modal {
  border: 0;
  border-radius: 16px;
  box-shadow: 0 28px 60px rgba(15,23,42,.28);
}
.ft-ex3d-rent { background: linear-gradient(160deg, #6366f1 0%, #312e81 100%); }
.ft-ex3d-electricity { background: linear-gradient(160deg, #fbbf24 0%, #b45309 100%); }
.ft-ex3d-internet { background: linear-gradient(160deg, #38bdf8 0%, #0369a1 100%); }
.ft-ex3d-water { background: linear-gradient(160deg, #22d3ee 0%, #0e7490 100%); }
.ft-ex3d-office { background: linear-gradient(160deg, #a78bfa 0%, #6d28d9 100%); }
.ft-ex3d-software { background: linear-gradient(160deg, #34d399 0%, #047857 100%); }
.ft-ex3d-travel { background: linear-gradient(160deg, #fb7185 0%, #9f1239 100%); }
.ft-ex3d-maintenance { background: linear-gradient(160deg, #94a3b8 0%, #334155 100%); }
.ft-ex3d-other { background: linear-gradient(160deg, #a8a29e 0%, #44403c 100%); }

/* Auth pages — branded 2D panel (no 3D / WebGL) */
.ft-auth-hero {
  min-height: 100vh;
  height: 100%;
  padding: 48px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(900px 480px at 8% 12%, rgba(72, 127, 255, .20), transparent 58%),
    radial-gradient(760px 420px at 96% 88%, rgba(130, 82, 233, .14), transparent 52%),
    linear-gradient(135deg, #ECF0FF 0%, #FAFBFF 100%);
}
.ft-auth-hero--image {
  padding: 32px;
}
.ft-auth-hero--image img {
  max-width: 100%;
  max-height: calc(100vh - 64px);
  width: auto;
  height: auto;
  object-fit: contain;
}
.ft-auth-hero-inner {
  width: 100%;
  max-width: 440px;
}
.ft-auth-kicker {
  display: inline-block;
  margin-bottom: 16px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(72, 127, 255, .12);
  color: #2563eb;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.ft-auth-title {
  margin: 0 0 12px;
  color: #111827;
  font-size: 34px;
  line-height: 1.2;
  font-weight: 700;
}
.ft-auth-lead {
  margin: 0 0 28px;
  color: #4b5563;
  font-size: 16px;
  line-height: 1.55;
}
.ft-auth-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.ft-auth-points li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .78);
  border: 1px solid rgba(226, 232, 240, .9);
  box-shadow: 0 8px 20px rgba(15, 23, 42, .04);
  color: #1f2937;
  font-size: 14px;
  font-weight: 500;
}
.ft-auth-points iconify-icon {
  flex-shrink: 0;
  font-size: 22px;
  color: #487fff;
}
.auth-right .form-label {
  font-size: 13px;
  font-weight: 600;
  color: #4b5563;
  margin-bottom: 8px;
}
.auth-right .toggle-password {
  z-index: 2;
  line-height: 1;
}
.auth-right .toggle-password iconify-icon {
  font-size: 20px;
  pointer-events: none;
}
.auth-right {
  position: relative;
  min-height: 100vh;
  padding-bottom: 88px;
}
.ft-auth-footer {
  margin-top: 40px;
  padding-top: 16px;
  border-top: 1px solid #eef2f7;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #6b7280;
  line-height: 1.4;
}
.ft-auth-footer p {
  margin: 0;
}
@media (max-width: 575.98px) {
  .ft-auth-footer {
    justify-content: center;
    text-align: center;
  }
}
@media (max-width: 767.98px) {
  .ft-ex3d-scene { perspective: none; }
  .ft-ex3d, .ft-ex3d-total, .ft-ex3d-tablecard { transform: none; }
  .ft-ex3d { min-height: 112px; }
  .ft-ex3d:hover, .ft-ex3d.is-active { transform: translateY(-3px); }
  .ft-ex3d .hint { display: none; }
}

/* Select2 multi-select — global overlap fix (CDN select2 + bootstrap4 use nowrap/float) */
.select2-container .select2-selection--multiple {
  height: auto !important;
  min-height: 44px;
  padding: 6px 32px 6px 8px;
  overflow: visible !important;
}

.select2-container .select2-selection--multiple .select2-selection__rendered {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  align-content: flex-start !important;
  gap: 4px 6px;
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  white-space: normal !important;
  text-overflow: clip !important;
  line-height: normal !important;
  list-style: none !important;
}

.select2-container .select2-selection--multiple .select2-selection__rendered .select2-selection__choice,
.select2-container .select2-selection--multiple .select2-selection__rendered .select2-search--inline {
  float: none !important;
  margin: 0 !important;
  position: relative !important;
}

.select2-container .select2-selection--multiple .select2-selection__choice {
  display: inline-flex !important;
  align-items: center;
  flex: 0 1 auto;
  max-width: 100%;
  padding: 3px 8px;
  background-color: #e9ecef;
  border: 1px solid #ced4da;
  border-radius: 4px;
  line-height: 1.35;
  font-size: 13px;
}

.select2-container .select2-selection--multiple .select2-selection__choice__remove {
  float: none !important;
  position: static !important;
  flex-shrink: 0;
  order: -1;
  margin-right: 4px;
  border: 0;
}

.select2-container .select2-selection--multiple .select2-search--inline {
  display: inline-flex !important;
  align-items: center;
  flex: 1 1 8em;
  min-width: 8em;
  width: auto !important;
  max-width: none;
}

.select2-container .select2-selection--multiple .select2-search--inline .select2-search__field {
  width: auto !important;
  min-width: 8em;
  margin: 0 !important;
  height: 28px !important;
  line-height: 28px;
  background: transparent;
  border: none;
  outline: 0;
  box-shadow: none;
}

.select2-container .select2-selection--multiple .select2-selection__clear {
  position: absolute !important;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  float: none !important;
  margin: 0;
  z-index: 1;
}

/* Bootstrap .form-select keeps the native <select> visible after Select2 init */
select.form-select.select2-hidden-accessible,
select.select2-hidden-accessible,
.select2-hidden-accessible {
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  width: 1px !important;
  height: 1px !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  border: 0 !important;
  opacity: 0 !important;
  appearance: none !important;
  pointer-events: none !important;
}

.fin-s2 {
  position: relative;
  width: 100%;
  min-width: 0;
  overflow: visible !important;
}
.fin-s2 > .select2-container,
.select2-wrap > .select2-container,
select.select2-hidden-accessible + .select2-container {
  width: 100% !important;
  display: block !important;
  max-width: 100%;
}
.fin-s2 > .select2-container > .selection,
.select2-wrap > .select2-container > .selection,
select.select2-hidden-accessible + .select2-container > .selection {
  display: block;
  width: 100%;
}

/* Single select: keep value, clear, and arrow on one row */
.select2-container--default .select2-selection--single,
.select2-container--bootstrap4 .select2-selection--single {
  display: flex !important;
  align-items: center;
  box-sizing: border-box !important;
  width: 100% !important;
  height: 44px !important;
  min-height: 44px;
  max-height: 44px;
  padding: 0 40px 0 12px !important;
  overflow: hidden;
  position: relative;
  background-color: #f5f6fa;
  border: 1px solid #d1d5db;
  border-radius: 4px;
}
.select2-container--default .select2-selection--single .select2-selection__rendered,
.select2-container--bootstrap4 .select2-selection--single .select2-selection__rendered {
  display: block !important;
  flex: 1 1 auto;
  width: auto !important;
  max-width: 100%;
  padding: 0 !important;
  margin: 0 !important;
  line-height: 42px !important;
  overflow: hidden !important;
  text-overflow: ellipsis;
  white-space: nowrap !important;
}
.select2-container--default .select2-selection--single .select2-selection__clear,
.select2-container--bootstrap4 .select2-selection--single .select2-selection__clear {
  position: absolute !important;
  right: 26px;
  top: 0;
  height: 44px;
  line-height: 44px;
  float: none !important;
  margin: 0 !important;
}
.select2-container--default .select2-selection--single .select2-selection__arrow,
.select2-container--bootstrap4 .select2-selection--single .select2-selection__arrow {
  position: absolute !important;
  top: 0;
  right: 8px;
  height: 44px !important;
  width: 20px;
}
.select2-container--open,
.select2-dropdown {
  z-index: 20060 !important;
}
.select2-dropdown {
  box-sizing: border-box;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 4px;
}
.select2-results__options {
  max-height: 260px;
  overflow-y: auto;
}

/* Global layout — avoid horizontal page scroll on dashboard pages */
.dashboard-main {
  overflow-x: clip;
  max-width: 100%;
}
.dashboard-main-body {
  overflow-x: clip;
  max-width: 100%;
}

@media (max-width: 991.98px) {
  .navbar-header {
    padding-inline: 1rem;
  }
  .navbar-header .col-auto:last-child .d-flex {
    gap: 0.5rem !important;
  }
}

html[data-theme=dark] [data-theme-toggle].bg-neutral-200 {
  background-color: var(--dark-3) !important;
}
