/**
* Template Name: NiceAdmin
* Updated: Sep 18 2023 with Bootstrap v5.3.2
* Template URL: https://bootstrapmade.com/nice-admin-bootstrap-admin-html-template/
* Author: BootstrapMade.com
* License: https://bootstrapmade.com/license/
*/

/*--------------------------------------------------------------
# General
--------------------------------------------------------------*/
:root {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: #f4f7f9;
  color: #444444;
}

a {
  color: #176b87;
  text-decoration: none;
}

a:hover {
  color: #2a87a3;
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-sans);
}

/*--------------------------------------------------------------
# Main
--------------------------------------------------------------*/
#main {
  margin-top: 60px;
  padding: 20px 30px;
  transition: margin-left var(--duration-base, 200ms) var(--ease-out, ease);
}

@media (max-width: 1199px) {
  #main {
    padding: 20px;
  }
}

/*--------------------------------------------------------------
# Page Title
--------------------------------------------------------------*/
/*--------------------------------------------------------------
# Back to top button
--------------------------------------------------------------*/
/*--------------------------------------------------------------
# Override some default Bootstrap stylings
--------------------------------------------------------------*/
/* Dropdown menus */
.dropdown-menu {
  border-radius: 4px;
  padding: 10px 0;
  animation-name: dropdown-animate;
  animation-duration: 0.2s;
  animation-fill-mode: both;
  border: 0;
  box-shadow: 0 5px 30px 0 rgba(82, 63, 105, 0.2);
}

.dropdown-menu .dropdown-header,
.dropdown-menu .dropdown-footer {
  text-align: center;
  font-size: 15px;
  padding: 10px 25px;
}

.dropdown-menu .dropdown-footer a {
  color: #444444;
  text-decoration: underline;
}

.dropdown-menu .dropdown-footer a:hover {
  text-decoration: none;
}

.dropdown-menu .dropdown-divider {
  color: #dce5e9;
  margin: 0;
}

.dropdown-menu .dropdown-item {
  font-size: 14px;
  padding: 10px 15px;
  transition: 0.3s;
  border-radius: 12px;
  margin: 2px 8px;
}

.dropdown-menu .dropdown-item i {
  margin-right: 10px;
  font-size: 18px;
  line-height: 0;
}

.dropdown-menu .dropdown-item:hover {
  background-color: #f4f7f9;
}

@media (min-width: 768px) {
  .dropdown-menu-arrow::before {
    content: "";
    width: 13px;
    height: 13px;
    background: #fff;
    position: absolute;
    top: -7px;
    right: 20px;
    transform: rotate(45deg);
    border-top: 1px solid #eaedf1;
    border-left: 1px solid #eaedf1;
  }
}

@keyframes dropdown-animate {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }

  0% {
    opacity: 0;
  }
}

/* Light Backgrounds */
/* Card */
.card {
  margin-bottom: 30px;
  border: none;
  border-radius: 5px;
  box-shadow: 0px 0 30px rgba(38, 58, 67, 0.1);
}

.card-title {
  padding: 20px 0 15px 0;
  font-size: 18px;
  font-weight: 500;
  color: #263a43;
  font-family: var(--font-sans);
}

.card-title span {
  color: #899bbd;
  font-size: 14px;
  font-weight: 400;
}

.card-body {
  padding: 0 20px 20px 20px;
}

/* Alerts */
.alert-heading {
  font-weight: 500;
  font-family: var(--font-sans);
  font-size: 20px;
}

/* Close Button */
.btn-close {
  background-size: 25%;
}

.btn-close:focus {
  outline: 0;
  box-shadow: none;
}

/* Accordion */
/* Breadcrumbs */
.breadcrumb {
  font-size: 14px;
  font-family: var(--font-sans);
  color: #899bbd;
  font-weight: 600;
}

.breadcrumb a {
  color: #899bbd;
  transition: 0.3s;
}

.breadcrumb a:hover {
  color: #51678f;
}

.breadcrumb .breadcrumb-item::before {
  color: #899bbd;
}

.breadcrumb .active {
  color: #51678f;
  font-weight: 600;
}

/* Bordered Tabs */
.nav-tabs-bordered {
  border-bottom: 2px solid #ebeef4;
}

.nav-tabs-bordered .nav-link {
  margin-bottom: -2px;
  border: none;
  color: #2c384e;
}

.nav-tabs-bordered .nav-link:hover,
.nav-tabs-bordered .nav-link:focus {
  color: #176b87;
}

.nav-tabs-bordered .nav-link.active {
  background-color: #fff;
  color: #176b87;
  border-bottom: 2px solid #176b87;
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
.logo {
  line-height: 1;
}

@media (min-width: 1200px) {
  .logo {
    width: 280px;
  }
}

.logo img {
  max-height: 26px;
  margin-right: 6px;
}

.logo span {
  font-size: 26px;
  font-weight: 700;
  color: #263a43;
  font-family: var(--font-sans);
}

.header {
  transition: box-shadow var(--duration-base, 200ms) var(--ease-out, ease);
  z-index: 997;
  height: 60px;
  box-shadow: 0px 2px 20px rgba(38, 58, 67, 0.1);
  background-color: #fff;
  padding-left: 20px;
  /* Toggle Sidebar Button */
  /* Search Bar */
}

.header .toggle-sidebar-btn {
  font-size: 32px;
  padding-left: 10px;
  cursor: pointer;
  color: #263a43;
}

/*--------------------------------------------------------------
# Header Nav
--------------------------------------------------------------*/
.header-nav ul {
  list-style: none;
}

.header-nav > ul {
  margin: 0;
  padding: 0;
}

.header-nav .nav-icon {
  font-size: 22px;
  color: #263a43;
  margin-right: 25px;
  position: relative;
}

.header-nav .nav-profile {
  color: #263a43;
}

.header-nav .nav-profile img {
  max-height: 36px;
}

.header-nav .nav-profile span {
  font-size: 14px;
  font-weight: 600;
}

.header-nav .badge-number {
  position: absolute;
  inset: -2px -5px auto auto;
  font-weight: normal;
  font-size: 12px;
  padding: 3px 6px;
}

.header-nav .profile {
  min-width: 240px;
  padding-bottom: 0;
  top: 8px !important;
}

.header-nav .profile .dropdown-header h6 {
  font-size: 18px;
  margin-bottom: 0;
  font-weight: 600;
  color: #444444;
}

.header-nav .profile .dropdown-header span {
  font-size: 14px;
}

.header-nav .profile .dropdown-item {
  font-size: 14px;
  padding: 10px 15px;
  transition: 0.3s;
}

.header-nav .profile .dropdown-item i {
  margin-right: 10px;
  font-size: 18px;
  line-height: 0;
}

.header-nav .profile .dropdown-item:hover {
  background-color: #f4f7f9;
}

/*--------------------------------------------------------------
# Sidebar
--------------------------------------------------------------*/
.sidebar {
  position: fixed;
  top: 60px;
  left: 0;
  bottom: 0;
  width: 300px;
  z-index: 996;
  transition:
    width var(--duration-base, 200ms) var(--ease-out, ease),
    transform var(--duration-base, 200ms) var(--ease-out, ease);
  padding: 20px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #aab7cf transparent;
  box-shadow: 0px 0px 20px rgba(38, 58, 67, 0.1);
  background-color: #fff;
}

@media (max-width: 1199px) {
  .sidebar {
    left: -300px;
  }
}

.sidebar::-webkit-scrollbar {
  width: 5px;
  height: 8px;
  background-color: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
  background-color: #aab7cf;
}

@media (min-width: 1200px) {
  #main,
  #footer {
    margin-left: 300px;
  }
}

@media (max-width: 1199px) {
  .toggle-sidebar .sidebar {
    left: 0;
  }
}

@media (min-width: 1200px) {
  .toggle-sidebar #main,
  .toggle-sidebar #footer {
    margin-left: 0;
  }

  .toggle-sidebar .sidebar {
    left: -300px;
  }
}

.sidebar-nav {
  padding: 0;
  margin: 0;
  list-style: none;
}

.sidebar-nav li {
  padding: 0;
  margin: 0;
  list-style: none;
}

.sidebar-nav .nav-item {
  margin-bottom: 5px;
}

.sidebar-nav .nav-heading {
  font-size: 11px;
  text-transform: uppercase;
  color: #899bbd;
  font-weight: 600;
  margin: 10px 0 5px 15px;
}

.sidebar-nav .nav-link {
  display: flex;
  align-items: center;
  font-size: 15px;
  font-weight: 600;
  color: #176b87;
  transition:
    color 0.3s ease,
    background-color 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
  background: #f4f7f9;
  padding: 10px 15px;
  border-radius: 4px;
}

.sidebar-nav .nav-link i {
  font-size: 16px;
  margin-right: 10px;
  color: #176b87;
}

.sidebar-nav .nav-link.collapsed {
  color: #263a43;
  background: #fff;
}

.sidebar-nav .nav-link.collapsed i {
  color: #899bbd;
}

.sidebar-nav .nav-link:hover {
  color: #176b87;
  background: #f4f7f9;
}

.sidebar-nav .nav-link:hover i {
  color: #176b87;
}

.sidebar-nav .nav-link .bi-chevron-down {
  margin-right: 0;
  transition: transform 0.2s ease-in-out;
}

.sidebar-nav .nav-link:not(.collapsed) .bi-chevron-down {
  transform: rotate(180deg);
}

.sidebar-nav .nav-content {
  padding: 5px 0 0 0;
  margin: 0;
  list-style: none;
}

.sidebar-nav .nav-content a {
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  color: #263a43;
  transition:
    color 0.3s ease,
    background-color 0.3s ease,
    transform 0.3s ease;
  padding: 10px 0 10px 40px;
  transition: 0.3s;
}

.sidebar-nav .nav-content a i {
  font-size: 6px;
  margin-right: 8px;
  line-height: 0;
  border-radius: 50%;
}

.sidebar-nav .nav-content a:hover,
.sidebar-nav .nav-content a.active {
  color: #176b87;
}

.sidebar-nav .nav-content a.active i {
  background-color: #176b87;
}

/*--------------------------------------------------------------
# Dashboard
--------------------------------------------------------------*/
/* Filter dropdown */
.dashboard .filter {
  position: absolute;
  right: 0px;
  top: 15px;
}

.dashboard .filter .icon {
  color: #aab7cf;
  padding-right: 20px;
  padding-bottom: 5px;
  transition: 0.3s;
  font-size: 16px;
}

.dashboard .filter .icon:hover,
.dashboard .filter .icon:focus {
  color: #176b87;
}

.dashboard .filter .dropdown-header {
  padding: 8px 15px;
}

.dashboard .filter .dropdown-header h6 {
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #aab7cf;
  margin-bottom: 0;
  padding: 0;
}

.dashboard .filter .dropdown-item {
  padding: 8px 15px;
}

/* Info Cards */
/* Activity */
/* News & Updates */
/* Recent Sales */
/* Top Selling */
/*--------------------------------------------------------------
# Icons list page
--------------------------------------------------------------*/
/*--------------------------------------------------------------
# Profie Page
--------------------------------------------------------------*/
/*--------------------------------------------------------------
# F.A.Q Page
--------------------------------------------------------------*/
/*--------------------------------------------------------------
# Contact
--------------------------------------------------------------*/
@keyframes animate-loading {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/*--------------------------------------------------------------
# Error 404
--------------------------------------------------------------*/
.error-404 {
  padding: 30px;
}

.error-404 h1 {
  font-size: 180px;
  font-weight: 700;
  color: #176b87;
  margin-bottom: 0;
  line-height: 150px;
}

.error-404 h2 {
  font-size: 24px;
  font-weight: 700;
  color: #263a43;
  margin-bottom: 30px;
}

.error-404 .btn {
  background: #51678f;
  color: #fff;
  padding: 8px 30px;
}

.error-404 .btn:hover {
  background: #3e4f6f;
}

@media (min-width: 992px) {
  .error-404 img {
    max-width: 50%;
  }
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.footer {
  padding: 20px 0;
  font-size: 14px;
  transition: margin-left var(--duration-base, 200ms) var(--ease-out, ease);
  border-top: 1px solid #cddfff;
}

.footer .copyright {
  text-align: center;
  color: #263a43;
}

/*--------------------------------------------------------------
# App Refresh
--------------------------------------------------------------*/
:root {
  --app-bg: #f3f7ff;
  --app-surface: rgba(255, 255, 255, 0.8);
  --app-border: rgba(171, 190, 227, 0.34);
  --app-primary: #003b7a;
  --app-dark: #10253f;
  --app-muted: #607086;
  --app-hover: linear-gradient(135deg, #edf2f7, #e8f1f6);
}

body {
  font-family: var(--font-sans);
  background:
    radial-gradient(
      circle at top left,
      rgba(23, 107, 135, 0.07),
      transparent 18%
    ),
    radial-gradient(
      circle at bottom right,
      rgba(42, 157, 143, 0.07),
      transparent 18%
    ),
    var(--app-bg);
  color: #334155;
}

h1,
h2,
h3,
h4,
h5,
h6,
.logo span,
.card-title {
  font-family: var(--font-sans);
}

#main {
  margin-top: 84px;
  padding: 26px 32px 34px;
}

.card {
  border-radius: 24px;
  border: 1px solid var(--app-border);
  background: var(--app-surface);
  backdrop-filter: blur(14px);
  box-shadow: 0 22px 52px rgba(13, 39, 83, 0.08);
}

.card-title {
  color: var(--app-dark);
}

.header {
  height: 74px;
  padding: 0 20px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(189, 204, 232, 0.45);
  box-shadow: 0 18px 44px rgba(12, 36, 82, 0.08);
}

.header-shell {
  gap: 16px;
}

.logo {
  gap: 14px;
}

.logo-mark {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #edf2ff, #e4fbf8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.logo-mark img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  margin-right: 0;
  object-fit: contain;
  display: block;
}

.logo-copy {
  display: flex;
  flex-direction: column;
}

.logo-copy strong {
  font-size: 1.08rem;
  color: var(--app-dark);
}

.logo-copy small {
  font-size: 0.76rem;
  color: var(--app-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.header-toggle {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #e6eef8, #f4f8fb);
  color: var(--app-primary);
  box-shadow: 0 10px 24px rgba(23, 107, 135, 0.12);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.header-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(23, 107, 135, 0.18);
  background: linear-gradient(135deg, #dfe9f6, #eef5fa);
}

.header .toggle-sidebar-btn {
  font-size: 1.55rem;
  padding-left: 0;
  font-weight: 800;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.25);
}

@keyframes statusPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(22, 181, 127, 0.34);
    transform: scale(1);
  }

  70% {
    box-shadow: 0 0 0 8px rgba(22, 181, 127, 0);
    transform: scale(1.04);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(22, 181, 127, 0);
    transform: scale(1);
  }
}

.nav-profile {
  gap: 12px;
  padding: 8px 12px !important;
  border-radius: 18px;
  background: rgba(237, 243, 255, 0.82);
  border: 1px solid rgba(178, 197, 232, 0.45);
}

.nav-profile-avatar,
.dropdown-header-avatar {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--app-primary), #4a7eff);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 14px 28px rgba(24, 71, 212, 0.2);
}

.nav-profile-copy strong {
  font-size: 0.88rem;
  color: var(--app-dark);
}

.nav-profile-copy small {
  color: var(--app-muted);
  font-size: 0.74rem;
}

.nav-profile-chevron {
  color: #8da1bc;
}

.dropdown-menu {
  border-radius: 20px;
  border: 1px solid rgba(185, 200, 229, 0.5);
  box-shadow: 0 30px 60px rgba(10, 36, 84, 0.12);
  padding: 10px 8px;
  overflow: hidden;
}

.dropdown-header {
  padding: 16px 16px 14px !important;
}

.dropdown-item-logout {
  color: #cf5266 !important;
  background: rgba(63, 157, 184, 0.06);
  border: 1px solid rgba(63, 157, 184, 0.08);
}

.dropdown-item-logout i,
.dropdown-item-logout span {
  color: inherit;
}

.dropdown-item-logout:hover {
  background: rgba(63, 157, 184, 0.1) !important;
  color: #bf4558 !important;
}

.dropdown-header h6 {
  margin-top: 10px;
  font-size: 1.05rem;
  color: var(--app-dark);
}

.dropdown-header-avatar {
  margin: 0 auto;
}

.header-nav .profile {
  min-width: 260px;
  top: 10px !important;
}

.header-nav .profile .dropdown-header {
  text-align: center;
}

.header-nav .profile .dropdown-header span {
  display: block;
  color: var(--app-muted);
  font-size: 0.83rem;
  margin-top: 2px;
}

.sidebar-nav .nav-heading {
  margin: 20px 0 10px 10px;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: #7d8ea8;
}

.sidebar-nav .nav-item {
  margin-bottom: 6px;
}

.sidebar-nav .nav-link {
  width: 100%;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 16px;
  background: transparent;
  color: var(--app-dark);
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
}

.sidebar-nav .nav-link.collapsed {
  background: transparent;
}

.sidebar-nav .nav-link::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--app-hover);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.sidebar-nav .nav-link > * {
  position: relative;
  z-index: 1;
}

.sidebar-nav .nav-link:hover,
.sidebar-nav .nav-link:not(.collapsed) {
  border-color: var(--app-border);
}

.sidebar-nav .nav-link:hover::before,
.sidebar-nav .nav-link:not(.collapsed)::before {
  opacity: 1;
}

.sidebar-nav .nav-link.nav-link-logout {
  color: #2a87a3;
  background: linear-gradient(
    135deg,
    rgba(63, 157, 184, 0.12),
    rgba(63, 157, 184, 0.08)
  );
  border-color: rgba(63, 157, 184, 0.2);
}

.sidebar-nav .nav-link.nav-link-logout:hover,
.sidebar-nav .nav-link.nav-link-logout:not(.collapsed) {
  border-color: rgba(63, 157, 184, 0.3);
  background: linear-gradient(
    135deg,
    rgba(63, 157, 184, 0.18),
    rgba(63, 157, 184, 0.1)
  );
}

@media (max-width: 1199px) {
  #main {
    margin-top: 84px;
    padding: 20px;
  }

  .header-shell {
    flex-wrap: wrap;
    row-gap: 10px;
  }

  .header-nav {
    margin-left: auto;
  }

    
}

@media (max-width: 767px) {
  .header {
    padding: 0 12px;
    height: auto;
    min-height: 74px;
  }

  .header-status,
  .logo-copy small {
    display: none;
  }

  .logo {
    max-width: calc(100vw - 92px);
    overflow: hidden;
  }

  .logo-copy strong {
    font-size: 0.92rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .logo-mark {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
  }

  .header-toggle {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
  }

  .header-nav {
    width: auto;
  }

  .nav-profile {
    padding: 6px 8px !important;
  }

  

  .dashboard-hero,
  .card,
  .dashboard-empty-state,
  .dashboard-calendar-placeholder {
    border-radius: 18px;
  }

  }

@media (max-width: 575px) {
  #main {
    margin-top: 86px;
    padding: 14px;
  }

  .header {
    padding: 10px 12px;
  }

  .header-shell {
    align-items: center;
  }

  .logo-copy {
    min-width: 0;
  }

            
}

