/* Sólo lo funcional del framework + piezas propias de tsConecta. Colores y fuente: panel-tokens.css / panel-ui.css. */
.valid.modified:not([type=checkbox]) { outline: 1px solid var(--ok, #26b050); }
.invalid { outline: 1px solid var(--danger, #e50000); }
.validation-message { color: var(--danger, #e50000); }

#blazor-error-ui {
    color-scheme: light dark; display: none; position: fixed; left: 0; right: 0; bottom: 0;
    padding: 0.6rem 1.25rem 0.7rem; background: var(--ts-warning-bg, lightyellow); color: var(--text, #1a1d21);
    box-shadow: 0 -1px 2px rgba(0,0,0,.2); z-index: 2000;
}
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: .75rem; top: .5rem; }

/* Ingreso (página estática) */
.ts-login-body { margin: 0; background: var(--bg); font-family: var(--sans); color: var(--text); }
.ts-login { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 24px 16px; }
.ts-login-card { width: 100%; max-width: 380px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-card); display: flex; flex-direction: column; gap: 14px; }
.ts-login-brand { font-size: 26px; font-weight: 700; letter-spacing: -.01em; display: flex; align-items: center; gap: 10px; }
.ts-login-brand img { width: 34px; height: 34px; border-radius: 8px; }
.ts-login-brand-txt { white-space: nowrap; }
.ts-login-brand-txt span { color: var(--primary); }
.ts-login-link { text-align: center; color: var(--text-muted); text-decoration: none; }
.ts-login-o { display: flex; align-items: center; gap: 10px; color: var(--text-faint); font-size: 12px; margin: 4px 0; }
.ts-login-o::before, .ts-login-o::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.ts-login-google { display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
.ts-login-confiar { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-muted); flex-wrap: wrap; }
.ts-select-sm { height: 30px; padding: 0 8px; width: auto; }
.ts-login-link:hover { text-decoration: underline; }
.ts-topbar-usuario { text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.ts-login-powered { display: inline-flex; align-items: center; gap: 6px; color: var(--text-faint); font-size: 12px; text-decoration: none; }
.ts-login-powered img { width: 16px; height: 16px; border-radius: 4px; }
.ts-login-powered strong { color: var(--ts-tecseris, #dc1414); }

/* GuardarBar sin Bootstrap */
.ts-guardar { align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border-soft); }
.ts-guardar-ok { color: var(--ok); }
.ts-guardar-error { color: var(--danger); }
.ts-form-inline { display: inline; margin: 0; }

/* Etiqueta de origen + acciones de la cascada */
.ts-config-fila { display: grid; grid-template-columns: minmax(180px, 1.2fr) minmax(160px, 1fr) auto auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border-soft); }
.ts-config-fila:last-child { border-bottom: 0; }
.ts-config-nombre { font-weight: 500; }
.ts-config-desc { color: var(--text-faint); font-size: var(--ts-text-caption, 12px); }
@media (max-width: 899.98px) { .ts-config-fila { grid-template-columns: 1fr; } }

/* Tarjetas de estado de módulos */
.ts-modulos { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.ts-modulo { border: 1px solid var(--border); border-radius: var(--ts-radius-md, 10px); padding: 12px 14px; background: var(--surface); display: flex; flex-direction: column; gap: 6px; }
.ts-modulo-nombre { font-weight: 600; }

/* Clave mostrada una sola vez */
.ts-secreto-unavez { font-family: var(--mono); background: var(--surface-2); border: 1px dashed var(--border); border-radius: 8px; padding: 10px 12px; word-break: break-all; user-select: all; }

/* Editor de horario de atención */
.ts-horario { display: flex; flex-direction: column; gap: 10px; }
.ts-horario-franja { border: 1px solid var(--border-soft); border-radius: 8px; padding: 8px 10px; display: flex; flex-direction: column; gap: 8px; }
.ts-horario-hora { width: 84px; }
.ts-horario-dias { display: flex; gap: 4px; flex-wrap: wrap; }
.ts-dia { border: 1px solid var(--border); background: var(--surface-2); color: var(--text-muted); border-radius: 6px; padding: 4px 8px; font: inherit; font-size: 12px; cursor: pointer; }
.ts-dia.on { background: color-mix(in srgb, var(--primary) 14%, var(--surface)); color: var(--primary); border-color: var(--primary); font-weight: 600; }
.ts-dia:disabled { cursor: default; opacity: .7; }
