.mt-70 {
  margin-top: 70px;
}
.lh-2 {
  line-height: 2 !important;
}
.lh-1 {
  line-height: 1 !important;
}

.px-2-5 {
  padding-left: 2.5rem !important;
  padding-right: 2.5rem !important;
}

@media (max-width: 991.98px) {
  .px-2-5 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
}

.input-group.input-group-outline.is-filled .form-label + .form-control {
  border-color: var(--bs-gray-500) !important;
  border-top-color: transparent !important;
  box-shadow: none !important;
}

.input-group.input-group-outline.is-filled .form-label {
  color: var(--bs-gray-900) !important;
}

.input-group.input-group-outline.is-filled .form-label:before {
  border-top-color: var(--bs-gray-500) !important;
  box-shadow: inset 0 0px var(--bs-gray-500) !important;
}

.input-group.input-group-outline.is-filled .form-label:after {
  border-top-color: var(--bs-gray-500) !important;
  box-shadow: inset 0 0px var(--bs-gray-500) !important;
}
/* Fieldset styling: minimal margins/padding */
.compact-fieldset {
  border: 1px solid #adb5bd;
  /* same border style as before */
  border-radius: 0.25rem;
  /* reduce space between fieldsets */
  padding: 1em;
  /* minimal padding around input */
  position: relative;
  margin-top: -0.4rem;
}

/* Legend styling: smaller font, minimal padding around text */
.compact-fieldset legend {
  font-size: 0.6875rem !important;
  line-height: 1.25 !important;
  margin: 0;
  padding: 0 0.3rem;
  width: auto;
  float: none;
  color: #212529;
}

/* Input styling: smaller font, narrower width, smaller height */
.compact-input {
  font-size: 0.7rem;
  height: 1.2rem;
  width: 60%;
  border: 0;
  margin: 0.1rem 0;
}

.page-item.active .page-link {
  background-color: var(--bs-pagination) !important;
  border-color: var(--bs-pagination) !important;
}
.visibility-hidden {
  visibility: hidden;
}
.display-block {
  display: block;
}

.custom-dropdown {
  max-height: 250px; /* Set max height */
  overflow: hidden; /* Hide overflow outside */
}

.dropdown-scroll {
  max-height: 200px; /* Adjust height as needed */
  overflow-y: auto; /* Enable vertical scroll */
}

.selected-crops {
  display: inline-block;
  max-width: 100%; /* Adjust width as needed */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}

.input-group.input-group-outline.is-focused .form-label:before {
  border-top-color: var(--bs-primary) !important;
  box-shadow: inset 0 0px var(--bs-gray-500) !important;
}

.input-group.input-group-outline.is-focused .form-label:after {
  border-top-color: var(--bs-primary) !important;
  box-shadow: inset 0 0px var(--bs-gray-500) !important;
}

.input-group.input-group-outline.is-focused .form-label + .form-control {
  border-color: var(--bs-primary) !important;
  border-top-color: transparent !important;
  box-shadow: none !important;
}

.input-group.input-group-outline button.form-control {
  border-left-color: var(--bs-gray-500) !important;
  border-right-color: var(--bs-gray-500) !important;
  border-bottom-color: var(--bs-gray-500) !important;
}

.input-group.input-group-outline button.form-control.show {
  border-left-color: var(--bs-primary) !important;
  border-right-color: var(--bs-primary) !important;
  border-bottom-color: var(--bs-primary) !important;
}

.input-group.input-group-outline button.form-control.show label::after {
  border-left-color: var(--bs-primary) !important;
}

.input-group.input-group-outline.is-filled:has(.show) > .form-label:before {
  border-top-color: var(--bs-primary) !important;
}
.input-group.input-group-outline.is-filled:has(.show) > .form-label:after {
  border-top-color: var(--bs-primary) !important;
}
.auto-complete-field {
}

/* 


.input-group.input-group-outline.is-focused .form-label + .form-control, .input-group.input-group-outline.is-filled .form-label + .form-control:focus{
    border-color: #922790 !important;
    border-radius: 5px;
}
.form-control:focus {
    border-color: #922790 !important;
    border-top:0!important;
    border-radius: 5px;
}
label.form-check-label,.dropdown.dropdown-hover .dropdown-menu, .dropdown .dropdown-menu{
    transform:none !important;
    color:#212529;
    will-change: auto  !important;
}
 */

.sidenav .nav-link.active {
  background-color: var(--bs-dark) !important; /* Or use #0d6efd */
  color: #fff !important; /* Ensure text is visible */
  border-radius: 0.375rem; /* Optional rounding */
}

.table-secondary {
  --bs-table-bg: var(--bs-dark);
  color: #ffffff;
}

