/* ── Global Font & Body ── */
*, html, body, div, input, select, textarea, label, button {
  font-family: "Baloo Bhaijaan 2", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  font-family: "Baloo Bhaijaan 2", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f5f7fa;
  color: #2d3748;
}

/* ── Navbar (overrides Ace Admin .navbar-orange) ── */
.navbar,
.navbar.navbar-orange,
.navbar-orange {
  background-color: #1166A6 !important;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
  border-bottom: none !important;
}

.navbar-brand,
.navbar-brand span {
  color: #fff !important;
  font-weight: 600;
}

/* Navbar links & icons */
.navbar-orange .navbar-nav .nav-link,
.navbar .nav-link {
  color: rgba(255,255,255,.85) !important;
  transition: color .15s;
}

.navbar-orange .navbar-nav .nav-link:hover,
.navbar .nav-link:hover {
  color: #fff !important;
}

/* Notification badge */
.navbar .badge.bgc-warning-d2,
#id-navbar-badge1 {
  background-color: #e25c5c !important;
  border-color: rgba(255,255,255,.6) !important;
  font-size: 10px;
  min-width: 16px;
  padding: 2px 5px;
}

/* User profile area in navbar */
.navbar .nav-item .img-profile {
  border: 2px solid rgba(255,255,255,.3);
  transition: border-color .15s;
}

.navbar .nav-item:hover .img-profile {
  border-color: rgba(255,255,255,.7);
}

.navbar .nav-item .text-gray-600 {
  color: rgba(255,255,255,.9) !important;
  font-weight: 500;
}

/* User dropdown menu */
.navbar .dropdown-menu {
  border: 1px solid #dfe4ea;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
  padding: 8px 0;
}

.navbar .dropdown-item {
  padding: 8px 18px;
  font-size: 0.875rem;
  color: #2d3748;
  transition: background .12s;
  width: 100%;
}

.navbar .dropdown-item:hover {
  background: #f0f5fa;
  color: #4a7c9e;
}

.navbar .dropdown-item i {
  color: #718096 !important;
  width: 18px;
}

/* Hamburger/burger bars */
.navbar .btn-burger .bars,
.navbar .bars {
  color: rgba(255,255,255,.85) !important;
}

/* ── DevExpress Evaluation Banner ── */
.dx-license {
  font-size: 11px !important;
  padding: 4px 12px !important;
  opacity: 0.7;
  background: #4a5568 !important;
  color: rgba(255,255,255,.8) !important;
}

/* ── Sidebar ── */
.sidebar-lightpurple .nav > .nav-item.active.open > .nav-link:not(:hover) {
  color: #4a7c9e;
}

/* ── Page Title ── */
.page-content-area > h3,
.page-content-area > h4 {
  color: #2d3748;
  font-weight: 600;
}

.block {
  display: block;
}

@media (max-width: 991.98px) {
  .navbar .navbar-collapse > * {
    background-color: #1166A6 !important;
  }

  .navbar-brand {
    font-size: 1.3rem !important;
  }
}

@media print {
  .print-none,
  .hidden-print {
    display: none !important;
  }

  /* Navbar white text becomes invisible on print's white background — force dark */
  .navbar-brand,
  .navbar-brand span,
  .navbar-orange .navbar-nav .nav-link,
  .navbar .nav-link {
    color: #1166A6 !important;
  }

  /* Strip blue navbar background so text above is readable */
  .navbar.navbar-orange,
  .navbar-orange {
    background-color: transparent !important;
    box-shadow: none !important;
  }
}

.trashClass {
  text-decoration: none;
  cursor: pointer;
  color: #f05b41;
  font-size: larger !important;
}

.trashClass:hover {
  color: #f05b41;
  text-decoration: none;
}

.btn-custom {
  padding: 0;
  margin: 0;
  width: 48%;
  font-size: 21px;
}
/* btn-custom float is handled via inline style or RTL logic */
.dx-datagrid .dx-error-row .dx-error-message {
  padding: 18px !important;
  font-weight: bold !important;
}

.modal-dialog {
  width: 700px;
}

/* =========================
   Media Uploader (Basher UI)
   ========================= */

.mu-upload-card {
  background: #fff;
  border: 1px solid #e5e8ef;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
  padding: 16px;
  margin-bottom: 16px;
}

.mu-dropzone {
  position: relative;
  border: 2px dashed #cbd5e1;
  border-radius: 16px;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: #f8fafc;
  transition: 0.2s;
}

.mu-dropzone:hover {
  border-color: #3b82f6;
  background: #eff6ff;
}

