@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&display=swap');

:root {
  --font-family: 'Plus Jakarta Sans', sans-serif;
  --sidebar-w: 290px;
  --purple: #7c3aed;
  --medium-gray: #F7F7F7;
  --teal-light: #F0FDFA;
  --teal: #40C4AA;
  --sky: #ECF3FE;
  --light-gray: #dee2e6;
  --orange-light: #FFF1E0;
  --danger-light: #fef2f2;
  --blue-light: #eff6ff;
}

body {
  font-family: var(--font-family);
  background-color: #F7F7F7;
}

/* Background Image */
.bg-abstract {
  --panel-bg: url("/assets/bg-abstract-e3b61f8e.webp");
}

.bg-bubble {
  --panel-bg: url("/assets/bg-bubble-ac889d8d.webp");
}

.bg-linear {
  --panel-bg: url("/assets/bg-linear-1014e34a.webp");
}

/* Background Color */
.bg-teal-light {
  background-color: var(--teal-light);
}

.bg-sky {
  background-color: var(--sky);
}

.bg-orange-light {
  background-color: var(--orange-light);
}

.bg-medium-gray {
  background-color: var(--medium-gray);
}

.bg-purple {
  background-color: var(--purple);
}

.bg-blue-light {
  background-color: var(--blue-light);
}

/* Text Color */
.text-teal {
  color: var(--teal);
}

/* Left Panel */
.left-panel {
  position: relative;
  overflow: hidden;
  min-height: 400px;
}

.left-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: var(--panel-bg);
  background-size: cover;
  background-position: center;
  opacity: 0.6;
}

.left-panel img {
  max-width: 220px;
}

/* Right Panel */
.right-panel .right-panel-content {
  max-width: 420px;
}

.btn-space {
  padding: 12px 10px;
}

@media (min-height: 800px) {
  .vh-lg-100 {
    height: 100vh;
  }
}

.custom-option {
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1.5px solid #E5E5EA;
  background-color: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  border-radius: 50rem; /* pill */
}

.custom-option:hover {
  border-color: #adb5bd;
}

.custom-option:has(input:checked),
.custom-option.active {
  border-color: #000;
  background-color: #fff;
}

.custom-radio {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid #D1D1D6;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.custom-option:has(input:checked) .custom-radio,
.custom-option.active .custom-radio {
  border-color: #000;
}

.custom-radio-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: #fff;
  border: 1px solid #E5E5EA;
  transition: background-color 0.2s;
}

.custom-option:has(input:checked) .custom-radio-dot,
.custom-option.active .custom-radio-dot {
  background-color: #000;
  border: none;
}

/* Custom checkbox */
.custom-checkbox {
  position: relative;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.custom-checkbox input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.custom-checkbox label {
  position: absolute;
  top: 0;
  left: 0;
  height: 18px;
  width: 18px;
  background-color: transparent;
  border: 1.5px solid #D1D1D6;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.custom-checkbox input:checked ~ label {
  background-color: #000;
  border-color: #000;
}

.custom-checkbox label:after {
  content: "";
  position: absolute;
  display: none;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.custom-checkbox input:checked ~ label:after {
  display: block;
}

.password-toggle {
  cursor: pointer;
}

.form-control,
.form-select {
  padding: 12px 24px;
}

.input-icon-wrapper {
  position: relative;
}

.input-icon-wrapper .form-control {
  padding-left: 50px;
}

.input-icon-wrapper i {
  position: absolute;
  top: 50%;
  left: 24px;
  transform: translateY(-50%);
  color: #999999;
  pointer-events: none;
}

.input-icon-right-wrapper {
  position: relative;
}

.input-icon-right-wrapper .form-control {
  padding-right: 50px;
}

.input-icon-right-wrapper i {
  position: absolute;
  top: 50%;
  right: 24px;
  transform: translateY(-50%);
  color: #999999;
}

/* intl-tel-input (Phone) */
.iti {
  width: 100%;
}

.iti__flag-container {
  padding: 2px 10px 2px 14px;
}

.iti--separate-dial-code .iti__selected-flag {
  background-color: transparent !important;
  padding-left: 20px;
}

/* Auth Logo Text */
.auth-logo-text {
  font-size: 3.5rem;
  letter-spacing: -2px;
  color: #000;
}

/* OTP Verification */
.auth-right-content {
  max-width: 450px;
  width: 100%;
}

.auth-user-email {
  color: #7C5FEB;
}

.otp-container {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 24px;
}

.otp-input {
  width: 60px;
  height: 60px;
  text-align: center;
  font-weight: 700;
  font-size: 1.25rem;
  border-radius: 12px;
  background-color: #F2F2F2;
  border: 1.5px solid #E5E5EA;
  transition: all 0.2s ease;
}

.otp-input:focus {
  background-color: #fff;
  border-color: #000;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
  outline: none;
}

/* 6-cell OTP */
.otp-digit {
  color: #111827 !important;
  -webkit-text-fill-color: #111827 !important;
  background-color: #f2f2f2 !important;
  caret-color: #111827 !important;
  color-scheme: light;
  opacity: 1 !important;
  border-radius: 12px;
  border: 1.5px solid #E5E5EA;
  width: 67px;
}

.otp-digit:focus {
  background-color: #fff !important;
  color: #111827 !important;
  -webkit-text-fill-color: #111827 !important;
}

.otp-digit:-webkit-autofill,
.otp-digit:-webkit-autofill:hover,
.otp-digit:-webkit-autofill:focus,
.otp-digit:-webkit-autofill:active {
  color: #111827 !important;
  -webkit-text-fill-color: #111827 !important;
  -webkit-box-shadow: 0 0 0 1000px #f2f2f2 inset !important;
  box-shadow: 0 0 0 1000px #f2f2f2 inset !important;
  transition: background-color 5000s ease-in-out 0s;
}

.otp-digit:focus:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
  box-shadow: 0 0 0 1000px #fff inset !important;
}

/* === Sidebar === */
#sidebar {
  width: var(--sidebar-w);
  min-height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 1040;
  overflow-y: auto;
  transition: transform .25s ease;
  background-color: var(--medium-gray);
  box-shadow: 0px 0 6px rgba(0, 0, 0, .08);
}

