label.is-invalid {
	color: #D00;
	font-size: 12px;
}

.form-control.is-invalid {
	border: 1px solid #D00 !important;
}
.form-control.valid {
	border: 1px solid #0dca0d !important;
}

.kv-file-remove {
	display: none;
}

.dt-button {
	padding: 0.25em 0.75em;
	background: #00acec;
	color: white;
	display: inline-block;
	margin: 0 0.25em 0.75em 0;
}

/* The Modal (background) */
.elmodal {
  /*display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

/* Modal Content/Box */
.elmodal-content {
  background-color: #fefefe;
  margin: 15% auto; /* 15% from the top and centered */
  padding: 20px;
  border: 1px solid #888;
  width: 50%; /* Could be more or less, depending on screen size */
}

/* The Close Button */
.elclose {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.elclose:hover,
.elclose:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

/* ATSA — menú lateral, barra superior y páginas internas */
:root {
  --atsa-blue: #0277bd;
  --atsa-blue-dark: #01579b;
  --atsa-blue-deep: #013a67;
  --atsa-blue-active: #013a98;
  --atsa-blue-soft: #039be5;
  --atsa-navy: #1b2a4e;
  --atsa-muted: #8a97b1;
}

.left-sidebar.bg-sidebar,
.left-sidebar,
.sidebar,
.sidebar .sidebar-scrollbar {
  background: var(--atsa-blue) !important;
  background-image: none !important;
  border-right: 0 !important;
}

.app-brand {
  background: var(--atsa-blue) !important;
  min-height: 76px;
  height: auto !important;
  display: flex;
  align-items: center;
  padding: 16px 18px !important;
  box-shadow: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.app-brand a {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  width: 100%;
}

.app-brand img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  background: #fff;
  border-radius: 14px;
  padding: 6px;
  flex: 0 0 50px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.app-brand .brand-name {
  color: #fff !important;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.25;
  letter-spacing: 0.01em;
  white-space: normal;
  max-width: 140px;
}

.sidebar-scrollbar {
  padding: 12px 0px 28px !important;
}

#sidebar-menu,
#sidebar-menu .sidenav-item-link,
#sidebar-menu .nav-text {
  font-family: 'Poppins', 'Montserrat', sans-serif;
}

#sidebar-menu {
  padding: 0 0 0 2px;
}

#sidebar-menu > li.active > a,
#sidebar-menu > li.expand > a {
  background: transparent !important;
}

#sidebar-menu > li {
  margin: 2px 0;
}

#sidebar-menu .sidenav-item-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 16px !important;
  margin: 0 4px;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.92) !important;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.3;
  min-height: 52px;
  background: transparent !important;
  transition: background 0.15s ease, color 0.15s ease;
}

#sidebar-menu .sidenav-item-link i {
  font-size: 24px;
  color: #fff;
  width: 28px;
  text-align: center;
  flex: 0 0 28px;
  opacity: 0.95;
}

#sidebar-menu .sidenav-item-link .nav-text {
  color: inherit;
  text-transform: none;
  letter-spacing: 0;
  font-size: 15px;
}

#sidebar-menu li.has-sub > a.sidenav-item-link::after {
  content: '\F0140';
  font-family: 'Material Design Icons';
  margin-left: auto;
  font-size: 20px;
  opacity: 0.85;
  transition: transform 0.2s ease;
}

#sidebar-menu li.has-sub > a.sidenav-item-link[aria-expanded="true"]::after {
  transform: rotate(180deg);
}

#sidebar-menu li.has-sub.nav-no-chevron > a.sidenav-item-link::after {
  display: none;
}

body.sidebar-dark #sidebar-menu a.sidenav-item-link:hover,
#sidebar-menu a.sidenav-item-link:hover {
  background: rgba(0, 0, 0, 0.18) !important;
  color: #fff !important;
}

body.sidebar-dark #sidebar-menu a.sidenav-item-link.is-current,
body.sidebar-dark #sidebar-menu a.sidenav-item-link[aria-expanded="true"],
#sidebar-menu a.sidenav-item-link.is-current,
#sidebar-menu a.sidenav-item-link[aria-expanded="true"] {
  background: var(--atsa-blue-active) !important;
  color: #fff !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

