/* Tipografía local */
@font-face {
  font-family: Jakarta;
  src: url('../fonts/plus-jakarta-sans-latin-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Jakarta;
  src: url('../fonts/plus-jakarta-sans-latin-500.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: Jakarta;
  src: url('../fonts/plus-jakarta-sans-latin-600.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: Jakarta;
  src: url('../fonts/plus-jakarta-sans-latin-700.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: Jakarta;
  src: url('../fonts/plus-jakarta-sans-latin-800.woff2') format('woff2');
  font-weight: 800;
  font-display: swap;
}
/* Identidad institucional y variables */
:root {
  --navy: #0c244b;
  --navy-deep: #09203a;
  --primary: #0c244b;
  --mint: #edf2f8;
  --ink: #212529;
  --muted: #6c757d;
  --line: #e9ecef;
  --bg: #f5f7fa;
  --white: #fff;
  --red: #b02a37;
  --orange: #946200;
  --radius: 14px;
  --accent: #dc3545;
  --primary-hover: #1a3a6b;
  --focus: #b42332;
}
/* Base y accesibilidad */
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Jakarta, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.55;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
a {
  color: var(--primary);
  text-decoration: none;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
:focus-visible {
  outline: 3px solid #b42332;
  outline-offset: 4px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 29px;
  letter-spacing: -1.1px;
  line-height: 1.3;
  margin-bottom: 7px;
  font-weight: 750;
}
h2 {
  font-size: 17px;
  letter-spacing: -0.3px;
  margin-bottom: 3px;
  font-weight: 750;
}
h3 {
  font-size: 15px;
  margin-bottom: 6px;
}
small,
.muted {
  color: var(--muted);
}
.skip-link {
  position: fixed;
  top: -100px;
  background: #fff;
  padding: 15px;
  z-index: 100;
}
.skip-link:focus {
  top: 10px;
}
/* Navegación lateral */
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 248px;
  background: var(--navy);
  color: white;
  display: flex;
  flex-direction: column;
  padding: 31px 17px 0;
  z-index: 40;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  color: white;
  font-size: 24px;
  letter-spacing: -0.7px;
  font-weight: 750;
  padding: 0 13px;
}
.brand-mark {
  width: 36px;
  height: 39px;
  border-radius: 11px;
  background: #dc3545;
  color: white;
  display: grid;
  place-items: center;
}
.brand-mark ion-icon {
  font-size: 25px;
}
.brand-caption {
  display: block;
  font-size: 10px;
  font-weight: 450;
  letter-spacing: 0.3px;
  color: #c2cfdf;
  margin-top: -2px;
}
.institution-label {
  font-size: 11px;
  color: #b8c7dc;
  padding: 25px 14px 18px;
  max-height: 80px;
  overflow: hidden;
}
.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.nav-link {
  min-height: 46px;
  color: #c6d2e4;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 550;
  transition:
    background 0.17s,
    color 0.17s;
}
.nav-link ion-icon {
  font-size: 20px;
}
.nav-link:hover {
  background: #ffffff09;
  color: #fff;
}
.nav-link.active {
  background: #ffffff11;
  color: #fff;
}
.nav-link.active ion-icon {
  color: #ffb3bc;
}
.active-dot {
  margin-left: auto;
  width: 5px;
  height: 5px;
  background: #dc3545;
  border-radius: 50%;
}
.sidebar-bottom {
  display: flex;
  gap: 10px;
  margin: auto 12px 23px;
  padding-top: 35px;
}
.online-dot {
  height: 7px;
  width: 7px;
  min-width: 7px;
  background: #57c6a8;
  border-radius: 50%;
  margin-top: 6px;
}
.sidebar-bottom strong {
  display: block;
  font-size: 10px;
  font-weight: 600;
}
.sidebar-bottom small {
  color: #b8c7dc;
  font-size: 10px;
  display: block;
  margin-top: 5px;
  line-height: 1.7;
}
.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid #ffffff13;
  margin: 0 -17px;
  padding: 21px 24px;
  color: white;
}
.avatar {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: #e8eef7;
  color: #0c244b;
  font-weight: 700;
  font-size: 12px;
}
.avatar.small {
  width: 31px;
  height: 31px;
  font-size: 11px;
}
.sidebar-user strong {
  font-size: 11px;
  display: block;
}
.sidebar-user small {
  font-size: 10px;
  color: #c2cfdf;
}
.sidebar-user > ion-icon {
  margin-left: auto;
  font-size: 17px;
  color: #c2cfdf;
}
/* Área de trabajo y cabecera */
.workspace {
  margin-left: 248px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.topbar {
  height: 78px;
  border-bottom: 1px solid var(--line);
  background: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 35px;
  gap: 16px;
}
.breadcrumb,
.topbar-right {
  display: flex;
  align-items: center;
  gap: 15px;
}
.breadcrumb {
  font-size: 11px;
  color: var(--muted);
}
.breadcrumb strong {
  font-weight: 550;
  color: #0c244b;
}
.breadcrumb ion-icon {
  font-size: 12px;
  color: #8e9ba0;
}
.topbar-right {
  gap: 17px;
}
.today-label {
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}
.today-label ion-icon {
  font-size: 15px;
}
.icon-button {
  background: transparent;
  border: 0;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #596c74;
  position: relative;
  border-radius: 8px;
}
.icon-button:hover {
  background: var(--bg);
}
.icon-button ion-icon {
  font-size: 20px;
}
.notification-dot {
  height: 5px;
  width: 5px;
  background: #d1a145;
  border: 1px solid white;
  border-radius: 50%;
  position: absolute;
  top: 10px;
  right: 11px;
}
.topbar form {
  margin: 0;
}
/* Contenido y acciones */
.main-content {
  padding: 32px 35px 22px;
  max-width: 1600px;
  width: 100%;
  margin: auto;
  flex: 1;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 27px;
}
.page-heading p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.btn {
  min-height: 43px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 17px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 11px;
  font-weight: 650;
  white-space: nowrap;
  transition:
    background 0.17s,
    border-color 0.17s;
}
.btn ion-icon {
  font-size: 17px;
}
.btn:hover {
  background: #edf2f8;
  border-color: #b8c9e1;
}
.btn.primary {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  box-shadow: 0 3px 5px #0c244b12;
}
.btn.primary:hover {
  background: #1a3a6b;
}
.btn.danger {
  color: var(--red);
  border-color: #efc9c9;
}
.btn.small {
  min-height: 36px;
  padding: 8px 12px;
  font-size: 10px;
}
.actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}
/* Resumen y métricas */
.welcome-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 25px 28px;
  background: #edf2f8;
  border: 1px solid #dce4ef;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  margin-bottom: 23px;
}
.welcome-strip h2 {
  font-size: 19px;
}
.welcome-strip p {
  font-size: 11px;
  margin: 7px 0 0;
  color: #53647c;
}
.welcome-symbol {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  color: #1a3a6b;
  background: #dce6f3;
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}
.welcome-symbol ion-icon {
  font-size: 32px;
}
.welcome-symbol:before,
.welcome-symbol:after {
  content: '';
  border: 1px solid #cbd8ec;
  position: absolute;
  border-radius: 50%;
  inset: -14px;
}
.welcome-symbol:after {
  inset: -29px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 17px;
  margin-bottom: 24px;
}
.stat {
  background: white;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 19px 20px;
}
.stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.stat-label {
  font-size: 11px;
  color: var(--muted);
  font-weight: 550;
}
.stat-icon {
  height: 30px;
  width: 30px;
  border-radius: 8px;
  background: #edf2f8;
  display: grid;
  place-items: center;
  color: var(--primary);
}
.stat-icon.amber {
  color: var(--orange);
  background: #fbf4e8;
}
.stat-icon.red {
  color: var(--red);
  background: #fbefef;
}
.stat-icon.blue {
  color: #476a9b;
  background: #eef2f9;
}
.stat-value {
  font-size: 29px;
  letter-spacing: -1px;
  font-weight: 750;
  line-height: 1.2;
}
.stat-foot {
  font-size: 10px;
  color: #79868b;
  margin-top: 7px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.stat-foot .positive {
  color: var(--primary);
  font-weight: 600;
}
/* Paneles y tablas */
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 23px;
}
.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 21px 23px;
  border-bottom: 1px solid #edf0f1;
}
.panel-header p {
  font-size: 10px;
  color: var(--muted);
  margin: 3px 0 0;
}
.panel-body {
  padding: 23px;
}
.panel-header .text-link {
  font-size: 10px;
  font-weight: 650;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.text-link ion-icon {
  font-size: 13px;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(270px, 1fr);
  gap: 22px;
}
.table-wrap {
  max-width: 100%;
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: 11px;
}
th {
  font-size: 10px;
  color: #718188;
  font-weight: 600;
  background: #fafbfc;
  padding: 14px 20px;
  white-space: nowrap;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 15px 20px;
  border-bottom: 1px solid #edf1f2;
}
tbody tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: #fafcfb;
}
.person {
  display: flex;
  align-items: center;
  gap: 10px;
}
.person strong {
  display: block;
  font-size: 11px;
  font-weight: 650;
}
.person small {
  display: block;
  font-size: 9px;
  margin-top: 2px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  font-size: 9px;
  font-weight: 650;
  background: #eaf4ef;
  color: #28745c;
  border-radius: 5px;
  padding: 4px 8px;
}
.badge:before {
  content: '';
  width: 4px;
  height: 4px;
  background: currentColor;
  border-radius: 50%;
}
.badge.amber {
  background: #fcf4e4;
  color: #986914;
}
.badge.red {
  background: #fbebeb;
  color: #af4646;
}
.badge.blue {
  background: #edf2fa;
  color: #4c70a1;
}
.badge.gray {
  background: #f0f2f4;
  color: #697982;
}
.legend {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 9px;
  color: var(--muted);
}
.legend span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.legend i {
  width: 8px;
  height: 8px;
  background: #a8d5bf;
  border-radius: 2px;
}
.legend i.late {
  background: #eed6a4;
}
.legend i.absent {
  background: #ecc6c6;
}
.legend i.empty {
  background: #edf1f3;
}
.attendance-matrix th,
.attendance-matrix td {
  padding: 12px 8px;
  text-align: center;
}
.attendance-matrix th:first-child,
.attendance-matrix td:first-child {
  text-align: left;
  padding-left: 23px;
  min-width: 170px;
}
.attendance-matrix .day-cell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  font-size: 9px;
  background: #eaf5ef;
  color: #42785a;
  border: 1px solid #daebdf;
  border-radius: 4px;
}
.attendance-matrix .day-cell.late {
  background: #fbf0db;
  border-color: #f0dfbd;
  color: #9a6b20;
}
.attendance-matrix .day-cell.absent {
  background: #f9e8e8;
  border-color: #efd4d4;
  color: #ad5151;
}
.attendance-matrix .day-cell.empty {
  background: #f2f4f5;
  border-color: #edf0f2;
  color: #87939a;
}
.table-footer {
  display: flex;
  justify-content: space-between;
  padding: 15px 23px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 9px;
  gap: 12px;
}
.schedule-item {
  display: flex;
  gap: 14px;
  padding: 17px 0;
  border-bottom: 1px solid #edf0f1;
}
.schedule-item:last-child {
  border: 0;
  padding-bottom: 0;
}
.schedule-time {
  font-size: 10px;
  color: var(--muted);
  padding-top: 1px;
  min-width: 39px;
}
.schedule-line {
  width: 3px;
  background: #8aa3ca;
  border-radius: 4px;
  min-height: 50px;
}
.schedule-line.afternoon {
  background: #b9c8e0;
}
.schedule-details strong {
  display: block;
  font-size: 11px;
}
.schedule-details p {
  font-size: 9px;
  color: var(--muted);
  margin: 5px 0;
}
.schedule-details .badge {
  margin-top: 2px;
  font-size: 8px;
}
.notice {
  display: flex;
  gap: 12px;
  padding: 15px;
  background: #faf7ed;
  border: 1px solid #eee7d5;
  border-radius: 9px;
  margin-top: 17px;
}
.notice ion-icon {
  font-size: 20px;
  color: #a17b30;
  flex-shrink: 0;
}
.notice strong {
  font-size: 10px;
  display: block;
}
.notice p {
  font-size: 9px;
  color: #8c7c5f;
  margin: 4px 0 0;
}
.list-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  gap: 10px;
}
.list-row:last-child {
  border: 0;
}
.list-row strong {
  font-size: 11px;
  display: block;
}
.list-row small {
  font-size: 10px;
}
.app-footer {
  display: flex;
  justify-content: space-between;
  padding: 15px 35px 20px;
  font-size: 9px;
  color: #7d8d94;
}
/* Filtros y formularios */
.filter-bar {
  display: flex;
  align-items: end;
  gap: 12px;
  flex-wrap: wrap;
  padding: 20px 23px;
  border-bottom: 1px solid var(--line);
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}
.field label {
  font-size: 11px;
  font-weight: 650;
  color: #34445e;
}
.field input,
.field select,
.field textarea {
  min-height: 44px;
  border: 1px solid #d7e0e4;
  background: #fff;
  border-radius: 7px;
  padding: 11px 12px;
  color: var(--ink);
  width: 100%;
  font-size: 12px;
}
.field textarea {
  min-height: 100px;
  resize: vertical;
}
.field small {
  font-size: 10px;
  line-height: 1.6;
}
.field input::placeholder {
  color: #9aa8ae;
}
.field:has(input:required) label:after {
  content: ' *';
  color: #958a78;
}
.search-field {
  flex: 1;
  min-width: 200px;
  max-width: 340px;
  position: relative;
}
.search-field input {
  padding-left: 37px;
}
.search-field ion-icon {
  position: absolute;
  bottom: 14px;
  left: 13px;
  font-size: 17px;
  color: #82939a;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 21px;
}
.form-grid .full {
  grid-column: 1/-1;
}
.form-section {
  padding: 23px;
  border-bottom: 1px solid var(--line);
}
.form-section h3 {
  margin-bottom: 17px;
}
.form-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 20px 23px;
}
.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 12px 0;
  font-size: 12px;
}
.checkbox-row input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--primary);
  flex-shrink: 0;
}
.checkbox-row strong {
  display: block;
  font-size: 12px;
}
.checkbox-row small {
  display: block;
  margin-top: 4px;
  font-size: 10px;
}
/* Mensajes y estados */
.alert {
  padding: 15px 18px;
  border: 1px solid;
  border-radius: 9px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  margin-bottom: 20px;
}
.alert.success {
  color: #226c50;
  border-color: #c7e1d1;
  background: #eff8f2;
}
.alert.error {
  color: #9e3f3f;
  border-color: #f0d0d0;
  background: #fff1f1;
}
.alert.info {
  color: #3c627d;
  border-color: #d4e4ef;
  background: #f1f7fb;
}
.alert ion-icon {
  font-size: 20px;
  flex-shrink: 0;
}
.alert ul {
  margin: 7px 0 0;
  padding-left: 18px;
}
.empty-state {
  padding: 48px 24px;
  text-align: center;
}
.empty-state > ion-icon {
  font-size: 33px;
  color: #6c757d;
  margin-bottom: 14px;
}
.empty-state h3 {
  font-size: 14px;
}
.empty-state p {
  font-size: 11px;
  color: var(--muted);
  margin: 8px auto 20px;
  max-width: 350px;
}
.two-columns {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 23px;
}
.help-note {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.8;
  max-width: 70ch;
}
/* Marcación de asistencia */
.clock-display {
  font-size: 59px;
  font-weight: 650;
  letter-spacing: -2.5px;
  line-height: 1.2;
}
.clock-date {
  font-size: 12px;
  color: var(--muted);
  margin: 10px 0 25px;
}
.clock-panel {
  padding: 33px;
  text-align: center;
}
.clock-circle {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 23px;
  background: #edf2f8;
  border: 8px solid #f5f7fa;
}
.clock-circle ion-icon {
  font-size: 33px;
  color: var(--primary);
}
.clock-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.clock-actions .btn {
  min-width: 150px;
}
.location-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 10px;
  color: var(--muted);
  margin: 18px 0 0;
}
.location-status ion-icon {
  font-size: 15px;
}
.timeline {
  padding: 0 4px;
}
.timeline-row {
  position: relative;
  padding: 0 0 25px 27px;
  border-left: 1px solid var(--line);
  margin-left: 5px;
}
.timeline-row:last-child {
  padding-bottom: 0;
  border: 0;
}
.timeline-row:before {
  content: '';
  position: absolute;
  left: -5px;
  top: 5px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #7996c1;
  border: 2px solid #e8eef7;
}
.timeline-row strong {
  font-size: 11px;
  display: block;
}
.timeline-row small {
  font-size: 10px;
}
.timeline-row time {
  float: right;
  color: var(--muted);
  font-size: 11px;
}
/* Calendario de jornadas */
.calendar-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
}
.calendar-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 10px;
  color: var(--muted);
  background: #fafbfc;
  padding: 10px;
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.calendar-day {
  min-height: 105px;
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  padding: 9px;
  font-size: 11px;
}
.calendar-day:nth-child(7n) {
  border-right: 0;
}
.calendar-day.today .day-number {
  background: var(--primary);
  color: white;
  border-radius: 50%;
  padding: 5px 7px;
}
.calendar-event {
  display: block;
  font-size: 9px;
  background: #eaf5ef;
  color: #36725a;
  padding: 5px;
  margin-top: 7px;
  border-left: 2px solid #76ad92;
  border-radius: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.calendar-day.outside {
  background: #fafbfc;
  color: #a5b1b7;
}
.mobile-toggle {
  display: none;
}
.sidebar-overlay {
  display: none;
}
/* Acceso al sistema */
.login-page {
  background: white;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.login-story {
  background: var(--navy);
  padding: 55px 65px;
  display: flex;
  flex-direction: column;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.login-story .brand {
  padding: 0;
}
.login-story-content {
  margin: auto 0;
  position: relative;
  z-index: 2;
  max-width: 400px;
}
.login-story h1 {
  font-size: 45px;
  font-weight: 650;
  letter-spacing: -1.8px;
  line-height: 1.2;
}
.login-story-content p {
  font-size: 14px;
  color: #c2cfdf;
  line-height: 1.9;
  margin-top: 22px;
  max-width: 320px;
}
.login-grid-art {
  margin-top: 42px;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 9px;
}
.login-grid-art span {
  height: 32px;
  background: #ffffff0b;
  border: 1px solid #ffffff09;
  border-radius: 4px;
}
.login-grid-art span.marked {
  background: #456494;
  border-color: #5877a8;
}
.login-grid-art span.late {
  background: #9d894e;
  border-color: #b29c61;
}
.login-footer {
  color: #c2cfdf;
  font-size: 10px;
  position: relative;
}
.login-form-side {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 45px;
}
.login-form {
  width: 100%;
  max-width: 350px;
}
.login-form h1 {
  font-size: 30px;
  margin-bottom: 9px;
}
.login-form > p {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 31px;
}
.login-form .field {
  margin-bottom: 21px;
}
.login-form .btn {
  width: 100%;
  margin-top: 9px;
  min-height: 47px;
  font-size: 12px;
}
.login-security {
  margin-top: 25px;
  padding-top: 23px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  color: var(--muted);
}
/* Pestañas, cargas y tablas interactivas */
.section-tabs {
  display: flex;
  gap: 25px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 23px;
}
.section-tabs a {
  padding: 0 0 13px;
  font-size: 12px;
  color: var(--muted);
}
.section-tabs a.active {
  border-bottom: 2px solid var(--primary);
  color: var(--primary);
  font-weight: 650;
}
.upload-area {
  border: 1.5px dashed #c7d3e5;
  border-radius: 10px;
  background: #f8f9fa;
  padding: 30px;
  text-align: center;
}
.upload-area ion-icon {
  font-size: 32px;
  color: #5d769e;
}
.upload-area p {
  font-size: 11px;
  margin: 10px 0;
  color: var(--muted);
}
.upload-area input {
  font-size: 11px;
  max-width: 100%;
}
.code {
  font-family: monospace;
  font-size: 10px;
  word-break: break-all;
}
.fullcalendar-wrap {
  padding: 20px;
}
.fc {
  font-size: 11px;
}
.fc .fc-button-primary {
  background: var(--primary);
  border-color: var(--primary);
}
.fc .fc-toolbar-title {
  font-size: 17px;
}
.fc .fc-button {
  min-height: 38px;
}
.inline-form {
  display: inline-flex;
  gap: 5px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.dt-container {
  padding: 15px 20px;
}
.dt-container table {
  margin-top: 15px !important;
}
.dt-input {
  min-height: 38px;
  border: 1px solid var(--line) !important;
  border-radius: 6px !important;
}
.dt-info,
.dt-length,
.dt-search {
  font-size: 10px;
}
.dt-paging-button {
  min-height: 36px;
}
.metric-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.metric-row strong {
  font-weight: 650;
}
.metric-row:last-child {
  border: 0;
}
.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  color: var(--primary);
}
.status-indicator:before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
/* Adaptación a pantallas y movimiento reducido */
@media (min-width: 1500px) {
  .main-content {
    padding: 38px 46px;
  }
  .topbar {
    padding: 0 46px;
  }
  .sidebar {
    width: 260px;
  }
  .workspace {
    margin-left: 260px;
  }
}
@media (max-width: 1200px) {
  .sidebar {
    width: 220px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .workspace {
    margin-left: 220px;
  }
  .sidebar-user {
    margin: 0 -12px;
    padding: 20px;
  }
  .brand {
    font-size: 22px;
    padding-left: 10px;
  }
  .nav-link {
    font-size: 11px;
    padding: 10px 11px;
    gap: 10px;
  }
  .topbar {
    padding: 0 24px;
  }
  .main-content {
    padding: 27px 24px;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    gap: 12px;
  }
  .stat {
    padding: 17px 15px;
  }
  .two-columns {
    grid-template-columns: 1.3fr 1fr;
  }
  .login-story {
    padding: 45px;
  }
  .login-story h1 {
    font-size: 38px;
  }
}
@media (max-width: 850px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s;
  }
  .workspace {
    margin-left: 0;
  }
  .mobile-toggle {
    display: inline-flex;
  }
  .menu-open .sidebar {
    transform: translateX(0);
  }
  .menu-open .sidebar-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: #0c244b55;
    z-index: 35;
  }
  .topbar {
    height: 68px;
    padding: 0 18px;
  }
  .breadcrumb {
    gap: 8px;
  }
  .topbar-right {
    gap: 5px;
  }
  .today-label {
    display: none;
  }
  .main-content {
    padding: 25px 20px;
  }
  .app-footer {
    padding: 15px 20px;
  }
  .login-page {
    grid-template-columns: 1fr;
  }
  .login-story {
    display: none;
  }
  .login-form-side {
    min-height: 100vh;
    padding: 30px;
  }
  .two-columns {
    grid-template-columns: 1fr;
  }
  .calendar-day {
    min-height: 85px;
    padding: 7px;
  }
  .calendar-event {
    font-size: 8px;
    padding: 4px;
  }
  .calendar-toolbar {
    padding: 15px;
  }
}
@media (max-width: 560px) {
  h1 {
    font-size: 25px;
  }
  .page-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 22px;
  }
  .page-heading .actions {
    width: 100%;
  }
  .page-heading .actions .btn {
    flex: 1;
  }
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .stat {
    padding: 16px;
  }
  .stat-value {
    font-size: 27px;
  }
  .stat-label {
    font-size: 10px;
  }
  .welcome-strip {
    padding: 22px;
    gap: 15px;
  }
  .welcome-strip h2 {
    font-size: 16px;
  }
  .welcome-strip p {
    max-width: 220px;
    font-size: 10px;
  }
  .welcome-symbol {
    width: 47px;
    height: 47px;
  }
  .welcome-symbol ion-icon {
    font-size: 26px;
  }
  .welcome-symbol:after {
    display: none;
  }
  .panel-header {
    padding: 18px;
    align-items: flex-start;
  }
  .panel-header h2 {
    font-size: 15px;
  }
  .panel-body {
    padding: 19px;
  }
  .panel-header .legend {
    display: none;
  }
  .table-footer {
    padding: 14px 18px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-grid .full {
    grid-column: auto;
  }
  .form-section {
    padding: 20px;
  }
  .filter-bar {
    padding: 18px;
    gap: 12px;
  }
  .filter-bar .field {
    flex: 1;
    min-width: 125px;
  }
  .filter-bar .search-field {
    max-width: none;
    min-width: 100%;
    order: -1;
  }
  .filter-bar > .btn {
    flex: 1;
  }
  .app-footer {
    font-size: 8px;
  }
  .breadcrumb > span,
  .breadcrumb > ion-icon {
    display: none;
  }
  .breadcrumb strong {
    font-size: 12px;
  }
  .clock-display {
    font-size: 49px;
  }
  .clock-panel {
    padding: 27px 18px;
  }
  .calendar-week {
    font-size: 9px;
  }
  .calendar-day {
    min-height: 65px;
    padding: 5px;
    font-size: 9px;
  }
  .calendar-event {
    padding: 3px;
    font-size: 0;
    height: 7px;
    border-left: 0;
  }
  .calendar-toolbar h2 {
    font-size: 14px;
  }
  .fullcalendar-wrap {
    padding: 10px;
  }
  .fc .fc-toolbar {
    gap: 8px;
    flex-wrap: wrap;
  }
  .fc .fc-toolbar-title {
    font-size: 14px;
  }
  .fc .fc-button {
    font-size: 10px;
  }
  .topbar-right .icon-button {
    min-width: 37px;
  }
  .today-label {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
.dashboard-grid > *,
.two-columns > *,
.panel,
.workspace,
.main-content {
  min-width: 0;
}
.table-wrap {
  width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}
.attendance-matrix {
  min-width: 520px;
}
.sidebar {
  overflow-y: auto;
}
.sidebar nav {
  flex-shrink: 0;
}
.sidebar-bottom {
  flex-shrink: 0;
}
@media (max-width: 560px) {
  .table-wrap > table {
    min-width: 470px;
  }
  .clock-panel .form-grid {
    grid-template-columns: 1fr;
  }
  .panel-header .text-link {
    white-space: nowrap;
  }
  .main-content {
    overflow: clip;
  }
  .sidebar-user {
    flex-shrink: 0;
  }
}
.two-columns {
  align-items: start;
}
.field input,
.field select,
.field textarea {
  font-weight: 400;
}
.field input[type='checkbox'],
.field input[type='radio'] {
  width: 18px;
  min-height: 18px;
  height: 18px;
  padding: 0;
  accent-color: var(--primary);
}
.field label:has(> input):after {
  content: none;
}
.field label:has(input[type='checkbox']) {
  min-width: 35px;
  min-height: 44px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.field label:has(input[type='checkbox']) input {
  margin: 0;
}
.fc {
  font-family: Jakarta, Arial, sans-serif;
}

/* Identidad institucional: pagos.proserviueb.com (azul #0C244B, acento #DC3545). */
.brand-mark {
  color: var(--white);
}
.nav-link.active {
  box-shadow: inset 3px 0 0 var(--accent);
}
.welcome-strip h2,
.panel-header h2,
.page-heading h1,
.login-form h1,
.clock-panel h2 {
  color: var(--navy);
}
.btn.primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
}
.login-grid-art span.late {
  background: #96303b;
  border-color: #b74450;
}
.fc {
  --fc-button-bg-color: var(--primary);
  --fc-button-border-color: var(--primary);
  --fc-button-hover-bg-color: var(--primary-hover);
  --fc-button-hover-border-color: var(--primary-hover);
  --fc-today-bg-color: #fff1f2;
  --fc-event-bg-color: var(--primary);
  --fc-event-border-color: var(--primary);
}

/* Editor de intervalos añadido desde el calendario. */
.segment-editor-added {
  padding-top: 20px;
  margin-top: 20px;
  border-top: 1px solid var(--line);
}
.segment-times {
  margin-top: 12px;
  gap: 12px;
}
.segment-remove {
  margin-top: 10px;
}
