body {
    font-family: Arial, sans-serif;
    margin: 30px;
}

header {
    margin-bottom: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

header h1 {
    margin-bottom: 5px;
    font-size: 2.2rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

header h2 {
    margin-bottom: 0;
    font-size: 1.3rem;
    font-weight: normal;
    opacity: 0.9;
}

.search-filter {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.search-filter input[type="text"] {
    padding: 5px;
    font-size: 1em;
    margin-right: 10px;
}

.search-filter select {
    padding: 5px;
    font-size: 1em;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 0.85rem;
}

th,
td {
    border: 1px solid #333;
    padding: 6px 8px;
    text-align: left;
}

th {
    background: #f4f4f4;
}

.cliente {
    font-weight: bold;
}

.coment {
    color: #b00;
}

.table th,
.table td {
    vertical-align: middle;
}

.btn-analisis-procede {
    background-color: #198754;
    color: #fff;
}

.btn-analisis-noproc {
    background-color: #dc3545;
    color: #fff;
}

.btn-analisis-duda {
    background-color: #ffc107;
    color: #212529;
}

.btn-estado-abierto {
    background-color: #0d6efd;
    color: #fff;
}

.btn-estado-cerrado {
    background-color: #343a40;
    color: #fff;
}

.btn-group .btn {
    min-width: 110px;
}

.bg-light-green {
    background-color: #d4edda !important;
}

.bg-light-gray {
    background-color: #e9ecef !important;
}

.form-select {
    font-size: 0.85rem;
}

.form-select option {
    font-size: 0.85rem;
}

.accordion-button {
    background: #f8fafc;
    border-bottom: 1px solid #e7e7e7;
}

.accordion-item {
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.2rem #764ba2;
}

.accordion-body {
    background: #fff;
    padding-top: 0.2rem !important;
    padding-bottom: 0.5rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.accordion-header {
    border: none !important;
    border-radius: 0 !important;
    font-size: 0.98rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
}

.accordion-header .fw-bold {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Espacio para personalización futura de las tarjetas y acordeón */

.tabla-incidencias td.acciones {
    text-align: right;
    vertical-align: middle;
}
.tabla-incidencias td.img {
    text-align: center;
    vertical-align: middle;
}

.tabla-incidencias td.fecha {
    text-align: right;
    vertical-align: middle;
}

.table-responsive {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.tabla-incidencias {
    margin-top: 0 !important;
}

.analisis-select.procede {
    background-color: #dc3545 !important;
    color: #fff !important;
}
.analisis-select.noproc {
    background-color: #198754 !important;
    color: #fff !important;
}
.analisis-select.duda {
    background-color: #ffc107 !important;
    color: #212529 !important;
}

.estado-select.abierto {
    background-color: #dc3545 !important;
    color: #fff !important;
}
.estado-select.cerrado {
    background-color: #343a40 !important;
    color: #fff !important;
}

.visitado-select.por-agendar {
    background-color: #e9ecef !important;
    color: #212529 !important;
}
.visitado-select.agendado {
    background-color: #ffe066 !important;
    color: #212529 !important;
}
.visitado-select.no-visitado {
    background-color: #dc3545 !important;
    color: #fff !important;
}
.visitado-select.visitado {
    background-color: #198754 !important;
    color: #fff !important;
}

#clearSearch {
    left: auto !important;
    right: 0.75rem !important;
}

/* Botón blanco puro para 'Nuevo Cliente' */
.btn-white {
  background-color: #fff;
  color: #123a6d;
  border: 1px solid #ced4da;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
  min-width: 120px;
}
.btn-white:hover, .btn-white:focus {
  background-color: #f8f9fa;
  color: #0d2a4d;
  border-color: #b6c2ce;
}

/* Ancho fijo para celdas de fecha en la tabla de incidencias */
.tabla-incidencias td.fecha, .tabla-incidencias th.fecha {
  width: 100px;
  min-width: 90px;
  max-width: 110px;
  text-align: center;
  white-space: nowrap;
}

/* Ancho fijo para celdas de iconos y acciones */
.tabla-incidencias td.img, .tabla-incidencias td.acciones,
.tabla-incidencias th.img, .tabla-incidencias th.acciones {
  width: 48px;
  min-width: 40px;
  max-width: 56px;
  text-align: center;
}

/* Ajuste para selects dentro de la tabla */
.tabla-incidencias select.form-select {
  min-width: 110px;
  max-width: 130px;
  padding: 2px 8px;
  font-size: 0.95em;
}

.col-texto {
  width: 350px;
  min-width: 200px;
  max-width: 500px;
  word-break: break-word;
}

.header-promocion {
  position: relative;
}
.header-promocion-botones {
  position: absolute;
  top: 24px;
  right: 32px;
  display: flex;
  gap: 16px;
  z-index: 2;
}
.btn-info-promocion {
  position: static;
  background: transparent;
  border: none;
  border-radius: 6px;
  color: #fff;
  padding: 4px 10px;
  font-size: 2rem;
  line-height: 1;
  transition: background 0.2s, color 0.2s;
}
.btn-info-promocion:hover, .btn-info-promocion:focus {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

.btn-flecha-toggle {
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  height: 38px;
  width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #764ba2;
  transition: background 0.2s, color 0.2s, border 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  padding: 0;
}
.btn-flecha-toggle:hover, .btn-flecha-toggle:focus {
  background: #f4f4f4;
  color: #4b2e83;
  border-color: #b6c2ce;
}

/* Selector ESCRITURADO/NO ESCRITURADO */
.escrituras-select.escriturado {
  background: #198754 !important;
  color: #fff !important;
  border-color: #198754 !important;
}
.escrituras-select.no-escriturado {
  background: #dc3545 !important;
  color: #fff !important;
  border-color: #dc3545 !important;
}
/* Selector CON LLAVES/SIN LLAVES */
.llaves-select.con-llaves {
  background: #198754 !important;
  color: #fff !important;
  border-color: #198754 !important;
}
.llaves-select.sin-llaves {
  background: #dc3545 !important;
  color: #fff !important;
  border-color: #dc3545 !important;
}

.estado-select.no-comunicado {
  background-color: #adb5bd !important;
  color: #fff !important;
}
.estado-select.comunicado {
  background-color: #ffe066 !important;
  color: #212529 !important;
}
.estado-select.incidentado {
  background-color: #dc3545 !important;
  color: #fff !important;
}
.estado-select.resuelto {
  background-color: #198754 !important;
  color: #fff !important;
}
.estado-select.no-resuelto {
  background-color: #dc358b !important;
  color: #fff !important;
}

.estado-global-select.abierto {
  background-color: #dc3545 !important;
  color: #fff !important;
}
.estado-global-select.cerrado {
  background-color: #198754 !important;
  color: #fff !important;
}