#sidebar-menu > li > a.sidenav-item-link.is-current::before,
#sidebar-menu > li > a.sidenav-item-link[aria-expanded="true"]::before {
  content: '';
  position: absolute;
  right: -8px;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 3px 0 0 3px;
  background: rgba(173, 216, 255, 0.95);
}

#sidebar-menu a.sidenav-item-link:hover i,
#sidebar-menu a.sidenav-item-link.is-current i,
#sidebar-menu a.sidenav-item-link[aria-expanded="true"] i {
  color: #fff;
  opacity: 1;
}

#sidebar-menu .collapse .sub-menu {
  background: rgba(0, 0, 0, 0.14);
  border-radius: 12px;
  margin: 2px 12px 8px;
  padding: 6px 0;
}

#sidebar-menu .sub-menu .sidenav-item-link {
  padding: 12px 16px 12px 46px !important;
  font-weight: 600;
  font-size: 14px;
  min-height: 44px;
  margin: 2px 6px;
  color: rgba(255, 255, 255, 0.92) !important;
  background: transparent !important;
}

#sidebar-menu .sub-menu .sidenav-item-link::before {
  display: none;
}

#sidebar-menu .sub-menu a.sidenav-item-link:hover {
  background: rgba(0, 0, 0, 0.28) !important;
  color: #fff !important;
}

#sidebar-menu .sub-menu a.sidenav-item-link.is-current {
  background: var(--atsa-blue-active) !important;
  color: #fff !important;
}

.main-header {
  background: #fff !important;
  border-bottom: 1px solid rgba(18, 38, 63, 0.06);
  box-shadow: 0 2px 12px rgba(18, 38, 63, 0.04);
  overflow: visible !important;
}

.main-header .navbar {
  background: #fff !important;
  min-height: 72px;
  height: auto !important;
  padding: 12px 16px 12px 12px !important;
  align-items: center;
  overflow: visible !important;
  flex-wrap: nowrap;
}

#sidebar-toggler.sidebar-toggle,
.sidebar-toggle {
  flex: 0 0 48px !important;
  width: 48px !important;
  height: 48px !important;
  min-width: 48px !important;
  min-height: 48px !important;
  margin: 0 12px 0 4px !important;
  padding: 0 !important;
  border: 1px solid #dbe3ef !important;
  border-radius: 12px !important;
  background: #f4f7fb !important;
  color: var(--atsa-navy) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: visible !important;
  box-shadow: none !important;
  background-image: none !important;
  text-indent: 0 !important;
}

.sidebar-toggle:hover,
.sidebar-toggle:focus {
  background: #e3f2fd !important;
  border-color: #29b6f6 !important;
  color: var(--atsa-blue) !important;
}

.sidebar-toggle::before,
.sidebar-toggle::after {
  display: none !important;
  content: none !important;
}

.sidebar-toggle__icon,
.sidebar-toggle__icon::before,
.sidebar-toggle__icon::after {
  content: "";
  display: block;
  width: 18px;
  height: 3px;
  border-radius: 999px;
  background: var(--atsa-navy);
  transition: background-color 0.15s ease;
}

.sidebar-toggle__icon {
  position: relative;
  flex-shrink: 0;
}

.sidebar-toggle__icon::before,
.sidebar-toggle__icon::after {
  position: absolute;
  left: 0;
}

.sidebar-toggle__icon::before {
  top: -7px;
}

.sidebar-toggle__icon::after {
  top: 7px;
}

.sidebar-toggle:hover .sidebar-toggle__icon,
.sidebar-toggle:hover .sidebar-toggle__icon::before,
.sidebar-toggle:hover .sidebar-toggle__icon::after,
.sidebar-toggle:focus .sidebar-toggle__icon,
.sidebar-toggle:focus .sidebar-toggle__icon::before,
.sidebar-toggle:focus .sidebar-toggle__icon::after {
  background: var(--atsa-blue);
}

.navbar-right .nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.navbar-user-info {
  display: flex;
  align-items: center;
}

.navbar-user-info__content {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: 12px;
  background: #f4f7fb;
  border: 1px solid #dbe3ef;
}

.navbar-user-info__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--atsa-blue);
  font-size: 28px;
  line-height: 1;
}

.navbar-user-info__text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.navbar-user-info__label {
  font-size: 11px;
  color: var(--atsa-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.navbar-user-info__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--atsa-navy);
}

.navbar-right .nav > li > a {
  color: var(--atsa-navy) !important;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 24px;
  border: 1px solid transparent;
}

