* { box-sizing: border-box; }
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background-color: #eef2f6; color: #1e293b; font-size: 11px; margin: 0; }

/* Barra Superior Identidade SiderConnect SaaS */
.top-navbar { background: linear-gradient(90deg, #07192f 0%, #0d325c 50%, #07192f 100%); color: #fff; }
.section-banner { background: linear-gradient(90deg, #0b2e59 0%, #1a568f 50%, #0b2e59 100%); color: #fff; text-align: center; font-weight: 700; font-size: 16px; padding: 6px 12px; letter-spacing: 0.5px; border-top: 2px solid #061c38; border-bottom: 2px solid #061c38; }

/* Tabelas Operacionais Densas (Estilo Planilha Diária) */
.table-container { overflow-x: auto; max-width: 100%; background: #fff; border: 1px solid #94a3b8; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
table.op-grid { width: 100%; border-collapse: collapse; font-size: 11px; white-space: nowrap; }
table.op-grid th { background-color: #93c5fd; background: linear-gradient(180deg, #a5d8ff 0%, #74b9ff 100%); color: #0f172a; font-weight: 700; border: 1px solid #64748b; padding: 3px 5px; text-align: center; font-size: 10px; text-transform: uppercase; }
table.op-grid td { border: 1px solid #94a3b8; padding: 2px 4px; text-align: right; height: 21px; }

/* Colunas Fixas (Sticky) para não perder a referência ao rolar 35 colunas */
.sticky-col-1 { position: sticky; left: 0; z-index: 10; background-color: #60a5fa !important; color: #0f172a; font-weight: 700; text-align: center !important; min-width: 44px; }
.sticky-col-2 { position: sticky; left: 44px; z-index: 10; min-width: 34px; }
.sticky-col-3 { position: sticky; left: 78px; z-index: 10; min-width: 42px; }

/* Convenção Oficial de Cores dos Campos */
.cell-edit { background-color: #fef9c3 !important; color: #000; font-weight: 600; } /* Amarelo: Editável */
.cell-edit:focus-within { background-color: #fde047 !important; outline: 2px solid #d97706; }
.cell-calc { background-color: #d1d5db !important; color: #111827; font-weight: 600; } /* Cinza: Calculado */
.cell-lock { background-color: #e5e7eb !important; color: #4b5563; } /* Cinza claro: Bloqueado */
.cell-auto { background-color: #bae6fd !important; color: #0369a1; font-weight: 600; } /* Azul: Automático / Modbus */

/* Linhas de Fechamento de Turno (M/T) e Média Dia (M/D) */
tr.row-mt td { background-color: #cbd5e1 !important; font-weight: 700; color: #0f172a; border-top: 1.5px solid #475569; border-bottom: 1.5px solid #475569; }
tr.row-md td { background-color: #93c5fd !important; font-weight: 800; color: #0f172a; border-top: 2px solid #1e3a8a; border-bottom: 2px solid #1e3a8a; }

/* Inputs embutidos nas células amarelas */
input.grid-input { width: 100%; height: 100%; background: transparent; border: none; text-align: right; font-weight: 600; font-size: 11px; color: #000; outline: none; padding: 0 2px; }
input.grid-input-left { text-align: left; }

/* Alertas visuais de desvio metalúrgico */
.warn-low-temp { background-color: #fecaca !important; color: #991b1b !important; font-weight: 800; }
.ok-temp { color: #065f46; font-weight: 700; }
