* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #0f0f0f;
  --btn-primary-color:/* #122169; */ #1a4612;
  --btn-secondary-color: /* #0056b3 */ #0a900a;
  --btn-shadow-color: /* #519beb */ #14863b;
  --text-color-dark: #333;
  --text-color-light: #fff;
  --bg-light: #f8f9fa;
  --downpayment-status-success-bg: #00801d;
  --downpayment-status-pending-bg: #ffc107;
  --downpayment-status-success-color: #d4edda;
  --downpayment-status-pending-color: #856404;
  --border-color: #d7c1c1;
  --shadow-color: /* #519beb */ #30a836;
  --card-bg: #fff;
  --shadow: 0 4px 8px rgba(144, 171, 232, 0.08);
  --border-radius: 8px;
  --font-family: 'Saira', sans-serif;
  /*  "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; */
}

html {
  font-family: var(
    --font-family
  ); /*'Segoe UI', Tahoma, Geneva, Verdana, sans-serif */
}

body {
  background-color: #f8f9fa;
  line-height: 1.6;
}

/* Navbar */
.navbar {
  background: var(--primary-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar-container {
  max-width: 1200px;
  margin: 0 auto;
  /*   padding: 10px 20px; */
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-menu {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.navbar-item {
  color: white;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.3s;
  padding: 20px 30px;
}

.navbar-menu-icon {
  display: none;
  padding: 18px 20px;
}

.navbar-menu .navbar-item:hover {
  color: var(--btn-secondary-color);
}

.navbar-menu .navbar-item.active {
  font-weight: bold;
  padding: 18px 30px;
  border-bottom: 4px solid var(--btn-secondary-color);
}

.navbar-item-list {
  display: none;
}

.navbar-brand {
  color: white;
  font-size: 1.25rem;
  font-weight: bold;
  text-decoration: none;
  /*   padding: 0 15px; */
  padding: 0 10px;
}

.dropdown {
  position: relative;
}

.dropdown-toggle {
  background: none;
  border: none;
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.3s;
}

.dropdown-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

.dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  background: white;
  min-width: 200px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  padding: 8px 0;
  margin-top: 5px;
}

.dropdown.active .dropdown-menu {
  display: block;
}

.dropdown-item {
  display: block;
  padding: 10px 20px;
  color: #333;
  text-decoration: none;
  transition: background 0.3s;
}

.dropdown-item:hover {
  background: #f8f9fa;
}

.dropdown-item.danger {
  color: #dc3545;
}

/* Container and Grid */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: var(--border-radius);
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease,
    box-shadow 0.3s ease;
  border: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-primary {
  background-color: var(--btn-primary-color);
  color: var(--text-color-light);
}

.btn-danger {
  background-color: #dc3545;
  color: var(--text-color-light);
}

.btn-success {
  background-color: #28a745;
  color: var(--text-color-light);
}

.btn-primary:hover {
  background-color: var(--btn-secondary-color);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

input[type='number'] {
  /* 1. Para Firefox: trata el campo como un campo de texto normal */
  -moz-appearance: textfield;
}

input[type='number']::-webkit-outer-spin-button,
input[type='number']::-webkit-inner-spin-button {
  /* 2. Para Chrome, Safari y Opera: elimina la apariencia nativa */
  -webkit-appearance: none;
  margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .navbar-brand {
    font-size: 1rem;
  }

  /*   .navbar-menu .navbar-item {
    display: none;
  } */

  .navbar-menu {
    gap: 10px;
  }

  .navbar-item-list {
    flex-direction: column;
  }

  .navbar {
    padding-bottom: 0;
  }

  .navbar-item-list .navbar-item {
    border-top: 1px solid rgb(158, 158, 158);
    padding: 15px 30px;
  }

  .navbar-item-list .navbar-item.user-logout {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .navbar-menu-icon {
    display: block;
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
  }

  .navbar-menu .navbar-item.active {
    padding: 18px 5px;
  }

  .navbar-item-list .navbar-item.active {
    background-color: var(--btn-primary-color);
    padding: 15px 30px;
  }

  /*   .dropdown-toggle {
    display: none;
  } */
}

/* Inicio modal filtro prospectos */
.filtro-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 15, 15, 0.6);
}

.filtro-modal-content {
  width: min(100%, 520px);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: var(--card-bg);
  border-radius: 16px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(26, 70, 18, 0.12);
}

.filtro-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid #e9ecef;
}

.filtro-modal-header h2 {
  margin: 0;
  font-size: 1.35rem;
  color: var(--text-color-dark);
}

.filtro-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #5f6b6d;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.filtro-modal-close:hover {
  background-color: #eef3ee;
  color: var(--btn-primary-color);
}

.filtro-modal-body {
  padding: 20px;
}

.filtro-modal-column {
  display: grid;
  gap: 14px;
}

.filtro-modal-body .form-group {
  display: grid;
  gap: 6px;
}

.filtro-modal-body label,
.filtro-modal-body legend {
  color: var(--text-color-dark);
  font-weight: 600;
}

.filtro-modal-body input,
.filtro-modal-body select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background-color: #fff;
  color: var(--text-color-dark);
}

.filtro-modal-body input:focus,
.filtro-modal-body select:focus {
  outline: none;
  border-color: var(--btn-primary-color);
  box-shadow: 0 0 0 3px rgba(26, 70, 18, 0.12);
}

.filtro-modal-body .date-range-filter-modal {
  margin: 0;
  padding: 14px;
  border: 1px solid #dfe5df;
  border-radius: 12px;
}

.filtro-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

@media (max-width: 480px) {
  .filtro-modal-overlay {
    padding: 12px;
  }

  .filtro-modal-header,
  .filtro-modal-body {
    padding: 16px;
  }

  .filtro-modal-footer {
    justify-content: stretch;
  }

  .filtro-modal-footer .btn {
    flex: 1;
    padding-inline: 0;
  }
}
/* Fin modal filtro prospectos */