#sidebar::-webkit-scrollbar {
  width: 3px;
}

#sidebar::-webkit-scrollbar-thumb {
  background: var(--light-gray);
  border-radius: 3px;
}

@media (min-width: 992px) {
  #sidebar {
    transform: translateX(0) !important;
  }
}

@media (max-width: 991.98px) {
  #sidebar {
    transform: translateX(-100%);
    box-shadow: 4px 0 24px rgba(0, 0, 0, .12);
  }

  #sidebar.show {
    transform: translateX(0);
  }

  #main-wrapper {
    margin-left: 0 !important;
  }
}

/* Sidebar overlay */
#sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .4);
  z-index: 1039;
}

#sidebar-overlay.show {
  display: block;
}

/* Main wrapper */
#main-wrapper {
  margin-left: var(--sidebar-w);
}

/* Topbar (mobile only) */
#topbar {
  display: none;
}

@media (max-width: 991.98px) {
  #topbar {
    display: flex;
  }
}

/* Sidebar Internals */
.profile-avatar {
  width: 34px;
  height: 34px;
  background: var(--medium-gray);
  font-size: 12px;
}

.logo-wrap {
  padding: 36px 24px 29px;
}

.logo-wrap img {
  width: 137px;
  height: 30px;
}

/* Nav items */
.nav-pill-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 30px;
  color: var(--bs-black);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
  cursor: pointer;
}

.nav-pill-item:hover {
  background: var(--bs-white);
  color: var(--bs-black);
}

.nav-pill-item.active {
  background: var(--bs-white);
  color: var(--bs-black);
}

.nav-pill-item .nav-icon {
  width: 16px;
  text-align: center;
  flex-shrink: 0;
}

.nav-chevron {
  font-size: .7rem;
  transition: transform 0.2s;
}

/* Submenu */
.nav-submenu {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 4px;
  margin-left: 20px;
  padding-left: 16px;
  border-left: 1.5px solid rgba(0, 0, 0, .18);
}

.nav-submenu.collapse:not(.show) {
  display: none;
}

.nav-submenu .nav-sub-link {
  display: block;
  padding: 6px 12px;
  border-radius: 30px;
  color: var(--bs-black);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}

.nav-submenu .nav-sub-link:hover,
.nav-submenu .nav-sub-link.active {
  background: var(--bs-white);
  color: var(--bs-black);
}

/* Notification badge */
@keyframes badgePulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(220, 38, 38, .45);
  }
  60% {
    transform: scale(1.15);
    box-shadow: 0 0 0 5px rgba(220, 38, 38, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0);
  }
}

.notif-badge {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  animation: badgePulse 2s ease-out infinite;
}

.unread-indicator {
  width: 6px;
  height: 6px;
  margin-top: 20px;
  margin-left: -4px;
}