@media (prefers-reduced-motion: reduce) {
  .header-status-dot,
.theme-toggle-btn,
.header-toggle,
.sidebar-nav .nav-link,
.card,
.dashboard-hero {
    animation: none !important;
    transition: none !important;
  }
}

/* legacy swal dark-mode block removed — consolidated below */

/*--------------------------------------------------------------
# SweetAlert2 Global Polish
--------------------------------------------------------------*/
.swal2-container {
  font-family: var(--font-sans) !important;
  backdrop-filter: blur(5px);
}

.swal2-container.swal2-backdrop-show {
  background: rgba(15, 23, 42, 0.48) !important;
}

.swal2-popup,
.swal2-modal {
  width: min(460px, calc(100vw - 32px)) !important;
  padding: 24px 28px 24px !important;
  border: 1px solid rgba(213, 170, 178, 0.6) !important;
  border-left: 5px solid #14607a !important;
  border-radius: 18px !important;
  background: #ffffff !important;
  color: #0f172a !important;
  box-shadow: 0 26px 64px rgba(15, 23, 42, 0.18) !important;
}

.swal2-popup.swal2-show {
  animation: swalFormalEnter 0.42s cubic-bezier(0.22, 1, 0.36, 1) both !important;
}

.swal2-popup.swal2-hide {
  animation: swalFormalExit 0.24s ease-in both !important;
}

.swal2-icon {
  width: 5em !important;
  height: 5em !important;
  margin: 0 auto 20px !important;
  border-width: 0.25em !important;
  box-shadow: none;
}

.swal2-icon .swal2-icon-content {
  font-size: 3.75em !important;
  line-height: 1 !important;
}

.swal2-icon.swal2-success [class^="swal2-success-line"],
.swal2-icon.swal2-success [class*=" swal2-success-line"] {
  background-color: #1f8a5b !important;
}

.swal2-icon.swal2-success .swal2-success-ring {
  border-color: rgba(31, 138, 91, 0.28) !important;
}

.swal2-popup.swal2-icon-success {
  border-left-color: #1f8a5b !important;
}

.swal2-popup.swal2-icon-error {
  border-left-color: #3f9db8 !important;
}

.swal2-popup.swal2-icon-warning {
  border-left-color: #8a5d14 !important;
}

.swal2-popup.swal2-icon-info,
.swal2-popup.swal2-icon-question {
  border-left-color: #214b82 !important;
}

.swal2-icon.swal2-success {
  border-color: #1f8a5b !important;
  color: #1f8a5b !important;
  background: #f3fbf6 !important;
}

.swal2-icon.swal2-error {
  border-color: #3f9db8 !important;
  color: #3f9db8 !important;
  background: #f4f9fb !important;
}

.swal2-icon.swal2-warning {
  border-color: #8a5d14 !important;
  color: #8a5d14 !important;
  background: #fff8e6 !important;
}

.swal2-icon.swal2-info,
.swal2-icon.swal2-question {
  border-color: #214b82 !important;
  color: #214b82 !important;
  background: #f2f7ff !important;
}

.swal2-title {
  margin: 0 0 10px !important;
  padding: 0 !important;
  color: #0f172a !important;
  font-family: var(--font-sans) !important;
  font-size: 1.18rem !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
}

.swal2-html-container,
.swal2-content {
  margin: 10px 0 0 !important;
  color: #475569 !important;
  font-size: 0.9rem !important;
  line-height: 1.58 !important;
}

.swal2-html-container p {
  color: inherit !important;
}

.swal2-recover-message {
  max-width: 390px;
  margin: 0 auto;
  text-align: center;
  color: #334155;
}

.swal2-recover-message p {
  margin: 0;
}

.swal2-recover-email {
  margin: 14px 0 16px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #d8e2ef;
  background: #f8fafc;
  color: #0f172a;
  font-weight: 800;
  letter-spacing: 0;
}

.swal2-recover-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 18px 0 16px;
  padding: 12px 13px;
  border-radius: 12px;
  border: 1px solid #f3c969;
  border-left: 5px solid #8a5d14;
  background: #fff8e6;
  color: #6f4a12;
  text-align: left;
}

.swal2-recover-notice i {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 9px;
  background: #8a5d14;
  color: #fff;
  font-size: 0.82rem;
}

.swal2-recover-footnote {
  color: #64748b;
  font-size: 0.88rem;
  line-height: 1.5;
}

.swal2-html-container ul {
  margin: 10px 0 0 !important;
  padding-left: 1.1rem !important;
}

.swal2-actions {
  gap: 10px !important;
  margin: 20px 0 0 !important;
  padding: 0 !important;
}

.swal2-styled,
.swal2-actions .btn {
  min-height: 42px !important;
  border-radius: 11px !important;
  padding: 10px 18px !important;
  font-family: var(--font-sans) !important;
  font-size: 0.9rem !important;
  font-weight: 800 !important;
  box-shadow: none !important;
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    background 0.16s ease,
    border-color 0.16s ease !important;
}

.swal2-styled:focus,
.swal2-actions .btn:focus {
  box-shadow: 0 0 0 4px rgba(33, 75, 130, 0.16) !important;
}

.swal2-styled:hover,
.swal2-actions .btn:hover {
  transform: translateY(-1px);
}

.swal2-styled.swal2-confirm,
.swal2-actions .btn-primary,
.swal2-actions .btn-danger {
  border: 1px solid #0f172a !important;
  background: #0f172a !important;
  color: #ffffff !important;
}

.swal2-styled.swal2-confirm:hover,
.swal2-actions .btn-primary:hover,
.swal2-actions .btn-danger:hover {
  background: #1e293b !important;
  border-color: #1e293b !important;
}

.swal2-styled.swal2-cancel,
.swal2-actions .btn-secondary {
  border: 1px solid #d8e2ef !important;
  background: #ffffff !important;
  color: #334155 !important;
}

.swal2-styled.swal2-cancel:hover,
.swal2-actions .btn-secondary:hover {
  background: #f8fafc !important;
  border-color: #c8d5e6 !important;
  color: #0f172a !important;
}

.swal2-timer-progress-bar {
  height: 4px !important;
  background: #214b82 !important;
}

.swal2-loader {
  width: 42px !important;
  height: 42px !important;
  border-width: 4px !important;
  border-color: #214b82 transparent #214b82 transparent !important;
}

.swal2-toast {
  width: min(360px, calc(100vw - 24px)) !important;
  padding: 12px 14px !important;
  border: 1px solid rgba(185, 200, 229, 0.78) !important;
  border-radius: 14px !important;
  background: #ffffff !important;
  color: #0f172a !important;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.16) !important;
}

.swal2-toast .swal2-icon {
  width: 28px !important;
  height: 28px !important;
  margin: 0 10px 0 0 !important;
  border-width: 2px !important;
  box-shadow: none !important;
}

.swal2-toast .swal2-icon .swal2-icon-content {
  font-size: 1rem !important;
}

.swal2-toast.swal2-show {
  animation: swalToastEnter 0.36s cubic-bezier(0.22, 1, 0.36, 1) both !important;
}

.swal2-toast.swal2-hide {
  animation: swalToastExit 0.22s ease-in both !important;
}

.swal2-toast .swal2-title {
  font-size: 0.92rem !important;
}

.swal2-container:has(.swal2-toast),
.swal2-container.swal2-top,
.swal2-container.swal2-top-start,
.swal2-container.swal2-top-end,
.swal2-container.swal2-bottom,
.swal2-container.swal2-bottom-start,
.swal2-container.swal2-bottom-end {
  background: transparent !important;
  backdrop-filter: none !important;
  pointer-events: none !important;
}

.swal2-container:has(.swal2-toast) .swal2-toast,
.swal2-container.swal2-top .swal2-toast,
.swal2-container.swal2-top-start .swal2-toast,
.swal2-container.swal2-top-end .swal2-toast,
.swal2-container.swal2-bottom .swal2-toast,
.swal2-container.swal2-bottom-start .swal2-toast,
.swal2-container.swal2-bottom-end .swal2-toast {
  pointer-events: auto !important;
  border-left: 0 !important;
  background: #ffffff !important;
  color: #0f172a !important;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.14) !important;
}

/* ── Modal de cierre de sesión ──────────────────────────────────────── */

.swal2-logout-popup {
  border-left-color: #2a87a3 !important;
}

.swal2-logout-popup .swal2-icon.swal2-question {
  border-color: #2a87a3 !important;
  color: #14607a !important;
  background: #fdf2f4 !important;
}

.swal2-logout-popup .swal2-icon.swal2-question .swal2-icon-content {
  color: #14607a !important;
}

.swal2-logout-popup .swal2-styled.swal2-confirm {
  background: linear-gradient(135deg, #14607a 0%, #2a87a3 100%) !important;
  border-color: #14607a !important;
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(20, 96, 122, 0.28) !important;
}

.swal2-logout-popup .swal2-styled.swal2-confirm:hover {
  background: linear-gradient(135deg, #7a1b29 0%, #a83540 100%) !important;
  border-color: #7a1b29 !important;
  box-shadow: 0 6px 18px rgba(20, 96, 122, 0.38) !important;
}

.swal2-logout-popup .swal2-styled.swal2-confirm:focus {
  box-shadow: 0 0 0 4px rgba(42, 135, 163, 0.22) !important;
}

.swal-logout-body {
  text-align: center;
}

.swal-logout-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, #dcedf2 0%, #fdf2f4 100%);
  border: 1px solid #f5c2c8;
  margin: 4px 0 14px;
  font-size: 22px;
  color: #14607a;
}

.swal-logout-lead {
  font-size: 0.95rem;
  font-weight: 600;
  color: #172033;
  margin: 0 0 6px;
}

.swal-logout-muted {
  font-size: 0.83rem;
  color: #6b7280;
  margin: 0;
}

@keyframes swalFormalEnter {
  0% {
    opacity: 0;
    filter: blur(4px);
    transform: translate3d(0, 18px, 0) scale(0.96);
  }
  65% {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, -2px, 0) scale(1.005);
  }
  100% {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes swalFormalExit {
  0% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    opacity: 0;
    filter: blur(2px);
    transform: translate3d(0, 10px, 0) scale(0.98);
  }
}

@keyframes swalToastEnter {
  0% {
    opacity: 0;
    transform: translate3d(22px, -4px, 0) scale(0.98);
  }
  70% {
    opacity: 1;
    transform: translate3d(-2px, 0, 0) scale(1);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes swalToastExit {
  0% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
  100% {
    opacity: 0;
    transform: translate3d(18px, -3px, 0) scale(0.98);
  }
}

/*--------------------------------------------------------------
# Profile Dropdown Polish
--------------------------------------------------------------*/
.header-nav .profile.dropdown-menu {
  min-width: 252px;
  padding: 8px;
  border-radius: 22px;
}

.header-nav .profile .dropdown-header {
  padding: 14px 14px 12px !important;
  text-align: center;
}

.header-nav .profile .dropdown-header h6 {
  margin-top: 10px;
  margin-bottom: 2px;
  font-size: 0.98rem;
  color: var(--app-dark);
}

.header-nav .profile .dropdown-header span {
  display: block;
  font-size: 0.82rem;
  color: var(--app-muted);
}

.header-nav .profile .dropdown-divider {
  margin: 6px 8px;
  border-color: rgba(185, 200, 229, 0.5);
}

.header-nav .profile .dropdown-item {
  min-height: 42px;
  padding: 10px 14px;
  margin: 0;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-nav .profile .dropdown-item i {
  margin-right: 0;
  font-size: 1rem;
}

.header-nav .profile .dropdown-item-logout {
  margin-top: 4px;
  background: rgba(63, 157, 184, 0.07);
  border: 1px solid rgba(63, 157, 184, 0.2);
  color: #d14961 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.header-nav .profile .dropdown-item-logout:hover {
  background: linear-gradient(
    135deg,
    rgba(63, 157, 184, 0.16),
    rgba(63, 157, 184, 0.09)
  ) !important;
  color: #bb314a !important;
  border-color: rgba(63, 157, 184, 0.32);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 10px 20px rgba(63, 157, 184, 0.14);
}

/*--------------------------------------------------------------
# Footer Visibility Fix
--------------------------------------------------------------*/
#footer.footer {
  display: block;
  position: relative;
  z-index: 3;
  margin-top: 18px;
  padding: 18px 24px 26px;
  background: transparent;
  border-top: 1px solid rgba(171, 190, 227, 0.34);
}

#footer.footer .copyright,
#footer.footer .credits {
  text-align: center;
}

#footer.footer .copyright {
  color: #16345f;
  font-size: var(--text-xs);
  font-weight: 600;
}

#footer.footer .copyright span {
  color: #0b6f6b;
}

/*--------------------------------------------------------------
# Responsive Refinements
--------------------------------------------------------------*/
@media (max-width: 991px) {
  .header {
    height: 64px;
    padding-left: 12px;
    padding-right: 12px;
  }

  .header-shell {
    gap: 10px;
    flex-wrap: nowrap;
  }

  .logo {
    min-width: 0;
  }

  .logo-copy strong {
    font-size: 0.95rem;
  }

  .logo-copy small {
    font-size: 0.72rem;
  }

    .theme-toggle-btn,
  .header-toggle {
    width: 40px;
    height: 40px;
  }

  .nav-profile {
    padding: 8px 10px;
    gap: 10px;
  }

  .nav-profile-avatar {
    width: 38px;
    height: 38px;
    font-size: 0.9rem;
  }

  .header-nav .profile.dropdown-menu {
    min-width: 228px;
    right: 0;
    left: auto;
  }

  #main {
    padding: 18px 16px 20px;
  }

                .footer {
    padding-bottom: 22px;
  }
}

@media (max-width: 767px) {
  .header {
    padding-left: 10px;
    padding-right: 10px;
  }

  .logo {
    gap: 10px;
  }

  .logo img {
    max-height: 24px;
    margin-right: 0;
  }

  .logo-copy small,
  .nav-profile-copy,
  .header-status {
    display: none !important;
  }

  .header-nav ul {
    padding-left: 0;
  }

  .header-nav .profile.dropdown-menu {
    min-width: 212px;
    border-radius: 18px;
  }

  

  #main {
    margin-top: 64px;
    padding: 16px 12px 20px;
  }

    .breadcrumb {
    font-size: 0.8rem;
    flex-wrap: wrap;
    row-gap: 4px;
  }

                    #footer.footer {
    padding: 16px 12px 24px;
  }
}

@media (max-width: 480px) {
  .header-shell {
    gap: 8px;
  }

  .logo-copy strong {
    font-size: 0.88rem;
  }

  .theme-toggle-btn,
  .header-toggle {
    width: 38px;
    height: 38px;
  }

  .nav-profile {
    min-height: 44px;
    padding: 6px 8px;
  }

  .nav-profile-avatar {
    width: 34px;
    height: 34px;
    font-size: 0.82rem;
  }

  .header-nav .profile.dropdown-menu {
    min-width: min(210px, calc(100vw - 24px));
  }

  

  #main {
    padding: 14px 10px 18px;
  }

        }

/* ══════════════════════════════════════════════════════════════
   SWEETALERT2 — MIXINS INSTITUCIONALES (rp-swal / rp-toast)
   Usados en resetear-password y recuperar-password.
   Se suman al polish global ya definido arriba.
══════════════════════════════════════════════════════════════ */

/* ── Modal popup mejorado ─────────────────────────────────── */
.swal2-popup.rp-swal-popup {
  border-radius: 18px !important;
  border-left-width: 0 !important;
  border: 1px solid rgba(185, 200, 229, 0.72) !important;
  box-shadow:
    0 24px 58px rgba(15, 23, 42, 0.16),
    0 0 0 1px rgba(15, 23, 42, 0.03) !important;
}

/* Animacion modal: escala con rebote sutil */
@keyframes rp-swal-in {
  0% {
    opacity: 0;
    filter: blur(4px);
    transform: scale(0.96) translateY(18px);
  }
  65% {
    opacity: 1;
    filter: blur(0);
    transform: scale(1.005) translateY(-2px);
  }
  100% {
    opacity: 1;
    filter: blur(0);
    transform: scale(1) translateY(0);
  }
}

@keyframes rp-swal-out {
  0% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
  100% {
    opacity: 0;
    filter: blur(2px);
    transform: scale(0.98) translateY(10px);
  }
}

/* Botones del modal (buttonsStyling: false) */
.rp-swal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 46px;
  padding: 11px 26px;
  border-radius: 12px;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 0.9rem;
  border: 0;
  cursor: pointer;
  transition:
    background 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.1s ease;
}

.rp-swal-confirm {
  background: #19324a;
  color: #fff;
  box-shadow: 0 4px 14px rgba(25, 50, 74, 0.18);
}

.rp-swal-confirm:hover {
  background: #22435e;
  box-shadow: 0 6px 18px rgba(25, 50, 74, 0.22);
}
.rp-swal-confirm:active {
  transform: scale(0.97);
}
.rp-swal-confirm:focus {
  outline: 0;
  box-shadow: 0 0 0 4px rgba(7, 139, 132, 0.14);
}

.rp-swal-cancel {
  background: #f1f5f9;
  color: #334155;
  margin-right: 8px;
}

.rp-swal-cancel:hover {
  background: #e2e8f0;
}

/* Badge de confirmación dentro del modal (success/recuperar) */
.rp-swal-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 14px;
  padding: 8px 16px;
  border-radius: 12px;
  background: #edf8f6;
  border: 1px solid #b9dfdc;
  color: #0f6f68;
  font-size: 0.82rem;
  font-weight: 700;
}

.swal-session-copy {
  max-width: 360px;
  margin: 0 auto;
  text-align: center;
}

.swal-session-copy--timeout,
.swal-session-copy--ended {
  max-width: 380px;
}