.navbar-right .nav > li > a:hover {
  background: #eef3fb;
  border-color: #dbe3ef;
  color: var(--atsa-blue) !important;
}

.app-content {
  background: #f0f4f8;
}

.app-content > .content {
  padding: 24px 28px 40px;
}

.app-breadcrumb {
  background: transparent;
  margin-bottom: 18px;
  font-size: 13px;
}

.app-breadcrumb .breadcrumb-item,
.app-breadcrumb .breadcrumb-item a {
  color: var(--atsa-muted);
}

.app-breadcrumb .breadcrumb-item.active {
  color: var(--atsa-navy);
}

.app-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.app-page-header__main {
  display: flex;
  align-items: center;
  gap: 16px;
}

.app-page-header__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: #e3f2fd;
  color: var(--atsa-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex: 0 0 56px;
}

.app-page-header h1 {
  margin: 0;
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--atsa-navy);
}

.app-page-header p {
  margin: 4px 0 0;
  color: var(--atsa-muted);
  font-size: 14px;
}

.app-page-header__notice {
  flex: 1 1 280px;
  max-width: 520px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #fdecea;
  color: #c62828;
  font-size: 13px;
  line-height: 1.45;
}

.btn-app {
  border-radius: 999px;
  font-weight: 600;
  padding: 10px 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #006eb8;
  border-color: #006eb8;
}

.btn-app:hover {
  background: var(--atsa-blue-dark);
  border-color: var(--atsa-blue-dark);
}

.app-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.app-tabs__link {
  padding: 10px 16px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #dbe3ef;
  color: var(--atsa-navy);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.app-tabs__link:hover {
  border-color: #29b6f6;
  color: var(--atsa-blue);
}

.app-tabs__link.is-active {
  background: var(--atsa-blue);
  border-color: var(--atsa-blue);
  color: #fff;
}

.app-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(18, 38, 63, 0.08);
  border: 1px solid rgba(18, 38, 63, 0.05);
  overflow: hidden;
}

.app-card--table {
  overflow: visible;
}

.app-card--table .app-card__body {
  overflow: visible;
}

.app-content .app-card:not(.app-card--form) .app-card__body {
  padding: 20px 24px 24px;
}

.app-content .dataTables_wrapper .dataTables_length,
.app-content .dataTables_wrapper .dataTables_filter {
  margin-bottom: 16px;
}

.app-content .dataTables_wrapper .dataTables_length {
  float: left;
}

.app-content .dataTables_wrapper .dataTables_filter {
  float: right;
  text-align: right;
}

.app-content .dataTables_wrapper .dataTables_filter input {
  margin-left: 0.5em;
}

.app-content .dataTables_wrapper .dataTables_scroll,
.app-content .dataTables_wrapper > table.dataTable,
.app-content .dataTables_wrapper .dataTables_info {
  clear: both;
}

.app-content .dataTables_wrapper .dataTables_info,
.app-content .dataTables_wrapper .dataTables_paginate {
  margin-top: 16px;
}

.app-content .app-table thead th,
.app-content table.dataTable thead th {
  background: #f4f7fb;
  border-top: 0;
  border-bottom: 1px solid #e3eaf3;
  padding: 14px 18px;
}

.app-content .app-table tbody td,
.app-content table.dataTable tbody td {
  padding: 16px 18px;
  border-top: 1px solid #eef2f7;
}

.app-content .app-table tbody tr:first-child td,
.app-content table.dataTable tbody tr:first-child td {
  border-top: 0;
}

.auth-admin.content-wrapper,
.auth-admin > .content {
  width: 100%;
  max-width: none !important;
}

.auth-admin .app-page-header,
.auth-admin .app-card,
.auth-admin .app-alert,
.auth-admin .app-tabs {
  width: 100%;
  max-width: none;
}

.app-content .dataTables_wrapper,
.app-content .dataTables_scroll,
.app-content .dataTables_scrollHead,
.app-content .dataTables_scrollBody,
.app-content .app-table,
.app-content table.dataTable,
.auth-admin table.listausuarios2 {
  width: 100% !important;
  max-width: none !important;
}