.mu-file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.mu-drop-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e0e7ff;
  color: #3b82f6;
  flex-shrink: 0;
}

.mu-drop-icon i {
  font-size: 26px;
}

.mu-drop-title {
  font-weight: 800;
  color: #334155;
  font-size: 16px;
}

.mu-drop-sub {
  color: #64748b;
  font-size: 13px;
}

.mu-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.mu-btn {
  border-radius: 10px;
  font-weight: 700;
  padding: 9px 18px;
}

.mu-btn-light {
  border: 1px solid #e2e8f0;
}

/* preview of selected uploads */
.mu-preview {
  min-height: 10px;
}

.mu-preview-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mu-preview-item {
  width: 62px;
  height: 62px;
  border: 1px solid #e5e8ef;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mu-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mu-preview-doc i {
  font-size: 24px;
  color: #dc2626;
}

.mu-preview-bad {
  color: #dc2626;
  font-size: 12px;
  font-weight: 600;
}

/* sections */
.mu-section {
  margin-top: 14px;
}

.mu-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: #334155;
  margin-bottom: 10px;
}

/* icons colors like cards in your Financial Summary */
.mu-ico {
  width: 30px;
  height: 30px;
  border-radius: 12px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.mu-ico-blue {
  background: #e8f1ff;
  color: #2f6fec;
}

.mu-ico-gray {
  background: #eef2f7;
  color: #64748b;
}

/* grid cards */
.mu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
}

.mu-card {
  background: #fff;
  border: 1px solid #e5e8ef;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
  transition: 0.2s;
}

.mu-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
}

.mu-card-preview {
  height: 120px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.mu-card-preview img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.mu-doc-preview {
  flex-direction: column;
  gap: 8px;
}

.mu-doc-name {
  width: 100%;
  padding: 0 10px;
  font-size: 12px;
  color: #475569;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

/* footer buttons */
.mu-card-footer {
  display: flex;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid #eef2f7;
}

.mu-btn-icon {
  flex: 1;
  border: none;
  border-radius: 10px;
  padding: 8px 0;
  font-weight: 800;
  background: #f1f5f9;
  transition: 0.15s;
}

.mu-btn-icon i {
  font-size: 14px;
}

.mu-view {
  background: #e8f1ff;
  color: #2f6fec;
}

.mu-download {
  background: #e7f7ef;
  color: #16a34a;
}

.mu-delete {
  background: #ffe8e8;
  color: #dc2626;
}

.mu-btn-icon:hover {
  filter: brightness(0.98);
}

/* mu-card: notes badge */
.mu-card-preview {
  position: relative;
}

.mu-notes-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fcd34d;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  cursor: help;
}

/* mu-card: visible to client row */
.mu-card-visible {
  padding: 6px 10px;
  border-top: 1px solid #eef2f7;
  background: #fafbfc;
}

.mu-visible-label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  cursor: pointer;
  font-size: 11.5px;
  color: #475569;
  user-select: none;
}

.mu-visible-label input[type="checkbox"] {
  width: 14px;
  height: 14px;
  cursor: pointer;
  accent-color: #0ea5e9;
}

.mu-visible-label input[type="checkbox"]:checked + .mu-visible-text {
  color: #0ea5e9;
  font-weight: 600;
}

/* =========================
   Filter & Search UI
   ========================= */
.filters-container {
  padding: 15px;
  background: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
  margin-bottom: 2px;
}

.statement-btn {
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.filters-btn-primary {
  background: #4a7c9e;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(74, 124, 158, 0.2);
}

.filters-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.statement-filter-actions {
  display: flex;
  align-items: flex-end;
  gap: 12px;
}

/* =========================
   Invoice & Voucher Summary
   ========================= */
.invoice-summary {
  padding: 15px;
  background: #f8f9fa;
  border-top: 1px solid #dee2e6;
  margin-top: 10px;
}

.summary-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.summary-label {
  font-size: 0.85rem;
  color: #6c757d;
}

.summary-value {
  font-size: 1.1rem;
  font-weight: 700;
}

/* =========================
   Premium Popup Styles
   ========================= */
.premium-popup .dx-overlay-content {
  border-radius: 16px !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 0 8px 16px rgba(0, 0, 0, 0.1) !important;
  border: none !important;
  overflow: hidden;
}

.premium-popup .dx-popup-title {
  background-color: #f8fafc !important;
  border-bottom: 1px solid #e2e8f0 !important;
  padding: 18px 24px !important;
}

.premium-popup .dx-popup-title.dx-toolbar {
  padding: 18px 24px !important;
}

.premium-popup .dx-popup-title .dx-toolbar-label .dx-item-content {
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  color: #0f172a !important;
}

.premium-popup .dx-popup-content {
  padding: 24px !important;
  background-color: #ffffff !important;
}

.premium-popup .dx-popup-bottom {
  background-color: #f8fafc !important;
  border-top: 1px solid #e2e8f0 !important;
  padding: 16px 24px !important;
}

.premium-popup .dx-texteditor.dx-editor-outlined {
  border-radius: 8px !important;
  border-color: #cbd5e1 !important;
  background-color: #f8fafc !important;
  transition: all 0.2s ease;
}

.premium-popup .dx-texteditor.dx-editor-outlined.dx-state-focused {
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15) !important;
  background-color: #ffffff !important;
}

