.cm-wrap { max-width: 1000px; margin: 0 auto; font-family: inherit; }

.cm-header {
    display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
    background: #1a3a6b; color: #fff; padding: 24px 28px; border-radius: 10px 10px 0 0;
    gap: 16px;
}
.cm-header-texto h2 { margin: 0 0 4px; font-size: 22px; color: #fff; }
.cm-header-texto .cm-rango { margin: 0; font-size: 15px; opacity: .9; }
.cm-header-acciones { display: flex; gap: 10px; flex-wrap: wrap; }

.cm-btn {
    display: inline-block; padding: 9px 16px; border-radius: 6px; font-size: 14px; font-weight: 600;
    text-decoration: none; cursor: pointer; border: none; transition: opacity .15s;
}
.cm-btn:hover { opacity: .85; }
.cm-btn-primario { background: #fff; color: #1a3a6b; }
.cm-btn-secundario { background: rgba(255,255,255,.15); color: #fff; }
.cm-btn-mini { background: #1a3a6b; color: #fff; padding: 5px 12px; font-size: 12px; }

.cm-dias {
    display: flex; flex-wrap: wrap; gap: 10px; background: #f5f7fa;
    padding: 16px 28px; border-bottom: 1px solid #e5e5e5;
}
.cm-dia-card {
    background: #fff; border: 1px solid #dfe3e8; border-radius: 8px;
    padding: 10px 16px; min-width: 160px; flex: 1;
}
.cm-dia-nombre { display: block; font-weight: 700; color: #1a3a6b; font-size: 14px; }
.cm-dia-horario { display: block; font-size: 12.5px; color: #555; margin-top: 2px; }

.cm-pdf-wrap { border: 1px solid #e5e5e5; border-top: none; }
.cm-pdf-toolbar {
    display: flex; justify-content: space-between; align-items: center;
    background: #f0f2f5; padding: 10px 16px; font-size: 13.5px; font-weight: 600; color: #333;
}
.cm-pdf-download { color: #1a3a6b; text-decoration: none; font-size: 13px; font-weight: 700; }
.cm-pdf-frame { width: 100%; height: 800px; border: none; display: block; }

.cm-historial {
    border: 1px solid #e5e5e5; border-top: none; border-radius: 0 0 10px 10px;
    background: #fafbfc; padding: 6px 0;
}
.cm-historial-toggle {
    width: 100%; text-align: left; background: none; border: none; cursor: pointer;
    padding: 14px 28px; font-size: 14.5px; font-weight: 600; color: #1a3a6b;
}
.cm-historial-lista { display: none; padding: 0 28px 16px; }
.cm-historial.abierto .cm-historial-lista { display: block; }
.cm-historial-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 0; border-bottom: 1px solid #eee; font-size: 14px;
}
.cm-historial-item:last-child { border-bottom: none; }

.cm-vacio { padding: 24px; text-align: center; color: #888; }

@media (max-width: 600px) {
    .cm-header { flex-direction: column; align-items: flex-start; }
    .cm-pdf-frame { height: 500px; }
}

/* ──────────────────────────────────────────────────────────
   Ancho completo para la página que contiene [minuta_semana]
   (mismo fix ya probado y confirmado para el tema Sydney en
   el plugin de votaciones).
   ────────────────────────────────────────────────────────── */
body.cm-ancho-completo #primary,
body.cm-ancho-completo .content-area,
body.cm-ancho-completo #primary.col-md-8,
body.cm-ancho-completo .content-area.col-md-8,
body.cm-ancho-completo main#main-content,
body.cm-ancho-completo .site-content,
body.cm-ancho-completo .entry-content,
body.cm-ancho-completo .ast-container,
body.cm-ancho-completo .elementor,
body.cm-ancho-completo .site-main {
    width: 100% !important;
    max-width: 1200px !important;
    flex: 0 0 100% !important;
    float: none !important;
}
body.cm-ancho-completo #secondary,
body.cm-ancho-completo .widget-area,
body.cm-ancho-completo aside.sidebar,
body.cm-ancho-completo .sidebar,
body.cm-ancho-completo #secondary.col-md-4,
body.cm-ancho-completo .widget-area.col-md-4 {
    display: none !important;
}