.btn-primary,
.btn.bg-gradient-primary {
  box-shadow: none !important;
  background-image: none !important;
  background-color: var(--bs-dark) !important; /* or your base color */
  border-color: var(--bs-dark) !important;
}

.btn-primary:hover,
.btn.bg-gradient-primary:hover,
.btn-primary:focus,
.btn.bg-gradient-primary:focus,
.btn-primary:active,
.btn.bg-gradient-primary:active,
.btn-primary:focus-visible,
.btn.bg-gradient-primary:focus-visible {
  box-shadow: none !important;
  background-color: var(
    --bs-dark
  ) !important; /* same color as base to avoid change */
  border-color: var(--bs-dark) !important;
  outline: none !important;
}

.btn-outline-primary.active {
  color: #ffffff !important;
}

.text-primary {
  color: var(--bs-dark) !important;
}

.bg-primary {
  background-color: var(--bs-dark) !important;
}

.btn-outline-primary {
  box-shadow: none;
}
.btn-outline-primary:hover:not(.active) {
  background-color: transparent;
  opacity: 0.75;
  box-shadow: none;
  color: var(--bs-dark);
}

.table-cell-custom {
  font-weight: 600;
  font-size: 0.85rem;
  border-color: #ccc !important;
  vertical-align: middle !important;
}

.table-cell-border-middle {
  font-size: 0.85rem !important;
  vertical-align: middle !important;
  border-color: #ccc !important;
}

/* ── Table header ─────────────────────────────────────── */
.app-table thead tr th {
  background-color: #2563eb;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 13px 16px;
  border: none;
  white-space: nowrap;
}
.app-table thead tr th:first-child {
  border-radius: 6px 0 0 0;
}
.app-table thead tr th:last-child {
  border-radius: 0 6px 0 0;
}
.app-table th.px-3,
.app-table td.px-3 {
  padding-left: 0.6rem !important;
}

/* ── Table body ───────────────────────────────────────── */
.app-table tbody tr td {
  padding: 13px 16px;
  vertical-align: middle;
  font-size: 0.875rem;
  border-bottom: 1px solid #f3f4f6;
  color: #1f2937;
}
.app-table tbody tr:last-child td {
  border-bottom: none;
}
.app-table tbody tr:hover td {
  background-color: #dbeafe;
}

/* ── Role badges ──────────────────────────────────────── */
.role-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.badge-admin {
  background-color: #dbeafe;
  color: #1d4ed8;
}
.badge-admin .role-dot {
  background-color: #1d4ed8;
}

.badge-accountant {
  background-color: #dcfce7;
  color: #166534;
}
.badge-accountant .role-dot {
  background-color: #16a34a;
}

.badge-jr {
  background-color: #f3f4f6;
  color: #374151;
}
.badge-jr .role-dot {
  background-color: #9ca3af;
}

/* ── Edit button ──────────────────────────────────────── */
.btn-edit-action {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-color: #d1d5db;
  color: #374151;
  background: #fff;
  margin-bottom: 0rem;
}
.btn-edit-action:hover {
  background-color: #f9fafb;
  border-color: #9ca3af;
  color: #111827;
}

/* ── Custom pagination ────────────────────────────────── */
.dt-pagination {
  display: flex;
  align-items: center;
  gap: 4px;
}
.dt-page-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #374151;
  text-decoration: none;
  transition:
    background 0.15s,
    border-color 0.15s;
  line-height: 1;
}
.dt-page-btn:hover:not(.disabled):not(.active) {
  background-color: #f3f4f6;
  border-color: #d1d5db;
}
.dt-page-btn.active {
  background-color: #2563eb;
  border-color: #2563eb;
  color: #fff;
}
.dt-page-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}
.dt-page-btn.arrow {
  font-size: 1.1rem;
}
.dt-page-btn.ellipsis {
  font-size: 0.95rem;
  letter-spacing: 1px;
  border-color: transparent;
  background: none;
}
.dt-page-btn.ellipsis:hover:not(.disabled) {
  background-color: #f3f4f6;
  border-color: #d1d5db;
  color: #2563eb;
}

.custom-input {
  border: 1px solid #d1d5db !important;
  box-shadow: none !important;
}

.custom-input:focus {
  border: 1px solid #d1d5db !important;
  box-shadow: none !important;
  outline: none !important;
}

.setup-stepper {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.82rem;
}

.step-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: 0.2s ease;
  border: 1px solid transparent;
}

.step-completed {
  background: #dcfce7;
  color: #15803d;
  border-color: #86efac;
}

.step-active {
  background: #2563eb;
  color: white;
}

.step-pending {
  background: #f3f4f6;
  color: #6b7280;
  border-color: #e5e7eb;
}