.premium-popup .dx-button {
  border-radius: 8px !important;
  font-weight: 600 !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.premium-popup .dx-button:not(.dx-closebutton):hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04) !important;
}

/* Custom Role Items for Manage Roles Popup */
.premium-popup .role-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-radius: 12px;
  margin-bottom: 10px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.premium-popup .role-item:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  transform: translateY(-1px);
  box-shadow: 0 4px 6px rgba(0,0,0,0.04);
}

/* Custom checkbox */
.premium-popup .role-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border: 2px solid #cbd5e1;
  border-radius: 6px;
  background-color: #ffffff;
  cursor: pointer;
  position: relative;
  transition: all 0.2s;
  outline: none;
  flex-shrink: 0;
}

.premium-popup .role-checkbox:hover {
  border-color: #94a3b8;
}

.premium-popup .role-checkbox:checked {
  background-color: #2563EB;
  border-color: #2563EB;
}

.premium-popup .role-checkbox:checked::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 12px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* =========================
   Consistent Action Icons
   ========================= */
.action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  transition: background .15s, transform .15s;
  text-decoration: none !important;
  border: none;
  background: transparent;
}

.action-icon:hover {
  transform: scale(1.1);
}

.action-icon-edit {
  color: #4a7c9e;
  background: #edf4f8;
}

.action-icon-edit:hover {
  background: #d9e8f0;
  color: #3b6a8a;
}

.action-icon-view {
  color: #48a868;
  background: #edf8f0;
}

.action-icon-view:hover {
  background: #d4f0dc;
  color: #369054;
}

.action-icon-delete {
  color: #e25c5c;
  background: #fdf0f0;
}

.action-icon-delete:hover {
  background: #fbd9d9;
  color: #c74141;
}

.action-icon-print {
  color: #d4952a;
  background: #fdf6ea;
}

.action-icon-print:hover {
  background: #f8ecd4;
  color: #b87e1e;
}

.action-icon-attach {
  color: #7c6db0;
  background: #f3f0fa;
}

.action-icon-attach:hover {
  background: #e5dff5;
  color: #5f52a0;
}

/* =========================
   KPI Summary Cards
   ========================= */
.kpi-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e8ecf0;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
  transition: box-shadow .2s;
}

.kpi-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,.06);
}

.kpi-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.kpi-icon-blue {
  background: #edf4f8;
  color: #4a7c9e;
}

.kpi-icon-green {
  background: #edf8f0;
  color: #48a868;
}

.kpi-icon-red {
  background: #fdf0f0;
  color: #e25c5c;
}

.kpi-icon-orange {
  background: #fdf6ea;
  color: #d4952a;
}

.kpi-icon-purple {
  background: #f3f0fa;
  color: #7c6db0;
}

.kpi-value {
  font-size: 1.6rem;
  font-weight: 700;
  color: #2d3748;
  line-height: 1.2;
}

.kpi-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #718096;
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* =========================
   Status Badges (consistent)
   ========================= */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: .02em;
}

.status-active {
  background: #edf8f0;
  color: #2d8a4e;
}

.status-inactive {
  background: #fdf0f0;
  color: #c74141;
}

.status-pending {
  background: #fdf6ea;
  color: #b87e1e;
}

/* =========================
   Misc Utilities
   ========================= */
.footer-tools {
  width: 58px;
}

/* =========================
   Back to Top Button
   ========================= */
#backToTopWrapper {
    position: fixed;
    bottom: 8px;
    right: 15px;
    left: auto;
    z-index: 9980;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    opacity: 0;
    transform: translateY(16px);
    pointer-events: none;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

#backToTopWrapper.btt-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

#backToTopWrapper:hover {
    transform: translateY(-3px);
}

/* DevExtreme button overrides — circular Basher style */
#backToTopWrapper #footerScrollTopButton.dx-button {
    width: 46px !important;
    height: 46px !important;
    min-width: unset !important;
    border-radius: 50% !important;
    background: #1166A6 !important;
    border: none !important;
    box-shadow: 0 4px 14px rgba(17, 102, 166, 0.35) !important;
    transition: background 0.2s ease, box-shadow 0.2s ease !important;
}

