/* ESTRUTURA GERAL */
.content { height: 100vh; overflow: auto; display: flex; flex-direction: column; padding: 20px 40px; background-color: #f0f2f5; }
h1 { font-size: 1.4rem; margin-bottom: 15px; font-weight: 800; }

.section-container-escalas, .section-container-jornadas { background: white; padding: 15px; border-radius: 12px; box-shadow: 0 4px 10px rgba(0,0,0,0.05); margin-bottom: 20px; }

.titulo-secao-interna { font-size: 0.9rem; color: #2c3e50; margin-bottom: 12px; border-left: 4px solid #3498db; padding-left: 10px; font-weight: 800; text-transform: uppercase; }

/* ESCALAS GRID 13 */
.form-linha { display: flex; gap: 20px; align-items: flex-end; margin-bottom: 15px; background: #f8f9fa; padding: 12px; border-radius: 8px; }
.input-group-compact { display: flex; align-items: center; gap: 12px; }
.input-group-compact label { font-size: 0.65rem; font-weight: bold; color: #555; text-transform: uppercase; }
.input-group-compact input { padding: 6px; border: 1px solid #ddd; border-radius: 4px; font-size: 0.85rem; width: 85px; }

.grid-escalas-13 { 
    display: grid; 
    grid-template-columns: repeat(13, minmax(0, 1fr)); 
    gap: 5px; 
    width: 100%;
}

.card-escala-mini { background: white; border: 1px solid #ddd; border-left: 3px solid #2c3e50; padding: 3px 5px; border-radius: 4px; display: flex; justify-content: space-between; align-items: center; }
.info-escala-mini { display: flex; flex-direction: column; line-height: 1.1; }
.info-escala-mini b { font-size: 0.58rem; color: #333; }
.info-escala-mini span { font-size: 0.5rem; color: #27ae60; font-weight: bold; }
.card-escala-mini .actions { display: flex; flex-direction: column; gap: 2px; border-left: 1px solid #eee; padding-left: 3px; }
.card-escala-mini .actions i { cursor: pointer; font-size: 0.6rem; color: #f39c12; }
.card-escala-mini .actions i:last-child { color: #e74c3c; }

/* JORNADAS FORM */
.form-jornada-cols { display: flex; gap: 15px; background: #f8f9fa; padding: 15px; border-radius: 10px; border: 1px solid #eee; margin-bottom: 20px; align-items: center; }
.col-ordem { display: flex; flex-direction: column; gap: 5px; width: 60px; }
.col-ordem input { padding: 8px; border: 1px solid #ddd; border-radius: 5px; text-align: center; }
.grid-check-days { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; flex-grow: 1; }
.day-group { display: flex; flex-direction: column; gap: 5px; }
.day-group label { font-size: 0.62rem; font-weight: 800; text-transform: uppercase; text-align: center; }

.multi-scale-container { background: white; border: 1px solid #ddd; border-radius: 6px; height: 110px; overflow-y: auto; padding: 4px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.scale-option { font-size: 0.5rem; display: flex; align-items: center; gap: 3px; cursor: pointer; }

/* FILTROS PILLS */
.header-jornada-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.filtros-visualizacao-jornada { display: flex; gap: 8px; }
.filtro-pill { background: #2c3e50; color: white; padding: 5px 12px; border-radius: 20px; font-size: 0.7rem; display: flex; align-items: center; gap: 6px; }
.filtro-pill label { font-size: 0.6rem; color: #bdc3c7; text-transform: uppercase; font-weight: 800; }
.filtro-pill select { background: transparent; color: white; border: none; outline: none; cursor: pointer; font-weight: bold; }

/* --- LISTAGEM DE JORNADAS (DISTRIBUIÇÃO EM COLUNAS) --- */
.wrapper-horizontal-jornadas { background: #ebedef; padding: 10px; border-radius: 8px; }
.header-periodo-label { background: #34495e; color: white; text-align: center; font-weight: 900; font-size: 0.8rem; padding: 5px; margin-bottom: 10px; border-radius: 4px; text-transform: uppercase; }

/* FIX: minmax permite que os cards preencham colunas distribuídas, mas o grid se adapta ao número de itens */
.grid-mini-jornadas { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); 
    gap: 8px; 
}

/* FIX: Limitamos a largura máxima do card para ele não esticar infinitamente em telas grandes */
.mini-card-jornada { 
    max-width: 160px; /* Impede o card de ficar "gigante" */
    width: 100%;
    background: white; 
    border: 1px solid #bdc3c7; 
    border-radius: 4px; 
    overflow: hidden; 
    box-shadow: 0 1px 3px rgba(0,0,0,0.05); 
}

.mini-card-header { padding: 3px 6px; font-size: 0.55rem; font-weight: bold; display: flex; justify-content: space-between; align-items: center; color: white; }
.mini-actions i { cursor: pointer; font-size: 0.55rem; color: white; margin-left: 3px; }

.mini-card-content { padding: 4px 5px; }

.mini-row { display: flex; align-items: center; justify-content: space-between; gap: 2px; font-size: 0.52rem; padding: 2px 0; border-bottom: 1px solid #f5f5f5; min-height: 18px; }
.mini-row:last-child { border-bottom: none; }
.mini-row b { color: #7f8c8d; min-width: 32px; font-size: 0.5rem; }

.mini-tag-horario { background: #f1f2f6; border: 1px solid #dfe4ea; padding: 1px 3px; border-radius: 2px; color: #2c3e50; font-weight: bold; font-size: 0.45rem; }
.mini-tag-folga { color: #bdc3c7; font-style: italic; font-size: 0.45rem; }

/* CORES TURNOS */
.bg-manha { background-color: #3498db !important; }
.bg-intermediario { background-color: #f39c12 !important; }
.bg-tarde { background-color: #e74c3c !important; }
.bg-noite { background-color: #2c3e50 !important; }
.bg-integral { background-color: #000000 !important; }

.btn-save { background: #27ae60; color: white; border: none; border-radius: 4px; cursor: pointer; font-weight: bold; font-size: 0.7rem; padding: 8px 12px; }
.btn-clear { background: #95a5a6; color: white; border: none; border-radius: 4px; cursor: pointer; font-weight: bold; font-size: 0.7rem; padding: 8px 12px; }
.btn-group-jornada { display: flex; flex-direction: column; gap: 5px; min-width: 100px; }