/* Aportes/listado: tablas anchas con scroll horizontal */
.app-content .table-responsive.app-datatable--wide {
  display: block;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.app-content .table-responsive.app-datatable--wide .dataTables_wrapper,
.app-content .table-responsive.app-datatable--wide .dataTables_scroll {
  width: 100% !important;
  overflow-x: visible;
}

.app-content .table-responsive.app-datatable--wide .dataTables_scrollBody {
  overflow-x: auto !important;
  overflow-y: visible !important;
  width: 100% !important;
}

.app-content .table-responsive.app-datatable--wide table.dataTable,
.app-content .table-responsive.app-datatable--wide .dataTables_scrollHeadInner table,
.app-content .table-responsive.app-datatable--wide .dataTables_scrollBody table {
  width: auto !important;
  min-width: 100%;
  table-layout: auto !important;
}

.app-content .table-responsive.app-datatable--wide table.dataTable thead th,
.app-content .table-responsive.app-datatable--wide table.dataTable tbody td {
  white-space: nowrap;
}

.app-content .table-responsive.app-datatable--wide table.dataTable td:nth-child(2) {
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.auth-admin .app-card--form {
  max-width: none;
}

.page-wrapper > .content-wrapper .footer {
  width: 100%;
  margin-top: 24px;
}

.page-wrapper > .content-wrapper .footer .copyright {
  width: 100%;
}

.app-card__body {
  padding: 8px 8px 16px;
}

.app-card--form .app-card__body {
  padding: 28px;
}

.app-form label {
  font-size: 12px;
  font-weight: 700;
  color: #5a6a85;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.app-form .form-control {
  border-radius: 12px;
  border-color: #dbe3ef;
  min-height: 46px;
}

.app-form textarea.form-control {
  min-height: 120px;
}

.app-form__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.app-filters-bar .row {
  align-items: flex-end;
}

.app-filters-bar__actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #eef2f7;
}

.app-filters-bar .btn-app {
  min-width: 140px;
}

.app-date-range {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  align-items: center;
}

.app-date-range .form-control {
  min-width: 0;
}

.app-date-range__sep {
  color: var(--atsa-muted);
  font-size: 14px;
  line-height: 1;
  flex-shrink: 0;
}

.app-table {
  margin-bottom: 0 !important;
  border-collapse: separate;
  border-spacing: 0;
}

.app-table thead th {
  border-top: 0;
  border-bottom: 1px solid #e8eef7;
  background: #fff;
  color: var(--atsa-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 16px 14px;
}

.app-table tbody td {
  border-top: 1px solid #f0f4fa;
  color: #334155;
  font-size: 14px;
  padding: 16px 14px;
  vertical-align: middle;
}

.app-table tbody tr:hover {
  background: #fafcff;
}

.app-table tbody tr.table-danger td {
  background: #fdecea;
}

.atsa-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
}

.atsa-badge--warning {
  background: #fff4de;
  color: #9a6700;
}

.atsa-badge--info {
  background: #e3f2fd;
  color: #01579b;
}

.atsa-badge--danger {
  background: #fdecea;
  color: #c62828;
}

.atsa-badge--system {
  background: #eef7ff;
  color: #0277bd;
}

.atsa-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #2e7d32;
  font-size: 13px;
  font-weight: 600;
}

.atsa-status .mdi {
  font-size: 18px;
}

.btn-app-outline {
  border-radius: 10px;
  font-weight: 600;
  font-size: 12px;
  padding: 6px 12px;
  background: #fff;
  border: 1px solid #dbe3ef;
  color: var(--atsa-blue);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 2px 0;
}

.btn-app-outline:hover {
  background: #eef3fb;
  border-color: #29b6f6;
  color: var(--atsa-blue-dark);
}

.btn-app-outline--success {
  color: #2e7d32;
  border-color: #c8e6c9;
}

.btn-app-outline--success:hover {
  background: #e8f5e9;
  border-color: #81c784;
  color: #1b5e20;
}

.btn-app-outline--danger {
  color: #c62828;
  border-color: #ffcdd2;
}

.btn-app-outline--danger:hover {
  background: #ffebee;
  border-color: #e57373;
  color: #b71c1c;
}

.app-table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.app-table-actions--stacked {
  flex-direction: column;
  align-items: flex-start;
}

.app-table-actions .btn-app-outline {
  margin: 0;
  white-space: nowrap;
}

.app-card [data-dtr-index="5"] span {
  text-wrap: auto !important;
}

.crm-stats-list {
  max-height: 80px;
  overflow: auto;
  font-size: 12px;
  line-height: 1.5;
  color: #334155;
}