.notif-icon-circle {
  width: 43px;
  height: 43px;
  margin-left: 7px;
}

.tracking-wider {
  letter-spacing: 0.8px;
}

/* Take a payment button */
.take-payment-btn {
  background: var(--bs-black);
  color: var(--bs-white);
  border-radius: 30px;
  font-size: .84rem;
  transition: background .2s, transform .15s;
}

.take-payment-btn:hover {
  background: var(--bs-black);
  color: var(--bs-white);
  transform: translateY(-1px);
}

/* === Dashboard styles === */

/* Pending deposit */
.pending-icon-box {
  width: 44px;
  height: 44px;
  background: #E6E6E6;
}

.view-invoices-btn {
  border-radius: 50px;
  border: 1.5px solid var(--bs-black);
  transition: background .15s, transform .15s;
}

.view-invoices-btn:hover {
  transform: translateY(-1px);
  border: 1.5px solid var(--bs-black);
  color: var(--bs-black);
}

/* Invoices */
.inv-img-logo img {
  width: 145px;
  height: 31px;
  object-fit: cover;
}

/* Stat cards */
.sc-icon-wrap {
  width: 35px;
  height: 35px;
}

.sc-icon {
  width: 20px;
  height: 20px;
  border-radius: 100%;
  font-size: 11px;
}

.sc-icon-blue {
  color: var(--sky);
  background: #498CF1;
}

.sc-icon-teal {
  color: var(--teal-light);
  background: var(--teal);
}

.sc-icon-orange {
  background: var(--orange-light);
  color: #F54900;
}

/* Trigger button — mimics form-select-sm pill */
.cdd-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--light-gray);
  border-radius: 50px;
  background: var(--bs-white);
  font-size: 14px;
  padding: 11px 20px;
  color: #111827;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color .15s, box-shadow .15s;
  outline: none;
}

.cdd-trigger:hover {
  border-color: #adb5bd;
}

.cdd-trigger:focus {
  border-color: #adb5bd;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, .06);
}

.cdd-wrap.cdd-open .cdd-trigger {
  border-color: #adb5bd;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, .06);
}

/* Chevron arrow */
.cdd-arrow {
  transition: transform .2s ease;
}

.cdd-wrap.cdd-open .cdd-arrow {
  transform: rotate(180deg);
}

/* Dropdown menu panel */
.cdd-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 100%;
  margin: 0;
  padding: 4px;
  list-style: none;
  background: var(--bs-white);
  border: 1px solid var(--light-gray);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
  z-index: 1050;
  animation: cddFadeIn .15s ease;
}

@keyframes cddFadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cdd-wrap.cdd-open .cdd-menu {
  display: block;
}

/* Individual options */
.cdd-option {
  padding: 7px 12px;
  border-radius: 10px;
  color: #111827;
  cursor: pointer;
  transition: background .12s;
  user-select: none;
}

.cdd-option:hover {
  background: #f3f4f6;
  color: #111827;
}

.cdd-option--active {
  background: #e9ecef;
  color: #111827;
}

/* Mobile: allow selects to wrap & fill row */
@media (max-width: 575.98px) {
  .cdd-wrap {
    min-width: 0;
  }
  .cdd-trigger {
    width: 100%;
    justify-content: space-between;
  }
}

/* Small screen adjustments */
@media (max-width: 575.98px) {
  .page-title {
    font-size: 20px;
  }

  /* Chart header: stack title above selects on mobile */
  #chart-header {
    flex-direction: column;
    align-items: flex-start !important;
  }

  #chart-header > div:last-child {
    flex-wrap: wrap;
    width: 100%;
  }

  .otp-digit {
    width: 48px !important;
    height: 54px !important;
    font-size: 1.25rem !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

.legend-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 4px;
}

.chart-wrapper {
  position: relative;
  min-height: 240px;
}

/* Transaction content */
.transaction-filter-wrap {
  max-width: 400px;
}

.transaction-amount {
  width: 100px;
  flex-shrink: 0;
}

.transaction-status, .transaction-tax {
  width: 100px;
  flex-shrink: 0;
}

.transaction-processing-fees {
  width: 125px;
  flex-shrink: 0;
}

.transaction-receipt {
  width: 55px;
  flex-shrink: 0;
}

.transaction-time {
  width: 70px;
}

.transaction-icon {
  width: 40px;
  height: 40px;
}

.transaction-type-wrap {
  width: 240px;
}

.transaction-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

.transaction-list-wrapper {
  min-width: 700px;
}

.transaction-list-wrapper .transaction-main-col {
  min-width: 0;
}

