/* ==========================================================================
   CSS Principles & BEM Methodology (WP-Ready)
   ========================================================================== */

/* Design Tokens & Variables (IDEA 2.0 - Release 01 palette) */
:root {
  --bg-navy: #00135a;
  --bg-flyout: #002673;
  --btn-blue: #0f69c4;
  --text-dark: #333333;
  --text-secondary: #666666;
  --bg-subtle: #e6e6e6;
  --Scale-Gray-100: #e6e6e6;
  --bg-light-blue: #d9ecff;
  --bg-site: #f2f2f2;
  --navbar-divider: #375374;
  --primary-base: #0f69c4;
  --primary-darken-1: #0051a8;
  --primary-blue-50: #f1f6fb;
  --primary-blue-100: #d9ecff;
  --primary-blue-800: #002673;
  --primary-blue-900: #00135a;
  --gray-900: #333333;
  --gray-700: #4d4d4d;
  --gray-500: #666666;
  --gray-100: #e6e6e6;
  --gray-50: #f2f2f2;

  /* Legacy alias tokens mapped to Release 01 palette (cascade to page CSS) */
  --Primary: #333333;
  --Secondary: #666666;
  --Color: #00135a;
  --IDEA: #00135a;
  --Links: #0f69c4;
  --Default-Text: #666666;
  --Inverse: #ffffff;
  --Light: #ffffff;
  --Divider: #e6e6e6;
  --Navbar-Default-Typo: #ffffff;
  --Scale-Gray-50: #f2f2f2;
  --Scale-Gray-500: #666666;
  --Scale-Gray-900: #333333;
  --Typography-primary: #333333;
  --Primary-Blue-50: #f1f6fb;
  --Primary-Blue-100: #d9ecff;

  --sidebar-width: 295px;
  --sidebar-collapsed-width: 88px;
}

/* Global Styles */
body {
  background-color: var(--bg-site);
  font-family:
    "Roboto",
    system-ui,
    -apple-system,
    sans-serif;
  color: var(--text-dark);
}

/* ==========================================================================
   Component: Mobile Nav Bar (.dashboard-mobile-nav)
   ========================================================================== */