#backToTopWrapper:hover #footerScrollTopButton.dx-button {
    background: #0d5490 !important;
    box-shadow: 0 8px 22px rgba(17, 102, 166, 0.5) !important;
}

#backToTopWrapper #footerScrollTopButton.dx-button:active {
    box-shadow: 0 3px 10px rgba(17, 102, 166, 0.3) !important;
}

#backToTopWrapper #footerScrollTopButton .dx-icon {
    color: #fff !important;
    font-size: 14px !important;
}

#backToTopWrapper #footerScrollTopButton .dx-button-content {
    padding: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* SVG progress ring */
.btt-progress {
    position: absolute;
    inset: -4px;
    width: calc(100% + 8px);
    height: calc(100% + 8px);
    transform: rotate(-90deg);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

.btt-track {
    fill: none;
    stroke: rgba(255, 255, 255, 0.18);
    stroke-width: 2.2;
}

.btt-fill {
    fill: none;
    stroke: rgba(255, 255, 255, 0.85);
    stroke-width: 2.2;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.12s linear;
}

.car-thumb {
  max-height: 30px !important;
}

/* Notyf: isolate from global RTL direction set by ace.min.css RTL */
.notyf {
    direction: ltr;
}

/*
 * Notyf: override Ace Admin's animation gate.
 * ace.min.css RTL has: body:not(.is-document-loaded) * { animation: none !important }
 * On some servers ace.js doesn't add is-document-loaded before Notyf fires,
 * freezing the ripple at scale(0) and making the toast invisible.
 * Using body .notyf__* gives equal specificity (0,0,1,1) but later source order → wins.
 */
body .notyf__toast {
    -webkit-animation: notyf-fadeinup .3s ease-in forwards !important;
    animation: notyf-fadeinup .3s ease-in forwards !important;
}
body .notyf__ripple {
    -webkit-animation: ripple .4s ease-out forwards !important;
    animation: ripple .4s ease-out forwards !important;
}
body .notyf__message {
    -webkit-animation: notyf-fadeinup .3s forwards !important;
    animation: notyf-fadeinup .3s forwards !important;
    -webkit-animation-delay: .25s !important;
    animation-delay: .25s !important;
}
body .notyf__icon {
    -webkit-animation: notyf-fadeinup .3s forwards !important;
    animation: notyf-fadeinup .3s forwards !important;
    -webkit-animation-delay: .3s !important;
    animation-delay: .3s !important;
}
body .notyf__dismiss {
    -webkit-animation: notyf-fadeinleft .3s forwards !important;
    animation: notyf-fadeinleft .3s forwards !important;
    -webkit-animation-delay: .35s !important;
    animation-delay: .35s !important;
}
body .notyf__toast--disappear {
    -webkit-animation: notyf-fadeoutdown .3s forwards !important;
    animation: notyf-fadeoutdown .3s forwards !important;
    -webkit-animation-delay: .25s !important;
    animation-delay: .25s !important;
}
body .notyf__toast--disappear .notyf__message,
body .notyf__toast--disappear .notyf__icon {
    -webkit-animation: notyf-fadeoutdown .3s forwards !important;
    animation: notyf-fadeoutdown .3s forwards !important;
}
body .notyf__toast--disappear .notyf__dismiss {
    -webkit-animation: notyf-fadeoutright .3s forwards !important;
    animation: notyf-fadeoutright .3s forwards !important;
}

/* =========================
   Mobile Sidebar Scroll Fix
   ========================= */
@media (max-width: 1199.98px) {
    /*
     * On mobile the .sidebar-inner is position:fixed (top:0 / bottom:0),
     * so it has a concrete viewport-height.  But its direct flex child
     * (.container-fluid) has flex-grow:0 by default, so it never fills
     * that height → the inner ace-scroll div has no bounded height to
     * scroll within.  Fix: give container-fluid flex:1 + min-height:0
     * so it fills sidebar-inner, then let ace-scroll overflow-y:auto.
     */
    #sidebar .sidebar-inner > .container-fluid {
        flex: 1 1 auto;
        min-height: 0;
    }

    #sidebar .ace-scroll {
        overflow-y: auto !important;
        min-height: 0 !important;
        -webkit-overflow-scrolling: touch;
    }
}