.swal-session-icon {
  width: 54px;
  height: 54px;
  margin: 2px auto 14px;
  border-radius: 16px;
  background: #f2f7f6;
  color: #0f6f68;
  border: 1px solid #cce7e4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  animation: swalIconSoftPop 0.48s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}

.swal-session-copy p {
  margin: 0;
  color: #334155;
}

.swal-session-lead {
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.45;
}

.swal-session-muted {
  margin-top: 8px !important;
  color: #64748b !important;
  font-size: 0.86rem;
}

.swal-session-countdown-wrap {
  margin-top: 16px;
  padding: 14px 14px 12px;
  border: 1px solid #e5edf5;
  border-radius: 14px;
  background: linear-gradient(180deg, #f8fbfd 0%, #f1f7fb 100%);
}

.swal-session-countdown-label {
  margin-bottom: 8px;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.swal-session-countdown {
  min-width: 136px;
  margin: 0 auto;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, #fff6df 0%, #ffefc2 100%);
  border-color: #f1cf7c;
  color: #9a5b00;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

/* ── Toast mejorado ───────────────────────────────────────── */
.swal2-toast.rp-toast-popup {
  border-radius: 12px !important;
  min-width: 260px;
  box-shadow:
    0 12px 30px rgba(15, 23, 42, 0.14),
    0 0 0 1px rgba(15, 23, 42, 0.04) !important;
}

.rp-toast-title {
  color: #172033 !important;
  font-size: 0.88rem !important;
  line-height: 1.35 !important;
  font-weight: 750 !important;
}

/* Animacion toast: slide desde derecha con rebote */
@keyframes rp-toast-in {
  0% {
    opacity: 0;
    transform: translateX(28px) translateY(-4px) scale(0.98);
  }
  70% {
    opacity: 1;
    transform: translateX(-2px) translateY(0) scale(1);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes rp-toast-out {
  0% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateX(20px) translateY(-3px) scale(0.98);
  }
}

.rp-toast-show {
  animation: rp-toast-in 0.36s cubic-bezier(0.22, 1, 0.36, 1) both !important;
}
.rp-toast-hide {
  animation: rp-toast-out 0.22s ease-in both !important;
}

/* Toasts must remain lightweight: no panel overlay, no backdrop blur. */
.swal2-container.swal2-backdrop-show:has(.swal2-toast),
.swal2-container.swal2-top-end:has(.swal2-toast) {
  background: transparent !important;
  backdrop-filter: none !important;
  pointer-events: none !important;
}

.swal2-container.swal2-backdrop-show:has(.swal2-toast) .swal2-toast,
.swal2-container.swal2-top-end:has(.swal2-toast) .swal2-toast {
  pointer-events: auto !important;
  background: #fff !important;
  color: #0f172a !important;
  border-left: 0 !important;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.14) !important;
}

/* Toasts normales: flotantes, sin panel lateral ni oscurecimiento. */
body.swal2-toast-shown {
  overflow: visible !important;
  padding-right: 0 !important;
}

body.swal2-toast-shown .swal2-container,
body.swal2-toast-shown .swal2-container.swal2-backdrop-show {
  position: fixed !important;
  inset: 14px 14px auto auto !important;
  width: min(360px, calc(100vw - 28px)) !important;
  height: auto !important;
  padding: 0 !important;
  display: block !important;
  overflow: visible !important;
  background: transparent !important;
  background-color: transparent !important;
  backdrop-filter: none !important;
  pointer-events: none !important;
}

body.swal2-toast-shown .swal2-toast {
  width: 100% !important;
  min-height: 54px !important;
  margin: 0 !important;
  padding: 10px 14px !important;
  border: 1px solid rgba(185, 200, 229, 0.82) !important;
  border-left: 5px solid #64748b !important;
  border-radius: 12px !important;
  background: #ffffff !important;
  color: #0f172a !important;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16) !important;
  pointer-events: auto !important;
}

body.swal2-toast-shown .swal2-toast .swal2-title {
  margin: 0 !important;
  color: #0f172a !important;
  font-family: var(--font-sans) !important;
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  letter-spacing: 0 !important;
  text-align: left !important;
}

body.swal2-toast-shown .swal2-toast .swal2-icon {
  width: 28px !important;
  height: 28px !important;
  margin: 0 10px 0 0 !important;
}

body.swal2-toast-shown .swal2-toast.swal2-icon-success {
  border-color: #a7e3c5 !important;
  border-left-color: #2e8b57 !important;
  background: #f4fbf7 !important;
}

body.swal2-toast-shown .swal2-toast.swal2-icon-success .swal2-icon {
  border-color: #2e8b57 !important;
  color: #2e8b57 !important;
  background: #e7f8ef !important;
}

body.swal2-toast-shown .swal2-toast.swal2-icon-error {
  border-color: #f0b7b7 !important;
  border-left-color: #3f9db8 !important;
  background: #fff7f7 !important;
}

body.swal2-toast-shown .swal2-toast.swal2-icon-error .swal2-icon {
  border-color: #3f9db8 !important;
  color: #3f9db8 !important;
  background: #fff0f0 !important;
}

body.swal2-toast-shown .swal2-toast.swal2-icon-warning {
  border-color: #f1d28d !important;
  border-left-color: #b7791f !important;
  background: #fffaf0 !important;
}

body.swal2-toast-shown .swal2-toast.swal2-icon-warning .swal2-icon {
  border-color: #b7791f !important;
  color: #b7791f !important;
  background: #fff3d6 !important;
}

body.swal2-toast-shown .swal2-toast.swal2-icon-info,
body.swal2-toast-shown .swal2-toast.swal2-icon-question {
  border-color: #b9cff7 !important;
  border-left-color: #3a86c8 !important;
  background: #f4f7f9 !important;
}

body.swal2-toast-shown .swal2-toast.swal2-icon-info .swal2-icon,
body.swal2-toast-shown .swal2-toast.swal2-icon-question .swal2-icon {
  border-color: #3a86c8 !important;
  color: #3a86c8 !important;
  background: #eaf4f7 !important;
}

/* SweetAlert2 calm theme overrides */
.swal2-popup,
.swal2-modal,
.swal2-popup.rp-swal-popup {
  border-left: 0 !important;
  background: linear-gradient(
    180deg,
    rgba(248, 252, 251, 0.98),
    rgba(255, 255, 255, 1)
  ) !important;
}

.swal2-popup::before,
.swal2-modal::before,
.swal2-popup.rp-swal-popup::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  border-radius: inherit;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  background: linear-gradient(90deg, #7bbab5, #6e8fb0);
  opacity: 0.7;
  pointer-events: none;
}

.swal2-popup.swal2-icon-success::before {
  background: linear-gradient(90deg, #84bfa0, #7bbab5);
}

.swal2-popup.swal2-icon-error::before {
  background: linear-gradient(90deg, #c98f93, #b7898f);
}

.swal2-popup.swal2-icon-warning::before {
  background: linear-gradient(90deg, #cfaa75, #bda06c);
}

.swal2-popup.swal2-icon-info::before,
.swal2-popup.swal2-icon-question::before {
  background: linear-gradient(90deg, #7bbab5, #7f9fbd);
}

.swal2-icon.swal2-success {
  border-color: #79b89a !important;
  color: #2f7d5b !important;
  background: #f3faf7 !important;
}

.swal2-icon.swal2-error {
  border-color: #c98f93 !important;
  color: #9d3f48 !important;
  background: #fff7f7 !important;
}

.swal2-icon.swal2-warning {
  border-color: #d0ab74 !important;
  color: #9a681d !important;
  background: #fff9ed !important;
}

.swal2-icon.swal2-info,
.swal2-icon.swal2-question {
  border-color: #88abc9 !important;
  color: #426f94 !important;
  background: #f4f8fc !important;
}

.swal2-icon.swal2-success [class^="swal2-success-line"],
.swal2-icon.swal2-success [class*=" swal2-success-line"] {
  background-color: #2f7d5b !important;
}

.swal2-icon.swal2-success .swal2-success-ring {
  border-color: rgba(47, 125, 91, 0.22) !important;
}

.swal2-timer-progress-bar {
  background: linear-gradient(90deg, #7bbab5, #6e8fb0) !important;
}

.swal2-loader {
  border-color: #7bbab5 transparent #6e8fb0 transparent !important;
}

body.swal2-toast-shown .swal2-toast {
  border-left-width: 4px !important;
}

body.swal2-toast-shown .swal2-toast.swal2-icon-success {
  border-left-color: #79b89a !important;
  background: #fbfefd !important;
}

body.swal2-toast-shown .swal2-toast.swal2-icon-error {
  border-left-color: #c98f93 !important;
  background: #ffffff !important;
}

body.swal2-toast-shown .swal2-toast.swal2-icon-warning {
  border-left-color: #d0ab74 !important;
  background: #fffefb !important;
}

body.swal2-toast-shown .swal2-toast.swal2-icon-info,
body.swal2-toast-shown .swal2-toast.swal2-icon-question {
  border-left-color: #88abc9 !important;
  background: #fbfdff !important;
}

@media (prefers-reduced-motion: reduce) {
  .swal2-popup.swal2-show,
  .swal2-popup.swal2-hide,
  .swal2-toast.swal2-show,
  .swal2-toast.swal2-hide,
  .rp-swal-show,
  .rp-swal-hide,
  .rp-toast-show,
  .rp-toast-hide,
  .swal2-icon {
    animation: none !important;
  }
}

/*--------------------------------------------------------------
# Admin Home Layout
--------------------------------------------------------------*/
body:not(.login-page) {
  --admin-bg: #f4f7f9;
  --admin-surface: #ffffff;
  --admin-border: #dce5f2;
  --admin-text: #1f2937;
  --admin-teal: #2a9d8f;
  --admin-teal-soft: #e5f5f3;
  --admin-red: #2a87a3;
  font-family: var(--font-sans);
  background: var(--admin-bg);
  color: var(--admin-text);
}

body:not(.login-page) h1,
body:not(.login-page) h2,
body:not(.login-page) h3,
body:not(.login-page) h4,
body:not(.login-page) h5,
body:not(.login-page) h6,
body:not(.login-page) .card-title,
body:not(.login-page) .logo-copy strong {
  font-family: var(--font-sans);
  letter-spacing: 0;
}

body:not(.login-page) #header.header {
  height: 64px;
  padding: 0 18px 0 20px;
  background: var(--admin-surface);
  border-bottom: 1px solid var(--admin-border);
  box-shadow: none;
  backdrop-filter: none;
}

.header-shell {
  gap: 18px;
}

.header-left {
  gap: 18px;
  min-width: 238px;
}

body:not(.login-page) .logo {
  gap: 10px;
  min-width: 0;
}

body:not(.login-page) .logo-mark {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
}

body:not(.login-page) .logo-copy strong {
  color: #202938;
  font-size: 1.08rem;
  font-weight: 800;
  white-space: nowrap;
}

body:not(.login-page) .header-toggle,
.header-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--admin-border);
  background: #ffffff;
  color: #5e6b7e;
  box-shadow: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

body:not(.login-page) .header-toggle:hover,
.header-icon-btn:hover {
  transform: none;
  background: #f7fafc;
  color: var(--admin-teal);
  box-shadow: none;
}

body:not(.login-page) .header .toggle-sidebar-btn {
  color: #354052;
  font-size: 1.08rem;
  font-weight: 400;
  text-shadow: none;
}

.header-search {
  flex: 1 1 540px;
  max-width: 560px;
  height: 42px;
  padding: 0 10px 0 14px;
  border: 1px solid var(--admin-border);
  border-radius: 10px;
  background: #ffffff;
  color: #8b98aa;
  gap: 10px;
  position: relative;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.header-search.is-focused,
.header-search:focus-within {
  border-color: rgba(7, 139, 132, 0.52);
  box-shadow: 0 0 0 4px rgba(7, 139, 132, 0.1);
}

.header-search > .bi-search {
  color: var(--admin-teal);
  font-size: 0.95rem;
}

.header-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--admin-text);
  font-size: 0.82rem;
}

.header-search input::placeholder {
  color: #8b98aa;
}

.header-search-clear {
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #98a2b3;
  display: none;
  align-items: center;
  justify-content: center;
  flex: 0 0 24px;
  font-size: 0.7rem;
}

.header-search.has-value .header-search-clear {
  display: inline-flex;
}

.header-search-clear:hover {
  background: #edf2f7;
  color: #344054;
}

.header-search-key {
  min-width: 58px;
  height: 24px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: #98a2b3;
}

.header-search-key kbd {
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  border: 1px solid #d5dfed;
  border-bottom-width: 2px;
  border-radius: 6px;
  background: #f8fafc;
  color: #667085;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 800;
  box-shadow: none;
}

.header-search-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  z-index: 1040;
  padding: 10px;
  border: 1px solid #dce5f2;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.14);
  display: none;
}

.header-search-panel.is-open {
  display: grid;
  gap: 6px;
}

.search-panel-title {
  padding: 2px 4px 6px;
  color: #77859a;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.header-search-panel button {
  min-height: 38px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #344054;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  text-align: left;
  font-size: 0.82rem;
  font-weight: 800;
}

.header-search-panel button i {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #e5f5f3;
  color: var(--admin-teal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 28px;
}

.header-search-panel button:hover,
.header-search-panel button:focus-visible {
  background: #f4f7f9;
  outline: 0;
}

.header-search-panel__action.is-active {
  background: #f4f7f9;
  outline: 0;
}

.header-search-panel__copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.header-search-panel__copy strong,
.header-search-panel__copy small {
  display: block;
  line-height: 1.2;
  text-align: left;
}

.header-search-panel__copy strong {
  color: inherit;
  font-size: 0.82rem;
  font-weight: 700;
}

.header-search-panel__copy small {
  color: #77859a;
  font-size: 0.72rem;
  font-weight: 600;
}

.header-search-panel__empty {
  min-height: 60px;
  padding: 10px 8px 6px;
  border-radius: 10px;
  color: #77859a;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
}

.header-search-panel__empty i {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--cv-red-075);
  color: var(--cv-red-900);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 28px;
}

body:not(.login-page) .header-nav ul {
  gap: 6px;
  padding-left: 0;
}

.header-icon-btn.active-locale {
  color: var(--admin-teal);
  font-weight: 800;
  font-size: 0.78rem;
}

/* Icono cardiovascular — latido "online" continuo */
@keyframes hdr-heartbeat {
  0% {
    transform: scale(1);
    filter: drop-shadow(0 0 0px rgba(23, 107, 135, 0));
  }
  8% {
    transform: scale(1.4);
    filter: drop-shadow(0 0 10px rgba(23, 107, 135, 0.8));
  }
  17% {
    transform: scale(1.08);
    filter: drop-shadow(0 0 4px rgba(23, 107, 135, 0.3));
  }
  26% {
    transform: scale(1.25);
    filter: drop-shadow(0 0 7px rgba(23, 107, 135, 0.6));
  }
  40% {
    transform: scale(1);
    filter: drop-shadow(0 0 0px rgba(23, 107, 135, 0));
  }
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 0px rgba(23, 107, 135, 0));
  }
}
@keyframes hdr-heartbeat-dark {
  0% {
    transform: scale(1);
    filter: drop-shadow(0 0 0px rgba(100, 181, 201, 0));
  }
  8% {
    transform: scale(1.4);
    filter: drop-shadow(0 0 12px rgba(100, 181, 201, 0.85));
  }
  17% {
    transform: scale(1.08);
    filter: drop-shadow(0 0 4px rgba(100, 181, 201, 0.35));
  }
  26% {
    transform: scale(1.25);
    filter: drop-shadow(0 0 8px rgba(100, 181, 201, 0.65));
  }
  40% {
    transform: scale(1);
    filter: drop-shadow(0 0 0px rgba(100, 181, 201, 0));
  }
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 0px rgba(100, 181, 201, 0));
  }
}

.header-icon-btn.has-badge span {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #d92d20;
  color: #ffffff;
  border: 2px solid #ffffff;
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 14px;
}

.header-notifications-wrap {
  position: relative;
}

.header-notifications-overlay {
  position: fixed;
  top: 64px;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(16, 47, 58, 0.18);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
  z-index: 1190;
}

.header-notifications-wrap.is-open .header-notifications-overlay {
  opacity: 1;
  pointer-events: auto;
}

.header-notifications-panel {
  position: fixed;
  top: 64px;
  right: 0;
  width: min(420px, calc(100vw - 20px));
  height: calc(100vh - 76px);
  max-height: calc(100vh - 76px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: 24px 0 0 24px;
  border: 1px solid #ead7da;
  background:
    radial-gradient(
      circle at top right,
      rgba(23, 107, 135, 0.08),
      transparent 30%
    ),
    linear-gradient(180deg, #ffffff 0%, #fcf8f9 100%);
  box-shadow: 0 26px 48px rgba(15, 76, 92, 0.18);
  transform: translateX(calc(100% + 18px));
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.22s ease;
  z-index: 1350;
}

.header-notifications-wrap.is-open .header-notifications-panel {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

/* Panel header - gradiente azul */
.header-notifications-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #14607a 0%, #b72133 100%);
  flex-shrink: 0;
}

.header-notifications-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-size: 0.98rem;
  font-weight: 800;
}

.header-notifications-title i {
  font-size: 1rem;
}

.header-notifications-close {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 10px;
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.16s ease;
}

.header-notifications-close:hover,
.header-notifications-close:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  outline: 0;
}

/* Barra de resumen */
.header-notifications-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 16px;
  border-bottom: 1px solid #e8edf5;
  flex-shrink: 0;
}

.header-notifications-bar__info {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #374151;
  font-size: 0.77rem;
  font-weight: 700;
}

.header-notifications-bar__info i {
  color: #14607a;
  font-size: 0.8rem;
}

.header-notifications-mark-all {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 26px;
  padding: 0 10px;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  background: #ffffff;
  color: #374151;
  font-size: 0.71rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    background 0.15s ease,
    border-color 0.15s ease;
}

.header-notifications-mark-all i {
  color: #14607a;
  font-size: 0.8rem;
}

.header-notifications-mark-all:hover,
.header-notifications-mark-all:focus-visible {
  background: #f4f9fb;
  border-color: #ebbcc2;
  outline: 0;
}