.transaction-list-wrapper .transaction-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.transaction-list-wrapper .transaction-time {
  width: 70px;
  flex-shrink: 0;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.5;
}

.transaction-list-wrapper .transaction-desc {
  max-width: 850px;
}

.transaction-list-wrapper .transaction-amount {
  width: 100px;
  flex-shrink: 0;
}

.transaction-list-wrapper .transaction-status,
.transaction-list-wrapper .transaction-tax {
  width: 100px;
  flex-shrink: 0;
}

.transaction-list-wrapper .transaction-receipt {
  width: 55px;
  flex-shrink: 0;
}

.transaction-list-wrapper .transaction-processing-fees {
  width: 125px;
  flex-shrink: 0;
}

@media (max-width: 575.98px) {
  .filter-settings form, .transaction-timezone-wrap,
  .transaction-net-desc {
    flex-direction: column;
    align-items: flex-start !important;
  }

  .filter-settings [data-transaction-tab-filters-target="businessOnly"] {
    width: 100%;
  }

  .filter-settings [data-transaction-tab-filters-target="businessOnly"] .transaction-type-wrap,
  .filter-settings .transaction-date-wrap,
  .transaction-filter-wrap, .transaction-type-wrap {
    width: 100%;
  }

  .transaction-desc {
    max-width: 250px;
  }
}

@media (min-width: 576px) and (max-width: 1147px) {
  .transaction-desc {
    max-width: 180px !important;
  }
}

/* Transactions table */
.tx-table thead th {
  font-size: 14px;
  font-weight: 500;
  color: #8A8A8E;
  border-bottom: 1px solid #F2F2F7;
  padding: 0 12px 16px;
  text-transform: none;
}

.tx-table tbody tr td {
  padding: 20px 12px;
  vertical-align: middle;
  border-bottom: 1px solid #F2F2F7;
}

.tx-table tbody tr:last-child td {
  border-bottom: none;
}

.tx-sort-icon {
  font-size: 10px;
  color: #C7C7CC;
  margin-left: 4px;
}

.th-sortable {
  cursor: pointer;
  user-select: none;
  transition: color 0.15s ease;
}

.th-sortable:hover {
  color: #000000 !important;
}

.th-sortable:hover .tx-sort-icon {
  color: #000000 !important;
}

.td-name-primary,
.td-type,
.td-amount,
.td-date {
  font-size: 15px;
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 4px;
}

/* Settings Tabs */
.settings-tabs {
  border: none;
  gap: 5px;
  margin-bottom: -1px;
}

.settings-tabs .nav-link {
  border: none;
  background: none;
  padding: 12px 21px;
  color: #6c757d;
  font-weight: 500;
  font-size: 15px;
  position: relative;
  transition: all 0.25s ease;
}

.settings-tabs .nav-link:hover {
  color: #000;
}

.settings-tabs .nav-link.active {
  color: #000 !important;
  background: none;
}

.settings-tabs .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-color: #000;
  animation: slideIn 0.3s ease;
}

.bank-information-card img {
  width: 40px;
  height: 40px;
  object-fit: cover;
}

.bank-information-details-primary-account span {
  cursor: pointer;
}

/* App Integrations */
.integration-card {
  background-color: var(--medium-gray);
  border-radius: 16px;
  padding: 20px;
  min-height: 220px;
}

.integration-card-logo-img {
  width: 40px;
  height: 40px;
  object-fit: cover;
}

.integration-card-btn {
  padding-top: 10px;
  padding-bottom: 10px;
}

.integration-card-btn:disabled {
  opacity: 1;
  cursor: default;
}

.link-account-wrap .card,
.upload-document-wrap .card {
  min-height: 100vh;
}

.link-processing-card-body {
  min-height: min(70vh, 640px);
}

.link-processing-subcopy {
  max-width: 420px;
}