/* ==========================================================================
   Invoice / expense picker modals ("Add Invoices", "Add Expense Lines")
   --------------------------------------------------------------------------
   Shared by MultipleReceipt.cshtml and MultiplePayment.cshtml so the two
   sibling pickers cannot drift apart. Everything is scoped under
   .basher-picker-modal and introduces no new global rules. Visual language
   deliberately matches the Available Credits / Available Advances popup
   (icon tile + title + subtitle, soft radius, tinted body).
   Logical properties (margin-inline-*, text-align:start) keep it correct in
   both LTR and RTL without direction-specific overrides.
   ========================================================================== */
.basher-picker-modal {
    /* Was a hard 1100px, which clipped the right-hand money columns. Grows
       with the viewport but never past a comfortable reading width.
       The width reset is required: this file already sets a global
       `.modal-dialog { width: 700px }`, and an explicit width beats a
       max-width, so without it the dialog would stay 700px regardless. */
    width: auto !important;
    max-width: min(1500px, 96vw) !important;
}

.basher-picker-modal .modal-content {
    overflow: hidden;
    border: 0;
    border-radius: 18px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .22);
}

.basher-picker-modal .modal-header {
    align-items: center;
    min-height: 76px;
    padding: 14px 22px;
    border-bottom: 1px solid #e6ebf2;
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}

.basher-picker-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.basher-picker-icon {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, #2f80ed, #2563b8);
    box-shadow: 0 8px 18px rgba(47, 128, 237, .25);
    font-size: 17px;
}

.basher-picker-copy {
    min-width: 0;
}

.basher-picker-modal .modal-title {
    margin: 0;
    color: #1d2b44;
    font-size: 1.15rem;
    font-weight: 750;
    line-height: 1.25;
    text-align: start;
}

.basher-picker-subtitle {
    margin-top: 3px;
    color: #64748b;
    font-size: .82rem;
    line-height: 1.35;
    text-align: start;
}

.basher-picker-modal .basher-picker-close {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    flex: 0 0 34px;
    margin: 0;
    margin-inline-start: auto;
    padding: 0;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    opacity: 1;
    color: #64748b;
    background: #fff;
    font-size: 20px;
    line-height: 1;
    text-shadow: none;
    transition: color .15s ease, background-color .15s ease, border-color .15s ease;
}

.basher-picker-modal .basher-picker-close:hover,
.basher-picker-modal .basher-picker-close:focus-visible {
    border-color: #cbd5e1;
    color: #b42318;
    background: #f8fafc;
    opacity: 1;
}

.basher-picker-modal .modal-body {
    padding: 18px 20px;
    background: #f8fafc;
}

/* Client filter row: keep the label snug against its editor instead of the
   wide col-2/col-6 gap the grid classes produce on a now-wider modal. */
.basher-picker-modal .basher-picker-filter {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    padding: 12px 14px;
    border: 1px solid #e6ebf2;
    border-radius: 12px;
    background: #fff;
}

.basher-picker-modal .basher-picker-filter-label {
    color: #475569;
    font-size: .85rem;
    font-weight: 600;
    white-space: nowrap;
}

.basher-picker-modal .basher-picker-filter-editor {
    flex: 1 1 auto;
    max-width: 420px;
    min-width: 0;
}

.basher-picker-modal .nav-tabs {
    margin-bottom: 0;
    border-bottom: 0;
    gap: 6px;
}

.basher-picker-modal .nav-tabs .nav-link {
    border: 1px solid transparent;
    border-radius: 10px 10px 0 0;
    color: #64748b;
    font-size: .88rem;
    font-weight: 600;
}

.basher-picker-modal .nav-tabs .nav-link:hover {
    border-color: transparent;
    color: #245a91;
    background: #eef6ff;
}

.basher-picker-modal .nav-tabs .nav-link.active {
    border-color: #e6ebf2 #e6ebf2 #fff;
    color: #1d2b44;
    background: #fff;
}

/* White card behind each grid so the tinted body reads as a surface. */
.basher-picker-modal .tab-content {
    padding: 14px;
    border: 1px solid #e6ebf2;
    border-radius: 0 12px 12px 12px;
    background: #fff;
}

.basher-picker-modal .modal-footer {
    padding: 14px 20px;
    border-top: 1px solid #e6ebf2;
    background: #fff;
}

.basher-picker-modal .modal-footer .btn {
    min-width: 104px;
    border-radius: 10px;
    font-weight: 600;
}

/* Stable digit widths keep financial columns and totals aligned in both LTR and RTL. */
.money,
.amount,
.text-right,
.dx-numberbox input,
.dx-datagrid .dx-data-row > td[role="gridcell"],
.dx-datagrid-summary-item {
    font-variant-numeric: tabular-nums;
}