.header-notifications-mark-all.is-all-read {
  background: linear-gradient(135deg, #14607a 0%, #b72133 100%);
  border-color: transparent;
  color: #ffffff;
}

.header-notifications-mark-all.is-all-read i {
  color: #ffffff;
}

.header-notifications-mark-all.is-all-read:hover,
.header-notifications-mark-all.is-all-read:focus-visible {
  background: linear-gradient(135deg, #7d1c2a 0%, #a3202e 100%);
  border-color: transparent;
}

/* Lista */
.header-notifications-list {
  display: grid;
  gap: 10px;
  padding: 12px;
  overflow-y: auto;
  flex: 1 1 auto;
  align-content: start;
  grid-auto-rows: max-content;
}

.header-notifications-empty {
  min-height: 148px;
  display: grid;
  place-items: center;
  gap: 10px;
  padding: 18px;
  border-radius: 16px;
  border: 1px dashed #d1d5db;
  color: #6b7280;
  text-align: center;
}

.header-notifications-empty i {
  font-size: 1.4rem;
  color: #9ca3af;
}

/* Tarjetas */
.header-notification-card {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  cursor: default;
}

.header-notification-card--info {
  background: linear-gradient(160deg, #eff6ff 0%, #dbeafe 100%);
  border-color: #bfdbfe;
}
.header-notification-card--success {
  background: linear-gradient(160deg, #f0fdf4 0%, #dcfce7 100%);
  border-color: #bbf7d0;
}
.header-notification-card--warning {
  background: linear-gradient(160deg, #fffbeb 0%, #fef3c7 100%);
  border-color: #fde68a;
}
.header-notification-card--danger {
  background: linear-gradient(160deg, #fff3f3 0%, #ffe4e4 100%);
  border-color: #e79a9a;
}
.header-notification-card.is-seen {
  background: #f9fafb;
  border-color: #e5e7eb;
  opacity: 0.72;
}

/* Rail / Icono */
.header-notification-rail {
  display: flex;
  justify-content: center;
  padding-top: 2px;
}

.header-notification-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex: 0 0 40px;
  color: #ffffff;
}

.header-notification-card--info .header-notification-icon {
  background: #3a86c8;
}
.header-notification-card--success .header-notification-icon {
  background: #16a34a;
}
.header-notification-card--warning .header-notification-icon {
  background: #f59e0b;
}
.header-notification-card--danger .header-notification-icon {
  background: #d64545;
}
.header-notification-card.is-seen .header-notification-icon {
  background: #e5e7eb;
  color: #9ca3af;
}

/* Cuerpo */
.header-notification-body {
  display: grid;
  gap: 5px;
  min-width: 0;
}

/* Fila meta: badge + fecha + check */
.header-notification-meta {
  display: flex;
  align-items: center;
  gap: 5px;
}

.header-notification-badge {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  padding: 0 7px;
  border-radius: 999px;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #ffffff;
  flex-shrink: 0;
}

.header-notification-badge--info {
  background: #3a86c8;
}
.header-notification-badge--success {
  background: #16a34a;
}
.header-notification-badge--warning {
  background: #f59e0b;
}
.header-notification-badge--danger {
  background: #d64545;
}

.header-notification-date {
  color: #6b7280;
  font-size: 0.68rem;
  font-weight: 500;
  flex: 1 1 auto;
  text-align: right;
  white-space: nowrap;
}

.header-notification-ack {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  background: #ffffff;
  color: #9ca3af;
  font-size: 0.76rem;
  cursor: pointer;
  flex-shrink: 0;
  transition:
    background 0.14s ease,
    border-color 0.14s ease,
    color 0.14s ease;
}

.header-notification-ack:hover,
.header-notification-ack:focus-visible {
  background: #dcfce7;
  border-color: #86efac;
  color: #16a34a;
  outline: 0;
}

.header-notification-ack-done {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #dcfce7;
  color: #16a34a;
  font-size: 0.76rem;
  flex-shrink: 0;
}

/* Titulo */
.header-notification-title {
  display: block;
  color: #111827;
  font-size: 0.81rem;
  font-weight: 800;
  line-height: 1.35;
}

.header-notification-card.is-seen .header-notification-title {
  color: #6b7280;
}

/* Mensaje con clamp */
.header-notification-message {
  margin: 0;
  color: #4b5563;
  font-size: 0.77rem;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.header-notification-card.is-expanded .header-notification-message {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}

.header-notification-card.is-seen .header-notification-message {
  color: #9ca3af;
}

/* Enlace */
.header-notification-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #14607a;
  font-size: 0.74rem;
  font-weight: 700;
  text-decoration: none;
}

.header-notification-link:hover,
.header-notification-link:focus-visible {
  color: #6f1826;
  text-decoration: underline;
  outline: 0;
}

/* Boton expandir */
.header-notification-expand {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: #9ca3af;
  font-size: 0.7rem;
  cursor: pointer;
  transition: color 0.14s ease;
}

.header-notification-expand i {
  transition: transform 0.2s ease;
}

.header-notification-card.is-expanded .header-notification-expand i {
  transform: rotate(180deg);
}

.header-notification-expand:hover {
  color: #6b7280;
}

/* Footer */
.header-notifications-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 16px;
  border-top: 1px solid #e8edf5;
  flex-shrink: 0;
}

.header-notifications-foot__updated {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #6b7280;
  font-size: 0.68rem;
}

.header-notifications-foot__dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #22c55e;
  flex-shrink: 0;
}

.header-notifications-foot__brand {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #6b7280;
  font-size: 0.68rem;
  font-weight: 600;
}

.header-notifications-foot__brand i {
  color: #9ca3af;
  font-size: 0.76rem;
}

/* ================================================================
   PROJECT BROADCAST MODAL - modal nativo (global, carga en todas las paginas)
   ================================================================ */

body.project-broadcast-modal-open {
  overflow: hidden;
}

.project-broadcast-modal {
  position: fixed;
  inset: 0;
  z-index: 1380;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.project-broadcast-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.project-broadcast-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 10, 14, 0.52);
  backdrop-filter: blur(2px);
}

.project-broadcast-modal__dialog {
  position: relative;
  width: min(620px, 100%);
  max-height: min(90vh, 720px);
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  border: 1px solid rgba(23, 107, 135, 0.16);
  background: #ffffff;
  box-shadow: 0 34px 70px rgba(32, 18, 25, 0.24);
  overflow: hidden;
  transform: scale(0.96) translateY(8px);
  transition: transform 0.22s ease;
}

.project-broadcast-modal.is-open .project-broadcast-modal__dialog {
  transform: scale(1) translateY(0);
}

.project-broadcast-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 72px;
  padding: 16px 20px;
  background: linear-gradient(135deg, #b72133 0%, #cb2d3f 100%);
  flex-shrink: 0;
}

.project-broadcast-modal__title {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
}

.project-broadcast-modal__title i {
  font-size: 1rem;
}

.project-broadcast-modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  padding: 0;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1rem;
  cursor: pointer;
  transition:
    background 0.18s ease,
    border-color 0.18s ease;
}

.project-broadcast-modal__close:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
}

.project-broadcast-modal__body {
  display: grid;
  gap: 12px;
  padding: 14px 14px 10px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.project-broadcast-modal__body::-webkit-scrollbar {
  width: 8px;
}
.project-broadcast-modal__body::-webkit-scrollbar-thumb {
  background: rgba(20, 96, 122, 0.18);
  border-radius: 999px;
  border: 2px solid #ffffff;
}
.project-broadcast-modal__body::-webkit-scrollbar-track {
  background: transparent;
}

.project-broadcast-modal__footer {
  display: flex;
  gap: 8px;
  padding: 12px 14px 14px;
  background: #ffffff;
  border-top: 1px solid #e8edf5;
  flex-shrink: 0;
}

.project-broadcast-modal__action {
  flex: 1 1 0;
  min-height: 42px;
  border-radius: 12px;
  font-size: 0.84rem;
  font-weight: 800;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease;
}

.project-broadcast-modal__action--primary {
  background: linear-gradient(135deg, #14607a 0%, #b62d42 100%);
  color: #fff;
  box-shadow: 0 12px 22px rgba(23, 107, 135, 0.18);
}

.project-broadcast-modal__action--primary:hover {
  background: linear-gradient(135deg, #7d1c2a 0%, #a72a3d 100%);
  color: #fff;
}

.project-broadcast-modal__action--secondary {
  background: #ffffff;
  border-color: #c4a3ab;
  color: #14607a;
}

.project-broadcast-modal__action--secondary:hover {
  background: #f4f9fb;
  color: #7c1c2e;
}

/* Tarjetas del modal */
.project-broadcast-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 14px;
  padding: 14px 14px 16px;
  border-radius: 16px;
  border: 1px solid #edd07a;
  background: linear-gradient(180deg, #fff9e8 0%, #fff8ea 100%);
  align-items: flex-start;
}

.project-broadcast-card--info {
  border-color: #9bc7fb;
  background: linear-gradient(180deg, #eef6ff 0%, #e8f3ff 100%);
}
.project-broadcast-card--success {
  border-color: #86efac;
  background: linear-gradient(180deg, #effff3 0%, #ebfff1 100%);
}
.project-broadcast-card--warning {
  border-color: #f4ce67;
  background: linear-gradient(180deg, #fff9e8 0%, #fff8ea 100%);
}
.project-broadcast-card--danger {
  border-color: #efc0b0;
  background: linear-gradient(180deg, #fff3ee 0%, #fff1eb 100%);
}

.project-broadcast-card__rail {
  display: flex;
  justify-content: center;
  padding-top: 4px;
}

.project-broadcast-card__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  background: #ff8b1f;
  color: #ffffff;
}

.project-broadcast-card--info .project-broadcast-card__icon {
  background: #2f80ed;
}
.project-broadcast-card--success .project-broadcast-card__icon {
  background: #1f9d55;
}
.project-broadcast-card--warning .project-broadcast-card__icon {
  background: #ff8b1f;
}
.project-broadcast-card--danger .project-broadcast-card__icon {
  background: #e2573e;
}

.project-broadcast-card__content {
  display: grid;
  gap: 8px;
}

.project-broadcast-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.project-broadcast-card__badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 10px;
  border-radius: 999px;
  background: #ff8b1f;
  color: #fff;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-broadcast-card__badge--info {
  background: #2f80ed;
}
.project-broadcast-card__badge--success {
  background: #1f9d55;
}
.project-broadcast-card__badge--warning {
  background: #ff8b1f;
}
.project-broadcast-card__badge--danger {
  background: #e2573e;
}

.project-broadcast-card__date {
  color: #8c98a9;
  font-size: 0.7rem;
  font-weight: 600;
}

.project-broadcast-card__title {
  margin: 0;
  color: #24314d;
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.project-broadcast-card__message {
  margin: 0;
  color: #404d67;
  font-size: 0.86rem;
  line-height: 1.62;
  word-break: break-word;
}

.project-broadcast-card__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #14607a;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
}

.project-broadcast-card__link:hover,
.project-broadcast-card__link:focus-visible {
  color: #6f1826;
  text-decoration: underline;
  outline: 0;
}

@media (max-width: 480px) {
  .project-broadcast-modal {
    padding: 12px;
    align-items: flex-end;
  }
  .project-broadcast-modal__dialog {
    border-radius: 20px 20px 12px 12px;
    max-height: 88vh;
  }
  .project-broadcast-card {
    grid-template-columns: 1fr;
  }
  .project-broadcast-card__rail {
    justify-content: flex-start;
    padding-top: 0;
  }
  .project-broadcast-modal__footer {
    flex-direction: column-reverse;
  }
}

body:not(.login-page) .nav-profile {
  gap: 10px;
  padding: 0 0 0 10px !important;
  border: 0;
  border-radius: 8px;
  background: transparent;
}

body:not(.login-page) .nav-profile-avatar,
.profile-summary-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e8f7f6;
  color: var(--admin-teal);
  border: 1px solid #cdecea;
  box-shadow: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
}

body:not(.login-page) .nav-profile-copy strong {
  color: #202938;
  font-size: 0.84rem;
  line-height: 1.15;
}

body:not(.login-page) .nav-profile-copy small {
  color: #667085;
  font-size: 0.72rem;
  line-height: 1.15;
}



body:not(.login-page) .sidebar-nav {
  padding: 0;
}

body:not(.login-page) .sidebar-nav .nav-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 10px 10px;
  color: #77859a;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body:not(.login-page) .sidebar-nav .nav-heading::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--admin-border);
}

body:not(.login-page) .sidebar-nav .nav-item {
  margin-bottom: 6px;
}

body:not(.login-page) .sidebar-nav .nav-link {
  min-height: 46px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 0;
  color: #273244;
  gap: 10px;
  background: transparent;
}

body:not(.login-page) .sidebar-nav button.nav-link {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  border: 0;
  margin: 0;
  width: 100%;
  font: inherit;
  line-height: 1;
  color: inherit;
  vertical-align: middle;
  appearance: none;
  cursor: pointer;
  text-align: left;
}

body:not(.login-page) .sidebar-nav .nav-link::before {
  display: none;
}

body:not(.login-page) .sidebar-nav .nav-link:hover,
body:not(.login-page) .sidebar-nav .nav-link:not(.collapsed) {
  background: var(--admin-teal-soft);
  color: #1f2937;
}

.nav-link-count {
  margin-left: auto;
  border-radius: 999px;
  background: #b9ede9;
  color: #087d77;
  padding: 2px 8px;
  font-size: 0.66rem;
  font-weight: 800;
}

.nav-link-count {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--admin-teal);
  color: #ffffff;
}

body:not(.login-page) #main {
  margin-top: 64px;
  padding: 30px 36px 38px;
}

body:not(.login-page) .card {
  border-radius: 8px;
  border: 1px solid var(--admin-border);
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(16, 24, 40, 0.06);
  backdrop-filter: none;
}

.home-titlebar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 24px;
}

.home-titlebar h1 {
  margin: 0;
  color: #1f2937;
  font-size: 1.45rem;
  font-weight: 800;
}

.home-titlebar p {
  margin: 6px 0 0;
  color: #667085;
  font-size: 0.86rem;
}

.home-titlebar .breadcrumb {
  margin: 0;
  color: #667085;
  font-size: 0.82rem;
}

.home-titlebar .breadcrumb a {
  color: #667085;
}

body:not(.login-page) .card,
body:not(.login-page) .admin-card,
body:not(.login-page) .dashboard-panel-card,
body:not(.login-page) .dashboard-profile-card,
body:not(.login-page) .stat-card,
body:not(.login-page) .metric-card {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.05);
  overflow: hidden;
}

.admin-card {
  margin-bottom: 0;
}

.home-titlebar {
  margin-bottom: 22px;
}

