/* =========================
   BASE GLOBAL DOF
========================= */

body {
    background: #f8fafc;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
	overflow-x: hidden;
}

label, 
.filtro-label {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #334155;
}

input, 
select, 
button {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
/* --- CONTENEDOR PRINCIPAL --- */
.gzl-dof-container {
    width: 100%;
    max-width: 100%;
    padding: 20px;
    box-sizing: border-box;
}

/* --- ENCABEZADOS DE SECCIÓN (Ej: PRIMERA SECCION) --- */
.dof-header-seccion {
    background-color: #1e3a8a; /* Azul institucional oscuro */
    color: #ffffff;
    padding: 12px 20px;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 6px 6px 0 0;
    margin-top: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dof-header-poder {
    background: #f1f5f9;
    color: #1e3a8a;
    padding: 10px 25px;
    font-weight: bold;
    font-size: 13px;
    border-bottom: 1px solid #e2e8f0;
}

/* --- ENCABEZADOS DE DEPENDENCIA (Ej: SECRETARIA DE GOBERNACION) --- */
.dof-header-dep {
    background-color: #f8fafc;
    color: #334155;
    padding: 15px 20px;
    font-weight: 700;
    font-size: 13px;
    border-bottom: 2px solid #e2e8f0;
    text-transform: uppercase;
    margin-bottom: 0;
}

/* --- ITEMS DEL ÍNDICE (LOS TÍTULOS) --- */
.dof-item-indice {
    background: #fff;
    padding: 15px 25px;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dof-item-indice:hover {
    background-color: #fdfdfd;
}

.dof-item-indice .titulo-link {
    color: #1e293b;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    display: block;
}

.dof-item-indice .titulo-link:hover {
    color: #0093C9;
}

/* --- METADATOS Y TAGS --- */
.dof-meta-row {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 11px;
    color: #64748b;
}

.badge-edicion {
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-matutina { background: #dcfce7; color: #166534; }
.badge-vespertina { background: #fef9c3; color: #854d0e; }

.tag-procesado {
    background: #e0f2fe;
    color: #0369a1;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* --- ESTILO PARA PDF Y BOTONES --- */
.dof-btn-pdf {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #dc2626;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    margin: 10px 5px;
}
/* --- ZONA DE TEXTO ÍNTEGRO --- */
.dof-integro-row {
    display: flex;
    justify-content: flex-end; /* Alineados a la derecha */
    gap: 10px;
    margin: 20px 0;
}

.dof-btn-pdf {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.dof-btn-pdf.matutino { background-color: #f1f5f9; color: #1e3a8a; }
.dof-btn-pdf.matutino:hover { background-color: #e2e8f0; }

.dof-btn-pdf.vespertino { background-color: #fef9c3; color: #854d0e; }
.dof-btn-pdf.vespertino:hover { background-color: #fef08a; }

/* --- ESTRUCTURA DEL ÍTEM --- */
.dof-titulo-row {
    display: flex;
    align-items: flex-start; /* Alineación superior para títulos largos */
    gap: 12px;
}

.dof-icon-wrap {
    color: #0093C9; /* Azul Gazhal para iconos */
    font-size: 16px;
    margin-top: 2px; /* Pequeño ajuste visual */
}

.titulo-text-only {
    color: #374151; /* Color de texto normal, sin enlace */
    font-size: 14px;
    flex-grow: 1; /* Ocupa el espacio central */
}

/* --- EL ENLACE DOF AL FINAL --- */
.dof-link-oficial {
    font-size: 11px;
    color: #64748b;
    text-decoration: none;
    background: #f8fafc;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap; /* Evita que el texto DOF se rompa en dos líneas */
    margin-left: auto; /* Lo empuja a la derecha */
}

.dof-link-oficial:hover {
    background: #e2e8f0;
    color: #1e293b;
}
.dof-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
}
.filtro-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
	min-width: 0;
}

.filtro-label {
    font-size: 11px;
    color: #64748b;
    font-weight: 700;
    text-transform: uppercase;
}

.filtro-input {
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    background: white;
    font-size: 14px;
}
/* =========================
   FLATPICKR - DÍAS CON DATOS
========================= */

.flatpickr-day.has-data {
    background: #0f2f76 !important;  /* azul Gazhal */
    color: #ffffff !important;
    border-radius: 8px;
    font-weight: 700;
    border: none;
}

.flatpickr-day.has-data:hover {
    background: #42a5f5 !important;
}
/* HEADER */
.dof-header {
    background: #f1f5f9;
    color: #0f2f76;
    padding: 15px 18px;
    border-radius: 10px;
    margin-bottom: 15px;
    border-left: 4px solid #0093C9;
}

.dof-header-titulo {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
}

.dof-header-meta {
    font-size: 13px;
    opacity: .85;
    margin-top: 3px;
}