.link-start-coin {
  width: 72px;
  height: 72px;
  background: linear-gradient(155deg, #f7dc6f 0%, #d4ac0d 42%, #9a7d0a 100%);
  border: 3px solid rgba(255, 255, 255, 0.45);
  box-shadow:
    inset 0 2px 6px rgba(255, 255, 255, 0.35),
    0 10px 24px rgba(0, 0, 0, 0.12);
}

@media (min-width: 768px) {
  .link-start-coin {
    width: 88px;
    height: 88px;
  }
}

/* Section Styling */
.info-row {
  transition: background 0.2s ease;
  border-radius: 8px;
}

/* Animations */
@keyframes slideIn {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.5s ease forwards;
}

/* Offcanvas overrides */
.offcanvas-end {
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
}

.btn-close:focus {
  box-shadow: none;
}

.smaller {
  font-size: 11px;
}

.ps-5-custom {
  padding-left: 95px !important;
}

.input-prefix-icon {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  z-index: 5;
  pointer-events: none;
}

.summary-placeholder {
  background-color: #FAFAFA;
  min-height: 250px;
  border-style: dashed !important;
  border-color: #E5E5EA !important;
}

.border-light-gray {
  border-color: #E5E5EA !important;
}

/* Custom Radio Button */
.custom-option {
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1.5px solid #E5E5EA;
  background-color: var(--bs-white);
}

.custom-option:hover {
  border-color: #adb5bd;
}

.custom-option:has(input:checked),
.custom-option.active {
  border-color: #000;
  background-color: var(--bs-white);
}

.custom-radio {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid #D1D1D6;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.custom-option:has(input:checked) .custom-radio,
.custom-option.active .custom-radio {
  border-color: #000;
}

.custom-radio-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: #fff;
  border: 1px solid #E5E5EA;
  transition: background-color 0.2s;
}

.custom-option:has(input:checked) .custom-radio-dot,
.custom-option.active .custom-radio-dot {
  background-color: #000;
}

/* Custom Checkbox */
.custom-checkbox {
  position: relative;
  width: 18px;
  height: 18px;
}

.custom-checkbox input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.custom-checkbox label {
  position: absolute;
  top: 0;
  left: 0;
  height: 18px;
  width: 18px;
  background-color: transparent;
  border: 1.5px solid #D1D1D6;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.custom-checkbox input:checked~label {
  background-color: #000;
  border-color: #000;
}

.custom-checkbox label:after {
  content: "";
  position: absolute;
  display: none;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.custom-checkbox input:checked~label:after {
  display: block;
}

.custom-switch-wrap .form-check-input {
  height: 32px;
  width: 60px !important;
  background-color: #f8f9fa;
  border-color: #E5E5EA !important;
  box-shadow: none !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23C7C7CC'/%3e%3c/svg%3e") !important;
}

.custom-switch-wrap .form-check-input:focus {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23C7C7CC'/%3e%3c/svg%3e") !important;
}

.custom-switch-wrap .form-check-input:checked {
  background-color: #000;
  border-color: #000;
  box-shadow: none !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23ffffff'/%3e%3c/svg%3e") !important;
}

/* Custom Select */
.custom-select+.select2-container--default .select2-selection--multiple,
.custom-select-single+.select2-container--default .select2-selection--single {
  border-color: #dee2e6;
  border-radius: 24px;
  min-height: 48px;
  padding: 6px 18px;
}

.custom-select+.select2-container--focus .select2-selection--multiple,
.custom-select-single+.select2-container--focus .select2-selection--single,
.select2-dropdown {
  border-color: #dee2e6 !important;
}

.custom-select-single+.select2-container--default .select2-selection--single .select2-selection__arrow {
  right: 12px;
}

.custom-select-single+.select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 30px;
  padding-top: 4px;
}

/* Tabs Styling */
.settings-tabs {
  border: none;
  gap: 5px;
  margin-bottom: -1px;
}

.settings-tabs .nav-link {
  border: none;
  background: none;
  padding: 12px 21px;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 15px;
  position: relative;
  transition: all 0.25s ease;
}

.settings-tabs .nav-link:hover {
  color: var(--bs-black);
}

.settings-tabs .nav-link.active {
  color: var(--bs-black) !important;
  background: none;
}

.settings-tabs .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--bs-black);
  animation: slideIn 0.3s ease;
}

/* Section Styling */
.info-row {
  transition: background 0.2s ease;
  border-radius: 8px;
}

/* Animations */
@keyframes slideIn {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .settings-tabs {
    gap: 20px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
  }
  .settings-tabs::-webkit-scrollbar {
    display: none;
  }
  .info-row {
    margin-bottom: 15px;
  }
}

/* Invoice Table */
.inv-table thead th {
  background-color: var(--medium-gray);
  border-bottom: 2px solid var(--bs-secondary);
}

.inv-table tbody tr {
  border-bottom: none;
}

/* Invoice form — keep custom-item tax checkbox aligned */
.with-tax-toggle {
  min-height: 18px; /* prevents vertical jump when label toggles */
}

.with-tax-toggle .with-tax-label {
  display: inline-block;
  min-width: 56px; /* reserve space for "With Tax" */
  text-align: left;
}