/* Piezas propias de la versión real (complementan estilos.css) */
html, body { margin: 0; }
.cargando { min-height: 100vh; display: grid; place-items: center; color: var(--ink-3); font-size: 15px; }
.err { background: var(--bad-bg); color: var(--bad); border-radius: 8px; padding: 10px 12px; font-size: 14px; }
.ok-box { background: var(--ok-bg); color: var(--ok); border-radius: 8px; padding: 10px 12px; font-size: 14px; }
.menu { position: relative; }
.menu > button { border: 0; background: none; padding: 0; border-radius: 50%; }
.menu-pop { position: absolute; right: 0; top: calc(100% + 8px); background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 28px rgba(59,108,167,.16); padding: 8px; min-width: 240px; z-index: 30; display: grid; gap: 2px; }
.menu-pop .who { padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; font-size: 13px; color: var(--ink-3); }
.menu-pop .who b { display: block; color: var(--navy); font-size: 14px; }
.menu-pop button { text-align: left; border: 0; background: none; padding: 9px 10px; border-radius: 8px; font-size: 14px; color: var(--ink); }
.menu-pop button:hover { background: var(--blue-050); }
.weeknav { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.weeknav b { font-family: var(--f-display); color: var(--navy); min-width: 180px; text-align: center; }
select.shift.t-none { background: #fff; color: var(--ink-3); box-shadow: inset 0 0 0 1px var(--line); }
.t-X { background: var(--blue-050); color: var(--navy); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.clave { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 18px; letter-spacing: .06em; background: var(--blue-050); border: 1px dashed var(--blue-200); border-radius: 8px; padding: 10px 14px; color: var(--navy); user-select: all; }
.inactivo td { opacity: .55; }
.datos-legal { max-width: 640px; display: grid; gap: 14px; font-size: 15px; color: var(--ink-2); }
.datos-legal h2 { font-size: 26px; }
.vacio { padding: 18px 20px; color: var(--ink-2); font-size: 14px; }
.spin { opacity: .6; pointer-events: none; }
.field input[type=checkbox], .check input { width: auto; padding: 0; margin: 0; accent-color: var(--teal); }
.field label.check { font-weight: 500; color: var(--ink); display: flex; gap: 8px; align-items: center; }
.note-meta .link .ico { width: 14px; height: 14px; vertical-align: -2px; }
.guia { display: grid; grid-template-columns: 240px 1fr; gap: 24px; align-items: start; }
.guia-indice { position: sticky; top: 96px; padding: 10px; display: grid; gap: 2px; }
.guia-indice button { text-align: left; border: 0; background: none; padding: 8px 10px; border-radius: 8px; font-size: 14px; color: var(--ink); text-decoration: none; }
.guia-indice button:hover { background: var(--blue-050); color: var(--navy); }
.guia-texto { display: grid; gap: 16px; }
.guia-texto section { padding: 22px 24px; font-size: 15px; color: var(--ink-2); line-height: 1.6; scroll-margin-top: 96px; }
.guia-texto h2 { font-size: 22px; margin-bottom: 10px; }
.guia-texto p { margin: 0 0 10px; }
.guia-texto ul, .guia-texto ol { margin: 0 0 10px; padding-left: 20px; display: grid; gap: 4px; }
.guia-texto b { color: var(--navy); }
@media (max-width: 760px) { .guia { grid-template-columns: 1fr; } .guia-indice { position: static; } }
.perm td.acc { width: 1%; }
.perm td.acc .btn { display: flex; width: 100%; justify-content: center; white-space: nowrap; margin: 3px 0; }
.perm select:disabled { opacity: .55; cursor: default; }
.perm select { width: 100%; min-width: 0; max-width: 190px; }
.perm th, .perm td { padding-left: 10px; padding-right: 10px; }
td.cambio select.shift, td.cambio .shift { box-shadow: 0 0 0 2px var(--teal); }
td > small.num { display: block; font-size: 11px; color: var(--ink-3); margin-top: 3px; text-align: center; }
table.fijo select.shift { width: 100%; min-width: 120px; }
/* Malla: chips de color por franja, celdas que se tocan para cambiar, grupos por área y leyenda */
table.malla td, table.malla th { padding: 6px 6px; text-align: center; }
table.malla td:first-child, table.malla th:first-child { text-align: left; padding-left: 14px; }
table.malla tr.grupo th { background: var(--blue-050); color: var(--navy); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; text-align: left; padding: 8px 14px; }
table.malla .person small { font-size: 12px; }
.chipt { display: inline-flex; justify-content: center; align-items: center; min-width: 92px; padding: 6px 8px; border-radius: 8px; font-weight: 600; font-size: 13px; font-style: normal; white-space: nowrap; }
.chipt.t-none { background: transparent; color: var(--ink-3); }
.chipt.cambio { box-shadow: 0 0 0 2px var(--teal); }
button.celda { border: 0; background: none; padding: 0; border-radius: 8px; cursor: pointer; }
button.celda:hover .chipt { box-shadow: inset 0 0 0 2px var(--blue-200); }
button.celda:hover .chipt.cambio { box-shadow: 0 0 0 2px var(--teal), inset 0 0 0 2px var(--blue-200); }
table.malla select.shift { min-width: 92px; max-width: 220px; text-align-last: left; }
.leyenda { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px; font-size: 13px; color: var(--ink-2); }
.leyenda .chipt { min-width: 0; padding: 3px 8px; font-size: 12px; margin-right: 4px; }
.f0 { background: #e3edf8; color: #24548a; }
.f1 { background: #def3f1; color: #0f6b63; }
.f2 { background: #f7f2d6; color: #6f6300; }
.f3 { background: #fbe6ec; color: #a2435d; }
.f4 { background: #ece6f8; color: #5b3f97; }
.f5 { background: #e5f3e3; color: #2f6b2a; }
.f6 { background: #fdeee0; color: #94531a; }
.f7 { background: #e0f0f8; color: #1d5f80; }
.f8 { background: #f4e9e1; color: #7a4b2a; }
.f9 { background: #eaecef; color: #3f4a59; }
.editar-persona { display: grid; gap: 6px; min-width: 220px; }
.editar-persona input { padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; }
#asisDia { padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 14px; color: var(--ink); }