.step-arrow {
  color: #9ca3af;
  font-size: 0.9rem;
}

.saa-notch-field {
  position: relative;
  border: 1px solid #d2d6da;
  border-radius: 0.5rem;
}
.saa-notch-field.saa-notch-error {
  border-color: #fd5c70;
}
.saa-notch-label {
  position: absolute;
  top: -9px;
  left: 12px;
  background: white;
  padding: 0 5px;
  font-size: 0.72rem;
  color: #7b809a;
  line-height: 1;
  z-index: 1;
  white-space: nowrap;
}
.saa-notch-input {
  display: block;
  width: 100%;
  padding: 0.7rem 0.875rem;
  font-size: 0.875rem;
  color: #344767;
  background: transparent;
  border: none;
  outline: none;
  border-radius: 0.5rem;
  appearance: auto;
}
.saa-phone-code {
  width: 115px;
  flex-shrink: 0;
  border: none;
  outline: none;
  background: transparent;
  padding: 0.65rem 0.5rem 0.65rem 0.875rem;
  font-size: 0.875rem;
  color: #344767;
  cursor: pointer;
}
.saa-phone-divider {
  width: 1px;
  background: #d2d6da;
  height: 24px;
  flex-shrink: 0;
}
.saa-phone-number {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  padding: 0.65rem 0.875rem;
  font-size: 0.875rem;
  color: #344767;
}
.saa-btn-outline-danger {
  border: 1.5px solid #fd5c70;
  color: #fd5c70;
  background: transparent;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 0.375rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  line-height: 1.5;
}
.saa-btn-outline-danger:hover {
  background: #fff5f5;
  color: #fd5c70;
}
.saa-btn-outline-warning {
  border: 1.5px solid #f5a623;
  color: #f5a623;
  background: transparent;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 0.375rem;
  cursor: pointer;
  display: inline-block;
  line-height: 1.5;
}
.saa-btn-outline-warning:hover {
  background: #fffbf0;
  color: #f5a623;
}
.saa-btn-green {
  background-color: #16a34a;
  border: 1.5px solid #16a34a;
  color: white;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.4rem 1.25rem;
  border-radius: 0.375rem;
  cursor: pointer;
  display: inline-block;
  line-height: 1.5;
}
.saa-btn-green:hover {
  background-color: #16a34a;
  border-color: #16a34a;
  color: white;
}

/* Disabled state */
.saa-btn-green:disabled,
.saa-btn-green.disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.custom-tabs {
  gap: 0.5rem;
}

.custom-tab {
  background: transparent;
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #6b7280;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}

.custom-tab.active {
  color: #2563eb;
  background-color: #dbeafe;
  border-radius: 5px;
}

.custom-tab:hover {
  color: #2563eb;
}

/* ── Company status badges ────────────────────────────── */
.status-badge,
.role-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
}

.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.badge-status-new {
  background-color: #dbeafe;
  color: #1d4ed8;
}
.badge-status-new .status-dot {
  background-color: #1d4ed8;
}
.badge-status-active {
  background-color: #dcfce7;
  color: #166534;
}
.badge-status-active .status-dot {
  background-color: #16a34a;
}
.badge-status-inactive {
  background-color: #fef9c3;
  color: #92400e;
}
.badge-status-inactive .status-dot {
  background-color: #d97706;
}
.badge-status-archived {
  background-color: #f3f4f6;
  color: #374151;
}
.badge-status-archived .status-dot {
  background-color: #9ca3af;
}
.rounded-4 {
  border-radius: 0.85rem !important;
}
.saa-btn-danger {
  border: 1.5px solid #f44335;
  border-color: #f44335;
  background-color: #f44335;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 0.375rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  line-height: 1.5;
  color: white;
}

.saa-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='gray' viewBox='0 0 16 16'%3E%3Cpath d='M1.5 5.5l6 6 6-6' stroke='gray' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");

  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px;
}

.connection-user {
    font-size: .875rem;
    color: #374151;
}

.connection-meta,
.connection-empty,
.requests-info {
    font-size: .8rem;
    color: #6b7280;
}

.requests-table-wrapper {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}
.connection-banner {
    background: #e0f2fe;
    border-left: 4px solid #2563eb;
    border-radius: 8px;
    padding: 14px 18px;
}

.connection-title {
    font-size: .875rem;
    color: #1e3a5f;
}


.saa-btn-warning {
  border: 1.5px solid #f5a623;
  color: white;
  background: #f5a623;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 0.375rem;
  cursor: pointer;
  display: inline-block;
  line-height: 1.5;
}
.saa-btn-warning:hover {
  background: #fffbf0;
  color: #f5a623;
}
