:root { --school-primary: #143c68; --school-accent: #2563a4; }
body { background: #f3f6fb; min-height: 100vh; color: #203047; }
.school-header { background: var(--school-primary); }
.logo-placeholder { width: 52px; height: 52px; flex-shrink: 0; border: 2px solid #ffffff80; border-radius: 14px; display: grid; place-items: center; font-weight: 800; letter-spacing: .04em; }
.btn-primary { --bs-btn-bg: var(--school-accent); --bs-btn-border-color: var(--school-accent); }
.card { overflow: hidden; }

/* Identidad institucional */
.school-logo { width: 58px; height: 58px; object-fit: contain; flex-shrink: 0; border-radius: 50%; background: #fff; }
.school-motto { font-size: .85rem; font-style: italic; color: #f5d58a; }
@media (max-width: 576px) {
  .school-logo { width: 46px; height: 46px; }
  .school-motto { font-size: .75rem; }
  .school-header strong { font-size: .9rem; }
}

/* Directorio visual de estudiantes y maestros */
.people-panel { max-width: 1160px; margin-inline: auto; }
.people-panel h1 { color: #173d67; }
.people-stat { background: #fff; border: 1px solid #dce5f2; border-radius: 13px; padding: 16px 20px; min-height: 95px; }
.people-stat small { display: block; color: #64748b; margin-bottom: 5px; }
.people-stat strong { font-size: 1.7rem; color: #153d6a; }
.people-panel .card { border-radius: 14px; }
.people-panel .form-label { color: #35506f; font-size: .85rem; font-weight: 600; }
.people-table { min-width: 750px; }
.people-table th { font-size: .78rem; color: #48617e; background: #f8fafc; font-weight: 600; padding: 14px; }
.people-table td { padding: 14px; font-size: .88rem; }
.people-avatar { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; display: inline-flex; justify-content: center; align-items: center; }
.people-initials { background: #e8f0ff; color: #194e87; font-weight: 700; }
.people-assignment { color: #45617e; font-size: .8rem; margin-bottom: 3px; }
.person-form-card { border-radius: 15px; }
.person-form-section { border-top: 1px solid #e2e8f0; padding-top: 20px; margin-top: 20px; }
.person-form-section h2 { color: #163f6e; font-size: 1.1rem; margin-bottom: 15px; }


/* PWA: navegación e interfaz móvil. Sin modificar los formatos de impresión. */
.app-main .table-responsive {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}
.app-quick-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.app-quick-nav .btn { white-space: normal; }
.school-header-actions .btn { font-weight: 600; }
.install-page { max-width: 900px; }
.install-page ol { padding-left: 1.3rem; line-height: 1.7; }
.install-app-icon { border-radius: 18px; object-fit: cover; }
.student-grades-scroll { border: 1px solid #e3e9f2; border-radius: .7rem; }
.student-grades-table { min-width: 515px; margin-bottom: 0; font-variant-numeric: tabular-nums; }
.student-grades-table th { white-space: nowrap; }
@media (max-width: 767.98px) {
  .app-main { padding-top: 1.25rem !important; padding-bottom: 1.5rem !important; }
  .app-main > .row { --bs-gutter-y: 1rem; }
  .app-main .card.rounded-4.p-4 { padding: 1.15rem !important; }
  .app-main h1 { overflow-wrap: anywhere; }
  .school-header-actions { width: 100%; }
  .school-header-actions .btn { min-height: 42px; display: inline-flex; align-items: center; }
  .app-quick-nav .btn { min-height: 42px; display: inline-flex; align-items: center; }
  .app-main .form-control, .app-main .form-select { min-height: 44px; }
  .app-main .btn:not(.btn-sm) { min-height: 44px; }
  .app-main .card-body { padding: 1rem; }
  .app-main .card-header { overflow-wrap: anywhere; }
  .student-grades-table td, .student-grades-table th { padding: .55rem .65rem; }
}
@media (max-width: 375px) {
  .school-logo { width: 42px; height: 42px; }
  .school-header strong { font-size: .83rem; }
  .school-header-actions .btn { flex: 1; justify-content: center; }
}
@media print {
  .school-header-actions, .app-quick-nav { display: none !important; }
}