.home-titlebar h1 {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.home-titlebar p {
  max-width: 720px;
  margin-top: 6px;
  font-size: 0.92rem;
  line-height: 1.55;
}

.admin-card-header {
  min-height: auto;
  padding: 18px 22px 14px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.admin-card-header h2 {
  margin: 0;
  color: #202938;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.admin-card-header span {
  display: block;
  margin-top: 4px;
  color: #667085;
  font-size: 0.76rem;
  line-height: 1.45;
}

.admin-card .card-body {
  padding: 18px;
}

body.login-page {
  --auth-field-height: var(--form-field-height);
  --auth-field-radius: 12px;
  --auth-field-bg: #fff;
  --auth-field-border: #dbe3ee;
  --auth-field-text: #0f172a;
  --auth-field-placeholder: #94a3b8;
  --auth-field-focus-border: var(--cv-red-900, #0f4c5c);
  --auth-field-focus-shadow: 0 0 0 4px rgba(15, 76, 92, 0.1);
}

.login-input-wrap .form-control {
  min-height: var(--auth-field-height);
  padding-left: 42px;
  padding-right: 56px;
  border-radius: var(--auth-field-radius);
  border: 1px solid var(--auth-field-border);
  background: var(--auth-field-bg);
  color: var(--auth-field-text);
  box-shadow: none;
  font-size: 0.92rem;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease,
    color 0.25s ease;
}

.login-input-wrap .form-control::placeholder {
  color: var(--auth-field-placeholder);
}

.login-input-wrap .form-control:focus {
  border-color: var(--auth-field-focus-border);
  box-shadow: var(--auth-field-focus-shadow);
  outline: none;
}

body:not(.login-page) {
  --admin-field-height: var(--form-field-height);
  --admin-field-radius: 8px;
  --admin-field-padding-y: 8px;
  --admin-field-padding-x: 12px;
  --admin-field-padding-right: 38px;
  --admin-field-bg: rgba(255, 255, 255, 0.96);
  --admin-field-focus-bg: #ffffff;
  --admin-field-border: #d5deeb;
  --admin-field-text: #172033;
  --admin-field-placeholder: #8b94a7;
  --admin-field-focus-border: rgba(23, 107, 135, 0.72);
  --admin-field-focus-shadow: 0 0 0 3px rgba(23, 107, 135, 0.14);
  --admin-field-disabled-bg: #f3f4f6;
  --admin-field-disabled-text: #8a94a6;
  --admin-shell-arrow: #2a87a3;
  --admin-shell-arrow-active: #c45970;
  --admin-select-dropdown-bg: #ffffff;
  --admin-select-dropdown-border: #d5deeb;
  --admin-select-dropdown-shadow: 0 18px 32px rgba(15, 23, 42, 0.12);
  --admin-select-option-text: #172033;
  --admin-select-option-selected-bg: #f8dfe4;
  --admin-select-option-selected-text: #14607a;
  --admin-select-option-highlight-bg: #f3cbd4;
  --admin-select-option-highlight-text: #6f1b27;
}

body:not(.login-page) .form-control,
body:not(.login-page) .form-select,
body:not(.login-page) textarea,
body:not(.login-page) select,
body:not(.login-page) .input-group-text {
  min-height: var(--admin-field-height);
  border: 1px solid var(--admin-field-border);
  border-radius: var(--admin-field-radius);
  background: var(--admin-field-bg);
  color: var(--admin-field-text);
  box-shadow: none;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background-color 0.18s ease,
    background-position 0.18s ease,
    background-size 0.18s ease;
}

body:not(.login-page) .form-control,
body:not(.login-page) .form-select,
body:not(.login-page) textarea,
body:not(.login-page) select {
  padding: var(--admin-field-padding-y) var(--admin-field-padding-x);
  font-size: var(--text-base);
}

body:not(.login-page) .select-shell {
  position: relative;
  display: block;
  width: 100%;
}

body:not(.login-page) .select-shell > .form-select,
body:not(.login-page) .select-shell > select,
body:not(.login-page) .select-shell > .nu-select-control {
  width: 100%;
  padding-right: calc(var(--admin-field-padding-right) + 0.1rem) !important;
  background-image: none !important;
}

body:not(.login-page) .select-shell > .form-select:hover,
body:not(.login-page) .select-shell > .form-select:focus,
body:not(.login-page) .select-shell > .form-select.is-open,
body:not(.login-page) .select-shell > .form-select.is-valid,
body:not(.login-page) .select-shell > .form-select.is-invalid,
body:not(.login-page) .select-shell > select:hover,
body:not(.login-page) .select-shell > select:focus,
body:not(.login-page) .select-shell > select.is-open,
body:not(.login-page) .select-shell > select.is-valid,
body:not(.login-page) .select-shell > select.is-invalid,
body:not(.login-page) .was-validated .select-shell > .form-select:valid,
body:not(.login-page) .was-validated .select-shell > .form-select:invalid,
body:not(.login-page) .was-validated .select-shell > select:valid,
body:not(.login-page) .was-validated .select-shell > select:invalid {
  padding-right: calc(var(--admin-field-padding-right) + 0.1rem) !important;
  background-image: none !important;
}

body:not(.login-page) .select-shell-arrow {
  position: absolute;
  top: 50%;
  right: 0.8rem;
  width: 1rem;
  height: 1rem;
  margin-top: -0.5rem;
  pointer-events: none;
  color: var(--admin-shell-arrow);
  transition:
    transform 0.2s ease,
    color 0.18s ease,
    opacity 0.18s ease;
}

body:not(.login-page) .select-shell-arrow::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.46rem;
  height: 0.46rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translate(-50%, -62%) rotate(45deg);
}

body:not(.login-page) .select-shell.is-open .select-shell-arrow {
  transform: rotate(180deg);
}

body:not(.login-page) .select-shell:hover .select-shell-arrow,
body:not(.login-page) .select-shell:focus-within .select-shell-arrow {
  color: var(--admin-shell-arrow-active);
  opacity: 1;
}

body:not(.login-page) .form-select:not([multiple]):not([size]),
body:not(.login-page) select:not([multiple]):not([size]) {
  padding-right: var(--admin-field-padding-right);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: var(--admin-select-arrow-down);
  background-position: right 0.7rem center;
  background-size: 16px 12px;
  background-repeat: no-repeat;
}

body:not(.login-page) .form-select,
body:not(.login-page) select {
  line-height: 1.25;
}

body:not(.login-page) .form-select::-ms-expand,
body:not(.login-page) select::-ms-expand {
  display: none;
}

body:not(.login-page) .form-select:focus-visible,
body:not(.login-page) select:focus-visible,
body:not(.login-page) .form-control:focus-visible,
body:not(.login-page) textarea:focus-visible {
  outline: none;
}

body:not(.login-page) .form-select.is-valid:not([multiple]):not([size]),
body:not(.login-page) .form-select.is-invalid:not([multiple]):not([size]),
body:not(.login-page) select.is-valid:not([multiple]):not([size]),
body:not(.login-page) select.is-invalid:not([multiple]):not([size]),
body:not(.login-page)
  .was-validated
  .form-select:valid:not([multiple]):not([size]),
body:not(.login-page)
  .was-validated
  .form-select:invalid:not([multiple]):not([size]),
body:not(.login-page) .was-validated select:valid:not([multiple]):not([size]),
body:not(.login-page)
  .was-validated
  select:invalid:not([multiple]):not([size]) {
  padding-right: var(--admin-field-padding-right) !important;
  background-image: var(--admin-select-arrow-down) !important;
  background-position: right 0.7rem center !important;
  background-size: 16px 12px !important;
  background-repeat: no-repeat !important;
}

body:not(.login-page) textarea {
  min-height: 120px;
  resize: vertical;
}

body:not(.login-page) .input-group-text {
  padding: 0 0.9rem;
  background: var(--admin-field-bg);
  color: #6b7280;
}

body:not(.login-page) .form-control::placeholder,
body:not(.login-page) textarea::placeholder,
body:not(.login-page) select::placeholder {
  color: var(--admin-field-placeholder);
}

body:not(.login-page) .form-control:focus,
body:not(.login-page) .form-select:focus,
body:not(.login-page) textarea:focus,
body:not(.login-page) select:focus {
  background-color: var(--admin-field-focus-bg);
  border-color: var(--admin-field-focus-border);
  box-shadow: var(--admin-field-focus-shadow);
}

body:not(.login-page) .form-select:hover,
body:not(.login-page) .form-select:focus,
body:not(.login-page) .form-select.is-open,
body:not(.login-page) select:hover:not([multiple]):not([size]),
body:not(.login-page) select:focus:not([multiple]):not([size]),
body:not(.login-page) select.is-open:not([multiple]):not([size]) {
  background-image: var(--admin-select-arrow-up);
  background-position: right 0.7rem center;
  background-size: 16px 12px;
}

body:not(.login-page) .form-control:disabled,
body:not(.login-page) .form-select:disabled,
body:not(.login-page) textarea:disabled,
body:not(.login-page) select:disabled {
  background-color: var(--admin-field-disabled-bg);
  color: var(--admin-field-disabled-text);
}

body:not(.login-page) .invalid-feedback {
  margin-top: 0.38rem;
  font-size: 0.75rem;
}

body:not(.login-page) .btn,
body:not(.login-page) .admin-btn {
  border-radius: 10px;
}

body:not(.login-page) .rgp-date-hub,
body:not(.login-page) .rcv-date-hub {
  position: relative;
}

body:not(.login-page) .rgp-date-trigger,
body:not(.login-page) .rcv-date-trigger {
  width: 100%;
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0.25rem 0.75rem;
  border: 1px solid #d5deeb;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  color: #8b94a7;
  text-align: left;
  cursor: pointer;
  box-shadow: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    color 0.2s ease;
}

body:not(.login-page) .rgp-date-trigger:hover,
body:not(.login-page) .rcv-date-trigger:hover {
  border-color: rgba(23, 107, 135, 0.6);
}

body:not(.login-page) .rgp-date-trigger.is-open,
body:not(.login-page) .rcv-date-trigger.is-open {
  border-color: rgba(23, 107, 135, 0.72);
  box-shadow: 0 0 0 3px rgba(23, 107, 135, 0.14);
}

body:not(.login-page) .rgp-date-trigger.has-value,
body:not(.login-page) .rcv-date-trigger.has-value {
  color: #172033;
}

body:not(.login-page) .rgp-date-trigger__icon,
body:not(.login-page) .rcv-date-trigger__icon {
  color: #14607a;
  font-size: 0.95rem;
  flex-shrink: 0;
}

body:not(.login-page) .rgp-date-trigger__range,
body:not(.login-page) .rcv-date-trigger__range {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body:not(.login-page) .rgp-date-trigger__caret,
body:not(.login-page) .rcv-date-trigger__caret {
  color: #8b94a7;
  font-size: 0.7rem;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

body:not(.login-page) .rgp-date-trigger.is-open .rgp-date-trigger__caret,
body:not(.login-page) .rcv-date-trigger.is-open .rcv-date-trigger__caret {
  transform: rotate(180deg);
}

body:not(.login-page) .rgp-date-panel,
body:not(.login-page) .rcv-date-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 300;
  min-width: 680px;
  border: 1px solid rgba(207, 217, 229, 0.96);
  border-radius: 18px;
  background: #fff;
  box-shadow:
    0 20px 48px rgba(15, 23, 42, 0.12),
    0 4px 12px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

body:not(.login-page) .rgp-date-panel__inputs,
body:not(.login-page) .rcv-date-panel__inputs {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid #e8eef6;
  background: linear-gradient(180deg, #fbfdff, #f5f8fc);
}

body:not(.login-page) .rgp-date-panel__display,
body:not(.login-page) .rcv-date-panel__display {
  display: grid;
  gap: 6px;
  min-height: 70px;
  padding: 12px 14px;
  text-align: left;
  border: 1px solid #d6dfeb;
  border-radius: 10px;
  background: #fff;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

body:not(.login-page) .rgp-date-panel__display.is-active,
body:not(.login-page) .rcv-date-panel__display.is-active {
  border-color: rgba(20, 96, 122, 0.5);
  box-shadow: 0 0 0 3px rgba(20, 96, 122, 0.1);
}

body:not(.login-page) .rgp-date-panel__display-label,
body:not(.login-page) .rcv-date-panel__display-label {
  color: #738295;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

body:not(.login-page) .rgp-date-panel__display-value,
body:not(.login-page) .rcv-date-panel__display-value {
  color: #162946;
  font-size: 1.06rem;
  font-weight: 700;
  line-height: 1.2;
}

body:not(.login-page) .rgp-date-panel__separator,
body:not(.login-page) .rcv-date-panel__separator {
  color: #a0aec0;
  font-size: 0.85rem;
  flex-shrink: 0;
}

body:not(.login-page) .rgp-date-panel__calendar,
body:not(.login-page) .rcv-date-panel__calendar {
  position: relative;
  padding: 10px 18px 18px;
  background: #fff;
}

body:not(.login-page) .rgp-date-year-row,
body:not(.login-page) .rcv-date-year-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 6px;
}

body:not(.login-page) .rgp-date-year-nav,
body:not(.login-page) .rcv-date-year-nav {
  width: 26px;
  height: 26px;
  display: inline-grid;
  place-items: center;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #8f9ab0;
  font-size: 0.72rem;
  cursor: pointer;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}

body:not(.login-page) .rgp-date-year-nav:hover,
body:not(.login-page) .rcv-date-year-nav:hover {
  background: rgba(20, 96, 122, 0.08);
  color: #14607a;
}

body:not(.login-page) .rgp-date-year-input,
body:not(.login-page) .rcv-date-year-input {
  width: 58px;
  height: 28px;
  padding: 0 4px;
  border: none;
  border-bottom: 2px solid #dbe4f0;
  border-radius: 0;
  background: transparent;
  color: #153156;
  font-size: 1rem;
  font-weight: 800;
  text-align: center;
  outline: none;
  transition: border-color 0.2s ease;
  appearance: textfield;
  -moz-appearance: textfield;
}

body:not(.login-page) .rgp-date-year-input::-webkit-outer-spin-button,
body:not(.login-page) .rgp-date-year-input::-webkit-inner-spin-button,
body:not(.login-page) .rcv-date-year-input::-webkit-outer-spin-button,
body:not(.login-page) .rcv-date-year-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

body:not(.login-page) .rgp-date-panel__nav,
body:not(.login-page) .rcv-date-panel__nav {
  position: absolute;
  inset: 44px 18px auto 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

body:not(.login-page) .rgp-date-nav,
body:not(.login-page) .rcv-date-nav {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid #dbe4f0;
  background: #fff;
  color: #75849a;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
  cursor: pointer;
  pointer-events: auto;
  transition:
    color 0.15s ease,
    border-color 0.15s ease;
}

body:not(.login-page) .rgp-date-nav:hover,
body:not(.login-page) .rgp-date-nav:focus-visible,
body:not(.login-page) .rcv-date-nav:hover,
body:not(.login-page) .rcv-date-nav:focus-visible {
  color: #2a6ad8;
  border-color: rgba(42, 106, 216, 0.34);
}

body:not(.login-page) .rgp-date-calendars,
body:not(.login-page) .rcv-date-calendars {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

body:not(.login-page) .rgp-date-month,
body:not(.login-page) .rcv-date-month {
  min-width: 0;
}

body:not(.login-page) .rgp-date-month__head,
body:not(.login-page) .rcv-date-month__head {
  margin-bottom: 10px;
  text-align: center;
}

body:not(.login-page) .rgp-date-month__title,
body:not(.login-page) .rcv-date-month__title {
  color: #183153;
  font-size: 1rem;
  font-weight: 800;
  text-transform: capitalize;
}

body:not(.login-page) .rgp-date-month__weekdays,
body:not(.login-page) .rcv-date-month__weekdays,
body:not(.login-page) .rgp-date-month__days,
body:not(.login-page) .rcv-date-month__days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 2px;
}

body:not(.login-page) .rgp-date-month__weekdays,
body:not(.login-page) .rcv-date-month__weekdays {
  margin-bottom: 8px;
}

body:not(.login-page) .rgp-date-month__weekday,
body:not(.login-page) .rcv-date-month__weekday {
  padding: 6px 0;
  color: #94a3b8;
  font-size: 0.76rem;
  font-weight: 800;
  text-align: center;
}

body:not(.login-page) .rgp-date-day,
body:not(.login-page) .rcv-date-day {
  min-width: 0;
  height: 38px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  color: #14607a;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    box-shadow 0.15s ease;
}

body:not(.login-page) .rgp-date-day:hover:not(:disabled),
body:not(.login-page) .rcv-date-day:hover:not(:disabled) {
  background: rgba(20, 96, 122, 0.08);
}

body:not(.login-page) .rgp-date-day.is-empty,
body:not(.login-page) .rcv-date-day.is-empty {
  background: transparent;
  color: transparent;
  pointer-events: none;
}

body:not(.login-page) .rgp-date-day.is-in-range,
body:not(.login-page) .rcv-date-day.is-in-range {
  background: #f3e3e3;
  color: #14607a;
}

body:not(.login-page) .rgp-date-day.is-preview,
body:not(.login-page) .rcv-date-day.is-preview {
  background: #f0dfdf;
  color: #14607a;
}

body:not(.login-page) .rgp-date-day.is-preview-end,
body:not(.login-page) .rcv-date-day.is-preview-end,
body:not(.login-page) .rgp-date-day.is-selected,
body:not(.login-page) .rcv-date-day.is-selected {
  background: linear-gradient(135deg, #14607a, #b6314d);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(20, 96, 122, 0.28);
}

body:not(.login-page) .rgp-date-day.is-start,
body:not(.login-page) .rcv-date-day.is-start,
body:not(.login-page) .rgp-date-day.is-end,
body:not(.login-page) .rcv-date-day.is-end,
body:not(.login-page) .rgp-date-day.is-single,
body:not(.login-page) .rcv-date-day.is-single,
body:not(.login-page) .rgp-date-day.is-preview-end,
body:not(.login-page) .rcv-date-day.is-preview-end {
  border-radius: 6px;
}

body:not(.login-page) .rgp-date-day.is-disabled,
body:not(.login-page) .rcv-date-day.is-disabled {
  background: #f6f8fb;
  color: #c3cad6;
  cursor: not-allowed;
  box-shadow: none;
}

body:not(.login-page) .rgp-date-day.is-today,
body:not(.login-page) .rcv-date-day.is-today {
  box-shadow: inset 0 0 0 1px rgba(42, 106, 216, 0.3);
}

body:not(.login-page) .rgp-date-input-native,
body:not(.login-page) .rcv-date-input-native {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body:not(.login-page) .rgp-date-panel__footer,
body:not(.login-page) .rcv-date-panel__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 16px 14px;
  border-top: 1px solid #e8eef6;
  background: #fbfdff;
}

body:not(.login-page) .rgp-date-panel__footer-actions,
body:not(.login-page) .rcv-date-panel__footer-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

body:not(.login-page) .rgp-date-panel__hint,
body:not(.login-page) .rcv-date-panel__hint {
  color: #64748b;
  font-size: 0.76rem;
  line-height: 1.4;
}

body:not(.login-page) .rgp-date-clear-btn,
body:not(.login-page) .rcv-date-clear-btn {
  background: none;
  border: none;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 8px;
  cursor: pointer;
  transition:
    color 0.15s ease,
    background 0.15s ease;
}

body:not(.login-page) .rgp-date-clear-btn:hover,
body:not(.login-page) .rcv-date-clear-btn:hover {
  color: #14607a;
  background: rgba(20, 96, 122, 0.06);
}

.admin-btn {
  height: 38px;
  border-radius: 8px;
  border: 1px solid var(--admin-border);
  background: #ffffff;
  color: #344054;
  font-size: 0.82rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.admin-btn:hover {
  background: #f7fafc;
  border-color: #cbd5e1;
}

.admin-status-pill {
  margin: 0 !important;
  padding: 5px 10px;
  border-radius: 999px;
  background: #def7ec;
  color: #087443 !important;
  font-size: 0.72rem !important;
  font-weight: 800;
}

.nu-hero-card .card-body,
.nu-form-card .card-body,
.nu-side-card .card-body {
  padding: 22px;
}

.nu-hero-badges span,
.nu-password-box,
.nu-insight-card,
.nu-run-hint {
  border: 1px solid #e5e7eb;
  background: #fbfcfd;
  box-shadow: none;
}

.nu-run-hint {
  border-style: dashed;
  border-radius: 14px;
  padding: 14px 16px;
}

.nu-password-box {
  border-radius: 14px;
  padding: 16px;
}

.profile-summary-avatar {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  font-size: 1.3rem;
}

.rp-toast-stack {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 10060;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  pointer-events: none;
}

.rp-inline-toast {
  width: min(92vw, 380px);
  min-height: 60px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 12px;
  padding: 14px 14px 14px 16px;
  border-radius: 14px;
  color: #ffffff;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.22);
  pointer-events: auto;
  animation: rp-inline-toast-in 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.rp-inline-toast.is-hiding {
  animation: rp-inline-toast-out 0.22s ease both;
}

.rp-inline-toast--success {
  background: linear-gradient(135deg, #15803d 0%, #16a34a 100%);
}

.rp-inline-toast--error {
  background: linear-gradient(135deg, #a62929 0%, #d64545 100%);
}

.rp-inline-toast--warning {
  background: linear-gradient(135deg, #8a5d14 0%, #e9a23b 100%);
}

.rp-inline-toast--info,
.rp-inline-toast--question {
  background: linear-gradient(135deg, #0f6d8c 0%, #177ea3 100%);
}

.rp-inline-toast__icon {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.14);
  font-size: 1rem;
}

.rp-inline-toast__content {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.rp-inline-toast__title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  word-break: break-word;
}

.rp-inline-toast__text {
  font-size: 0.8rem;
  line-height: 1.45;
  opacity: 0.92;
  word-break: break-word;
}

.rp-inline-toast__close {
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: inherit;
  opacity: 0.82;
  cursor: pointer;
}

.rp-inline-toast__close:hover {
  background: rgba(255, 255, 255, 0.12);
  opacity: 1;
}

@keyframes rp-inline-toast-in {
  from {
    opacity: 0;
    transform: translate3d(20px, 8px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes rp-inline-toast-out {
  from {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
  to {
    opacity: 0;
    transform: translate3d(18px, 0, 0);
  }
}

.home-welcome-titlebar {
  margin-bottom: 18px;
}

@media (max-width: 1199px) {
  body:not(.login-page) #main {
    padding: 24px 20px;
  }

  

  
}
@media (max-width: 767px) {
  body:not(.login-page) #header.header {
    min-height: 64px;
    height: 64px;
    padding: 0 12px;
  }

  .header-left {
    gap: 10px;
    min-width: 0;
  }

  body:not(.login-page) .logo-copy strong {
    max-width: 128px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  body:not(.login-page) #main {
    padding: 20px 14px 28px;
  }

  .home-titlebar,
  .admin-card-header {
    flex-direction: column;
    align-items: flex-start;
  }

  }


/*--------------------------------------------------------------
# Profile Dropdown
--------------------------------------------------------------*/
body:not(.login-page) .header-nav .profile.profile-menu {
  width: 248px;
  min-width: 248px;
  padding: 0;
  overflow: hidden;
  border: 1px solid #dbe5f1;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.16);
}

body:not(.login-page) .header-nav .profile-menu .profile-menu-header {
  min-height: 70px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

body:not(.login-page) .header-nav .profile-menu .dropdown-header-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  flex: 0 0 42px;
  background: #e8f7f6;
  color: var(--admin-teal);
  border: 1px solid #bfe7e5;
  box-shadow: 0 8px 18px rgba(18, 167, 160, 0.16);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 800;
}

body:not(.login-page) .profile-menu-user {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

body:not(.login-page) .profile-menu-user strong {
  color: #202938;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.25;
}

body:not(.login-page) .profile-menu-user small {
  color: #667085;
  font-size: 0.8rem;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body:not(.login-page) .header-nav .profile-menu .dropdown-divider {
  margin: 0;
  border-color: #e3ebf5;
  opacity: 1;
}

body:not(.login-page) .header-nav .profile-menu .dropdown-item {
  min-height: 44px;
  margin: 0 8px 2px;
  padding: 8px 10px;
  border-radius: 8px;
  gap: 10px;
  color: #2d3748;
  font-size: 0.86rem;
  font-weight: 800;
  border: 1px solid transparent;
  transition:
    background-color 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

body:not(.login-page) .header-nav .profile-menu .profile-menu-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.1;
}

body:not(.login-page) .header-nav .profile-menu .profile-menu-copy strong {
  display: block;
  font-size: 0.86rem;
  font-weight: 800;
  color: inherit;
}

body:not(.login-page) .header-nav .profile-menu .profile-menu-copy small {
  display: block;
  font-size: 0.71rem;
  font-weight: 600;
  color: #7f8a9b;
}

body:not(.login-page) .header-nav .profile-menu .dropdown-item-estab {
  align-items: center;
  padding-top: 9px;
  padding-bottom: 9px;
}

body:not(.login-page)
  .header-nav
  .profile-menu
  li:first-of-type
  + li
  + li
  .dropdown-item {
  margin-top: 12px;
}

body:not(.login-page) .profile-menu-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f3f7fb;
  color: #6b778c;
  flex: 0 0 28px;
}

body:not(.login-page) .header-nav .profile-menu .dropdown-item i {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1;
}

body:not(.login-page) .header-nav .profile-menu .dropdown-item:hover,
body:not(.login-page) .header-nav .profile-menu .dropdown-item.active {
  background: linear-gradient(135deg, #f1fbfa, #e6f6f4);
  color: #067c77;
  border-color: #cdeceb;
  transform: translateX(2px);
  box-shadow: 0 10px 22px rgba(7, 149, 143, 0.12);
}

body:not(.login-page)
  .header-nav
  .profile-menu
  .dropdown-item:hover
  .profile-menu-icon,
body:not(.login-page)
  .header-nav
  .profile-menu
  .dropdown-item.active
  .profile-menu-icon {
  background: linear-gradient(135deg, #dcf4f2, #d3efec);
  color: #067c77;
  box-shadow: inset 0 0 0 1px rgba(6, 124, 119, 0.08);
}

body:not(.login-page)
  .header-nav
  .profile-menu
  .dropdown-item:hover
  .profile-menu-copy
  small,
body:not(.login-page)
  .header-nav
  .profile-menu
  .dropdown-item.active
  .profile-menu-copy
  small {
  color: #3d8b86;
}

body:not(.login-page) .header-nav .profile-menu .dropdown-item-logout {
  min-height: 52px;
  margin: 0;
  border-radius: 0;
  justify-content: center;
  color: #d92d20 !important;
  background: #ffffff;
  font-size: 0.86rem;
  border-top: 1px solid #f3c7c3;
  transition:
    background-color 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease,
    letter-spacing 0.18s ease;
}

body:not(.login-page) .header-nav .profile-menu .dropdown-item-logout:hover {
  background: linear-gradient(180deg, #fff6f5, #ffefed) !important;
  color: #b42318 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  letter-spacing: 0.01em;
}

/*--------------------------------------------------------------
# Cardiovascular Red Theme
--------------------------------------------------------------*/
:root {
  --cv-red-950: #0a2f3a;
  --cv-red-900: #0f4c5c;
  --cv-red-800: #136076;
  --cv-red-700: #176b87;
  --cv-red-600: #2a87a3;
  --cv-red-100: #dcedf2;
  --cv-red-075: #eaf4f7;
  --cv-red-050: #f4f9fb;
  --cv-ink: #263a43;
  --cv-muted: #667b85;
}

body:not(.login-page) {
  --admin-bg: #f4f7f9;
  --admin-surface: #ffffff;
  --admin-border: #dce5e9;
  --admin-text: var(--cv-ink);
  --admin-teal: var(--cv-red-900);
  --admin-teal-soft: var(--cv-red-075);
  --admin-red: var(--cv-red-700);
  --admin-select-arrow-down: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23176b87' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.8' d='M3.5 6l4.5 4 4.5-4'/%3e%3c/svg%3e");
  --admin-select-arrow-up: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23176b87' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.8' d='M3.5 10l4.5-4 4.5 4'/%3e%3c/svg%3e");
  background:
    radial-gradient(
      circle at top left,
      rgba(15, 76, 92, 0.07),
      transparent 22%
    ),
    var(--admin-bg);
}

body:not(.login-page) #header.header,
body:not(.login-page) .sidebar {
  border-color: var(--admin-border);
}

body:not(.login-page) .logo-copy strong,
body:not(.login-page) .home-titlebar h1,
body:not(.login-page) .admin-card-header h2 {
  color: var(--cv-red-950);
}

body:not(.login-page) .header-toggle,
.header-icon-btn,
body:not(.login-page) .nav-profile-avatar,
.profile-summary-avatar,
.metric-primary .metric-icon,
.metric-success .metric-icon,
.metric-warning .metric-icon,
.metric-danger .metric-icon,
.empty-dashboard-state span,
.quick-actions-grid i,
.profile-menu-icon {
  color: var(--cv-red-900);
}

body:not(.login-page) .nav-profile-avatar,
.profile-summary-avatar,
.metric-primary .metric-icon,
.metric-success .metric-icon,
.metric-warning .metric-icon,
.metric-danger .metric-icon,
.empty-dashboard-state span,
body:not(.login-page) .profile-menu-icon {
  background: var(--cv-red-075);
  border-color: #bcd9e2;
}

body:not(.login-page) .sidebar-nav .nav-link:hover,
body:not(.login-page) .sidebar-nav .nav-link:not(.collapsed),
body:not(.login-page) .header-nav .profile-menu .dropdown-item:hover,
body:not(.login-page) .header-nav .profile-menu .dropdown-item.active,
.quick-actions-grid a:hover {
  background: var(--cv-red-075);
  color: var(--cv-red-950);
}

.nav-link-count,
.admin-status-pill {
  background: var(--cv-red-100);
  color: var(--cv-red-900) !important;
}

.nav-link-count {
  background: var(--cv-red-900);
  color: #ffffff !important;
}

.header-search.is-focused,
.header-search:focus-within {
  border-color: rgba(15, 76, 92, 0.46);
  box-shadow: 0 0 0 4px rgba(15, 76, 92, 0.1);
}

.header-search > .bi-search,
.header-search-panel button i,
.header-icon-btn.active-locale,
body:not(.login-page) .header-toggle:hover,
.header-icon-btn:hover {
  color: var(--cv-red-900);
}

.header-search-panel button i {
  background: var(--cv-red-075);
}



.swal2-popup::before,
.swal2-modal::before,
.swal2-popup.rp-swal-popup::before,
.swal2-timer-progress-bar {
  background: linear-gradient(
    90deg,
    var(--cv-red-900),
    var(--cv-red-600)
  ) !important;
}

.swal2-icon.swal2-info,
.swal2-icon.swal2-question,
.swal2-icon.swal2-success {
  border-color: #cf8d95 !important;
  color: var(--cv-red-900) !important;
  background: var(--cv-red-050) !important;
}

.swal2-icon.swal2-error {
  border-color: #c66f79 !important;
  color: var(--cv-red-800) !important;
  background: #fff5f6 !important;
}

.rp-swal-confirm,
.swal2-styled.swal2-confirm,
.swal2-actions .btn-primary,
.swal2-actions .btn-danger {
  background: var(--cv-red-900) !important;
  border-color: var(--cv-red-900) !important;
  color: #ffffff !important;
}

.rp-swal-confirm:hover,
.swal2-styled.swal2-confirm:hover,
.swal2-actions .btn-primary:hover,
.swal2-actions .btn-danger:hover {
  background: var(--cv-red-800) !important;
  border-color: var(--cv-red-800) !important;
}

.rp-swal-badge,
.swal-session-icon {
  background: var(--cv-red-075);
  border-color: #efc4ca;
  color: var(--cv-red-900);
}

body.swal2-toast-shown .swal2-toast.swal2-icon-info,
body.swal2-toast-shown .swal2-toast.swal2-icon-question,
body.swal2-toast-shown .swal2-toast.swal2-icon-success {
  border-left-color: var(--cv-red-900) !important;
  background: #f4f9fb !important;
}

/* SweetAlert2 generic modals: keep custom styling only for toast notifications. */
.swal2-popup:not(.swal2-toast),
.swal2-modal:not(.swal2-toast) {
  width: 32em !important;
  max-width: 100% !important;
  padding: 0 0 1.25em !important;
  border: none !important;
  border-radius: 5px !important;
  background: #fff !important;
  color: #545454 !important;
  box-shadow: none !important;
  animation: swal2-show 0.3s !important;
}

.swal2-popup:not(.swal2-toast)::before,
.swal2-modal:not(.swal2-toast)::before {
  content: none !important;
  display: none !important;
}

.swal2-popup.swal2-hide:not(.swal2-toast) {
  animation: swal2-hide 0.15s forwards !important;
}

.swal2-popup:not(.swal2-toast) .swal2-title {
  margin: 0 !important;
  padding: 0.8em 1em 0 !important;
  color: #595959 !important;
  font-family: inherit !important;
  font-size: 1.875em !important;
  font-weight: 600 !important;
}

.swal2-popup:not(.swal2-toast) .swal2-html-container {
  margin: 1em 1.6em 0.3em !important;
  color: #545454 !important;
  font-size: 1.125em !important;
  line-height: normal !important;
}

.swal2-popup:not(.swal2-toast) .swal2-icon {
  width: 5em !important;
  height: 5em !important;
  margin: 2.5em auto 0.6em !important;
  background: transparent !important;
}

.swal2-popup:not(.swal2-toast) .swal2-actions {
  margin: 1.25em auto 0 !important;
  gap: 0 !important;
}

.swal2-popup:not(.swal2-toast) .swal2-styled {
  min-height: auto !important;
  border-radius: 0.25em !important;
  padding: 0.625em 1.1em !important;
  font-family: inherit !important;
  font-size: 1em !important;
  font-weight: 500 !important;
  transform: none !important;
}

.swal2-popup:not(.swal2-toast) .swal2-styled.swal2-confirm {
  border: 0 !important;
  background: #7066e0 !important;
  color: #fff !important;
}

.swal2-popup:not(.swal2-toast) .swal2-styled.swal2-cancel {
  border: 0 !important;
  background: #6e7881 !important;
  color: #fff !important;
}

/* legacy block removed — dark mode swal handled below */

/* Project toast standard: same structure and animation everywhere. */
body.swal2-toast-shown .swal2-container:has(.rp-toast-popup) {
  position: fixed !important;
  inset: 16px 16px auto auto !important;
  width: min(380px, calc(100vw - 32px)) !important;
  height: auto !important;
  padding: 0 !important;
  display: block !important;
  overflow: visible !important;
  background: transparent !important;
  pointer-events: none !important;
}

body.swal2-toast-shown .swal2-popup.swal2-toast.rp-toast-popup,
.swal2-popup.swal2-toast.rp-toast-popup {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 380px !important;
  min-height: 62px !important;
  grid-template-columns: 34px minmax(0, 1fr) !important;
  column-gap: 12px !important;
  margin: 0 !important;
  padding: 13px 15px !important;
  border: 1px solid rgba(19, 96, 118, 0.14) !important;
  border-left: 0 !important;
  border-radius: 12px !important;
  background: linear-gradient(180deg, #ffffff 0%, #f4f9fb 100%) !important;
  color: #172033 !important;
  box-shadow:
    0 18px 42px rgba(29, 18, 21, 0.14),
    0 0 0 1px rgba(19, 96, 118, 0.04) !important;
  pointer-events: auto !important;
}

body.swal2-toast-shown .swal2-popup.swal2-toast.rp-toast-popup::before,
.swal2-popup.swal2-toast.rp-toast-popup::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 auto 0 0 !important;
  width: 4px !important;
  border-radius: 12px 0 0 12px !important;
  background: var(--cv-red-900, #136076) !important;
  display: block !important;
}

body.swal2-toast-shown .swal2-popup.swal2-toast.rp-toast-popup .swal2-icon,
.swal2-popup.swal2-toast.rp-toast-popup .swal2-icon {
  grid-column: 1 !important;
  grid-row: 1 / span 2 !important;
  width: 30px !important;
  min-width: 30px !important;
  height: 30px !important;
  margin: 0 !important;
  align-self: center !important;
  background: #f4f9fb !important;
}

body.swal2-toast-shown .swal2-popup.swal2-toast.rp-toast-popup .swal2-title,
.swal2-popup.swal2-toast.rp-toast-popup .swal2-title,
.rp-toast-title {
  grid-column: 2 !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #172033 !important;
  font-family: var(--font-sans) !important;
  font-size: 0.9rem !important;
  font-weight: 750 !important;
  line-height: 1.35 !important;
  letter-spacing: 0 !important;
  text-align: left !important;
}

body.swal2-toast-shown
  .swal2-popup.swal2-toast.rp-toast-popup
  .swal2-html-container,
.swal2-popup.swal2-toast.rp-toast-popup .swal2-html-container {
  grid-column: 2 !important;
  margin: 2px 0 0 !important;
  padding: 0 !important;
  color: #536174 !important;
  font-size: 0.86rem !important;
  line-height: 1.38 !important;
  text-align: left !important;
}

body.swal2-toast-shown
  .swal2-popup.swal2-toast.rp-toast-popup
  .swal2-timer-progress-bar,
.swal2-popup.swal2-toast.rp-toast-popup .swal2-timer-progress-bar {
  height: 3px !important;
  background: linear-gradient(
    90deg,
    var(--cv-red-900, #136076),
    #c75a66
  ) !important;
}

body.swal2-toast-shown .swal2-popup.swal2-toast.rp-toast-popup.rp-toast-show,
.swal2-popup.swal2-toast.rp-toast-popup.rp-toast-show {
  animation: rp-toast-in 0.36s cubic-bezier(0.22, 1, 0.36, 1) both !important;
}

body.swal2-toast-shown .swal2-popup.swal2-toast.rp-toast-popup.rp-toast-hide,
.swal2-popup.swal2-toast.rp-toast-popup.rp-toast-hide {
  animation: rp-toast-out 0.22s ease-in both !important;
}

/* Final toast pattern: colored cards from bottom-right, smooth upward motion. */
@keyframes rp-toast-in {
  0% {
    opacity: 0;
    transform: translate3d(0, 22px, 0) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes rp-toast-out {
  0% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate3d(0, 16px, 0) scale(0.98);
  }
}

@keyframes rp-toast-icon-pop {
  0% {
    opacity: 0;
    transform: scale(0.72) rotate(-10deg);
  }
  70% {
    opacity: 1;
    transform: scale(1.08) rotate(0deg);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes rp-toast-copy-in {
  0% {
    opacity: 0;
    transform: translateY(6px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rp-toast-check-pop {
  0% {
    opacity: 0;
    transform: scale(0.45) rotate(-12deg);
  }
  60% {
    opacity: 1;
    transform: scale(1.14) rotate(0deg);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

body.swal2-toast-shown .swal2-container:has(.rp-toast-popup) {
  inset: auto 30px 28px auto !important;
  width: min(380px, calc(100vw - 60px)) !important;
  height: auto !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column-reverse !important;
  align-items: flex-end !important;
  gap: 14px !important;
  background: transparent !important;
  pointer-events: none !important;
}

body.swal2-toast-shown .swal2-popup.swal2-toast.rp-toast-popup,
.swal2-popup.swal2-toast.rp-toast-popup {
  width: 100% !important;
  max-width: 380px !important;
  min-height: 76px !important;
  grid-template-columns: 28px minmax(0, 1fr) 24px !important;
  column-gap: 10px !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 18px 16px !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: #166534 !important;
  color: #ffffff !important;
  box-shadow:
    0 20px 42px rgba(15, 23, 42, 0.22),
    0 2px 8px rgba(15, 23, 42, 0.12) !important;
  overflow: hidden !important;
  pointer-events: auto !important;
}

body.swal2-toast-shown .swal2-popup.swal2-toast.rp-toast-popup::before,
.swal2-popup.swal2-toast.rp-toast-popup::before {
  content: none !important;
  display: none !important;
}

body.swal2-toast-shown
  .swal2-popup.swal2-toast.rp-toast-popup.swal2-icon-success,
.swal2-popup.swal2-toast.rp-toast-popup.swal2-icon-success {
  background: linear-gradient(135deg, #166534, #15803d) !important;
  color: #ffffff !important;
}

body.swal2-toast-shown .swal2-popup.swal2-toast.rp-toast-popup.swal2-icon-info,
body.swal2-toast-shown
  .swal2-popup.swal2-toast.rp-toast-popup.swal2-icon-question,
.swal2-popup.swal2-toast.rp-toast-popup.swal2-icon-info,
.swal2-popup.swal2-toast.rp-toast-popup.swal2-icon-question {
  background: linear-gradient(135deg, #075985, #0e7490) !important;
  color: #f0fbff !important;
}

body.swal2-toast-shown
  .swal2-popup.swal2-toast.rp-toast-popup.swal2-icon-warning,
.swal2-popup.swal2-toast.rp-toast-popup.swal2-icon-warning {
  background: linear-gradient(135deg, #8a5d14, #e9a23b) !important;
  color: #fff8ed !important;
}

body.swal2-toast-shown .swal2-popup.swal2-toast.rp-toast-popup.swal2-icon-error,
.swal2-popup.swal2-toast.rp-toast-popup.swal2-icon-error {
  background: linear-gradient(135deg, #136076, #2a87a3) !important;
  color: #ffffff !important;
}

body.swal2-toast-shown .swal2-popup.swal2-toast.rp-toast-popup .swal2-icon,
.swal2-popup.swal2-toast.rp-toast-popup .swal2-icon {
  grid-column: 1 !important;
  grid-row: 1 / span 2 !important;
  width: 28px !important;
  min-width: 28px !important;
  height: 28px !important;
  margin: 0 !important;
  align-self: center !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.2) !important;
  color: currentColor !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18) !important;
  animation: rp-toast-icon-pop 0.34s cubic-bezier(0.22, 1, 0.36, 1) both !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

body.swal2-toast-shown
  .swal2-popup.swal2-toast.rp-toast-popup
  .swal2-icon
  .swal2-icon-content,
.swal2-popup.swal2-toast.rp-toast-popup .swal2-icon .swal2-icon-content {
  width: 100% !important;
  height: 100% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1.12rem !important;
  font-weight: 800 !important;
  line-height: 1 !important;
}

body.swal2-toast-shown
  .swal2-popup.swal2-toast.rp-toast-popup
  .swal2-icon
  .swal2-icon-content
  i,
.swal2-popup.swal2-toast.rp-toast-popup .swal2-icon .swal2-icon-content i {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 0.95rem !important;
  line-height: 1 !important;
  animation: rp-toast-check-pop 0.4s cubic-bezier(0.22, 1, 0.36, 1) both !important;
}

body.swal2-toast-shown
  .swal2-popup.swal2-toast.rp-toast-popup
  .swal2-success-ring,
body.swal2-toast-shown
  .swal2-popup.swal2-toast.rp-toast-popup
  [class*="swal2-success-line"],
body.swal2-toast-shown
  .swal2-popup.swal2-toast.rp-toast-popup
  .swal2-success-fix,
.swal2-popup.swal2-toast.rp-toast-popup .swal2-success-ring,
.swal2-popup.swal2-toast.rp-toast-popup [class*="swal2-success-line"],
.swal2-popup.swal2-toast.rp-toast-popup .swal2-success-fix {
  display: none !important;
}

body.swal2-toast-shown .swal2-popup.swal2-toast.rp-toast-popup .swal2-title,
.swal2-popup.swal2-toast.rp-toast-popup .swal2-title,
.rp-toast-title {
  grid-column: 2 !important;
  margin: 0 !important;
  padding: 0 !important;
  color: currentColor !important;
  font-family: var(--font-sans) !important;
  font-size: 0.95rem !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  text-align: left !important;
  animation: rp-toast-copy-in 0.32s cubic-bezier(0.2, 0.78, 0.25, 1) both !important;
}

body.swal2-toast-shown
  .swal2-popup.swal2-toast.rp-toast-popup
  .swal2-html-container,
.swal2-popup.swal2-toast.rp-toast-popup .swal2-html-container {
  grid-column: 2 !important;
  margin: 4px 0 0 !important;
  padding: 0 !important;
  color: currentColor !important;
  opacity: 0.86 !important;
  font-size: 0.9rem !important;
  line-height: 1.3 !important;
  text-align: left !important;
}

body.swal2-toast-shown .swal2-popup.swal2-toast.rp-toast-popup .swal2-close,
.swal2-popup.swal2-toast.rp-toast-popup .swal2-close,
.rp-toast-close {
  grid-column: 3 !important;
  grid-row: 1 / span 2 !important;
  align-self: center !important;
  justify-self: center !important;
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: currentColor !important;
  opacity: 0.58 !important;
  font-family: Arial, sans-serif !important;
  font-size: 1.55rem !important;
  line-height: 1 !important;
  transition:
    opacity 0.18s ease,
    transform 0.18s ease !important;
}

body.swal2-toast-shown
  .swal2-popup.swal2-toast.rp-toast-popup
  .swal2-close:hover,
.swal2-popup.swal2-toast.rp-toast-popup .swal2-close:hover,
.rp-toast-close:hover {
  opacity: 0.95 !important;
  transform: scale(1.04) !important;
}

body.swal2-toast-shown
  .swal2-popup.swal2-toast.rp-toast-popup
  .swal2-timer-progress-bar,
.swal2-popup.swal2-toast.rp-toast-popup .swal2-timer-progress-bar {
  display: none !important;
}

body.swal2-toast-shown .swal2-popup.swal2-toast.rp-toast-popup.rp-toast-show,
.swal2-popup.swal2-toast.rp-toast-popup.rp-toast-show {
  animation: rp-toast-in 0.34s cubic-bezier(0.2, 0.78, 0.25, 1) both !important;
}

body.swal2-toast-shown .swal2-popup.swal2-toast.rp-toast-popup.rp-toast-hide,
.swal2-popup.swal2-toast.rp-toast-popup.rp-toast-hide {
  animation: rp-toast-out 0.22s ease-in both !important;
}

@media (max-width: 575px) {
  body.swal2-toast-shown .swal2-container:has(.rp-toast-popup) {
    inset: auto 14px 18px 14px !important;
    width: auto !important;
  }
}

/* Responsive hardening: keep the whole app usable from small phones to wide desktops. */
img,
svg,
video,
canvas,
iframe {
  max-width: 100%;
  height: auto;
}

body:not(.login-page),
body:not(.login-page) #main,
body:not(.login-page) .card,
body:not(.login-page) .card-body,
body:not(.login-page) .row,
body:not(.login-page) [class*="col-"] {
  min-width: 0;
}

body:not(.login-page) {
  overflow-x: hidden;
}

body:not(.login-page) .table-responsive,
body:not(.login-page) .card-body table,
body:not(.login-page) .table {
  max-width: 100%;
}

body:not(.login-page) .table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

body:not(.login-page) .card-body table {
  display: block;
  overflow-x: auto;
  white-space: nowrap;
}

body:not(.login-page) .card-body table tbody,
body:not(.login-page) .card-body table thead,
body:not(.login-page) .card-body table tr {
  width: 100%;
}

.select2-container {
  max-width: 100% !important;
}

body:not(.login-page) .select2-container {
  width: 100% !important;
}

@media (max-width: 1199px) {
  body:not(.login-page) #header.header {
    padding-inline: 14px;
  }

  .header-shell {
    gap: 12px;
    flex-wrap: nowrap;
  }

  .header-left {
    min-width: 0;
    flex-shrink: 0;
  }

  .header-search {
    flex: 1 1 200px;
    min-width: 0;
  }

  .header-nav {
    margin-left: 0;
    flex-shrink: 0;
  }

  .header-nav ul {
    gap: 8px;
    flex-wrap: nowrap;
  }

  

  

  body:not(.login-page) #main,
  body:not(.login-page) #footer.footer {
    padding-inline: 18px;
  }

  .home-titlebar {
    gap: 10px;
  }

  .home-titlebar .breadcrumb {
    flex-wrap: wrap;
    row-gap: 4px;
  }

  .admin-card .card-body,
  .dashboard-panel-card .card-body,
  .dashboard-profile-card .card-body,
  .stat-card .card-body,
  .nu-hero-card .card-body,
  .nu-form-card .card-body,
  .nu-side-card .card-body {
    padding: 18px;
  }
}

@media (max-width: 991px) {
  body:not(.login-page) #header.header {
    height: auto;
    min-height: 64px;
  }

  .header-shell {
    align-items: center;
  }

  .header-left,
  .header-nav {
    min-width: 0;
  }

  .logo-copy {
    min-width: 0;
  }

  body:not(.login-page) .nav-profile-copy,
  body:not(.login-page) .nav-profile-chevron {
    display: none !important;
  }

  .logo-copy strong,
.logo-copy small,
.nav-profile-copy strong,
.nav-profile-copy small,
.profile-menu-user strong,
.profile-menu-user small,
.sidebar-user-card strong,
.sidebar-user-card span {
    overflow-wrap: anywhere;
  }

  body:not(.login-page) .header-nav .profile.profile-menu {
    width: min(280px, calc(100vw - 24px));
    min-width: min(280px, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
  }

  .header-notifications-panel {
    top: 70px;
    right: 0;
    width: min(360px, calc(100vw - 12px));
    height: calc(100vh - 82px);
    max-height: calc(100vh - 82px);
    border-radius: 22px 0 0 22px;
  }

  .header-notifications-overlay {
    top: 70px;
  }

  .dashboard-hero,
  .home-titlebar,
  .admin-card-header,
  .dashboard-panel-head,
  .nu-password-box,
  .profile-summary,
  .sidebar-user-card {
    flex-direction: column;
    align-items: flex-start;
  }

    

  

  body:not(.login-page) .btn,
  body:not(.login-page) .admin-btn {
    max-width: 100%;
  }
}

@media (max-width: 767px) {
  body:not(.login-page) #header.header {
    padding-inline: 10px;
  }

  .header-shell {
    gap: 8px;
  }

  .header-left {
    gap: 8px;
  }

  body:not(.login-page) .logo-mark {
    width: 42px;
    height: 42px;
  }

  body:not(.login-page) .logo-copy strong {
    max-width: 110px;
    font-size: 0.92rem;
  }

  body:not(.login-page) #main {
    padding: 18px 12px 28px;
  }

  #footer.footer,
  body:not(.login-page) #footer.footer {
    padding-inline: 12px;
  }

  .home-titlebar h1,
  .dashboard-hero h1,
  .nu-hero-copy h2 {
    font-size: 1.35rem;
    line-height: 1.15;
  }

  .home-titlebar p,
  .dashboard-hero p,
  .nu-hero-copy p {
    font-size: 0.88rem;
  }

  .admin-card-header,
  .home-titlebar,
  .dashboard-panel-head {
    gap: 8px;
  }

  .admin-card .card-body,
  .dashboard-panel-card .card-body,
  .dashboard-profile-card .card-body,
  .stat-card .card-body,
  .nu-hero-card .card-body,
  .nu-form-card .card-body,
  .nu-side-card .card-body {
    padding: 16px;
  }

  body:not(.login-page) .form-control,
  body:not(.login-page) .form-select,
  body:not(.login-page) textarea,
  body:not(.login-page) select,
  body:not(.login-page) .input-group-text {
    min-height: 44px;
    font-size: 16px;
  }

  

  }

@media (max-width: 575px) {
  body:not(.login-page) #header.header {
    padding-inline: 8px;
  }

  .header-nav ul {
    gap: 6px;
  }

  .nav-profile {
    padding: 6px 8px;
    gap: 8px;
  }

  .nav-profile-avatar,
  .profile-summary-avatar {
    width: 40px;
    height: 40px;
  }

  .home-titlebar h1,
  .dashboard-hero h1,
  .nu-hero-copy h2 {
    font-size: 1.2rem;
  }

  .home-titlebar .breadcrumb,
  .breadcrumb {
    font-size: 0.75rem;
  }

  .admin-card-header h2,
  .dashboard-panel-card .card-title,
  .dashboard-profile-card .card-title {
    font-size: 0.92rem;
  }

  .admin-card .card-body,
  .dashboard-panel-card .card-body,
  .dashboard-profile-card .card-body,
  .stat-card .card-body,
  .nu-hero-card .card-body,
  .nu-form-card .card-body,
  .nu-side-card .card-body {
    padding: 14px;
  }

  .nu-hero-badges span,
.admin-status-pill,
.nav-link-count {
    font-size: 0.72rem !important;
  }

  body:not(.login-page) .header-nav .profile.profile-menu {
    width: min(calc(100vw - 16px), 280px);
    min-width: min(calc(100vw - 16px), 280px);
  }

  body:not(.login-page) .card-body table {
    font-size: 0.84rem;
  }
}

/* === MODAL BACKDROP GLOBAL === */
.modal-backdrop {
  background-color: #060d1a;
}
.modal-backdrop.show {
  opacity: 0.78;
}

/* ==============================================================
   CardioTrack Aside cuadrado, minimizado por defecto y expandible
   ==============================================================
   Mantiene la lógica/backend existente: solo ajusta estructura visual,
   comportamiento UI y adaptación responsive del menú lateral.
*/
:root {
  --ct-red: #176b87;
  --ct-aside-mini: 64px;
  --ct-aside-full: 248px;
  --ct-header-height: 70px;
  --ct-ease-premium: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ===== Header Toggle Dynamic State ===== */

body:not(.login-page) #main,
body:not(.login-page) #footer {
  transition: margin-left 0.3s ease !important;
}

/* ==============================================================
   Ajuste v4: unión visual Header + Aside
   Elimina la línea/corte entre el navbar superior y el sidebar.
   (variable --ct-header-height consolidada en el :root de "CardioTrack Aside")
   ============================================================== */
body:not(.login-page) .header {
  height: var(--ct-header-height) !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.98),
    rgba(255, 250, 251, 0.96)
  ) !important;
}

body:not(.login-page) #main {
  margin-top: var(--ct-header-height) !important;
}

/* ===== CardioTrack Sidebar Controlled Only By Toggle ===== */
@media (min-width: 1200px) {

  body:not(.login-page).sidebar-expanded #header.header,
  body:not(.login-page).sidebar-hovered #header.header {
    z-index: 1040 !important;
  }

  

  
}

@media (min-width: 768px) {
  html[data-ui-scale="90"] body:not(.login-page) {
    --layout-sidebar-width: 220px;
    --layout-sidebar-mini: 56px;
    --layout-header-height: 56px;
    --ct-aside-full: var(--layout-sidebar-width);
    --ct-aside-mini: var(--layout-sidebar-mini);
    --admin-field-height: var(--form-field-height);
    --admin-field-padding-y: 7px;
    --admin-field-padding-x: 11px;
    --admin-field-padding-right: 36px;
    --text-md: 0.9375rem;
    --text-lg: 1.0625rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.625rem;
  }

  html[data-ui-scale="90"] body:not(.login-page) #main,
  html[data-ui-scale="90"] body:not(.login-page) #footer {
    padding-inline: 16px !important;
  }
}

html.ui-scale-is-switching body:not(.login-page) #header,
html.ui-scale-is-switching body:not(.login-page) #main,
html.ui-scale-is-switching body:not(.login-page) #footer {
  transition:
    opacity 0.22s ease,
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

html.ui-scale-is-switching body:not(.login-page) #header,
html.ui-scale-is-switching body:not(.login-page) #main,
html.ui-scale-is-switching body:not(.login-page) #footer {
  opacity: 0.992;
  transform: scale(0.997);
  transform-origin: top center;
}

/* ===== SaaS Sidebar Final Redesign ===== */
body:not(.login-page) {
  --ct-aside-surface: linear-gradient(180deg, #ffffff 0%, #f4f9fb 100%);
  --ct-aside-border: rgba(23, 107, 135, 0.08);
  --ct-aside-shadow:
    24px 0 50px rgba(23, 107, 135, 0.06), 0 0 0 1px rgba(255, 255, 255, 0.72);
  --ct-aside-divider: rgba(23, 107, 135, 0.12);
  --ct-aside-active-bg: linear-gradient(
    135deg,
    rgba(23, 107, 135, 0.1) 0%,
    rgba(23, 107, 135, 0.03) 100%
  );
  --ct-aside-hover-bg: linear-gradient(
    135deg,
    rgba(23, 107, 135, 0.07) 0%,
    rgba(23, 107, 135, 0.02) 100%
  );
  --ct-aside-tooltip-bg: rgba(21, 27, 40, 0.96);
  --ct-aside-tooltip-text: #f7f9fc;
}

body:not(.login-page) #header.header {
  box-shadow:
    0 10px 30px rgba(23, 107, 135, 0.04),
    0 1px 0 rgba(255, 255, 255, 0.72) !important;
}

/* ===== Global Sidebar Drawer Pattern ===== */

@media (min-width: 1200px) {
  body:not(.login-page) #header.header {
    left: 0 !important;
    width: 100% !important;
    transition:
      width 0.34s cubic-bezier(0.22, 1, 0.36, 1),
      box-shadow 0.24s ease !important;
  }

  

  
}
@media (min-width: 768px) and (max-width: 1199px) {
  body:not(.login-page) {
    --ct-shell-offset: 0px;
    --ct-shell-width: 100vw;
    --ct-aside-tablet: min(320px, calc(100vw - 28px));
  }

  body:not(.login-page).sidebar-expanded,
  body.toggle-sidebar:not(.login-page) {
    --ct-shell-offset: 0px;
    --ct-shell-width: 100vw;
  }

  body:not(.login-page) #header.header,
  body:not(.login-page) #main.main,
  body:not(.login-page) #footer.footer {
    box-sizing: border-box !important;
    transition:
      margin-left 0.32s cubic-bezier(0.22, 1, 0.36, 1),
      width 0.32s cubic-bezier(0.22, 1, 0.36, 1) !important;
  }

  body:not(.login-page) #header.header {
    width: 100% !important;
    margin-left: 0 !important;
  }}


/* ===== Final Desktop Layout Sync ===== */
@media (min-width: 1200px) {
  body:not(.login-page) {
    --ct-shell-offset: 0px;
    --ct-shell-width: 100vw;
  }

  body:not(.login-page).sidebar-expanded,
  body.toggle-sidebar:not(.login-page) {
    --ct-shell-offset: 0px;
    --ct-shell-width: 100vw;
  }

  body:not(.login-page) #header.header,
  body:not(.login-page) #main.main,
  body:not(.login-page) #footer.footer {
    position: relative !important;
    left: 0 !important;
    box-sizing: border-box !important;
  }

  body:not(.login-page) #header.header {
    width: 100% !important;
    margin-left: 0 !important;
  }

  

  body:not(.login-page) #main.main {
    margin-top: 64px !important;
    padding-top: 0 !important;
  }

  body:not(.login-page) .home-welcome-layout {
    grid-template-columns: minmax(320px, 360px) minmax(0, 1fr) !important;
    align-items: stretch !important;
  }
}

/* ===== Global UI Audit Normalization ===== */
body:not(.login-page) {
  --ct-project-bg: #f4f7f9;
  --ct-project-bg-accent-a: rgba(23, 107, 135, 0.045);
  --ct-project-bg-accent-b: rgba(42, 157, 143, 0.04);
  --ct-project-surface: #ffffff;
  --ct-project-surface-soft: #f4f9fb;
  --ct-project-border: rgba(23, 107, 135, 0.08);
  --ct-project-shadow: 0 16px 38px rgba(16, 47, 58, 0.05);
  --ct-project-menu-height: 56px;
  --ct-project-menu-mini-height: 46px;
}

body:not(.login-page)::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 995;
  background: rgba(16, 47, 58, 0.22);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease;
}

body:not(.login-page).sidebar-expanded::after,
body.toggle-sidebar:not(.login-page)::after {
  opacity: 1;
}

body:not(.login-page) #header.header {
  background: rgba(255, 253, 253, 0.98) !important;
}

/* ===== CardioTrack Audit Patch ===== */
body:not(.login-page) #header.header {
  box-shadow: 0 10px 28px rgba(25, 34, 54, 0.06) !important;
  border-bottom: 1px solid rgba(23, 107, 135, 0.06);
}

/* ===== CardioTrack Minimal Density ===== */
body:not(.login-page) {
  --ct-header-height: 62px;
  --ct-aside-full: 264px;
  --ct-aside-tablet: min(288px, calc(100vw - 24px));
  --ct-project-menu-height: 48px;
  --ct-project-menu-mini-height: 42px;
  --ct-density-card-padding: 12px;
  --ct-density-card-radius: 18px;
}

body:not(.login-page) #header.header {
  height: var(--ct-header-height) !important;
  min-height: var(--ct-header-height) !important;
  padding: 8px 14px !important;
}

body:not(.login-page) .header-search {
  min-height: 38px;
  padding-inline: 11px;
  border-radius: 14px;
}

body:not(.login-page) .header-search input {
  font-size: 0.92rem;
}

body:not(.login-page) #main.main {
  margin-top: calc(var(--ct-header-height) + 10px) !important;
  padding: 10px 16px 18px !important;
}

body:not(.login-page) .card-body,
body:not(.login-page) .card-header,
body:not(.login-page) .card-footer {
  padding: 12px 14px !important;
}

body:not(.login-page) .table:not(.ct-table) {
  margin-bottom: 0;
  font-size: 0.9rem;
}

body:not(.login-page) .table:not(.ct-table) > :not(caption) > * > * {
  padding: 0.56rem 0.72rem;
  vertical-align: middle;
}

body:not(.login-page) .table:not(.ct-table) thead th {
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (max-width: 1199px) {
  body:not(.login-page) #main.main {
    padding: 10px 12px 18px !important;
  }
}

/* ===== Native SaaS Experience Layer ===== */
body:not(.login-page) {
  --ct-ui-bg: #f4f7f9;
  --ct-ui-surface: rgba(255, 255, 255, 0.94);
  --ct-ui-surface-strong: rgba(255, 255, 255, 0.985);
  --ct-ui-surface-soft: rgba(248, 250, 252, 0.82);
  --ct-ui-border: rgba(148, 163, 184, 0.2);
  --ct-ui-border-strong: rgba(148, 163, 184, 0.28);
  --ct-ui-text: #0f172a;
  --ct-ui-text-soft: #475569;
  --ct-ui-text-muted: #64748b;
  --ct-ui-shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --ct-ui-shadow-sm: 0 8px 20px rgba(15, 23, 42, 0.05);
  --ct-ui-shadow-md: 0 18px 42px rgba(15, 23, 42, 0.08);
  --ct-ui-radius-sm: 12px;
  --ct-ui-radius-md: 16px;
  --ct-ui-radius-lg: 20px;
}

body:not(.login-page) #header.header {
  background: color-mix(
    in srgb,
    var(--ct-ui-surface-strong) 92%,
    transparent
  ) !important;
  border-bottom: 1px solid var(--ct-ui-border) !important;
  box-shadow: var(--ct-ui-shadow-xs) !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

body:not(.login-page) .header-shell,
body:not(.login-page) .header-nav ul,
body:not(.login-page) .header-left {
  align-items: center;
}

body:not(.login-page) .logo-copy small,
body:not(.login-page) .breadcrumb,
body:not(.login-page) .text-muted,
body:not(.login-page) small {
  color: var(--ct-ui-text-muted);
}

body:not(.login-page) .header-toggle,
body:not(.login-page) .header-icon-btn,
body:not(.login-page) .header-search,
body:not(.login-page) .header-search-panel,
body:not(.login-page) .header-nav .profile.profile-menu {
  border: 1px solid var(--ct-ui-border) !important;
  background: var(--ct-ui-surface-strong) !important;
  box-shadow: var(--ct-ui-shadow-xs) !important;
}

body:not(.login-page) .header-toggle:hover,
body:not(.login-page) .header-icon-btn:hover,
body:not(.login-page) .header-search-panel button:hover,
body:not(.login-page) .header-search-panel button:focus-visible {
  background: var(--ct-ui-surface-soft) !important;
}

body:not(.login-page) .header-search {
  max-width: 620px;
  border-radius: 14px;
}

body:not(.login-page) .header-search-panel {
  border-radius: 18px;
  box-shadow: var(--ct-ui-shadow-md) !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

body:not(.login-page) .header-search input,
body:not(.login-page) .form-control,
body:not(.login-page) .form-select,
body:not(.login-page) textarea,
body:not(.login-page) select {
  color: var(--ct-ui-text);
}

body:not(.login-page) .form-control,
body:not(.login-page) .form-select,
body:not(.login-page) textarea,
body:not(.login-page) select,
body:not(.login-page) .input-group-text {
  border-color: var(--ct-ui-border);
  background: var(--ct-ui-surface-strong);
  box-shadow: none;
}

body:not(.login-page) .form-control:focus,
body:not(.login-page) .form-select:focus,
body:not(.login-page) textarea:focus,
body:not(.login-page) select:focus {
  border-color: rgba(58, 134, 200, 0.34);
  box-shadow: 0 0 0 3px rgba(58, 134, 200, 0.09);
}

body:not(.login-page) .btn {
  box-shadow: none;
  transition:
    background-color 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

body:not(.login-page) .btn:hover {
  transform: translateY(-1px);
}

body:not(.login-page) .btn-primary,
body:not(.login-page) .btn-danger {
  box-shadow: 0 10px 22px rgba(20, 96, 122, 0.14);
}

body:not(.login-page) .table,
body:not(.login-page) table {
  color: var(--ct-ui-text);
}

body:not(.login-page) .table:not(.ct-table) thead th,
body:not(.login-page) table:not(.ct-table) thead th {
  background: color-mix(in srgb, var(--ct-ui-surface-strong) 92%, transparent);
  color: var(--ct-ui-text-muted);
  border-bottom-color: var(--ct-ui-border);
}

body:not(.login-page) .table:not(.ct-table) > :not(caption) > * > *,
body:not(.login-page) table:not(.ct-table) > :not(caption) > * > * {
  border-color: var(--ct-ui-border);
}

body:not(.login-page) .header-notifications-panel {
  border: 1px solid var(--ct-ui-border-strong);
  background:
    radial-gradient(
      circle at top right,
      rgba(58, 134, 200, 0.06),
      transparent 28%
    ),
    linear-gradient(
      180deg,
      var(--ct-ui-surface-strong) 0%,
      var(--ct-ui-surface) 100%
    );
  box-shadow: var(--ct-ui-shadow-md);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

body:not(.login-page) .header-notifications-head {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

body:not(.login-page) .header-notification-card,
body:not(.login-page) .header-notifications-bar,
body:not(.login-page) .header-notifications-foot,
body:not(.login-page) .header-notifications-empty {
  border-color: var(--ct-ui-border);
}

body:not(.login-page) .header-notification-card {
  background: var(--ct-ui-surface-soft);
  box-shadow: none;
}

body:not(.login-page) #header.header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 1200 !important;
  transform: none !important;
  translate: none !important;
  opacity: 1 !important;
  visibility: visible !important;
}



body:not(.login-page) .header-shell,
body:not(.login-page) .header-left,
body:not(.login-page) .header-left > *,
body:not(.login-page) .header-search,
body:not(.login-page) .header-nav,
body:not(.login-page) .header-nav > ul,
body:not(.login-page) .header-nav > ul > li {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: none !important;
}

body:not(.login-page) #main.main {
  position: relative !important;
  z-index: 1 !important;
  margin-top: var(--ct-header-height) !important;
  padding-top: 12px !important;
}

body:not(.login-page) #footer.footer {
  position: relative !important;
  z-index: 1 !important;
}

/* ===== Institutional Refinement Layer ===== */
body:not(.login-page) {
  --ct-ui-bg: #f3f6fa;
  --ct-ui-surface: #ffffff;
  --ct-ui-surface-strong: #ffffff;
  --ct-ui-surface-soft: #f8fafc;
  --ct-ui-border: rgba(148, 163, 184, 0.22);
  --ct-ui-border-strong: rgba(100, 116, 139, 0.28);
  --ct-ui-text: #17202f;
  --ct-ui-text-soft: #3f4d63;
  --ct-ui-text-muted: #67768c;
  --ct-ui-shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --ct-ui-shadow-sm: 0 10px 24px rgba(15, 23, 42, 0.05);
  --ct-ui-shadow-md: 0 18px 40px rgba(15, 23, 42, 0.07);
}

body:not(.login-page) {
  background:
    linear-gradient(180deg, var(--ct-ui-bg) 0%, var(--ct-ui-bg) 100%) !important;
}

body:not(.login-page) #header.header {
  background: var(--ct-ui-surface-strong) !important;
  border-bottom: 1px solid var(--ct-ui-border) !important;
  box-shadow: var(--ct-ui-shadow-xs) !important;
}

body:not(.login-page) .logo-copy strong,
body:not(.login-page) .card-title,
body:not(.login-page) .admin-card-header h2 {
  color: var(--ct-ui-text) !important;
}

body:not(.login-page) .logo-copy small,
body:not(.login-page) .breadcrumb,
body:not(.login-page) .text-muted,
body:not(.login-page) small:not(.sidebar-brand-copy small) {
  color: var(--ct-ui-text-muted) !important;
}

body:not(.login-page) .header-toggle,
body:not(.login-page) .header-icon-btn,
body:not(.login-page) .header-search,
body:not(.login-page) .header-search-panel,
body:not(.login-page) .header-nav .profile.profile-menu {
  border-color: var(--ct-ui-border) !important;
  background: var(--ct-ui-surface-strong) !important;
  box-shadow: none !important;
}

/* Campos: sin !important. Antes compartían la regla de arriba, que anulaba
   el borde de error, el fondo de deshabilitado/solo lectura y el anillo de
   foco en todas las vistas internas (ver components/forms.css). */
body:not(.login-page) .form-control,
body:not(.login-page) .form-select,
body:not(.login-page) textarea,
body:not(.login-page) select,
body:not(.login-page) .input-group-text {
  border-color: var(--ct-ui-border);
  background-color: var(--ct-ui-surface-strong);
}

body:not(.login-page) .table:not(.ct-table) thead th,
body:not(.login-page) table:not(.ct-table) thead th {
  background: #f7f9fc !important;
  color: var(--ct-ui-text-muted) !important;
  border-bottom: 1px solid var(--ct-ui-border) !important;
}

body:not(.login-page) .header-notifications-head {
  background: #1d2a3d !important;
}

body:not(.login-page) .header-notification-card,
body:not(.login-page) .header-notifications-bar,
body:not(.login-page) .header-notifications-foot,
body:not(.login-page) .header-notifications-empty {
  background: var(--ct-ui-surface) !important;
  box-shadow: none !important;
}

/* ===== CardioTrack Institutional UI Layer ===== */
body:not(.login-page) {
  --ct-header-height: 68px;
  --ct-aside-full: 276px;
  --ct-ui-bg: #f4f7f9;
  --ct-ui-surface: #ffffff;
  --ct-ui-surface-strong: #fbfdff;
  --ct-ui-surface-soft: #f7f9fc;
  --ct-ui-border: rgba(148, 163, 184, 0.2);
  --ct-ui-border-strong: rgba(100, 116, 139, 0.3);
  --ct-ui-text: #142033;
  --ct-ui-text-soft: #314154;
  --ct-ui-text-muted: #6b7a90;
  --ct-ui-shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.05);
  --ct-ui-shadow-sm: 0 8px 22px rgba(15, 23, 42, 0.06);
  --ct-ui-shadow-md: 0 16px 34px rgba(15, 23, 42, 0.08);
  background: linear-gradient(180deg, #f4f7f9 0%, #eef3f9 100%) !important;
  color: var(--ct-ui-text);
}

body:not(.login-page) #header.header {
  min-height: var(--ct-header-height) !important;
  padding: 0 16px !important;
  background: rgba(255, 255, 255, 0.98) !important;
  border-bottom: 1px solid var(--ct-ui-border) !important;
  box-shadow: var(--ct-ui-shadow-xs) !important;
}

body:not(.login-page) .header-search {
  height: var(--form-field-height) !important;
  max-width: 600px !important;
  border-radius: 14px !important;
}

body:not(.login-page) .header-nav ul {
  gap: 8px !important;
}

body:not(.login-page) #main.main {
  margin-top: var(--ct-header-height) !important;
  padding: 12px 16px 20px !important;
}

body:not(.login-page) .admin-card-header {
  padding: 16px 16px 14px !important;
}

/* .form-label: estilo único en components/forms.css (antes tres reglas aquí,
   una con !important, en mayúsculas con tracking). */

body:not(.login-page) .btn,
body:not(.login-page) .swal2-styled {
  min-height: 40px;
  border-radius: 12px !important;
  font-weight: 700 !important;
}

body:not(.login-page) .table,
body:not(.login-page) table {
  margin-bottom: 0;
}

body:not(.login-page) .table:not(.ct-table) thead th,
body:not(.login-page) table:not(.ct-table) thead th {
  padding: 0.72rem 0.8rem !important;
  font-size: 0.73rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body:not(.login-page) .table:not(.ct-table) tbody td,
body:not(.login-page) table:not(.ct-table) tbody td {
  padding: 0.7rem 0.8rem !important;
  font-size: 0.9rem !important;
  vertical-align: middle;
}

body:not(.login-page) .modal-content,
body:not(.login-page) .swal2-popup {
  border: 1px solid var(--ct-ui-border) !important;
  border-radius: 18px !important;
  box-shadow: var(--ct-ui-shadow-md) !important;
}

body:not(.login-page) .header-notifications-panel,
body:not(.login-page) .header-nav .profile.profile-menu,
body:not(.login-page) .header-search-panel {
  border-radius: 18px !important;
  background: var(--ct-ui-surface) !important;
  box-shadow: var(--ct-ui-shadow-md) !important;
}

body:not(.login-page) .header-notifications-overlay {
  top: 0 !important;
}

body:not(.login-page) .header-notifications-panel {
  top: 0 !important;
  height: 100dvh !important;
  max-height: 100dvh !important;
  border-radius: 20px 0 0 20px !important;
}

body:not(.login-page) .header-notifications-head {
  background: #1a2536 !important;
}

body:not(.login-page) #footer.footer {
  margin-top: 12px !important;
  padding: 14px 18px 20px !important;
  border-top: 1px solid var(--ct-ui-border) !important;
  background: transparent !important;
}

@media (max-width: 1199px) {
  body:not(.login-page) {
    --ct-header-height: 64px;
  }

  body:not(.login-page) #main.main {
    padding: 10px 12px 18px !important;
  }
}

/* ===== Titlebar Unified System ===== */

body:not(.login-page) #header.header,
body:not(.login-page).sidebar-expanded #header.header {
  z-index: 1200 !important;
}

body:not(.login-page).sidebar-expanded #header.header,
body.toggle-sidebar:not(.login-page) #header.header {
  z-index: 1100 !important;
}

body:not(.login-page)::after {
  z-index: 995 !important;
}

body:not(.login-page) #sidebar-container {
  z-index: 1260 !important;
}

.modal-backdrop {
  z-index: 1360 !important;
}

.modal,
.modal.show,
.modal.fade.show {
  z-index: 1370 !important;
}

.swal2-container,
.swal2-container.swal2-backdrop-show {
  z-index: 1400 !important;
}

/* ==============================================================
   Sidebar Motion Sync — autoridad final de animación del aside
   Unifica la duración/easing de sidebar, contenido y submenús,
   que quedaron desincronizados entre las capas anteriores
   (Sidebar Final Tuning, Premium v3, Ajuste v4, etc.).
   ============================================================== */
:root {
  --ct-motion-duration: 0.22s;
  --ct-motion-duration-fast: 0.16s;
  /* La curva ease-in-out anterior arrancaba con velocidad cero: durante el
     primer tramo casi no había movimiento visible, lo que se sentía como
     un "atasco" antes de reaccionar al clic — sobre todo al cerrar.
     Esta arranca de inmediato (responde al instante) y frena suave al
     final (sin golpe seco), más corta en duración: más ágil. */
  --ct-motion-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ct-rail-pad: 14px;
}

/* -------------------------------------------------------------
   0) "Final Desktop Layout Sync" (capa heredada) medía #main/#footer
      con --ct-shell-width: 100vw, que INCLUYE el ancho de la barra de
      scroll del navegador, mientras #header usa 100% (que la excluye).
      En cualquier página con scroll vertical (la mayoría), #main queda
      más ancho que el área visible real por el ancho de esa barra —
      apareciendo un scroll horizontal permanente, con la página
      recortada en ambos bordes desde la primera carga, sin relación
      con abrir/cerrar el sidebar. overflow-x en html/body es una red
      de seguridad adicional contra esta clase de desbordes.
   ------------------------------------------------------------- */
html,
body:not(.login-page) {
  overflow-x: hidden !important;
}

/* -------------------------------------------------------------
   Bloqueo de scroll con un modal abierto.

   Efecto lateral de la regla de arriba: al fijar overflow-x en el
   elemento raiz, <html> deja de propagar su overflow al viewport y
   pasa a ser el contenedor que scrollea. <body> conserva altura
   auto, asi que el `overflow: hidden` que Bootstrap le aplica al
   abrir un modal -y el de .project-broadcast-modal-open- no bloquea
   nada: el fondo se sigue moviendo con la rueda.

   La solucion es replicar el bloqueo en <html>, que es quien tiene
   el scroll. Solo overflow-y: el eje x ya esta fijado arriba con
   !important y no debe tocarse. Bootstrap sigue compensando el ancho
   de la barra con padding-right en el body, asi que el contenido no
   salta al desaparecer.
   ------------------------------------------------------------- */
html:has(body.modal-open),
html:has(body.project-broadcast-modal-open) {
  overflow-y: hidden;
}

/* Canal de la barra de scroll reservado de forma permanente.

   Al bloquear el scroll, la barra desaparece y el area visible se ensancha
   ~15px de golpe: el #header .fixed-top se desplaza, el contenido se reajusta y
   el tablero recalcula su layout, todo en el mismo fotograma en que arranca la
   animacion del modal. Con el canal reservado el ancho no cambia nunca, ni al
   abrir ni al cerrar, asi que no hay reflujo que compensar.

   Beneficio adicional: es el mismo desborde horizontal que describe el comentario
   de la regla de arriba, resuelto en origen en vez de recortado con overflow. */
html {
  scrollbar-gutter: stable;
}

@media (min-width: 1200px) {
  body:not(.login-page) {
    --ct-shell-width: 100% !important;
  }
}

/* -------------------------------------------------------------
   1) El aside está COMPLETAMENTE OCULTO por defecto (fuera de
      pantalla vía transform) — no hay riel mini visible. Se llama
      exclusivamente con el botón "Menú del Sistema" del header (o el
      propio botón interno de fijar), que agregan .sidebar-expanded /
      .sidebar-hovered al body. Una sola propiedad anima el panel
      entero como una sola pieza: transform, 100% GPU. #main/#footer
      nunca se mueven (el aside es overlay, no empuja contenido).
   ------------------------------------------------------------- */
@media (min-width: 1200px) {

  

  /* #main/#footer NUNCA deben moverse — el aside es overlay puro. Pero
     varias capas heredadas fijan margin-left: var(--ct-aside-mini/full)
     específicamente cuando .sidebar-expanded/.sidebar-hovered/.toggle-sidebar
     están presentes, y esos selectores tienen MÁS clases que uno genérico
     "

  /* .home-titlebar/.home-welcome-shell son componentes COMPARTIDOS entre
     Home, Buscar Usuario, Gestión de Perfiles, etc. Una capa heredada
     ("Global UI Audit Normalization") le quitaba el padding lateral
     específicamente cuando el sidebar está fijado/hover — otro remanente
     de cuando el sidebar empujaba #main. Se congela al mismo padding
     base (16px, ya definido más arriba en el archivo) siempre. */
}

/* -------------------------------------------------------------
   3) Las etiquetas (texto, badges, flechas) ya usaban opacity +
      translateX (GPU-friendly, sin reflow): solo se resincroniza
      su duración con la cortina para que revelen/oculten al mismo
      tiempo que el clip-path termina de abrir/cerrar.

      IMPORTANTE: una capa heredada
      (".sidebar-state-animating[data-sidebar-state=hovered/expanded]")
      forzaba "transition: none !important" sobre estas mismas
      etiquetas durante TODA la animación (con mayor especificidad
      que una corrección anterior basada en clases) — por eso el
      contenido parecía aparecer/desaparecer fuera de sincronía con
      el panel, sin importar qué duración se intentara sincronizar.
      Se ancla por 



/* -------------------------------------------------------------
   4) El fondo oscuro (body::after) que atenúa toda la página fue
      diseñado para el drawer móvil de pantalla completa, pero nunca
      quedó restringido a móvil — así que también se activaba en
      escritorio con el riel nuevo (con .sidebar-hovered al pasar el
      mouse), y su transición (0.24s, sin sincronizar) no coincidía
      con la de la cortina. En escritorio, el simple hover del riel
      (sidebar-hovered sin sidebar-expanded/toggle-sidebar) es parte
      del layout y no debe atenuar la página; pero al abrir el
      sidebar explícitamente (fijarlo con el botón de menú) sí debe
      atenuarse, igual que en móvil.
   ------------------------------------------------------------- */
@media (min-width: 1200px) {
  body:not(.login-page):not(.sidebar-expanded):not(.toggle-sidebar)::after {
    opacity: 0 !important;
    pointer-events: none !important;
  }
}

@media (max-width: 1199px) {
  body:not(.login-page)::after {
    transition: opacity var(--ct-motion-duration) var(--ct-motion-ease) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  #sidebar .sidebar-collapse-toggle,
#sidebar .sidebar-brand-copy,
#sidebar .sidebar-pill,
#sidebar .nav-heading,
#sidebar .sidebar-user-copy,
#sidebar .sidebar-user-action,
body:not(.login-page) #main,
body:not(.login-page) #footer,
body:not(.login-page)::after {
    transition: none !important;
  }
}

/* -------------------------------------------------------------
   Footer Sticky Bottom Fix — en páginas con poco contenido (ej. Home),
   #footer quedaba justo debajo de #main sin llegar al borde inferior
   de la ventana, dejando un vacío entre el footer y el final de la
   pantalla. #header y el sidebar son position:fixed (fuera del flujo),
   así que solo #main y #footer viven en el flujo normal del body: basta
   con volver body un contenedor flex en columna que ocupe todo el alto
   visible y dejar que #main absorba el espacio sobrante (flex: 1) para
   que el footer quede siempre pegado al fondo, sin afectar el scroll en
   páginas con contenido largo.
   ------------------------------------------------------------- */
body:not(.login-page) {
  display: flex !important;
  flex-direction: column !important;
  min-height: 100vh !important;
}

@supports (height: 100dvh) {
  body:not(.login-page) {
    min-height: 100dvh !important;
  }
}

body:not(.login-page) #main.main {
  flex: 1 0 auto !important;
}

body:not(.login-page) #footer.footer {
  flex-shrink: 0 !important;
}