.dashboard-mobile-nav {
  background-color: var(--bg-navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   Component: Layout Wrapper (.dashboard-layout)
   ========================================================================== */
.dashboard-layout {
  display: flex;
  min-height: 100vh;
  background-color: var(--bg-site);
}

.dashboard-content {
  flex-grow: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* Desktop Styles for Layout & Sidebar */
@media (min-width: 992px) {
  .sidebar {
    position: fixed !important;
    top: 0;
    bottom: 0;
    left: 0;
    width: var(--sidebar-width) !important;
    height: 100vh !important;
    background-color: var(--bg-navy) !important;
    z-index: 1030 !important;
    transform: none !important;
    visibility: visible !important;
    box-shadow: none !important;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
  }

  .dashboard-content {
    margin-left: var(--sidebar-width);
  }
}

/* ==========================================================================
   Component: Sidebar (.sidebar)
   ========================================================================== */
.sidebar {
  background-color: var(--bg-navy);
  width: var(--sidebar-width);
}

.sidebar__container {
  padding: 16px;
  overflow-y: auto;
}

.sidebar__brand-link {
  display: inline-block;
}

.sidebar__brand-logo {
  margin-top: 24px;
  max-height: 70px;
}

/* User Profile Section */
.sidebar__profile {
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
}

.sidebar__profile-avatar {
  width: 42px;
  height: 42px;
  background-color: #fbe0e4;
  /* Pinkish-red from Chilean theme */
  color: #292929;
  border-radius: 50%;

  /* H3 Bold */
  font-family: "Roboto";
  font-size: 18px;
  font-style: normal;
  font-weight: 600;
  line-height: 130%;
  /* 23.4px */
}

.sidebar__profile-name {
  color: var(--Inverse, #fff);

  /* Text */
  font-family: "Roboto";
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 120%;
  /* 19.2px */
}

.sidebar__profile-role {
  color: var(--Divider, #dbdbdb);

  /* Helper */
  font-family: "Roboto";
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  line-height: 16px;
  /* 133.333% */
}

/* Primary Sidebar Navigation Menu */
.sidebar__nav-item {
  margin-bottom: 2px;
}

.sidebar__nav-link {
  text-decoration: none;
  color: var(--Navbar-Default-Typo, #fff);
  /* Text sm */
  font-family: "Roboto";
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 18px;
  /* 128.571% */

  padding: 11px 12px;
  display: flex;
  align-items: center;
  border-radius: 6px;
  border-bottom-left-radius: 0px;
  border-bottom-right-radius: 0px;

  transition:
    background-color 0.2s,
    color 0.2s;
}

.sidebar__nav-link--dropdown {
  border: 1px solid var(--navbar-divider, #375374);
  border-bottom: transparent;
  background-color: #002673;
}

.sidebar__nav-link.collapsed {
  background-color: transparent;
  border: transparent;
}

.sidebar__nav-link:hover {
  background-color: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  border-bottom-left-radius: 6px;
  border-bottom-right-radius: 6px;
  border-color: transparent;
}

.sidebar__nav-link--active {
  border-bottom: 1px solid var(--Primary-Blue-400, transparent);
  background-color: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.sidebar__nav-icon {
  font-size: 15px;
}

.sidebar__nav-arrow {
  font-size: 10px;
  color: rgba(255, 255, 255);
  transition: transform 0.2s;
  font-weight: 600 !important;
}

.sidebar__nav-link[aria-expanded="true"] .sidebar__nav-arrow {
  transform: rotate(180deg);
}

/* Sub-navigation Menu */
.sidebar__subnav-list {
  margin: 0 !important;

  border-radius: 6px;
}

.sidebar__subnav-item {
  margin-bottom: 2px;
}

.sidebar__subnav-item:last-child {
  margin-bottom: 0;
}

.sidebar__subnav-link {
  color: rgba(255, 255, 255);

  /* Helper */
  font-family: "Roboto";
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  line-height: 16px;
  /* 133.333% */

  text-decoration: none;
  padding: 11px 10px 11px 40px;
  border-bottom-left-radius: 0px;
  border-bottom-right-radius: 0px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  transition:
    background-color 0.2s,
    color 0.2s;
}

.sidebar__subnav-link:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.05);
}

.sidebar__subnav-link--active {
  color: #ffffff !important;
  background-color: rgba(255, 255, 255, 0.12) !important;
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
  border: 1px solid var(--navbar-divider, #375374);
}

.sidebar__subnav-chevron {
  font-size: 10px;
  color: rgba(255, 255, 255);
  font-weight: 600 !important;
}

.sidebar__subnav-link--active .sidebar__subnav-chevron {
  color: #ffffff;
}

/* Footer Section */
.sidebar__footer {
}

.sidebar__footer-logo {
}

.sidebar__footer-logo:hover {
}

.sidebar__footer-logo--mineduc {
  object-fit: contain;
}

.sidebar__footer-logo--bid {
  object-fit: contain;
}

/* ==========================================================================
   Component: Sidebar Flyout Panels (.sidebar-flyout)
   ========================================================================== */
.sidebar-flyout {
  position: fixed;
  background-color: var(--bg-flyout);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  box-shadow: 5px 5px 25px 0 rgba(0, 0, 0, 0.4);
  /* Mantener los menús desplegables por sobre el header (z-index: 100). */
  z-index: 1031;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
  overflow-y: auto;
}

.sidebar-flyout--level-1 {
  top: 290px;
  width: 285px;
  left: calc(var(--sidebar-width) - 10px);
  max-height: calc(100vh - 170px);
}

.sidebar-flyout--level-2 {
  top: 330px;
  width: 250px;
  left: calc(var(--sidebar-width) + 285px - 20px);
  max-height: calc(100vh - 210px);
  z-index: 1032;
  background-color: var(--primary-blue-700);
}

/* Custom scrollbar for flyouts */
.sidebar-flyout::-webkit-scrollbar {
  width: 5px;
}

.sidebar-flyout::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar-flyout::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 3px;
}

.sidebar-flyout::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

.sidebar-flyout__container {
  padding: 16px;
  padding-left: 28px;
  display: flex;
  flex-direction: column;
}

.sidebar-flyout__header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 10px;
  margin-bottom: 10px;
}

.sidebar-flyout__title {
  font-size: 12.5px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  line-height: 1.4;
}

.sidebar-flyout__nav {
  display: block;
}

.sidebar-flyout__list {
  display: block;
}

.sidebar-flyout__item {
  margin-bottom: 2px;
}

.sidebar-flyout__item:last-child {
  margin-bottom: 0;
}

.sidebar-flyout__link {
  color: rgba(255, 255, 255, 0.7);
  color: var(--Light, #fff);

  /* Helper */
  font-family: "Roboto";
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  line-height: 16px;
  /* 133.333% */
  text-decoration: none;
  padding: 11px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition:
    background-color 0.2s,
    color 0.2s;
  border-radius: 6px;
  border-bottom-left-radius: 0px;
  border-bottom-right-radius: 0px;
}

.sidebar-flyout__link:hover {
  background-color: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  border-bottom-left-radius: 6px;
  border-bottom-right-radius: 6px;
  border-color: transparent;
}

.sidebar-flyout__link--active {
  background-color: rgba(255, 255, 255, 0.12) !important;
  color: #ffffff;
  border-bottom-left-radius: 6px;
  border-bottom-right-radius: 6px;
  border-color: transparent;
}

.sidebar-flyout__chevron {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.4);
}

.sidebar-flyout__link--active .sidebar-flyout__chevron {
  color: #ffffff;
}

/* Middle scroll section */
.sidebar__middle-section {
  overflow-y: auto;
}

.sidebar__middle-section::-webkit-scrollbar {
  width: 6px;
}

.sidebar__middle-section::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar__middle-section::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}

.sidebar__middle-section::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* ==========================================================================
   Component: Header Bar (.dashboard-header)
   ========================================================================== */
.dashboard-header {
  z-index: 100;
  box-shadow: 0 4px 7px 0 rgba(55, 83, 116, 0.05);
}

.dashboard-header__title {
  color: var(--IDEA, #183277);

  /* H2 */
  font-family: "Roboto";
  font-size: 31px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.2;
}

/* Header Filters */
.header-filter {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.header-filter__label {
  color: var(--negro-text, #373737);
  font-family: "Roboto";
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.5;
}

.header-filter__select,
.header-filter__search {
  padding: 8px 12px;
  height: 44px;
  cursor: pointer;
  transition:
    border-color 0.2s,
    background-color 0.2s;

  color: var(--gray-700, #4d4d4d);
  font-family: "Roboto";
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.5;
  border-radius: 0;
  border: 1px solid rgba(0, 0, 0, 0.87);
  background-color: #ffffff;
}

.header-filter__select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%235C6479' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m3 6 5 5 5-5'/%3e%3c/svg%3e") !important;
  background-position: right 16px center !important;
  background-size: 12px 12px !important;
}

.header-filter__select:focus,
.header-filter__search:focus {
  border: 2px solid var(--primary-base, #0f69c4);
  background-color: #ffffff;
  box-shadow: none;
  outline: none;
}

.header-filter__search-wrapper {
  position: relative;
}

.header-filter__search-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-500, #666666);
  pointer-events: none;
  font-size: 16px;
}

/* Utilities (Search, Favorites, Grid) */
.header-search {
  display: none;
}

.header-search__input {
  background-color: var(--gray-50, #f2f2f2);
  border: 1px solid var(--Scale-Gray-100, #e6e6e6);
  border-radius: 8px;
  padding: 10px 40px 10px 16px;

  color: var(--Default-Text, #5f6071);

  /* Helper */
  font-family: "Roboto";
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  line-height: 16px;
  /* 133.333% */
  height: 44px;
  transition:
    border-color 0.2s,
    background-color 0.2s;
}

.header-search__input:focus {
  background-color: #ffffff;
  border-color: var(--btn-blue);
  box-shadow: none;
}

.header-search__icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  pointer-events: none;
}

.header-grid-btn {
  width: 40px;
  height: 40px;
  background-color: #ffffff;
  color: var(--primary-darken-1, #0051a8);
  border: 1px solid var(--primary-darken-1, #0051a8);
  border-radius: 0;
  font-size: 20px;
  transition:
    background-color 0.2s,
    color 0.2s;
}

.header-grid-btn:hover,
.header-grid-btn:focus,
.header-grid-btn[aria-expanded="true"] {
  background-color: var(--primary-blue-50, #f1f6fb);
  color: var(--primary-darken-1, #0051a8);
}

.header-fav-btn {
  background-color: var(--primary-darken-1, #0051a8);
  color: #ffffff;
  border: none;
  border-radius: 0;
  padding: 8px 16px;
  height: 44px;
  transition: background-color 0.2s;

  font-family: "Roboto";
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.5;
}

.header-fav-btn:hover {
  background-color: var(--primary-blue-700, #003b8d);
  color: #ffffff;
}

.dashboard-header__filters {
  max-width: none;
}

/* Headers con filtros fijos: salto de fila automático y botón a la derecha. */
.dashboard-header--fixed-filters .dashboard-header__controls {
  width: 100%;
  min-width: 0;
}

.dashboard-header--fixed-filters .dashboard-header__filters {
  flex: 1 1 auto;
  min-width: 0;
  flex-wrap: wrap;
}

.dashboard-header--fixed-filters .dashboard-header__filter-column {
  flex: 0 0 300px;
  width: 300px;
  max-width: 300px;
}

.dashboard-header--fixed-filters .dashboard-header__download {
  align-self: flex-end;
  margin-left: auto;
}

@media (max-width: 767.98px) {
  .dashboard-header--fixed-filters .dashboard-header__filter-column {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
  }
}

/* ==========================================================================
   Component: External Platforms Popup (.external-platforms)
   ========================================================================== */
.btn-close {
  width: 14px;
  height: 14px;
}

.external-platforms {
  width: 325px;
  border-radius: 12px;
  border: 1px solid var(--Scale-Gray-100, #dbdbdb);
}

.external-platforms__logo-bar {
  width: 23px;
  height: 20px;
  border-left: 10px solid #005aa3;
  border-right: 13px solid #e02636;
}

.external-platforms__title {
  color: var(--Scale-Gray-900, #100f15);
  text-align: center;

  /* Text Bold */
  font-family: "Roboto";
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: 18px;
  /* 112.5% */
}

.external-platforms__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.external-platforms__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  transition: transform 0.2s;
  padding: 4px 8px;
}

.external-platforms__item:hover {
  border-radius: 8px;
  background: var(--Primary-Blue-50, #f1f6fb);
}

.external-platforms__icon-wrapper {
  width: 48px;
  height: 48px;

  color: var(--btn-blue);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 6px;
  transition:
    background-color 0.2s,
    color 0.2s;
}

.external-platforms__name {
  color: var(--Scale-Gray-900, #100f15);
  text-align: center;

  /* Helper */
  font-family: "Roboto";
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  line-height: 16px;
  /* 133.333% */
}

/* ==========================================================================
   Component: Mobile Accordion Navigation (.sidebar__mobile-sub-list)
   ========================================================================== */
.sidebar__mobile-sub-list {
  background-color: rgba(0, 0, 0, 0.15) !important;
  border-radius: 6px;
  margin-top: 4px;
  padding: 4px !important;
}

.sidebar__mobile-sub-item {
  margin-bottom: 2px;
}

.sidebar__mobile-sub-item:last-child {
  margin-bottom: 0;
}

.sidebar__mobile-sub-link {
  color: rgba(255, 255, 255, 0.75) !important;
  font-size: 11px;
  font-weight: 500;
  text-decoration: none;
  padding: 7px 10px 7px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 6px;
  transition:
    background-color 0.2s,
    color 0.2s;
}

.sidebar__mobile-sub-link:hover {
  color: #ffffff !important;
  background-color: rgba(255, 255, 255, 0.05) !important;
}

.sidebar__mobile-sub-link--active {
  color: #ffffff !important;
  background-color: rgba(255, 255, 255, 0.12) !important;
  font-weight: 600;
}

.sidebar__mobile-sub-arrow {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.4);
  transition: transform 0.2s;
}

.sidebar__mobile-sub-link[aria-expanded="true"] .sidebar__mobile-sub-arrow {
  transform: rotate(180deg);
}

/* Mobile Accordion Navigation Sub-sub-items */
.sidebar__mobile-sub-sub-list {
  background-color: rgba(0, 0, 0, 0.18) !important;
  border-radius: 6px;
  margin-top: 2px;
  padding: 4px !important;
}

.sidebar__mobile-sub-sub-item {
  margin-bottom: 2px;
}

.sidebar__mobile-sub-sub-item:last-child {
  margin-bottom: 0;
}

.sidebar__mobile-sub-sub-link {
  color: rgba(255, 255, 255, 0.6) !important;
  font-size: 10.5px;
  font-weight: 400;
  text-decoration: none;
  padding: 6px 10px 6px 15px;
  display: block;
  border-radius: 6px;
  transition:
    background-color 0.2s,
    color 0.2s;
}

.sidebar__mobile-sub-sub-link:hover {
  color: #ffffff !important;
  background-color: rgba(255, 255, 255, 0.05) !important;
}

.sidebar__mobile-sub-sub-link--active {
  color: #ffffff !important;
  background-color: rgba(255, 255, 255, 0.12) !important;
  font-weight: 500;
}

/* ==========================================================================
   Gutenberg Alignment Classes (WordPress Support)
   ========================================================================== */
.aligncenter {
  display: block;
  margin: 0 auto;
  text-align: center;
}

.alignleft {
  float: left;
  margin-right: 1.5em;
}

.alignright {
  float: right;
  margin-left: 1.5em;
}

.dashboard-main {
  background-color: #f1f6fb;
}

.idea-skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10000;
  padding: 10px 14px;
  border-radius: 4px;
  background: #ffffff;
  color: #0051a8;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  transform: translateY(-160%);
  transition: transform 0.15s ease;
}

.idea-skip-link:focus {
  transform: translateY(0);
}

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid #f9c74f;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   Component: Download Sidebar (.download-sidebar)
   ========================================================================== */
.download-sidebar {
  width: 500px !important;
  background-color: #ffffff;
  border-left: 1px solid var(--Default-Stroke, #dbdbdb);
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.08);
}

.download-sidebar__header {
  padding: 32px 64px 0px 32px;
}

.download-sidebar__title {
  color: var(--Primary, #100f15);

  /* H3 */
  font-family: "Roboto";
  font-size: 22px;
  font-style: normal;
  font-weight: 600;
  line-height: 23px;
  /* 104.545% */
}

.download-sidebar__body {
  padding: 0px 64px 16px 32px;
  padding-bottom: 120px;
  /* Leave space for fixed footer */
  overflow-y: auto;
}

.download-sidebar__body > hr {
  border-color: #bab6b6;
}

.download-sidebar__group {
  margin-bottom: 16px;
}

.download-sidebar__group:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.download-sidebar__group-header {
  margin-bottom: 0;
}

.download-sidebar__group-label {
  cursor: pointer;
  user-select: none;

  color: var(--Primary, #100f15);

  /* Text sm */
  font-family: "Roboto";
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 18px;
  /* 128.571% */
}

.download-sidebar__checkbox {
  width: 18px;
  height: 18px;
  border-color: var(--Default-Stroke, #dbdbdb);
  cursor: pointer;
}

.download-sidebar__checkbox:checked {
  background-color: var(--btn-blue, #0e6efc);
  border-color: var(--btn-blue, #0e6efc);
}

.download-sidebar__toggle-btn {
  color: var(--text-secondary, #5f6071);
  transition: transform 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.download-sidebar__toggle-btn:not(.collapsed) {
  transform: rotate(180deg);
}

.download-sidebar__sublist {
  padding-left: 26px;
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.download-sidebar__subitem-label {
  font-family: "Roboto";
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary, #5f6071);
  cursor: pointer;
  user-select: none;
}

.download-sidebar__footer {
  margin-top: 64px;
}

.download-sidebar__btn-clear {
  flex: 1;
  border: 1.5px solid var(--btn-blue, #0e6efc);
  background-color: #ffffff;
  color: var(--btn-blue, #0e6efc);
  font-family: "Roboto";
  font-size: 14px;
  font-weight: 600;
  padding: 12px 16px;
  border-radius: 8px;
  height: 48px;
  transition:
    background-color 0.2s,
    color 0.2s;
}

.download-sidebar__btn-clear:hover {
  background-color: rgba(14, 110, 252, 0.05);
  color: #0c5ed7;
}

.download-sidebar__btn-download {
  flex: 1;
  background-color: var(--btn-blue, #0e6efc);
  border: 1.5px solid var(--btn-blue, #0e6efc);
  color: #ffffff;
  font-family: "Roboto";
  font-size: 14px;
  font-weight: 600;
  padding: 12px 16px;
  border-radius: 8px;
  height: 48px;
  transition:
    background-color 0.2s,
    border-color 0.2s;
}

.download-sidebar__btn-download:hover {
  background-color: var(--primary-darken-1, #0051a8);
  border-color: var(--primary-darken-1, #0051a8);
}

/* ==========================================================================
   Component: Logout Modal (.logout-modal)
   ========================================================================== */
.logout-modal {
  --bs-modal-bg: transparent;
}

.modal-backdrop.show {
  opacity: 0.4;
  background-color: rgba(16, 15, 21, 1);
  backdrop-filter: blur(2px);
}

.logout-modal__dialog {
  max-width: 560px;
}

.logout-modal__dialog_welcome {
  max-width: 660px;
}

.logout-modal__dialog_welcome iframe {
  min-height: auto !important;
}

.logout-modal__card {
  background-color: #ffffff;
  border-radius: 0;
  box-shadow:
    0px 3.772px 5.658px 2.829px rgba(0, 0, 0, 0.15),
    0px 1.886px 1.886px 0px rgba(0, 0, 0, 0.3);
  padding: 18px 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.logout-modal__header {
  display: flex;
  align-items: center;
  gap: 25px;
  padding: 8px 16px;
}

.logout-modal__info-icon {
  font-size: 24px;
  color: var(--primary-base, #0f69c4);
  flex-shrink: 0;
}

.logout-modal__divider {
  margin: 0;
  border-color: var(--gray-100, #e6e6e6);
  opacity: 1;
}

.logout-modal__title {
  flex: 1;
  color: var(--text-dark, #333);
  margin: 0;
  /* H3 */
  font-family: "Roboto";
  font-size: 24px;
  font-style: normal;
  font-weight: 500;
  line-height: 1.2;
}

.logout-modal__close-btn {
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark, #100f15);
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.logout-modal__close-btn:hover {
  opacity: 1;
}

.logout-modal__body {
  padding: 16px;
}

.logout-modal__text {
  color: var(--text-secondary, #666);
  margin: 0;
  /* Text */
  font-family: "Roboto";
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.2;
}

.logout-modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 0 16px;
}

.logout-modal__btn {
  height: 50px;
  border-radius: 0;
  /* Button Body Small - Bold */
  font-family: "Roboto";
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.5;
  padding: 12px 20px;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

/* "Volver" = ghost / text button */
.logout-modal__btn--cancel {
  background-color: transparent;
  border: none;
  color: var(--primary-base, #0f69c4);
}

.logout-modal__btn--cancel:hover {
  background-color: var(--primary-blue-50, #f1f6fb);
  color: var(--primary-darken-1, #0051a8);
}

/* "Cerrar sesión" = primary base */
.logout-modal__btn--confirm {
  background-color: var(--primary-base, #0f69c4);
  border: none;
  color: #ffffff;
}

.logout-modal__btn--confirm:hover {
  background-color: var(--primary-darken-1, #0051a8);
  color: #ffffff;
}

.logout-modal__btn svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

/* ==========================================================================
   Component: Download Sidebar Local Custom Backdrop & Absolute Positioning
   ========================================================================== */
.download-sidebar {
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  height: 100% !important;
  z-index: 1040 !important;
}

.download-sidebar-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(16, 15, 21, 0.4);
  z-index: 1039;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease-in-out,
    visibility 0.3s ease-in-out;
}

.download-sidebar-backdrop.show {
  opacity: 1;
  visibility: visible;
}

.sidebar-flyout__title-link {
  color: white;
}

.is-active,
.is-current-path {
  background-color: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.sidebar__panel-switch-item.is-active {
  color: #333 !important;
}

.sidebar__nav-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
  flex-shrink: 0;
}

/* Select2 dentro del header de dashboard */

.dashboard-header .select2-container {
  width: 100% !important;
  display: block;
}

.dashboard-header .select2-container--default .select2-selection--single {
  position: relative;
  min-height: 40px !important;
  height: 40px !important;
  padding: 0 38px 0 12px !important;
  border: 1px solid #d0d5dd !important;
  border-radius: 0 !important;
  background-color: #ffffff !important;
  box-shadow: none;
  cursor: pointer;
}

.dashboard-header .select2-container--default .select2-selection--single:hover {
  border-color: #b9c2d3 !important;
}

.dashboard-header
  .select2-container--default.select2-container--focus
  .select2-selection--single,
.dashboard-header
  .select2-container--default.select2-container--open
  .select2-selection--single {
  border-color: #2563eb !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.dashboard-header
  .select2-container--default
  .select2-selection--single
  .select2-selection__rendered {
  height: 38px !important;
  padding: 0 !important;
  color: #101828 !important;
  font-size: 13px;
  font-weight: 600;
  line-height: 38px !important;
  width: 100%;
}

.dashboard-header
  .select2-container--default
  .select2-selection--single
  .select2-selection__placeholder {
  color: #667085;
  font-weight: 400;
}

/* Ocultar flecha nativa */

.dashboard-header
  .select2-container--default
  .select2-selection--single
  .select2-selection__arrow {
  top: 0 !important;
  right: 10px !important;
  width: 24px !important;
  height: 38px !important;
}

.dashboard-header
  .select2-container--default
  .select2-selection--single
  .select2-selection__arrow
  b {
  display: none !important;
}

/* Flecha custom */

.dashboard-header
  .select2-container--default
  .select2-selection--single::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 14px;
  width: 8px;
  height: 8px;
  border-right: 2px solid #667085;
  border-bottom: 2px solid #667085;
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}

.dashboard-header .select2-container--open .select2-selection--single::after {
  transform: translateY(-25%) rotate(225deg);
}

/* Estado deshabilitado */

.dashboard-header
  .select2-container--default.select2-container--disabled
  .select2-selection--single {
  background-color: #f9fafb !important;
  cursor: not-allowed;
  opacity: 0.75;
}

/* Mobile */

@media (max-width: 767px) {
  .dashboard-header .select2-container--default .select2-selection--single {
    min-height: 40px !important;
    height: 40px !important;
  }

  .dashboard-header
    .select2-container--default
    .select2-selection--single
    .select2-selection__rendered {
    height: 38px !important;
    line-height: 38px !important;
  }

  .dashboard-header
    .select2-container--default
    .select2-selection--single
    .select2-selection__arrow {
    height: 38px !important;
  }
}

/* ==========================================================================
   Sidebar Collapse / Expand
   ========================================================================== */

/* Evita scroll horizontal dentro del sidebar, especialmente por el botón toggle */
.sidebar,
.sidebar__container,
.sidebar__middle-section {
  overflow-x: hidden !important;
}

.sidebar__container {
  overflow-y: auto;
}

.sidebar__middle-section {
  overflow-y: auto;
}

.sidebar,
.dashboard-content,
.sidebar-flyout--level-1,
.sidebar-flyout--level-2 {
  transition:
    width 0.25s ease,
    min-width 0.25s ease,
    margin-left 0.25s ease,
    left 0.25s ease;
}

.sidebar-toggle-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: 0;
  background: #002673;
  color: var(--primary-blue-900, #00135a);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  z-index: 1041;
  cursor: pointer;
}

.sidebar-toggle-btn:hover {
  opacity: 0.7;
}

.sidebar-toggle-btn i {
  font-size: 16px;
  line-height: 1;
  transition: transform 0.25s ease;
}

@media (min-width: 992px) {
  body.sidebar-collapsed .sidebar {
    width: var(--sidebar-collapsed-width) !important;
    min-width: var(--sidebar-collapsed-width) !important;
  }

  body.sidebar-collapsed .dashboard-content {
    margin-left: var(--sidebar-collapsed-width);
  }

  body.sidebar-collapsed .sidebar__container {
    padding-left: 12px;
    padding-right: 12px;
  }

  body.sidebar-collapsed .sidebar__header {
    margin-bottom: 24px !important;
  }

  body.sidebar-collapsed .sidebar__brand-logo {
    display: none !important;
  }

  body.sidebar-collapsed .sidebar__brand-link {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  body.sidebar-collapsed .sidebar__brand-link::before {
    content: "";
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: #ffffff;
    font-family: "Roboto", system-ui, sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
  }

  body.sidebar-collapsed .sidebar__profile {
    justify-content: center;
    padding: 8px;
    gap: 0 !important;
  }

  body.sidebar-collapsed .sidebar__profile-info {
    display: none !important;
  }

  body.sidebar-collapsed .sidebar__nav-link {
    justify-content: center;
    padding-left: 10px;
    padding-right: 10px;
    gap: 0 !important;
    border-radius: 6px;
  }

  body.sidebar-collapsed .sidebar__nav-text,
  body.sidebar-collapsed .sidebar__nav-arrow,
  body.sidebar-collapsed .sidebar__subnav-list,
  body.sidebar-collapsed .sidebar__mobile-sub-list,
  body.sidebar-collapsed .sidebar__footer {
    display: none !important;
  }

  body.sidebar-collapsed .sidebar__nav-icon {
    width: 18px;
    height: 18px;
    margin: 0;
  }

  body.sidebar-collapsed .sidebar-toggle-btn {
    right: 50%;
    transform: translate(50%, -50%);
  }

  body.sidebar-collapsed .sidebar-toggle-btn svg {
    transform: rotate(180deg);
  }

  body.sidebar-collapsed .sidebar-flyout {
    display: none !important;
  }

  body.sidebar-collapsed .sidebar__middle-section {
    padding-right: 0 !important;
  }

  body.sidebar-collapsed .sidebar__nav-item {
    margin-bottom: 6px;
  }
}

@media (max-width: 991.98px) {
  .sidebar.offcanvas-lg {
    width: min(320px, calc(100vw - 24px));
    max-width: 100%;
  }

  .sidebar__container {
    padding: 12px 14px;
  }

  .sidebar__header {
    margin-bottom: 16px !important;
  }

  .sidebar__brand-logo {
    margin-top: 8px;
    max-height: 52px;
  }

  .sidebar__footer {
    padding-top: 12px !important;
  }

  .sidebar .btn-close {
    width: 24px;
    height: 24px;
    padding: 10px;
  }

  .sidebar__nav-link,
  .sidebar__subnav-link,
  .sidebar__mobile-sub-link,
  .sidebar__mobile-sub-sub-link {
    min-height: 44px;
    font-size: 14px;
    line-height: 20px;
  }

  .sidebar__mobile-sub-sub-link {
    display: flex;
    align-items: center;
  }

  .sidebar-toggle-btn {
    display: none !important;
  }

  body.sidebar-collapsed .sidebar {
    width: var(--sidebar-width);
    min-width: initial;
  }

  body.sidebar-collapsed .dashboard-content {
    margin-left: 0;
  }
}

.enep-dashboard-scroll {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
}

.enep-dashboard-ref {
  min-width: 600px;
}

.enep-dashboard-ref--responsive {
  min-width: 0;
  width: 100%;
}

@media (max-width: 767.98px) {
  .enep-dashboard-ref--responsive {
    min-width: 600px;
  }
}

/* ==========================================================================
   Component: Sidebar Panel Switcher (.sidebar__panel-switcher)
   ========================================================================== */

.sidebar__panel-switcher {
  width: 100%;
}

.sidebar__panel-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.9);
  overflow: hidden;
  padding: 3px;
}

.sidebar__panel-switch-item {
  display: flex;
  align-items: center;
  justify-content: center;

  min-width: 0;
  min-height: 36px;
  padding: 7px 12px;

  color: #ffffff;
  background: transparent;

  font-size: 15px;
  font-weight: 400;
  line-height: 1.2;

  text-align: center;
  text-decoration: none;

  border-right: 1px solid rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.9);

  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

/* Cada segundo item no necesita borde derecho */
.sidebar__panel-switch-item:nth-child(2n) {
  border-right: 0;
}

/* Última fila: quitar borde inferior */
.sidebar__panel-switch-item:nth-last-child(-n + 2) {
  border-bottom: 0;
}

/* 
     * Si la cantidad es impar,
     * el último item ocupa las dos columnas.
     */
.sidebar__panel-switch-item:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  border-right: 0;
  border-bottom: 0;
}

.sidebar__panel-switch-item:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.sidebar__panel-switch-item.is-active {
  color: #001b68;
  background: #ffffff !important;
  font-weight: 700;
}

.select2-container--default
  .select2-selection--single
  .select2-selection__clear {
  display: none !important;
}

@media (min-width: 992px) {
  body.sidebar-collapsed .sidebar__panel-switcher {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 16px !important;
  }

  body.sidebar-collapsed .sidebar__panel-switch {
    display: flex;
    flex-direction: column;

    width: 55px;

    border: 1px solid rgba(255, 255, 255, 0.9);
    overflow: hidden;
  }

  body.sidebar-collapsed .sidebar__panel-switch-item {
    width: 100%;
    min-width: 0;
    min-height: 36px;
    padding: 6px 2px;

    font-size: 10px;
    line-height: 1;
    white-space: nowrap;

    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.9);
  }

  body.sidebar-collapsed .sidebar__panel-switch-item:last-child {
    border-bottom: 0;
  }

  /*
     * Anula la regla que hace que el último elemento impar
     * ocupe las dos columnas.
     */
  body.sidebar-collapsed .sidebar__panel-switch-item:last-child:nth-child(odd) {
    grid-column: auto;
    border-right: 0;
  }
}

/* ==========================================================================
   Dashboard loader
   ========================================================================== */

.dashboard-loader {
  width: 100%;
  min-height: 160px;
  padding: 32px 24px;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;

  border: 1px solid var(--Scale-Gray-100, #dbdbdb);
  border-radius: 8px;
  background: #ffffff;
}

.dashboard-loader.d-none {
  display: none !important;
}

.dashboard-loader__spinner {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;

  border: 4px solid var(--Tertreary-Default-Stroke, #cae0ff);
  border-top-color: var(--primary-base, #0f69c4);
  border-radius: 50%;

  animation: dashboard-loader-spin 0.8s linear infinite;
}

.dashboard-loader__content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dashboard-loader__title {
  color: var(--Primary, #100f15);
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 22px;
}

.dashboard-loader__text {
  color: var(--Secondary, #5f6071);
  font-family: "Roboto", sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 18px;
}

@keyframes dashboard-loader-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 767px) {
  .dashboard-loader {
    min-height: 140px;
    padding: 24px 16px;
    flex-direction: column;
    text-align: center;
  }

  .dashboard-loader__content {
    align-items: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dashboard-loader__spinner {
    animation-duration: 1.6s;
  }
}

.sidebar__panel-switch-item {
  border: none !important;
}

.dashboard-summary-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #d9ecff;
  border-radius: 8px;
  color: #333;
}

.dashboard-summary-indicator__label {
  font-size: 14px;
  font-weight: 500;
}

.dashboard-summary-indicator__value {
  font-size: 24px;
  font-weight: 500;
  line-height: 1;
}

/* ==========================================================================
   Component: Menu Status (Nuevo / Próximamente)
   ========================================================================== */

.sidebar__menu-label {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex: 1;
}

.sidebar__menu-label-text {
  min-width: 0;
}

.sidebar__menu-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Estado: Nuevo */
.sidebar__menu-status--new {
  padding: 2px 5px;
  border-radius: 4px;
  background: #ffac11;
  color: #172b4d;
  font-family: "Roboto", system-ui, sans-serif;
  font-size: 8px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Estado: Próximamente */
.sidebar__menu-status--coming-soon {
  width: 16px;
  height: 16px;
  color: #ffac11;
}

.sidebar__menu-status--coming-soon svg {
  display: block;
  width: 16px;
  height: 16px;
}

/* Evita que el estado desplace el chevron */
.sidebar__subnav-link > .sidebar__menu-label,
.sidebar-flyout__link > .sidebar__menu-label,
.sidebar__mobile-sub-link > .sidebar__menu-label,
.sidebar__mobile-sub-sub-link > .sidebar__menu-label {
  margin-right: 6px;
}

/* En sidebar colapsado no mostrar badges/estados */
@media (min-width: 992px) {
  body.sidebar-collapsed .sidebar__menu-status {
    display: none !important;
  }
}

/* ==========================================================================
   Template Próximamente
   ========================================================================== */

.coming-soon {
  width: 100%;
  min-height: calc(100vh - 150px);

  display: flex;
  justify-content: center;
  align-items: flex-start;

  padding: 56px 24px 80px;

  background-color: #ffffff;
}

.coming-soon__content {
  width: 100%;
  max-width: 720px;

  display: flex;
  flex-direction: column;
  align-items: center;

  text-align: center;
}

.coming-soon__image-wrapper {
  width: 100%;
  max-width: 526px;

  margin-bottom: 32px;
}

.coming-soon__image {
  display: block;

  width: 100%;
  height: auto;

  object-fit: contain;
}

.coming-soon__title {
  color: var(--Primary, #333);
  /* Text Bold */
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: 120%;
  /* 19.2px */
}

.coming-soon__text {
  color: var(--Secondary, #666);
  text-align: center;

  /* Text sm */
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 120%;
  /* 16.8px */
}

.coming-soon__help {
  color: var(--Secondary, #666);

  /* Helper */
  font-family: "Roboto", sans-serif;
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  line-height: 120%;
}

.coming-soon__help a {
  color: var(--Links, #0f69c4);

  /* Helper */
  font-family: "Roboto", sans-serif;
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  line-height: 120%;
  text-decoration-line: underline;
  text-decoration-style: solid;
  text-decoration-skip-ink: auto;
  text-decoration-thickness: auto;
  text-underline-offset: auto;
  text-underline-position: from-font;
}

.coming-soon__help a:hover {
  color: var(--primary-darken-1, #0051a8);
}

@media (max-width: 767px) {
  .coming-soon {
    min-height: auto;
    padding: 40px 16px 64px;
  }

  .coming-soon__image-wrapper {
    max-width: 360px;
    margin-bottom: 24px;
  }

  .coming-soon__title {
    font-size: 16px;
  }

  .coming-soon__text {
    font-size: 13px;
  }
}

.admin-pages-main {
  --admin-pages-blue: #0f69c4;
  min-height: 100vh;
  padding: 45px;
  background-color: #f5f5f5;
  color: #333;
}

.admin-pages-header {
  max-width: 1472px;
  margin: 0 auto clamp(48px, 5vw, 84px);
}

.admin-pages-header__title {
  margin: 0 0 12px;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.admin-pages-header__description {
  max-width: 1440px;
  font-size: 16px;
  line-height: 1.55;
}

.admin-pages-header__description p,
.admin-page-card__description p {
  margin: 0;
}

.admin-pages-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 21px 22px;
  max-width: 1472px;
  margin: 0 auto;
}

.admin-page-card {
  display: flex;
  min-width: 0;
  min-height: 206px;
  flex-direction: column;
  align-items: stretch;
  padding: 17px;
  border: 1px solid #e1e4e8;
  border-radius: 0;
  background-color: #fff;
  text-align: left;
}

.admin-page-card:hover {
  border: 1px solid #9bd3fa;
}

.admin-page-card__icon {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 9px;
  border: 1px solid #e1e4e8;
  border-radius: 7px;
  background-color: #f1f2f3;
  place-items: center;
  padding: 5px;
}

.admin-page-card__icon-image {
  display: block;
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.admin-page-card__content {
  display: flex;
  flex-direction: column;
}

.admin-page-card__title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}

.admin-page-card__description {
  max-width: none;
  margin: 0;
  color: #444;
  font-size: 14px;
  line-height: 1.5;
}

.admin-page-card__button {
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  height: auto;
  margin-top: 10px;
  padding: 7px 12px;
  border: none;
  border-radius: 0;
  background-color: var(--primary-darken-1, #0051a8);
  color: #ffffff;
  transition: background-color 0.2s;
  font-family: "Roboto";
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
}

.admin-page-card__button:hover,
.admin-page-card__button:focus-visible {
  opacity: 0.9;
}

.admin-page-card__button:focus-visible {
  outline: 3px solid rgba(15, 105, 196, 0.3);
  outline-offset: 3px;
}

@media (max-width: 800px) {
  .admin-pages-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .admin-pages-main {
    padding: 32px 20px 56px;
  }

  .admin-pages-header {
    margin-bottom: 48px;
  }

  .admin-pages-grid {
    grid-template-columns: 1fr;
    gap: 21px;
  }

  .admin-page-card__content {
    min-height: 0;
  }

  .admin-page-card__button {
    min-height: 30px;
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .admin-page-card__button {
    transition: none;
  }
}

/* 404 */
.dep-404-main {
  min-width: 0;
}

.dep-404 {
  position: relative;
  display: grid;
  width: 100%;
  min-height: calc(100vh - 40px);
  padding: 48px 20px;
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 20%, rgba(15, 105, 196, 0.18), transparent 32%),
    radial-gradient(circle at 90% 85%, rgba(0, 175, 239, 0.16), transparent 30%),
    linear-gradient(140deg, #f5f9ff 0%, #ffffff 50%, #eef5ff 100%);
  place-items: center;
}

.dep-404__shape {
  position: absolute;
  border-radius: 999px;
  filter: blur(12px);
  opacity: 0.55;
  pointer-events: none;
}

.dep-404__shape--one {
  top: -90px;
  left: -100px;
  width: 290px;
  height: 290px;
  background: rgba(15, 105, 196, 0.22);
}

.dep-404__shape--two {
  right: -120px;
  bottom: -120px;
  width: 360px;
  height: 360px;
  background: rgba(255, 190, 11, 0.22);
}

.dep-404__card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 760px;
  padding: 32px 30px 28px;
  border: 1px solid rgba(12, 66, 120, 0.1);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 20px 50px rgba(6, 44, 90, 0.12);
  text-align: center;
}

.dep-404__code {
  margin: 0;
  color: #0f69c4;
  font-size: clamp(54px, 12vw, 112px);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -2px;
}

.dep-404__kicker {
  margin: 10px 0 6px;
  color: #2f4f72;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.dep-404__title {
  margin: 0;
  color: #102d4a;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.2;
}

.dep-404__description {
  max-width: 540px;
  margin: 14px auto 0;
  color: #3b5875;
  font-size: 16px;
  line-height: 1.55;
}

.dep-404__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 24px 0;
}

.dep-404__btn {
  display: inline-flex;
  min-width: 170px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background-color 0.15s ease,
    color 0.15s ease;
}

.dep-404__btn:hover {
  transform: translateY(-1px);
}

.dep-404__btn--primary {
  background: #0f69c4;
  box-shadow: 0 10px 20px rgba(15, 105, 196, 0.28);
  color: #fff;
}

.dep-404__btn--primary:hover {
  background: #0c57a2;
  color: #fff;
}

@media (max-width: 640px) {
  .dep-404 {
    padding: 28px 14px;
  }

  .dep-404__card {
    padding: 26px 18px 22px;
    border-radius: 18px;
  }

  .dep-404__btn {
    width: 100%;
  }
}
