.filtro-fechas {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1000;
    background: #fff;
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    margin: 12px;
    font-family: 'Segoe UI', sans-serif;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    border-left: 4px solid #791a38;
}

.campo-fecha {
    display: flex;
    align-items: center;
    gap: 6px;
}

.campo-fecha label {
    font-weight: 500;
    margin: 0;
}

.campo-fecha input[type="date"] {
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 14px;
    outline: none;
}

.btn-filtrar {
    background-color: #c6973f;
    border: none;
    border-radius: 6px;
    padding: 6px 14px;
    font-weight: bold;
    font-size: 14px;
    color: white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-filtrar:hover {
    background-color: #aa7f30;
}

.btn-filtrar i {
    margin-right: 6px;
}





/* Reset rápido para inputs y contenedor */
/*.filtro-fechas {
  display: flex;
  gap: 1rem;
  align-items: center;
  background: #fff;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  box-shadow: 0 2px 6px rgba(0,0,0,.1);
  font-family: 'Inter', sans-serif;
}
*/
/*.campo-fecha {
  display: flex;
  flex-direction: column;
  font-size: 0.85rem;
}*/

/*.campo-fecha i {
  margin-bottom: 0.25rem;
  color: #3498db;
}*/
/*
.campo-fecha input {
  padding: 0.35rem 0.5rem;
  border: 1px solid #d0d5dd;
  border-radius: 0.5rem;
  font-size: 0.85rem;
}*/

.btn-filtrar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #c6973f;
  color: #fff;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background .2s;
}
.btn-filtrar:hover,.btn-flotante:hover { background:#aa7f30; }

/* Botón flotante */
.btn-flotante {
  position: fixed;
  top: 1rem;
  right: 1rem;

  background: #c6973f;
  color: #fff;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 0.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.25rem;
  box-shadow: 0 4px 10px rgba(0,0,0,.2);
  cursor: pointer;
  z-index: 1000;
}
.btn-flotante-icon{
    margin-right: .5rem;
}

/* —— RESPONSIVE —— */
@media (max-width: 768px) {
  #filtro  { display:none; }
  .btn-flotante { display:flex; }
}

@media (min-width: 769px) {
  .btn-flotante { display:none; }
}


/* —— POPUP FECHAS —— */
/* —— SWEETALERT2  —— */

/* Contenedor del pequeño formulario */
.sa-datepicker {
  display: grid;
  gap: 1rem;
  font-family: 'Inter', sans-serif;
}

/* Etiquetas */
.sa-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: #344054;
  margin-bottom: 0.25rem;
  text-align: left;       /* Por si cambias la dirección del grid */
}

/* Inputs */
.sa-input-date {
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
  color: #101828;
  background: #fff;
  border: 1px solid #d0d5dd;
  border-radius: 0.5rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.sa-input-date:focus {
  outline: none;
  border-color: #aa7f30;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.25);
}