/*
 * Calendario de rango (web/js/calendario.js).
 *
 * En su propio archivo porque lo usan el PANEL (filtro de fechas de la tabla de
 * reportes) y el MAPA PÚBLICO. Estaba dentro de css/dashboard/home.css, que en las
 * páginas públicas no se carga.
 */

/* --- Calendario de rango (web/js/calendario.js) ---
   Un solo campo en lugar de dos <input type="date">. */
.tabla-rango { position: relative; }

.cal-campo {
    width: 100%;
    font-size: 11px;
    padding: .2rem .35rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background: #fff;
    color: #6c7d8e;
    text-align: left;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cal-campo:hover { border-color: #f2849e; }
.cal-campo-activo { color: #585858; font-weight: 600; border-color: #f2849e; }

.cal-panel {
    position: absolute;
    z-index: 30;
    top: calc(100% + 4px);
    left: 0;
    width: 258px;
    background: #fff;
    border: 1px solid #d6d6d6;
    border-radius: 6px;
    box-shadow: 0 6px 20px rgba(0,0,0,.14);
    padding: .5rem;
}
.cal-panel[hidden] { display: none; }

.cal-atajos { display: flex; flex-wrap: wrap; gap: .25rem; margin-bottom: .5rem; }
.cal-atajo {
    font-size: 11px; padding: .15rem .4rem;
    border: 1px solid #e4e4e4; border-radius: 3px;
    background: #fafafa; color: #6c7d8e; cursor: pointer;
}
.cal-atajo:hover { background: #fff5f8; border-color: #f2849e; color: #585858; }

.cal-cabecera {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: .35rem;
}
.cal-mes { font-size: 12px; font-weight: 600; color: #585858; }
.cal-mover {
    border: 0; background: none; cursor: pointer;
    font-size: 18px; line-height: 1; color: #6c7d8e; padding: 0 .4rem;
}
.cal-mover:hover { color: #f2849e; }

.cal-rejilla { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px; }
.cal-dia-nombre {
    font-size: 10px; text-align: center; color: #a5b0bb;
    text-transform: uppercase; padding-bottom: .2rem;
}
.cal-hueco { height: 26px; }
.cal-dia {
    height: 26px; font-size: 11px;
    border: 0; background: none; cursor: pointer;
    border-radius: 3px; color: #585858;
}
.cal-dia:hover { background: #f0f1f3; }
.cal-hoy { box-shadow: inset 0 0 0 1px #c9c9c9; font-weight: 600; }
.cal-dentro { background: #fdeef2; }
.cal-extremo { background: #f2849e; color: #fff; font-weight: 600; }

.cal-pie { display: flex; justify-content: flex-end; margin-top: .4rem; }
.cal-cerrar {
    font-size: 11px; padding: .2rem .6rem;
    border: 1px solid #e4e4e4; border-radius: 3px;
    background: #fff; color: #585858; cursor: pointer;
}
.cal-cerrar:hover { background: #f0f1f3; }