body.sidebar-collapse .app-brand .brand-name {
  display: none;
}

@media (max-width: 767.98px) {
  .app-content > .content {
    padding: 18px 14px 28px;
  }

  .app-page-header h1 {
    font-size: 1.35rem;
  }

  .app-page-header__actions,
  .app-page-header__actions .btn-app {
    width: 100%;
    justify-content: center;
  }
}

/* Auth — páginas públicas (login, recuperación) */
body.auth-guest-page,
body.login-page {
  min-height: 100vh;
  margin: 0;
  background: linear-gradient(135deg, #e8eef7 0%, #f0f4f8 45%, #f8fafc 100%);
  font-family: Poppins, Montserrat, sans-serif;
}

.auth-guest-wrap,
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.auth-guest-card {
  width: 100%;
  max-width: 460px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(18, 38, 63, 0.1);
  border: 1px solid rgba(18, 38, 63, 0.05);
}

.auth-guest-card__body {
  padding: 32px 36px 24px;
}

.auth-guest-brand {
  text-align: center;
  margin-bottom: 20px;
}

.auth-guest-brand img {
  max-width: 120px;
  background: #fff;
  padding: 8px 12px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(18, 38, 63, 0.06);
}

.auth-guest-header {
  margin-bottom: 22px;
}

.auth-guest-header h1 {
  font-size: 1.45rem;
}

.auth-guest-header p {
  font-size: 13px;
}

.auth-guest-foot {
  margin: 24px 0 0;
  text-align: center;
  font-size: 12px;
  color: var(--atsa-muted);
}

.auth-guest-card .alert {
  border-radius: 12px;
  font-size: 14px;
  margin-bottom: 18px;
  border-width: 1px;
}

.auth-guest-card .alert-success {
  background: #e8f5e9;
  border-color: #c8e6c9;
  color: #2e7d32;
}

.auth-guest-card .alert-danger {
  background: #fdecea;
  border-color: #ffcdd2;
  color: #c62828;
}

.login-field {
  position: relative;
  margin-bottom: 16px;
}

.login-field label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #5a6a85;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.login-field .mdi {
  position: absolute;
  left: 14px;
  top: 38px;
  color: #8a97b1;
  font-size: 18px;
  pointer-events: none;
}

.login-field .form-control {
  height: 46px;
  border-radius: 12px;
  padding-left: 42px;
  border: 1px solid #dbe3ef;
  font-size: 14px;
  background: #fff;
}

.login-field .form-control:focus {
  border-color: #29b6f6;
  box-shadow: 0 0 0 3px rgba(41, 182, 246, 0.15);
}

.login-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 0 18px;
  flex-wrap: wrap;
}

.login-actions a {
  font-size: 13px;
  font-weight: 600;
  color: #006eb8;
  text-decoration: none;
}

.login-actions a:hover {
  color: #01579b;
}

.auth-guest-page .btn-login,
.login-page .btn-login {
  height: 46px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  background: #006eb8;
  border-color: #006eb8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.auth-guest-page .btn-login:hover,
.login-page .btn-login:hover {
  background: #01579b;
  border-color: #01579b;
}

.login-help {
  margin-top: 18px;
  font-size: 13px;
  color: #8a97b1;
  text-align: center;
}

.login-help a,
.login-help button {
  color: #006eb8;
  font-weight: 600;
}

.login-help button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.control.control-checkbox {
  font-size: 13px;
  color: #5a6a85;
  font-weight: 500;
}

.auth-modal .modal-content {
  border: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(18, 38, 63, 0.18);
}

.auth-modal .modal-header {
  border-bottom: 1px solid #eef3fb;
  padding: 20px 24px;
}

.auth-modal .modal-title {
  font-weight: 700;
  color: #1b2a4e;
}

.auth-modal .modal-body {
  padding: 20px 24px;
}

.auth-modal .modal-footer {
  border-top: 1px solid #eef3fb;
  padding: 16px 24px 20px;
}

.auth-modal-example {
  background: #f4f7fb;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 14px;
}

.auth-modal-example div {
  display: flex;
  gap: 12px;
  margin-bottom: 6px;
}

.auth-modal-example div:last-child {
  margin-bottom: 0;
}

.auth-modal-example span {
  display: inline-block;
  width: 100px;
  font-weight: 700;
  color: #5a6a85;
}

/* Auth — administración de usuarios */
.app-alert {
  border-radius: 12px;
  margin-bottom: 18px;
}

.atsa-badge--success {
  background: #e8f5e9;
  color: #2e7d32;
}

.auth-status-link {
  text-decoration: none;
}

.auth-status-link:hover {
  text-decoration: none;
  opacity: 0.85;
}

.app-form__lead {
  color: #5a6a85;
  font-size: 15px;
  margin-bottom: 18px;
}

.app-form__groups h3 {
  font-size: 14px;
  font-weight: 700;
  color: #1b2a4e;
  margin: 8px 0 12px;
}

.app-form__checks {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 8px;
}

.app-check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 14px;
  color: #334155;
  cursor: pointer;
}

.app-check input {
  margin: 0;
}

@media (max-width: 767.98px) {
  .auth-guest-card__body {
    padding: 24px 20px 20px;
  }

  .auth-guest-header h1 {
    font-size: 1.25rem;
  }
}

/* Home — dashboard de inicio */
.app-period-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.app-period-filters a {
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #dbe3ef;
  color: var(--atsa-navy);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.app-period-filters a:hover {
  border-color: #29b6f6;
  color: var(--atsa-blue);
}

.app-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.app-stats-grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.app-stat-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(18, 38, 63, 0.08);
  border: 1px solid rgba(18, 38, 63, 0.05);
  padding: 22px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.app-stat-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex: 0 0 52px;
}

.app-stat-card__icon--blue {
  background: #e3f2fd;
  color: #0277bd;
}

.app-stat-card__icon--warning {
  background: #fff4de;
  color: #9a6700;
}

.app-stat-card__icon--danger {
  background: #fdecea;
  color: #c62828;
}

.app-stat-card__icon--success {
  background: #e8f5e9;
  color: #2e7d32;
}

.app-stat-card__value {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--atsa-navy);
  line-height: 1.2;
}

.app-stat-card__value--success {
  color: #2e7d32;
}

.app-stat-card__value--danger {
  color: #c62828;
}

.app-stat-card__label {
  margin: 4px 0 0;
  color: var(--atsa-muted);
  font-size: 13px;
}

.app-highlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.app-highlight-card {
  border-radius: 20px;
  padding: 24px;
  color: #fff;
  box-shadow: 0 10px 40px rgba(18, 38, 63, 0.12);
}

.app-highlight-card--success {
  background: linear-gradient(135deg, #2e7d32 0%, #43a047 100%);
}

.app-highlight-card--info {
  background: linear-gradient(135deg, #0277bd 0%, #039be5 100%);
}

.app-highlight-card--danger {
  background: linear-gradient(135deg, #c62828 0%, #e53935 100%);
}

.app-highlight-card__value {
  margin: 0 0 8px;
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1.2;
}

.app-highlight-card__label {
  margin: 0 0 16px;
  font-size: 14px;
  opacity: 0.92;
}

.app-highlight-card__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 10px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  text-decoration: underline;
}

.app-highlight-card__link:hover {
  color: #fff;
}

.app-highlight-card__progress {
  height: 5px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  overflow: hidden;
}

.app-highlight-card__progress span {
  display: block;
  height: 100%;
  background: #fff;
  border-radius: inherit;
}

.app-home-alert {
  border-radius: 16px;
  margin-bottom: 18px;
}

.app-home-info h2 {
  margin: 0 0 8px;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--atsa-navy);
}

.app-home-info__lead {
  color: var(--atsa-muted);
  font-size: 14px;
  margin-bottom: 20px;
}

.app-info-list {
  display: grid;
  grid-template-columns: minmax(140px, 220px) 1fr;
  gap: 12px 20px;
  margin: 0;
}

.app-info-list dt {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  color: #5a6a85;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.app-info-list dd {
  margin: 0;
  color: #334155;
  font-size: 14px;
}

.app-home-modal-alert {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: 1.5rem 0 1.25rem;
  text-align: center;
}

.app-home-modal-alert .mdi {
  color: #c62828;
  font-size: 32px;
}

.app-home-modal-alert span {
  color: #c62828;
  font-size: 24px;
  font-weight: 700;
}

.app-home-modal-text {
  font-size: 18px;
  color: #334155;
}

@media (max-width: 767.98px) {
  .app-info-list {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .app-info-list dt {
    margin-top: 8px;
  }
}