/*
* GLOBAL
*/
:root {
  --acento: #086a8d;
  --fondo: #021D49;
  --fondo-tenue: #b4cad8;
  --fondo-claro: #D0CFCD;
  --texto: #3C3C3C;
}

html {
  font-size: 20px;
  font-family: "Roboto", sans-serif;
  font-weight: 300;
  overflow-x: hidden
}
body {
  font-size: inherit;
  font-family: inherit;
  font-weight: inherit;
  overflow-x: hidden
}

h1 {
  font-size: 2.25rem;
}
h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.75rem;
}
h4 {
  font-size: 1.5rem;
}
h5 {
  font-size: 1.25rem;
}
h1, h2, h3, h4, h5 {
  color: var(--fondo);
  font-family: inherit;
  font-weight: 400;
  line-height: 1;
  padding: 0;
  margin: 0;
}

p {
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.5;
  padding: 0;
  margin: 0;
}

a {
  font-family: inherit;
  text-decoration: none;
}

ul {
  padding-left: 2rem;
}
ul li, ol li {
  font-family: inherit;
}

img {
    max-width: 100%;
}

.athena-btn {
  display: inline-block;
  color: var(--fondo);
  font-weight: 500;
  line-height: 44px;
  padding: 0 1.5rem !important;
  background-color: transparent;
  border: 2px solid var(--fondo);
  border-radius: 10rem;
  -webkit-transition: 0.3s;
  -o-transition: 0.3s;
  transition: 0.3s;
}
.athena-btn:hover,
.athena-btn:focus {
    color: #FFF !important;
    background-color: var(--acento);
    border-color: var(--acento);
}

.toggle-password {
    display: block;
    position: relative;
    width: 48px;
    margin: 0 0 -48px auto;
    cursor: pointer
}
.toggle-password img {
    width: 100%;
    padding: 10px;
    opacity: 0.6;
    -webkit-transition: 0.3s;
    -o-transition: 0.3s;
    transition: 0.3s;
    pointer-events: none
}
.toggle-password img:hover,
.toggle-password img:focus {
  opacity: 0.8
}
.toggle-password.disabled img:last-of-type {
  display: none
}
.toggle-password:not(.disabled) img:first-of-type {
  display: none
}


/* 
 * CUSTOM POP UP
 */
.custom-popup-trigger {
  cursor: pointer
}

.custom-popup {
  position: fixed;
  width: 100vw;
  height: 100vh;
  height: calc(var(--vh, 1vh) * 100);
  left: 0;
  top: 0;
  opacity: 0;
  -webkit-transition: 0.3s;
  -o-transition: 0.3s;
  transition: 0.3s;
  z-index: 9999;
  pointer-events: none
}
.custom-popup.active {
  opacity: 1;
  pointer-events: initial
}
.custom-popup .overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  background-color: rgba(255,255,255,0.5);
}
.custom-popup .container {
  position: absolute;
  width: 40%;
  max-height: 90vh;
  max-height: calc(var(--vh, 1vh) * 90);
  left: 50%;
  top: 50%;
  font-size: 1rem;
  line-height: 1;
  background-color: #FFF;
  padding: 1rem 2rem;
  margin: 0;
  border-radius: 1rem;
  -webkit-box-shadow: 0 0 0.5rem 0.05rem rgba(0,0,0,0.25);
          box-shadow: 0 0 0.5rem 0.05rem rgba(0,0,0,0.25);
  -webkit-transform: translate(-50%, -50%);
      -ms-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
    overflow-x: hidden;
    overflow-y: auto;
}
.custom-popup .container > button:first-of-type {
  position: absolute;
  width: 48px;
  top: 0;
  right: 0;
  background-color: transparent;
  border: none
}
.custom-popup .container > button img {
  width: 100%
}
.custom-popup .container h2 {
  color: var(--acento);
  font-size: 1.5rem;
  text-align: center;
  line-height: 1;
  margin: 0 0 1rem;
}
.custom-popup .container p {
  font-size: 1.25rem !important;
  line-height: 1;
  margin: 0 0 0.5rem;
}

.custom-popup form > div {
    margin: 0 0 0.5rem
}
.custom-popup .form-label {
    font-size: 1rem;
    line-height: 1;
    margin: 0 0 0.25rem
}


/*
 * LOGIN
 */
#login {
  position: relative;
  width: 100vw;
  height: 100vh;
  background-color: var(--fondo, #1a1a2e);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  padding: 5vw 2.5vw;
}
#login > img {
    position: absolute;
    width: 10rem;
    vertical-align: middle;
    left: 1rem;
    top: 0;
    padding: 2.5rem 0;

}
#login .container {
  display: block;
  position: absolute;
  width: 40%;
  left: 50%;
  top: 45%;
  text-align: center;
  line-height: 1;
  background-color: rgba(255, 255, 255, 0.9);
  padding: 2.5vw;
  -webkit-box-shadow: 0 0 0.5rem 0.05rem rgba(0,0,0,0.25);
          box-shadow: 0 0 0.5rem 0.05rem rgba(0,0,0,0.25);
  margin: 2.5vw auto;
  -webkit-transform: translate(-50%, -50%);
      -ms-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
}
#login .container > img {
  width: 10rem;
  height: 10rem;
  -o-object-fit: contain;
     object-fit: contain;
  border-radius: 50%;
  -webkit-box-shadow: 0 0 0.5rem 0.05rem rgba(0,0,0,0.25);
          box-shadow: 0 0 0.5rem 0.05rem rgba(0,0,0,0.25);
  margin: 0 0 1rem;
}
#login .container label {
  display: block;
  text-align: left;
  margin: 1rem 0 0.5rem;
}
#login .container input:not([type="checkbox"]) {
  display: block;
  width: 100%;
  font-size: 1.25rem;
  text-align: left;
  line-height: 46px;

  padding: 0 1.5rem;
  border-radius: 10rem;

}
#login .container .remember-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
}
#login .container .remember-me {
    display: flex !important;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    cursor: pointer;
    color: var(--texto);
    margin: 0;
}
#login .container .remember-me input[type="checkbox"] {
    width: auto !important;
    height: auto !important;
    display: inline-block !important;
    margin: 0;
    accent-color: var(--acento);
    cursor: pointer;
    flex-shrink: 0;
}
#login .container .forgot-password {
    color: var(--texto);
    font-size: 0.9rem;
    text-decoration: underline !important;
    -webkit-transition: 0.3s;
    -o-transition: 0.3s;
    transition: 0.3s;
}
#login .container .forgot-password:hover,
#login .container .forgot-password:focus {
    color: var(--acento)
}
#login .container .athena-btn {
  margin: 1rem 0 0;
}

#recoveryModal .modal-content {
    padding: 2.5vw;
}
#recoveryModal h4 {
    margin: 0 0 0.5rem;
}
#recoveryModal p {
    line-height: 1;
    margin: 0 0 1rem;
}


/*
 * TOP BAR
 */
#top-bar {
    display: block;
    position: fixed;
    width: 100vw;
    height: 5rem;
    left: 0;
    top: 0;
    text-align: right;
    background-color: #FFF;
    padding: 0;
    -webkit-box-shadow: 0 0 0.5rem 0.05rem rgba(0,0,0,0.25);
            box-shadow: 0 0 0.5rem 0.05rem rgba(0,0,0,0.25);
    z-index: 1030;
}

#top-bar .left-block {
  letter-spacing: -1em;
  float: left;
}
#top-bar .left-block .back {
  display: inline-block;
  width: 48px;
  left: 2.5vw;
  padding: 10px;
  border-radius: 50%;
  margin: calc((5rem - 48px) / 2) 0 0 0.5rem;
  -webkit-transition: 0.3s;
  -o-transition: 0.3s;
  transition: 0.3s
}
#top-bar .left-block .back:hover,
#top-bar .left-block .back:focus {
  -webkit-transform: scale(1.25);
      -ms-transform: scale(1.25);
          transform: scale(1.25);
}
body:not(.gestion-page):has(#dashboard) #top-bar .left-block .back,
body:has(#ht-options) #top-bar .left-block .back {
    opacity: 0;
    pointer-events: none;
}
#top-bar .left-block .back img {
    width: 100%;
    -webkit-transition: 0.3s;
    -o-transition: 0.3s;
    transition: 0.3s;
}
#top-bar .left-block .site-logo {
    display: inline-block;
    width: calc(15vw - 48px - 0.5rem);
    height: 5rem;
    vertical-align: middle;
    object-fit: contain;
    object-position: left center;
    padding: 0.5rem 0;
}

#top-bar .client-logo {
    position: absolute;
    width: 8rem;
    height: 5rem;
    left: 50%;
    top: 0;
    -webkit-transform: translateX(-50%);
        -ms-transform: translateX(-50%);
            transform: translateX(-50%);
    -o-object-fit: contain;
       object-fit: contain;
}

#top-bar .right-block {
    float: right;
    padding: calc(2.5rem - 24px) 0;
    margin-right: 2.5vw;
}
#top-bar .right-block .custom-popup-trigger {
    display: inline-block;
    position: relative;
    width: 40px;
    height: 40px;
    color: #FFF;
    font-size: 1rem;
    text-align: center;
    line-height: 40px;
    margin: 4px 4px 4px calc(0.5rem + 4px);
}
#top-bar .right-block .custom-popup-trigger b {
    display: block;
    width: 100%;
    height: 100%;
    background-color: var(--fondo);
    border-radius: 50%;
}
#top-bar .right-block .custom-popup-trigger:before {
    content: "";
    display: inline-block;
    position: absolute;
    width: 100%;
    height: 100%;
    left: 50%;
    top: 50%;
    background-color: var(--fondo-tenue);
    border-radius: 50%;
    -webkit-transform: translate(-50%, -50%);
        -ms-transform: translate(-50%, -50%);
            transform: translate(-50%, -50%);
    -webkit-transition: 0.3s;
    -o-transition: 0.3s;
    transition: 0.3s;
}
#top-bar .right-block .custom-popup-trigger:hover:before,
#top-bar .right-block .custom-popup-trigger:focus:before {
    width: 150%;
    height: 150%;
}
#top-bar .right-block .custom-popup-trigger b {
    position: relative;
    font-weight: 500;
}


/* ========================================
   TOPBAR SEARCH
   ======================================== */
#topbar-search {
    display: inline-flex;
    align-items: center;
    background: #f5f5f5;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 6px 12px;
    margin-right: 8px;
    vertical-align: middle;
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
    max-width: 320px;
}
#topbar-search:focus-within {
    background: #fff;
    border-color: var(--acento, #7f58bc);
    box-shadow: 0 2px 8px rgba(127,88,188,0.12);
}
#topbar-search .bi-search {
    color: #999;
    font-size: 14px;
    margin-right: 8px;
    flex-shrink: 0;
    cursor: pointer;
}
#topbar-search #module-search-input {
    border: none;
    outline: none;
    background: transparent;
    font-size: 13px;
    color: #333;
    width: 180px;
    padding: 0;
}
#topbar-search #module-search-input::placeholder { color: #aaa; }
#topbar-search .search-kbd-hint {
    background: #e8e8e8;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 1px 6px;
    font-size: 10px;
    color: #888;
    flex-shrink: 0;
    font-family: inherit;
    margin-left: 8px;
}

/* Search Results Overlay (positioned below topbar) */
#search-results-overlay {
    display: none;
    position: fixed;
    top: 5rem;
    right: 60px;
    width: 400px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    max-height: 420px;
    overflow-y: auto;
    z-index: 1035;
}
#search-results-overlay .search-section { padding: 8px 0; }
#search-results-overlay .search-section:not(:last-child) { border-bottom: 1px solid #eee; }
#search-results-overlay .search-section-title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: #999;
    padding: 6px 16px 4px;
    letter-spacing: 0.5px;
}
#search-results-overlay .search-result-item {
    padding: 10px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.1s;
}
#search-results-overlay .search-result-item:hover,
#search-results-overlay .search-result-item.active { background: #f5f0ff; }
#search-results-overlay .search-result-item .result-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}
#search-results-overlay .search-result-item .result-icon.icon-module { background: #ede7f6; color: #7f58bc; }
#search-results-overlay .search-result-item .result-icon.icon-app { background: #e3f2fd; color: #1976d2; }
#search-results-overlay .search-result-item .result-icon.icon-solution { background: #e8f5e9; color: #388e3c; }
#search-results-overlay .search-result-item .result-name { font-size: 14px; font-weight: 500; color: #333; }
#search-results-overlay .search-result-item .result-name mark { background: #fff3cd; color: inherit; padding: 0 1px; border-radius: 2px; }
#search-results-overlay .search-result-item .result-breadcrumb { font-size: 12px; color: #999; }
#search-results-overlay .search-empty,
#search-results-overlay .search-no-results { padding: 20px 16px; text-align: center; color: #999; font-size: 14px; }

/* ========================================
Aqui comienza el parche
   ======================================== */


#popup-user-menu .container {
    width: 20%;
    left: initial;
    top: 5rem;
    right: 2vw;
    padding: 0.5rem;
    -webkit-transform: none;
        -ms-transform: none;
            transform: none;
}

body#balanced_scorecard #popup-user-menu .container,
body#control_tower #popup-user-menu .container {
    width: 20% !important;
    height: auto !important;
    min-height: auto !important;
    max-width: none !important;
    position: fixed !important;
    top: 5rem !important;
    right: 2vw !important;
    left: auto !important;
    transform: none !important;
    z-index: 9999999 !important;
    background: white !important;
    border-radius: 1rem !important;
    padding: 0.5rem !important;
    box-shadow: 0 0 0.5rem 0.05rem rgba(0,0,0,0.25) !important;
}

body#balanced_scorecard #popup-user-menu.active .container,
body#control_tower #popup-user-menu.active .container {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* ========================================
Acá finaliza el parche
   ======================================== */

/* ── Profile header ── */
#popup-user-menu .container p {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    margin: 0;
}
#popup-user-menu .container p big {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    color: #FFF;
    font-weight: 500;
    font-size: 0.95rem;
    text-align: center;
    line-height: 1;
    background-color: var(--fondo);
    border-radius: 50%;
}
#popup-user-menu .container p b {
    display: block;
    min-width: 0;
    line-height: 1.4;
    font-weight: 600;
    font-size: 0.9rem;
}
#popup-user-menu .container p b .user-name {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
#popup-user-menu .container p b small {
    display: block;
    color: #888;
    font-size: 0.75rem;
    font-weight: 400;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ── Menu items ── */
#popup-user-menu .container ul {
    padding: 0.25rem 0;
    margin: 0;
    border-top: 1px solid #eee;
}
#popup-user-menu .container ul li {
    list-style: none;
    border: none;
}
#popup-user-menu .container ul li:has(a[href*="athena"]) {
    display: none;
}

#popup-user-menu .container ul li a {
    display: block;
    color: #3c3c3c;
    line-height: 1;
    padding: 0.5rem 1rem;
    transition: background-color 0.15s, color 0.15s;
}
#popup-user-menu .container ul li a:hover,
#popup-user-menu .container ul li a:focus {
    color: var(--acento);
    background-color: var(--fondo-tenue, #f5f0ff);
}
#popup-user-menu .container ul li.active a {
    color: var(--fondo);
    font-weight: 500;
    pointer-events: none;
}

/* ── Logout button ── */
#popup-user-menu .container ul li:last-of-type {
    padding: 0.5rem 0.25rem 0.25rem;
    margin-top: 0.25rem;
    border-top: 1px solid #eee;
}
#popup-user-menu .container ul li:last-of-type a {
    display: block;
    position: relative;
    color: var(--acento);
    font-weight: 500;
    text-align: center;
    line-height: 44px;
    padding: 0;
    border: 2px solid var(--acento);
    border-radius: 0.5rem;
}
#popup-user-menu .container ul li:last-of-type a:hover,
#popup-user-menu .container ul li:last-of-type a:focus {
    background-color: var(--fondo-tenue, #f5f0ff);
}
#popup-user-menu .container ul li:last-of-type a img {
    position: absolute;
    width: 1.75rem;
    max-width: 44px;
    left: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
}


/*
 * SIDE BAR
 */
#side-bar {
    position: fixed;
    width: 15%;
    height: 100vh;
    height: calc(var(--vh, 1vh) * 100);
    left: 0; 
    top: 0;
    background-color: var(--fondo);
    padding: 5.5rem 0 2.5vw;
    -webkit-transition: 0.3s;
    -o-transition: 0.3s;
    transition: 0.3s;
    overflow-y: auto;
    z-index: 1000;
}
.menu-collapsed #side-bar {
  width: 2rem;
}
#side-bar p {
  position: relative;
  color: #FFF;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  line-height: 38px;
  padding: 0 0.5rem;
  margin: 0.5rem 0 0;
  -webkit-transition: 0.3s;
  -o-transition: 0.3s;
  transition: 0.3s;
  cursor: pointer;
}
.menu-collapsed #side-bar p {
  font-size: 0;
  background-size: 1.25rem 1.25rem;
  background-position: 0.35rem 0.5rem;
  background-repeat: no-repeat;
  padding: 0 1rem 0.5rem;
  border-top: 1px solid #FFF;
}
.menu-collapsed #solutions-title {
  background-image: url(/assets/media/placeholder/solutions-m.png);
}
.menu-collapsed #apps-title {
  background-image: url(/assets/media/placeholder/apps-m.png);
}
.menu-collapsed #modules-title {
  background-image: url(/assets/media/placeholder/modules-m.png);
}
/*#side-bar:not(:has(#apps-options li)) #apps-title {
  opacity: 0.5;
  pointer-events: none;
}
#side-bar:not(:has(#modules-options li)) #modules-title {
  opacity: 0.5;
  pointer-events: none;
}*/
#access-title {
    display: none;
}
#side-bar p:after {
  content: "";
  display: inline-block;
  position: absolute;
  width: 1em;
  height: 1em;
  top: 50%;
  right: 0.5rem;
  background: url(/assets/media/icon/arrow.png) no-repeat center center;
  background-size: contain;
  -webkit-transition: 0.3s;
  -o-transition: 0.3s;
  transition: 0.3s;
  -webkit-transform: translateY(-50%) rotate(180deg);
      -ms-transform: translateY(-50%) rotate(180deg);
          transform: translateY(-50%) rotate(180deg);
  -webkit-filter: brightness(0) invert(1);
          filter: brightness(0) invert(1);
  cursor: pointer
}
.menu-collapsed #side-bar p:after {
  width: 0.5rem;
  height: 0.5rem;
  left: 50%;
  top: initial;
  bottom: 0;
  background-image: url(/assets/media/icon/arrow-m.png);
  -webkit-transform: translateX(-50%) rotate(180deg);
      -ms-transform: translateX(-50%) rotate(180deg);
          transform: translateX(-50%) rotate(180deg);
}
#side-bar p.active:after {
  -webkit-transform: translateY(-50%) rotate(0deg);
      -ms-transform: translateY(-50%) rotate(0deg);
          transform: translateY(-50%) rotate(0deg);
}
.menu-collapsed #side-bar p.active:after {
  -webkit-transform: translateX(-50%);
      -ms-transform: translateX(-50%);
          transform: translateX(-50%);
}
#side-bar ul {
  max-height: 0;
  padding: 0;
  margin: 0;
  -webkit-transition: 0.3s;
  -o-transition: 0.3s;
  transition: 0.3s;
  overflow-x: hidden;
}
#access-title + ul {
    display: none;
}
#side-bar ul:first-of-type {
  max-height: 1000vh !important;
}
#side-bar p.active + ul {
  max-height: 1000vh;
}
#side-bar ul li {
  list-style: none;
}
#side-bar ul li a,
#side-bar ul#pinned-options li a {
  --icon-url: url("/assets/media/placeholder/menu-2d.png");
  display: block;
  position: relative;
  color: #FFF;
  font-size: 0.8rem;
  -o-text-overflow: ellipsis;
     text-overflow: ellipsis;
  line-height: 38px;
  background-image: var(--icon-url);
  background-size: 1rem 1rem;
  background-position: 0.5rem center;
  background-repeat: no-repeat;
  padding: 0 0.5rem 0 2rem;
  white-space: nowrap;
  overflow: hidden;
}
.menu-collapsed #side-bar ul li a {
  font-size: 0;
}
#side-bar ul li.active a {
    font-weight: bold;
    background-color: var(--acento) !important;
}
#side-bar ul li:has(a.disabled) {
    display: none;
}
/* fixed */
#side-bar ul li a[data-title*="inicio"] {
    background-image: url(/assets/media/icon/home.png);
}



#collapse-menu {
  display: block;
  color: #FFF;
  font-size: 0.8rem;
  line-height: 38px;
  padding: 0 0.5rem;
  margin: 0.5rem 0 0;
  white-space: nowrap;
  cursor: pointer;
}
.menu-collapsed #collapse-menu {
  font-size: 0;
}
#collapse-menu img {
  display: inline-block;
  width: 1rem;
  vertical-align: middle;
  -webkit-transform: rotate(180deg);
      -ms-transform: rotate(180deg);
          transform: rotate(180deg);
  -webkit-transition: 0.3s;
  -o-transition: 0.3s;
  transition: 0.3s;
}
.menu-collapsed #collapse-menu img {
  -webkit-transform: none;
      -ms-transform: none;
          transform: none;
}


/*
 * SIDE PANEL
 */
#side-panel {
    position: fixed;
    width: 15%;
    height: 100vh;
    height: calc(var(--vh, 1vh) * 100);
    left: 0; 
    top: 0;
    background-color: var(--acento);
    padding: 6rem 0 1rem;
    -webkit-transition: 0.3s;
    -o-transition: 0.3s;
    transition: 0.3s;
    overflow-y: auto;
    z-index: 1000;
}
#side-panel .top-views {
    padding: 0 1vw
}
#side-panel .top-views > p {
    color: #FFF;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
}
#side-panel .top-views .card-full {
    display: inline-block;
    padding: 0 0 0.5rem;
    margin: 1rem 0 0;
    border-bottom: 0.1rem solid var(--fondo-claro);
    overflow-x: hidden;
}
#side-panel .top-views .card-full img {
    width: 100%;
    background-color: var(--fondo-tenue);
    padding: 0 2rem;
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
}
#side-panel .top-views .card-full p {
    color: var(--acento);
    text-align: center;
    background-color: var(--fondo-claro);
    padding: 0.25rem;
    border-top: 0.1rem solid var(--fondo-claro);
    border-bottom-left-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
    -webkit-transition: 0.3s;
    -o-transition: 0.3s;
    transition: 0.3s;
}
#side-panel .top-views .card-full:hover p,
#side-panel .top-views .card-full:focus p {
    color: var(--fondo-claro);
    background-color: var(--fondo-tenue);
}
#side-panel .top-views .card-full span {
    display: block;
    color: var(--fondo-claro);
    font-size: 0.8rem;
    font-weight: 200;
    text-align: center;
    line-height: 1.5;
}
#side-panel .browse-views {
    display: none
}


/*
 * PANEL
 */
.panel {
  background-color: #f4f6f9
}
.panel .main {
  position: relative;
  padding: calc(100px + 2rem) 9vw 2rem
}
.panel .main h1 {
  font-size: 1.75rem;
  padding: 0 1vw;
  margin: 1vw 0
}
.panel .main a:not(.athena-btn) {
  display: inline-block;
  width: calc(100% / 4 - 2vw);
  aspect-ratio: 1 / 0.67;
  vertical-align: top;
  background-color: #FFF;
  padding: 1rem;
  border-radius: 0.5rem;
  -webkit-box-shadow: 0 0 0.5rem 0.05rem rgba(0,0,0,0.25);
          box-shadow: 0 0 0.5rem 0.05rem rgba(0,0,0,0.25);
  margin: 1vw
}
#clear-cache-btn {
  position: absolute;
  top: calc(100px + 2rem);
  right: 10vw;
}
.panel .main a:not(.athena-btn) img {
  display: inline-block;
  width: 3rem;
  height: 3rem;
  vertical-align: middle;
  padding: 0.5rem;
  border: 0.1rem solid rgba(0,0,0,0.25);
  border-radius: 0.2rem;
  -o-object-fit: contain;
     object-fit: contain;
    -webkit-transition: 0.3s;
    -o-transition: 0.3s;
    transition: 0.3s;
}
.panel .main a:hover img,
.panel .main a:focus img {
    background-color: var(--fondo-tenue);
}
.panel .main a h2 {
  display: inline-block;
  vertical-align: middle;
  color: var(--texto);
  font-size: 1.5rem;
  line-height: 2;
  margin-left: 1rem;
  -webkit-transition: 0.3s;
  -o-transition: 0.3s;
  transition: 0.3s;
}
.panel .main a:hover h2,
.panel .main a:focus h2 {
    color: var(--acento);
}
.panel .main a:not(.athena-btn) p {
  color: #3c3c3c;
  margin: 0.5rem 0 0;
}

.panel .search-bar {
  text-align: center;
  background-color: #FFF;
  padding: 1rem 0;
  margin: 5rem 0 2rem
}
.panel .search-bar h1 {
  display: inline-block;
  vertical-align: middle;
  font-size: 1.75rem;
  margin: 0
}
.panel .search-bar input {
    display: inline-block;
    width: 40vw;
    vertical-align: middle;
    line-height: 48px;
    background: url(/assets/media/icon/search.png) no-repeat 1rem center;
    background-size: 2rem auto;
    padding: 0.5rem 1rem 0.5rem 3.5rem;
    border: none;
    border-left: 0.1rem solid rgb(222, 226, 230);
    margin: 0 1rem;
    outline: none !important;
    -webkit-transition: 0.3s;
    -o-transition: 0.3s;
    transition: 0.3s;
}
.panel .search-bar input:focus {
    border-color: var(--acento);
}
.panel .search-bar .athena-btn big {
  display: inline-block;
  vertical-align: middle;
  font-size: 175%;
  font-weight: 300;
}

.panel > .container {
    width: 80%;
    max-width: initial;
    background-color: #FFF;
    padding: 2rem;
    margin: 0 auto 2rem;
    border-radius: 1rem
}
.panel > .container .dt-length label {
    margin-left: 0.5rem;
}
.panel > .container .dt-search {
    opacity: 0;
    pointer-events: none;
}


/*
 * MAIN DASHBOARD
 */
#dashboard {
  padding: 5rem 0 0 15%;
  -webkit-transition: 0.3s;
  -o-transition: 0.3s;
  transition: 0.3s;
}
.menu-collapsed #dashboard {
  padding: 5rem 0 0 2rem;
}


/*
 * DEFAULT DASHBOARD
 */
#default-dashboard {
  display: block;
  background: #f1f1f1;
  padding: 2.5vw 4vw;
}


/*
 * ORIGINAL DASHBOARD
 */
#original-dashboard {
  display: none;
}

#solutions {
  padding: 2.5vw 7.5vw;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  padding: 2.5vw 4vw;
}
#solutions h2 {
  width: 100%;
  padding: 0 1vw;
  margin: 0;
  font-size: 2.5rem;
  transition: font-size 0.3s;
}
#solutions.min h2 {
  font-size: 1.25rem;
}
.solution {
  display: inline-block;
  position: relative;
  width: calc(100% / 4 - 2vw);
  vertical-align: top;
  text-align: center;
  margin: 1vw;
  -webkit-transition: 0.3s;
  -o-transition: 0.3s;
  transition: 0.3s;
  cursor: pointer;
  --icon-url: url("/assets/media/placeholder/solutions.png");
}
#solutions.min .solution {
  width: calc(100% / 7 - 2vw);
}
.solution.disabled {
  background-color: transparent !important;
  -webkit-filter: grayscale(1);
          filter: grayscale(1);
  opacity: 0.5;
  pointer-events: none;
}
.solution:before {
  content: "";
  display: block;
  position: absolute;
  width: 100%;
  aspect-ratio: 1 / 1;
  left: 0;
  top: 0;
  background-color: #F1F1F1;
  border-radius: 50%;
}
.solution.active:before {
  background-color: var(--fondo-tenue)
}
.solution:after {
  content: "";
  display: block;
  position: absolute;
  width: 100%;
  aspect-ratio: 1 / 1;
  left: 0;
  top: 0;
  background-image: var(--icon-url);
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
  border-radius: 50%;
}
.solution p {
  color: var(--texto);
  font-size: 0.8rem;
  text-transform: uppercase;
  line-height: 1;
  padding: 105% 0 0;
  -webkit-transition: 0.3s;
  -o-transition: 0.3s;
  transition: 0.3s;
}
.solution:hover p,
.solution:focus p {
    color: var(--acento);
}
.solution.active p {
    color: var(--fondo);
    font-weight: 500;
}

#apps {
  display: none;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  padding: 0 4vw 2.5vw
}
#apps[style="display: block;"] {
  display: -webkit-box !important;
  display: -ms-flexbox !important;
  display: flex !important;
}
#apps h2 {
  width: 100%;
  padding: 0 1vw;
}
.app {
  display: inline-block;
  position: relative;
  width: calc(100% / 6 - 2vw);
  vertical-align: top;
  text-align: center;
  margin: 1vw;
  -webkit-transition: 0.3s;
  -o-transition: 0.3s;
  transition: 0.3s;
  cursor: pointer;
  --icon-url: url("/assets/media/placeholder/apps.png");
}
.app:before {
  content: "";
  display: block;
  position: absolute;
  width: 100%;
  aspect-ratio: 1 / 1;
  left: 0;
  top: 0;
  background-color: #F1F1F1;
  border-radius: 50%;
}
.app.active:before {
  background-color: var(--fondo-tenue)
}
.app:after {
  content: "";
  display: block;
  position: absolute;
  width: 100%;
  aspect-ratio: 1 / 1;
  left: 0;
  top: 0;
  background-image: var(--icon-url);
  background-size: 80% auto;
  background-position: center center;
  background-repeat: no-repeat;
  border-radius: 50%;
}
.app p {
  color: var(--texto);
  font-size: 1rem;
  text-transform: uppercase;
  line-height: 1;
  padding: 105% 0 0;
  -webkit-transition: 0.3s;
  -o-transition: 0.3s;
  transition: 0.3s;
}
.app:hover p,
.app:focus p {
    color: var(--acento);
}
.app.active p {
    font-weight: 500;
}

#modules {
  display: none;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  padding: 0 4vw 2.5vw;
}
#modules[style="display: block;"] {
  display: -webkit-box !important;
  display: -ms-flexbox !important;
  display: flex !important;
}
#modules h2 {
  width: 100%;
  padding: 0 1vw;
}
.module {
  display: inline-block;
  position: relative;
  width: calc(100% / 6 - 2vw);
  vertical-align: top;
  text-align: center;
  margin: 1vw;
  -webkit-transition: 0.3s;
  -o-transition: 0.3s;
  transition: 0.3s;
  cursor: pointer;
  --icon-url: url("/assets/media/placeholder/apps.png");
}
.module:before {
  content: "";
  display: block;
  position: absolute;
  width: 100%;
  aspect-ratio: 1 / 1;
  left: 0;
  top: 0;
  background-color: #F1F1F1;
  border-radius: 50%;
}
.module.active:before {
  background-color: var(--fondo-tenue);
}
.module:after {
  content: "";
  display: block;
  position: absolute;
  width: 100%;
  aspect-ratio: 1 / 1;
  left: 0;
  top: 0;
  background-image: var(--icon-url);
  background-size: 80% auto;
  background-position: center center;
  background-repeat: no-repeat;
  border-radius: 50%;
}
.module p {
  color: var(--texto);
  font-size: 1rem;
  text-transform: uppercase;
  line-height: 1;
  padding: 105% 0 0;
  -webkit-transition: 0.3s;
  -o-transition: 0.3s;
  transition: 0.3s;
}
.module:hover p,
.module:focus p {
  color: var(--acento);
}
.module.active p {
  font-weight: 500;
}

#module {
  display: none;
  position: absolute;
  width: 85%;
  height: calc(100% - 5rem);
  left: 15%;
  top: 5rem;
  -webkit-transition: 0.3s;
  -o-transition: 0.3s;
  transition: 0.3s;
}
.menu-collapsed #module {
  width: 100%;
  left: 2rem;
}
#module .module-bar {
    display: none;
    position: absolute;
    width: 100%;
    height: 50px;
    left: 0;
    top: 0;
    text-align: right;
    background-color: #FFF;
    padding: 0 1rem;
    border-bottom: 0.1rem solid var(--texto);
}
#module .module-bar a {
    display: inline-block;
    max-width: 50px;
    height: 50px;
    padding: 10px;
    white-space: nowrap;
    overflow: hidden;
    -webkit-transition: 0.5s;
    -o-transition: 0.5s;
    transition: 0.5s;
    -webkit-filter: grayscale(75%);
            filter: grayscale(75%);
}
#module .module-bar a:hover,
#module .module-bar a:focus {
    max-width: 100vw;
}
#module .module-bar a img {
    display: inline-block;
    height: 100%;
    vertical-align: middle;
}
#module .module-bar a p {
    display: inline-block;
    vertical-align: middle;
    color: #FFF;
    line-height: 30px;
}
#module .module-bar a:hover p,
#module .module-bar a:focus p {
    color: #000;
}
#module iframe {
  width: 100%;
  height: 100%;
  background-color: #FEFEFE;
  border: none;
}

#close-module-btn {
  position: fixed;
  top: calc(5rem + 1rem);
  right: 2.25vw;
  z-index: 1000;
  display: inline-block;
  width: 32px;
  height: 32px;
  padding: 0 !important;
  background-color: transparent;
  border: none;
  border-radius: 50%;
  font-size: 0;
  cursor: pointer;
  -webkit-transition: 0.3s;
  -o-transition: 0.3s;
  transition: 0.3s;
}
#close-module-btn:before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  left: 50%;
  top: 50%;
  background-color: var(--fondo-tenue);
  border-radius: 50%;
  -webkit-transform: translate(-50%, -50%);
      -ms-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
  -webkit-transition: 0.3s;
  -o-transition: 0.3s;
  transition: 0.3s;
  z-index: -1;
}
#close-module-btn:hover:before,
#close-module-btn:focus:before {
  width: 150%;
  height: 150%;
}
#close-module-btn:after {
  content: "x";
  display: block;
  position: absolute;
  width: 80%;
  height: 100%;
  left: 10%;
  top: 0;
  color: #FFF;
  font-size: 22px;
  font-weight: 300;
  text-align: center;
  line-height: 32px;
  background-color: var(--fondo);
  border-radius: 50%;
  transform: scaleX(1.25);
  pointer-events: none;
}

/* Para pantallas muy pequeñas */
@media (max-width: 767px) {
  #close-module-btn {
    top: calc(60px + 0.5rem);
    right: 0.5rem;
    width: 40px;
    height: 40px;
  }
}
/*
 * CARDS OVERVIEW
 */
#overview {
  padding: 5rem 0 0 15%;
}
#overview.menu-collapsed {
  padding: 5rem 0 0 2rem;
}
#overview .carousel {
    position: relative;
    height: calc(100vh - 5rem);
    height: calc(var(--vh, 1vh) * 100 - 5rem);
    overflow: hidden
}
#overview .carousel .inner {
    white-space: nowrap;
    -webkit-transition: 0.3s;
    -o-transition: 0.3s;
    transition: 0.3s
}
#overview .carousel .inner .item {
    display: inline-block;
    width: 85vw;
    vertical-align: top;
    letter-spacing: -1em;
    padding: 2vw 4vw;
    white-space: initial;
}
#overview.menu-collapsed .carousel .inner .item {
  width: calc(100vw - 2rem);
}
#overview .carousel .inner .item h1 {
    letter-spacing: initial;
    padding: 0 1vw;
    margin: 0 0 2.5vw;
} 
#overview .carousel .inner .item .card-preview {
    display: inline-block;
    position: relative;
    width: calc(100% / 4 - 2vw);
    vertical-align: top;
    text-align: center;
    letter-spacing: initial;
    background-color: var(--fondo-tenue);
    padding: 1rem 0 0;
    border-radius: 1rem;
    margin: 2.5vw 1vw;
    -webkit-box-shadow: 0 0 0.5rem 0.05rem rgba(0,0,0,0.25);
            box-shadow: 0 0 0.5rem 0.05rem rgba(0,0,0,0.25);
    -webkit-transition: 0.3s;
    -o-transition: 0.3s;
    transition: 0.3s;
}
#overview .carousel .inner .item .card-preview[href="#"] {
    cursor: default;
}
#overview .carousel .inner .item .card-preview:hover,
#overview .carousel .inner .item .card-preview:focus {
    background-color: var(--acento);
    -webkit-box-shadow: 0 0 1rem 0.1rem rgba(0,0,0,0.25);
            box-shadow: 0 0 1rem 0.1rem rgba(0,0,0,0.25);
}
#overview .carousel .inner .item .card-preview h2 {
    display: inline-block;
    min-width: 2em;
    min-height: 2em;
    color: #FFF;
    line-height: 2;
    background-color: var(--fondo);
    padding: 0 0.25em;
    border-radius: 0.5rem;
    margin: 0;
    -webkit-transform: translateY(-75%);
        -ms-transform: translateY(-75%);
            transform: translateY(-75%);
    -webkit-transition: 0.3s;
    -o-transition: 0.3s;
    transition: 0.3s;
    white-space: nowrap;
}
#overview .carousel .inner .item .card-preview:hover h2,
#overview .carousel .inner .item .card-preview:focus h2 {
    -webkit-transform: translateY(-75%) scale(1.15);
        -ms-transform: translateY(-75%) scale(1.15);
            transform: translateY(-75%) scale(1.15);
}
#overview .carousel .inner .item .card-preview h3 {
    color: #000;
    font-size: 1.5rem;
    font-weight: 300;
    line-height: 1.25;
    margin: -1.5em 0 0;
    -webkit-transition: 0.3s;
    -o-transition: 0.3s;
    transition: 0.3s;
}
#overview .carousel .inner .item .card-preview:hover h3,
#overview .carousel .inner .item .card-preview:focus h3 {
    color: #FFF;
}
#overview .carousel .inner .item .card-preview p {
    display: block;
    color: var(--texto);
    font-weight: 300;
    line-height: 1.25;
    background-color: #FFF;
    padding: 0.5rem 0 1rem;
    border-bottom-left-radius: 1rem;
    border-bottom-right-radius: 1rem;
    margin: 0.5rem 0 0;
}

#overview .carousel .pagination {
    display: block;
    position: absolute;
    width: 100%;
    left: 0;
    bottom: 0;
    letter-spacing: -1em;
    padding: 0 10%;
}
#overview .carousel .pagination.child-count-6 {
    padding: 0 5%;
}
#overview .carousel .pagination.child-count-7,
#overview .carousel .pagination.child-count-8  {
    padding: 0;
}
#overview .carousel .pagination a {
    display: inline-block;
    width: 20%;
    vertical-align: bottom;
    color: var(--fondo);
    font-size: 1.125rem;
    text-align: center;
    letter-spacing: initial;
    background-color: var(--fondo-claro);
    padding: 0.5rem;
    -webkit-transition: 0.3s;
    -o-transition: 0.3s;
    transition: 0.3s;
}
#overview .carousel .pagination.child-count-6 a {
  width: calc(100% / 6);
}
#overview .carousel .pagination.child-count-7 a {
  width: calc(100% / 7);
}
#overview .carousel .pagination.child-count-8 a {
  width: calc(100% / 8);
}
#overview .carousel .pagination a:hover,
#overview .carousel .pagination a:focus {
    color: var(--fondo-claro);
    background-color: var(--acento);
}
#overview .carousel .pagination a.active {
    color: #FFF;
    font-size: 1.25rem;
    font-weight: 500;
    background-color: var(--fondo);
    padding: 0.75rem 0.5rem;
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
    pointer-events: none;
}

.card-view {
    padding: 5rem 0 0 15%;
}
.card-view .container {
    max-width: initial;
    padding: 2.5vw 4vw
}
.card-view .container h1 {
    display: inline-block;
    vertical-align: middle;
    margin-left: 1vw;
}
.card-view .container > span {
    display: inline-block;
    vertical-align: middle;
    padding: 0 1rem;
    margin: 2.5vw 0
}
.card-view .container > span big {
    display: inline-block;
    min-width: 2em;
    min-height: 2em;
    color: #FFF;
    text-align: center;
    line-height: 2;
    background-color: var(--fondo);
    padding: 0 0.25em;
    border-radius: 0.5rem;
    margin: 0;
    -webkit-transform: scale(2);
        -ms-transform: scale(2);
            transform: scale(2);
    -webkit-transform-origin: left center;
        -ms-transform-origin: left center;
            transform-origin: left center;
    -webkit-transition: 0.3s;
    -o-transition: 0.3s;
    transition: 0.3s;
}
.card-view .container > span:hover big,
.card-view .container > span:focus big {
    -webkit-transform: scale(2.3);
        -ms-transform: scale(2.3);
            transform: scale(2.3);
}

.card-view .container .content {
    display: inline-block;
    width: 87.5%;
    vertical-align: top;
    padding: 0 1vw;
}
.card-view .chart-container {
    position: relative;
    margin: 20px 0;
    padding: 15px;
    border-radius: 8px;
    background: white;
    -webkit-box-shadow: 0 1px 3px rgba(0,0,0,0.05);
            box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.card-view .container .layout {
    display: inline-block;
    width: 12.5%;
    vertical-align: top;
    text-align: center;
    padding: 0 1vw;
}
.card-view .container .layout p {
    color: var(--texto);
    font-weight: 500;
    line-height: 1;
}
.card-view .container .layout a {
    display: block;
    width: 100%;
    color: #000;
    font-size: 0.9rem;
    font-weight: 300;
    line-height: 1;
    background-color: var(--fondo-tenue);
    padding: 0 0.5rem 0.5rem;
    border-radius: 0.5rem;
    margin: 1vw 0 0;
    -webkit-transition: 0.3s;
    -o-transition: 0.3s;
    transition: 0.3s;
}
.card-view .container .layout a:hover,
.card-view .container .layout a:focus {
    color: #FFF;
    background-color: var(--acento);
}
.card-view .container .layout a.active {
    color: #FFF;
    background-color: var(--fondo);
    pointer-events: none;
}
.card-view .container .layout a img {
    display: block;
    width: 100%;
    margin: 0 0 -0.5rem;
}

/*
 * HERMES
 */
#ht-options {
    position: relative;
    width: 100%;
    padding: 2vw 6vw;
    margin: 0;
}
#ht-options h1 {
    padding: 0 2vw;
}
#ht-options a {
    display: inline-block;
    width: calc(100% / 3);
    vertical-align: top;
    text-align: center;
    text-decoration: none !important;
    padding: 0 2vw
}
#ht-options a img {
    width: 100%;
}
#ht-options a p {
    color: #3c3c3c;
    font-size: 1.5rem;
    font-weight: 400;
    text-transform: uppercase;
    text-decoration: none !important;
    letter-spacing: 0.1em;
    margin: 0.5vw 0 0;
    white-space: nowrap;
}

#balanced_scorecard {
    padding: 5rem 0 2vw 15%;
}
#balanced_scorecard {
    padding: 5rem 0.5vw 0.5vw 15%;
}
#balanced_scorecard h1 {
    font-weight: 500;
    padding: 2vw 0 0;
    margin: 0 0 -3vw;
}
#main-data {
    display: inline-block;
    position: relative;
    width: calc(35% - 2vw);
    aspect-ratio: 1 / 1;
    vertical-align: middle;
    margin: 0 2vw 0 0;
}
#main-data img {
    position: absolute;
    width: 100%;
    left: 0;
    top: 0;
    -webkit-transition: 1s;
            -o-transition: 1s;
            transition: 1s;
    -webkit-transition-timing-function: ease-out;
            -o-transition-timing-function: ease-out;
       transition-timing-function: ease-out;
}
#circle1 {
    -webkit-transform: rotate(200deg);
        -ms-transform: rotate(200deg);
            transform: rotate(200deg);
}
#circle2 {
    -webkit-transform: rotate(133deg);
        -ms-transform: rotate(133deg);
            transform: rotate(133deg);
}
#circle3 {
    background-color: #FFF;
    border-radius: 50%;
    -webkit-transform: rotate(67deg);
        -ms-transform: rotate(67deg);
            transform: rotate(67deg);
}
#main-data p {
    position: absolute;
    width: 100%;
    left: 0;
    top: 50%;
    font-size: 3rem;
    text-align: center;
    -webkit-transform: translateY(-50%);
        -ms-transform: translateY(-50%);
            transform: translateY(-50%);
}
#balanced_scorecard > .container {
    display: inline-block;
    width: 65%;
    max-width: initial;
    vertical-align: middle;
    letter-spacing: -1em;
    padding: 0 1vw;
}
#balanced_scorecard .data-card {
    display: inline-block;
    width: calc(50% - 2vw);
    vertical-align: top;
    letter-spacing: initial;
    background-color: var(--fondo-claro);
    padding: 1rem;
    border-radius: 0.5rem;
    margin: 0.5vw 1vw;
}
#balanced_scorecard .meter {
  position: relative;
  padding: 2rem 0 2rem 55%;
}
#balanced_scorecard .meter svg {
    position: absolute;
    width: 50%;
    max-width: 100%;
    left: 0;
    top: 50%;
    -webkit-transform: translateY(-50%);
        -ms-transform: translateY(-50%);
            transform: translateY(-50%);
}
#balanced_scorecard .meter svg.needle {
  width: 1vw !important;
  left: 25%;
  -webkit-transform-origin: center 90%;
      -ms-transform-origin: center 90%;
          transform-origin: center 90%;
  -webkit-transform: translate(-50%, -50%) rotate(-110deg);
      -ms-transform: translate(-50%, -50%) rotate(-110deg);
          transform: translate(-50%, -50%) rotate(-110deg);
  -o-transition: 5s ease-in-out;
  -webkit-transition: 5s ease-in-out;
  transition: 5s ease-in-out;
}
#balanced_scorecard .data-card .value {
    display: inline-block;
    font-size: 1.25rem;
}
#balanced_scorecard .data-card h5 {
    width: auto;
    color: var(--texto);
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
}
#balanced_scorecard .data-card a {
    display: inline-block;
    color: var(--acento);
    text-decoration: underline;
}
#balanced_scorecard .data-card a:after {
    content: " >";
}

#profit_lost {
    padding: 5rem 0 2vw 15%;
}

#profit_lost h1 {
    font-weight: 500;
    text-align: center;
    padding: 2vw;
}

#profit_lost .dashboard-card {
    display: inline-block;
    position: relative;
    width: calc(100% / 3);
    vertical-align: top;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center center;
    padding: 0 1vw 7rem;
}

#profit_lost .dashboard-card svg {
    width: calc(100% - 5vw);
    margin: 0 2.5vw;
    -webkit-transition: 0.3s;
    -o-transition: 0.3s;
    transition: 0.3s;
}




#control_tower {
    padding: 5rem 0 2vw 15%;
}
#control_tower.menu-collapsed {
  padding-left: 2rem;
}
#control_tower h1 {
    font-weight: 500;
    padding: 2vw;
}
#control_tower > .container {
    position: relative;
    max-width: initial;
    padding: 0 2.5vw;
}
#control_tower .info-card {
    display: inline-block;
    position: relative;
    width: 24%;
    vertical-align: top;
}
#control_tower .info-card img {
    width: 100%;
}
#control_tower .info-card div {
    position: absolute;
    width: 100%;
    left: 0;
    top: 60%;
    padding: 0 2vw;
    -webkit-transform: translateY(-50%);
        -ms-transform: translateY(-50%);
            transform: translateY(-50%);
}
#control_tower .info-card div h5 {
    color: var(--texto);
    font-size: 1.125rem;
    font-weight: 500;
}
#control_tower .info-card div h5 br {
    display: none;
}
#control_tower .info-card div p {
    color: #212529;
    font-size: 0.9rem;
    font-weight: 300;
    line-height: 1.25;
}

body:has(.account-container) {
  background-color: #f4f6f9;
}
.account-container {
  width: 60%;
  max-width: initial;
  background-color: #FFF;
  padding: 2rem;
  margin: 7rem auto 2rem;
  border-radius: 1rem;
}
.account-container h1 {
  text-align: center;
  margin: 0 0 1rem;
}


/* 
 * MOBILE
 */
@media (max-width: 767px) {
  html {
    font-size: 12px;
    overflow-x: hidden
  }

  #login .container {
    width: 90%;
    padding: 5vw;
  }

  .athena-btn {
    line-height: 38px;
    padding: 0 1rem !important;
    border-width: 1px;
  }

  #top-bar {
    height: 60px;
    padding: 0 10px 0 0;
  }
  #collapse-menu {
    display: inline-block;
    vertical-align: middle;
    font-size: 0;
    line-height: 60px;
    -webkit-filter: invert(43%) sepia(18%) saturate(1777%) hue-rotate(222deg) brightness(90%) contrast(92%);
            filter: invert(43%) sepia(18%) saturate(1777%) hue-rotate(222deg) brightness(90%) contrast(92%);
    padding: 0 10px;
    margin: 0;
  }
  .menu-showing #collapse-menu {
    background: url(/assets/media/icon/menu-close.png) no-repeat center center;
    background-size: 50% auto;
  }
  #collapse-menu img {
    width: 25px;
    -webkit-transform: none;
        -ms-transform: none;
            transform: none;
  }
  .menu-showing #collapse-menu img {
    opacity: 0;
  }
  #top-bar .left-block .back {
    display: none;
  }
  #top-bar .left-block .site-logo {
    width: 42px;
    height: 60px;
    -o-object-fit: cover;
       object-fit: cover;
    -o-object-position: left center;
       object-position: left center;
    padding: 17.5px 0 12.5px;
  }
  #top-bar .client-logo {
    width: 50%;
    height: 60px;
  }
  #top-bar .right-block {
    padding: 9px 0;
    margin: 0;
  }
  #top-bar .right-block .custom-popup-trigger {
    font-size: 1.5rem;
    margin: 0;
  }
  /* Search: collapse to icon only on mobile */
  #topbar-search {
    padding: 6px;
    margin-right: 4px;
    max-width: none;
  }
  #topbar-search #module-search-input {
    width: 0;
    padding: 0;
    opacity: 0;
    transition: width 0.2s, opacity 0.2s;
  }
  #topbar-search.expanded #module-search-input {
    width: 140px;
    opacity: 1;
  }
  #topbar-search .search-kbd-hint { display: none; }
  #search-results-overlay {
    right: 10px;
    left: 10px;
    width: auto;
    max-height: 60vh;
  }

  .support {
    width: 40px;
    height: 40px;
    vertical-align: middle;
    font-size: 0;
    background: url(/assets/media/ecosystem/soporte-2d.png) no-repeat center center;
    background-size: 66.67% auto;
    background-color: transparent !important;
    padding: 0 !important;
    border: none;
    border-radius: 0;
    -webkit-filter: brightness(0) invert(43%) sepia(18%) saturate(1777%) hue-rotate(222deg) brightness(90%) contrast(92%);
            filter: brightness(0) invert(43%) sepia(18%) saturate(1777%) hue-rotate(222deg) brightness(90%) contrast(92%);
  }

  .custom-popup .container {
    width: 90%;
    padding: 1rem;
  }
  .custom-popup .container p {
    font-size: 1.5rem !important;
  }
  #popup-user-menu .container {
    width: 85%;
    top: 60px;
  }
  #popup-user-menu .container p {
    padding: 0.5rem;
  }
  #popup-user-menu .container ul li a {
    line-height: 40px;
  }
  #popup-user-menu .container ul li:last-of-type {
    padding: 0.5rem 0;
  }
  #popup-user-menu .container ul li:last-of-type a {
    border-width: 1px;
    line-height: 38px;
  }

  .panel .main {
    padding: 60px 4vw calc(40px + 10vw);
  }
  .panel .main h1 {
    text-align: center;
    padding: 0;
    margin: 5vw 0 1vw;
  }
  .panel .main a:not(.athena-btn) {
    width: calc(100% / 2 - 2vw);
  }
  .panel .main a img {
    display: block;
  }
  .panel .main a h2 {
    margin-left: 0.5rem;
  }
  .panel .main a p {
    margin: 0;
  }
  #clear-cache-btn {
    top: initial;
    right: 5vw;
    bottom: 5vw;
  }
  .panel .search-bar {
    margin: 60px 0 2.5vw;
  }
  .panel .search-bar h1 {
    display: block;
    text-align: center;
  }
  .panel .search-bar input {
    width: 100%;
    line-height: 40px;
    border: none;
    margin: 0;
  }
  .panel > .container {
    width: 95%;
    padding: 1rem;
  }

  #side-bar {
    width: 60%;
    padding: 60px 0 5vw;
    -webkit-transform: translateX(-100%);
        -ms-transform: translateX(-100%);
            transform: translateX(-100%);
  }
  .menu-showing #side-bar {
    -webkit-transform: translateX(0%);
        -ms-transform: translateX(0%);
            transform: translateX(0%);
  }
  #side-bar p {
    font-size: 0.9rem;
    padding: 0 1rem;
    margin: 0;
  }
  #side-bar p:after {
    right: 1rem;
  }
  #side-bar ul li a {
    font-size: 0.9rem;
    background-position: 1rem center;
    padding: 0 1rem 0 2.5rem;
  }

  #default-dashboard {
    padding: 5vw 5vw 0;
  }
  .dash-section {
    padding: 5vw;
    margin: 0 0 5vw;
  }
  .dash-section > h2 {
    margin: 0;
  }
  .cards-layout {
    display: block;
  }
  .cards-left,
  .cards-right {
    display: block;
  }
  .module-main {
    padding: 5vw 0 !important;
  }
  .cards-layout .dashboard-module-card {
    max-width: initial !important;
    justify-content: start !important;
    text-align: left;
    padding: 2.5vw !important;
    border-radius: 2.5vw;
    margin: 2.5vw 0 0 !important;
  }

  #dashboard {
    padding: 60px 0 0;
  }
  #solutions {
    padding: 5vw 2.5vw;
  }
  .solution,
  .app,
  .module {
    width: calc(100% / 2 - 2.5vw);
    margin: 1.25vw;
  }
  #module {
    width: 100%;
    height: calc(100% - 60px);
    left: 0;
    top: 60px;
  }

  #overview {
    padding: 60px 0 0;
  }
  #overview .carousel .inner .item {
    width: 100vw;
  }
  #overview .carousel .inner .item .card-preview {
    width: calc(100% / 2 - 2vw);
  }

  #ht-options {
    padding: 5vw 5vw 0;
  }
  #ht-options h1 {
    text-align: center;
  }
  #ht-options a {
    width: 100%;
  }
  #ht-options a img {
    width: 50%;
  }

  #balanced_scorecard {
    padding: 60px 2vw 2vw;
  }
  #balanced_scorecard h1 {
    text-align: center;
    margin: 0;
  }
  #main-data {
    display: block;
    width: 66.67%;
    margin: 5vw auto;
  }
  #balanced_scorecard > .container {
    width: 100%;
  }
  #balanced_scorecard .data-card {
    padding: 2.5vw 5vw;
  }
  #balanced_scorecard .meter {
    text-align: center;
    padding: 0;
  }
  #balanced_scorecard .meter svg {
    display: block;
    position: relative;
    width: 100%;
    top: initial;
    -webkit-transform: none;
        -ms-transform: none;
            transform: none;
  }
  #balanced_scorecard .meter svg.needle {
    position: absolute;
    width: 4vw !important;
    left: 50%;
    top: 30%;
  }


  #control_tower {
    padding: 60px 0 5vw;
  }
  #control_tower h1 {
    text-align: center;
    padding: 5vw 0;
  }
  #control_tower > .container {
    padding: 0 0 0 2vw;
  }
  #control_tower .info-card {
    width: 50%;
  }
  #control_tower .info-card div {
    padding: 0 4vw;
  }
  #control_tower .info-card div h5 {
    font-size: 1rem;
  }
  #control_tower .info-card div p {
    font-size: 0.75rem;
  }

  .account-container {
    width: 90%;
    margin-top: calc(60px + 5vw);
  }
}


/*
 * TABLET (768px – 1024px)
 */
@media (min-width: 768px) and (max-width: 1024px) {
  #side-bar {
    width: 60%;
    padding: 5.5rem 0 2.5vw;
    -webkit-transform: translateX(-100%);
        -ms-transform: translateX(-100%);
            transform: translateX(-100%);
  }
  .menu-showing #side-bar {
    -webkit-transform: translateX(0%);
        -ms-transform: translateX(0%);
            transform: translateX(0%);
  }
  .version-info {
    width: 60%;
    -webkit-transform: translateX(-100%);
        -ms-transform: translateX(-100%);
            transform: translateX(-100%);
  }
  .menu-showing .version-info {
    -webkit-transform: translateX(0%);
        -ms-transform: translateX(0%);
            transform: translateX(0%);
  }

  #dashboard {
    padding: 5rem 0 0 0;
  }
  #overview {
    padding: 5rem 0 0 0;
  }
  .card-view {
    padding: 5rem 0 0 0;
  }

  #default-dashboard {
    padding: 2vw 3vw;
  }

  #solutions {
    padding: 2vw 3vw;
  }
  .solution {
    width: calc(100% / 3 - 2vw);
  }
  #solutions.min .solution {
    width: calc(100% / 5 - 2vw);
  }
  .app {
    width: calc(100% / 4 - 2vw);
  }
  .module {
    width: calc(100% / 4 - 2vw);
  }

  #overview .carousel .inner .item .card-preview {
    width: calc(100% / 3 - 2vw);
  }

  .panel .main {
    padding: calc(80px + 1rem) 4vw 2rem;
  }
  .panel .main a:not(.athena-btn) {
    width: calc(100% / 2 - 2vw);
  }
  .panel > .container {
    width: 95%;
  }
  .panel .search-bar input {
    width: 50vw;
  }

  .custom-popup .container {
    width: 60%;
  }

  .dash-section {
    padding: 2.5vw;
  }
  .cards-layout {
    gap: 2vw;
  }

  #top-bar .left-block .site-logo {
    width: 10vw;
  }

  #collapse-menu {
    display: inline-block;
    vertical-align: middle;
    font-size: 0;
    line-height: 5rem;
    -webkit-filter: invert(43%) sepia(18%) saturate(1777%) hue-rotate(222deg) brightness(90%) contrast(92%);
            filter: invert(43%) sepia(18%) saturate(1777%) hue-rotate(222deg) brightness(90%) contrast(92%);
    padding: 0 10px;
    margin: 0;
  }
  .menu-showing #collapse-menu {
    background: url(/assets/media/icon/menu-close.png) no-repeat center center;
    background-size: 50% auto;
  }
  #collapse-menu img {
    width: 1.25rem;
    transform: none;
  }
  .menu-showing #collapse-menu img {
    opacity: 0;
  }
  #top-bar .left-block .back {
    display: none;
  }

  #topbar-search #module-search-input {
    width: 120px;
  }
  #search-results-overlay {
    width: 350px;
    right: 30px;
  }

  .account-container {
    width: 80%;
    margin-top: calc(5rem + 2vw);
  }

  #balanced_scorecard {
    padding: 5rem 2vw 2vw 0;
  }
  #control_tower {
    padding: 5rem 0 2vw 0;
  }

  #module {
    width: 100%;
    left: 0;
  }
}


/*
 * SMALL DESKTOP (1025px – 1279px)
 */
@media (min-width: 1025px) and (max-width: 1279px) {
  #side-bar {
    width: 12%;
  }
  #dashboard {
    padding: 5rem 0 0 12%;
  }
  .menu-collapsed #dashboard {
    padding: 5rem 0 0 2rem;
  }
  #overview {
    padding: 5rem 0 0 12%;
  }
  #overview.menu-collapsed {
    padding: 5rem 0 0 2rem;
  }
  .card-view {
    padding: 5rem 0 0 12%;
  }
  .version-info {
    width: 12%;
  }

  .solution {
    width: calc(100% / 3 - 2vw);
  }
  .app {
    width: calc(100% / 5 - 2vw);
  }

  #overview .carousel .inner .item .card-preview {
    width: calc(100% / 3 - 2vw);
  }

  .custom-popup .container {
    width: 50%;
  }

  #top-bar .left-block .site-logo {
    width: calc(12vw - 48px - 0.5rem);
  }
}


#side-bar ul#modules-options li {
    position: relative;
}

#side-bar ul#modules-options li a {
    padding-right: 2.5rem !important;
}

.pin-indicator.clickable-pin {
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 3px;
    transition: 0.2s;
    user-select: none;
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    z-index: 10;
    background: rgba(0,0,0,0.1);
}

.pin-indicator.clickable-pin:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.2);
}

.pin-indicator.clickable-pin.processing {
    opacity: 0.6;
    pointer-events: none;
    animation: pinPulse 1s infinite;
}

@keyframes pinPulse {
    0% { opacity: 0.6; }
    50% { opacity: 0.3; }
    100% { opacity: 0.6; }
}









/* Navigation Loading */
#navigation-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #fff; /* Cambiar esta línea */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.1s ease;
}

#navigation-loading.active {
    opacity: 1;
    visibility: visible;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(0, 0, 0, 0.1); /* Borde gris claro */
    border-top: 4px solid #333; /* Top negro */
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    color: #333; /* En lugar de #fff */
    font-family: inherit;
    font-size: 1.2rem;
    font-weight: 300;
    margin-bottom: 10px;
}
.loading-subtext {
    color: rgba(0, 0, 0, 0.6); /* En lugar de rgba(255, 255, 255, 0.8) */
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 300;
}






/* ========================================
   CRUD LOADING STYLES
   ======================================== */
.navigation-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent; /* Sin fondo oscuro */
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    pointer-events: none; /* Permitir clicks detrás del loading */
}

.navigation-loading.active {
    display: flex;
}

.loading-container {
    text-align: center;
    background: rgba(255, 255, 255, 0.95); /* Fondo blanco para el contenedor */
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    pointer-events: auto; /* Bloquear clicks en el contenedor */
}

.loading-spinner {
    border: 4px solid rgba(127, 88, 188, 0.2); /* Color acento claro */
    border-top: 4px solid var(--acento, #7f58bc); /* Color acento */
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--texto, #333); /* Color de texto */
}

.loading-subtext {
    font-size: 0.9rem;
    opacity: 0.7;
    color: var(--texto, #333); /* Color de texto */
}


/* ========================================
   TABLA MÓDULOS - AJUSTES RESPONSIVOS
   ======================================== */
#modules-table {
    width: 100% !important;
    table-layout: auto;
    font-size: 0.85rem;
}

#modules-table th,
#modules-table td {
    padding: 0.5rem !important;
    vertical-align: middle;
    white-space: nowrap;
}

/* Columna ID + checkbox */
#modules-table th:nth-child(1),
#modules-table td:nth-child(1) {
    width: 80px;
    min-width: 80px;
}

/* Columna Nombre - puede ser más ancha */
#modules-table th:nth-child(2),
#modules-table td:nth-child(2) {
    min-width: 150px;
    max-width: 200px;
    white-space: normal;
    word-wrap: break-word;
}

/* Columna App */
#modules-table th:nth-child(3),
#modules-table td:nth-child(3) {
    min-width: 100px;
    max-width: 150px;
}

/* Columna Categorías */
#modules-table th:nth-child(4),
#modules-table td:nth-child(4) {
    min-width: 120px;
    max-width: 180px;
    white-space: normal;
    word-wrap: break-word;
}

/* Columna URL */
#modules-table th:nth-child(5),
#modules-table td:nth-child(5) {
    min-width: 150px;
    max-width: 250px;
    white-space: normal;
    word-wrap: break-word;
    font-size: 0.75rem;
}

/* Columna Estatus */
#modules-table th:nth-child(6),
#modules-table td:nth-child(6) {
    width: 110px;
    min-width: 110px;
    text-align: center;
}

/* Columna Anclado */
#modules-table th:nth-child(7),
#modules-table td:nth-child(7) {
    width: 100px;
    min-width: 100px;
    text-align: center;
}

/* Columna Opciones */
#modules-table th:nth-child(8),
#modules-table td:nth-child(8) {
    width: 100px;
    min-width: 100px;
    text-align: center;
}

/* Badges más compactos */
#modules-table .badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    white-space: nowrap;
}

/* Botones más compactos */
#modules-table .btn {
    font-size: 0.8rem;
    padding: 0.25rem 0.75rem;
}

/* Responsive para pantallas pequeñas */
@media (max-width: 1400px) {
    #modules-table {
        font-size: 0.75rem;
    }
    
    #modules-table th,
    #modules-table td {
        padding: 0.4rem !important;
    }
    
    #modules-table .badge {
        font-size: 0.65rem;
        padding: 0.2rem 0.4rem;
    }
    
    #modules-table .btn {
        font-size: 0.75rem;
        padding: 0.2rem 0.6rem;
    }
}

/* Hacer la tabla scrollable horizontalmente si es necesario */
.container {
    overflow-x: auto;
}

#modules-table thead th {
    position: sticky;
    top: 0;
    background-color: #fff;
    z-index: 10;
}

/* ========================================
   DASHBOARD MODULE CARDS
   ======================================== */
.dashboard-module-card,
.dashboard-category-card {
  cursor: pointer;
  transition: 0.3s;
}

.dashboard-module-card:hover,
.dashboard-category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* ----------------------------------------
   CATEGORY FILTERS
   ---------------------------------------- */
.category-filters {
  margin-bottom: 1.5rem;
  position: relative;
}
.category-filters-row {
  display: flex;
  flex-wrap: nowrap;
  overflow: hidden;
  align-items: center;
  max-height: 3rem;
}

.category-filter,
.category-more {
  background: transparent;
  color: var(--fondo);
  border: 2px solid var(--fondo);
  padding: 0.5rem 1rem;
  margin: 0.25rem;
  border-radius: 2rem;
  cursor: pointer;
  font-size: 0.9rem;
  font-family: inherit;
  font-weight: inherit;
  transition: 0.3s;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}
.category-more {
  margin-left: auto;
}
.category-dropdown .category-filter {
  border: none;
}
.category-filter.active {
  background: var(--fondo);
  color: #fff;
}
.category-filter:hover,
.category-more:hover {
  background: var(--acento);
  color: #fff;
  border-color: var(--acento);
}
.category-dropdown {
  position: absolute;
  top: 3.5rem;
  right: 0;
  background: #fff;
  border: 1px solid var(--fondo);
  border-radius: 0.5rem;
  padding: 0.5rem;
  z-index: 10;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  min-width: 200px;
}
.category-dropdown .category-filter {
  display: block;
  width: 100%;
  margin: 0.25rem 0;
  text-align: left;
}

/* ----------------------------------------
   DASH SECTIONS & CARD LAYOUT
   ---------------------------------------- */
.dash-section {
  background: #fff;
  padding: 2vw;
  margin: 0 0 2.5vw;
}
.dash-section > h2 {
  margin: 0 0 1vw;
}

.cards-layout {
  display: flex;
  gap: 1vw;
  align-items: stretch;
}
.cards-left {
  min-width: 0;
  display: flex;
}
.cards-right {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1vw;
  align-content: flex-start;
  justify-content: center;
}
.cards-layout .dashboard-module-card {
  margin: 0 !important;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

/* ----------------------------------------
   MODULE CARD VARIANTS
   ---------------------------------------- */
.module-icon {
  --icon-url: url("/assets/media/placeholder/apps.png");
}

.module-main {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 1vw;
  background: #fff;
  padding: 1vw;
  border-radius: 1vw;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border: 2px solid var(--fondo);
}
.module-main .module-icon {
  flex: 0 0 7.5rem;
  width: 7.5rem;
  aspect-ratio: 1;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  margin: 0;
}
.module-main p {
  flex: 0 1 auto;
  margin: 0;
  min-width: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--fondo);
  text-transform: uppercase;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
.module-main p small {
  display: block;
  font-size: 0.75rem;
  color: var(--texto);
  margin-top: 0.5rem;
  text-transform: none;
}

.module-small {
  background: #fff;
  padding: 1vw;
  border-radius: 1vw;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border: 2px solid var(--fondo);
}
.cards-right .module-small {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 1vw;
  padding: 1vw;
  text-align: center;
}
.cards-right .module-small .module-icon {
  flex: 0 0 5rem;
  width: 5rem;
  aspect-ratio: 1;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}
.cards-right .module-small p {
  flex: 0 1 auto;
  margin: 0;
  min-width: 0;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--fondo);
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
.cards-right .module-small p small {
  display: block;
  font-size: 0.75rem;
  color: var(--texto);
  margin-top: 0.25rem;
  text-transform: none;
}

/* ----------------------------------------
   SECTION-SPECIFIC LAYOUTS
   ---------------------------------------- */
#most-used-modules .cards-left { flex: 0 0 30%; }
#most-used-modules .cards-right { flex: 0 0 70%; }
#most-used-modules .cards-right > .dashboard-module-card {
  flex: 0 0 calc((100% - 2 * 1vw) / 3);
  max-width: calc((100% - 2 * 1vw) / 3);
}

#continue-work .cards-right { flex: 0 0 100%; }
#continue-work:not(:has(.dashboard-module-card)) { display: none; }
#continue-work .cards-right > .dashboard-module-card {
  flex: 0 0 calc((100% - 3 * 1vw) / 4);
  max-width: calc((100% - 3 * 1vw) / 4);
}

#company-section .cards-left { flex: 0 0 40%; }
#company-section .cards-right { flex: 0 0 60%; }
#company-section:not(:has(.dashboard-module-card)) { display: none; }
#company-section .cards-right > .dashboard-module-card {
  flex: 0 0 calc((100% - 1 * 1vw) / 2);
  max-width: calc((100% - 1 * 1vw) / 2);
}

#explore-categories .cards-right { flex: 0 0 100%; justify-content: flex-start !important; }
#explore-categories .cards-right > .dashboard-module-card,
#explore-categories .cards-right > .dashboard-category-card {
  flex: 0 0 calc((100% - 3 * 1vw) / 4);
  max-width: calc((100% - 3 * 1vw) / 4);
}
#work-profile-section:not(:has(.quick-access-card)) { display: none; }

/* ----------------------------------------
   QUICK ACCESS GRID
   ---------------------------------------- */
.quick-access-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1vw;
  align-items: stretch;
}
#quick-access-modules:not(:has(.quick-access-card)) { display: none; }

.quick-access-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5vw;
  background: #fff;
  padding: 1.5vw 1vw;
  border-radius: 1vw;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border: 2px solid var(--fondo);
  text-align: center;
  cursor: pointer;
  transition: 0.3s;
}
.quick-access-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}
.quick-access-card .module-icon {
  width: 4rem;
  aspect-ratio: 1;
  background-image: var(--icon-url);
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  margin: 0;
}
.quick-access-card p {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--fondo);
  text-transform: uppercase;
  line-height: 1.2;
  word-break: break-word;
}
.quick-access-card p small {
  display: block;
  font-size: 0.7rem;
  color: var(--texto);
  margin-top: 0.25rem;
  text-transform: none;
}

/* ----------------------------------------
   MODULE ICON SIZES PER SECTION
   ---------------------------------------- */
#most-used-modules .module-main .module-icon {
  flex: 0 0 7.5rem; width: 7.5rem; height: 7.5rem;
  background-image: var(--icon-url); background-position: center;
  background-repeat: no-repeat; background-size: contain; margin: 0;
}
#most-used-modules .module-small .module-icon {
  flex: 0 0 5rem; width: 5rem; height: 5rem;
  background-image: var(--icon-url); background-position: center;
  background-repeat: no-repeat; background-size: contain; margin: 0;
}
#continue-work .module-small .module-icon {
  flex: 0 0 4rem; width: 4rem; height: 4rem;
  background-image: var(--icon-url); background-position: center;
  background-repeat: no-repeat; background-size: contain; margin: 0;
}
#company-section .module-main .module-icon {
  flex: 0 0 7rem; width: 7rem; height: 7rem;
  background-image: var(--icon-url); background-position: center;
  background-repeat: no-repeat; background-size: contain; margin: 0;
}
#company-section .module-small .module-icon {
  flex: 0 0 4.5rem; width: 4.5rem; height: 4.5rem;
  background-image: var(--icon-url); background-position: center;
  background-repeat: no-repeat; background-size: contain; margin: 0;
}
#explore-categories .module-small .module-icon {
  flex: 0 0 4rem; width: 4rem; height: 4rem;
  background-image: var(--icon-url); background-position: center;
  background-repeat: no-repeat; background-size: contain; margin: 0;
}

/* ----------------------------------------
   ORIGINAL DASHBOARD CONTAINER
   ---------------------------------------- */
#original-dashboard {
  background: #f8f9fa;
  min-height: calc(100vh - 60px);
}
#original-dashboard h2 {
  padding: 1.5rem 2rem 0.5rem;
  margin: 0;
  font-size: 1.25rem;
  color: #202124;
  font-weight: 500;
}

/* ----------------------------------------
   DASHBOARD MOBILE RESPONSIVE
   ---------------------------------------- */
@media (max-width: 767px) {
  .dash-section {
    padding: 5vw;
    margin: 0 0 5vw;
  }
  .dash-section > h2 { margin: 0; }
  .cards-layout { display: block; }
  .cards-left, .cards-right { display: block; }
  .module-main { padding: 5vw 0 !important; }
  .cards-layout .dashboard-module-card {
    max-width: initial !important;
    justify-content: start !important;
    text-align: left;
    padding: 2.5vw !important;
    border-radius: 2.5vw;
    margin: 2.5vw 0 0 !important;
  }

  .quick-access-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2vw;
  }
  .quick-access-card { padding: 3vw 2vw; }
  .quick-access-card .module-icon { width: 3rem; }
  .quick-access-card p { font-size: 0.7rem; }

  #most-used-modules .module-main .module-icon { width: 5rem; height: 5rem; flex: 0 0 5rem; }
  #most-used-modules .module-small .module-icon { width: 3.5rem; height: 3.5rem; flex: 0 0 3.5rem; }
  #continue-work .module-small .module-icon { width: 3rem; height: 3rem; flex: 0 0 3rem; }
  #company-section .module-main .module-icon { width: 4.5rem; height: 4.5rem; flex: 0 0 4.5rem; }
  #company-section .module-small .module-icon { width: 3.5rem; height: 3.5rem; flex: 0 0 3.5rem; }
  #explore-categories .module-small .module-icon { width: 3rem; height: 3rem; flex: 0 0 3rem; }
}

/* ============================================================================
   CRUD STATUS DOTS
   ============================================================================ */
table.crud-table td .dot { width: 10px !important; height: 10px !important; min-width: 10px; min-height: 10px; border-radius: 50%; display: inline-block !important; vertical-align: middle; flex-shrink: 0; }
table.crud-table td .dot-on { background-color: #28a745 !important; }
table.crud-table td .dot-off { background-color: #dc3545 !important; }
table.crud-table td .dot-active { background-color: #0d6efd !important; }
table.crud-table td .dot-inactive { background-color: #dee2e6 !important; }
table.crud-table td .dot-warn { background-color: #ffc107 !important; }
table.crud-table td .dot-restricted { background-color: #e67e22 !important; }
table.crud-table td .status-dots { display: inline-flex !important; gap: 6px; align-items: center; vertical-align: middle; }

/* ============================================================================
   SWAL OVERRIDES
   ============================================================================ */
.swal2-styled:focus {
    box-shadow: none !important;
}

/* ── SWAL DETAIL TABLE (popup "Ver") ── */
.swal2-popup .swal2-html-container { text-align: left !important; overflow-wrap: normal !important; word-wrap: normal !important; }
.swal2-popup .swal-detail-table { width: 100%; text-align: left !important; table-layout: auto; }
.swal2-popup .swal-detail-table td { text-align: left !important; padding: 0.4rem 0.5rem; }
.swal2-popup .swal-detail-table td:first-child { white-space: nowrap !important; padding-right: 1rem; font-weight: 500; vertical-align: top; min-width: 100px; }
.swal2-popup .swal-detail-table td:last-child { word-break: break-word; }

/* ============================================================================
   CUSTOM POPUP FORM ALIGNMENT (popup "Editar")
   ============================================================================ */
.custom-popup .container .form-label,
.custom-popup .container .form-control,
.custom-popup .container .form-select,
.custom-popup .container .form-check-label,
.custom-popup .container .mb-3,
.custom-popup .container .checkbox-group { text-align: left !important; }


/* ============================================================================
   RESPONSIVE: PANEL & CRUD TABLES
   ============================================================================ */
@media (max-width: 767px) {
  .panel > .container {
    width: 100%;
    padding: 1rem;
    border-radius: 0;
    overflow-x: auto;
  }
  .panel .search-bar {
    flex-direction: column;
  }
  .panel .search-bar .athena-btn {
    margin-top: 0.5rem;
  }

  table.crud-table {
    font-size: 0.75rem;
  }
  table.crud-table th,
  table.crud-table td {
    padding: 0.35rem 0.4rem !important;
    white-space: nowrap;
  }
  table.crud-table .btn {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
  }

  .swal2-popup {
    width: 95vw !important;
    padding: 1rem !important;
  }
  .swal2-popup .swal-detail-table td:first-child {
    min-width: 70px;
    font-size: 0.8rem;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .panel > .container {
    overflow-x: auto;
  }
  table.crud-table {
    font-size: 0.8rem;
  }
  table.crud-table th,
  table.crud-table td {
    padding: 0.4rem 0.5rem !important;
  }
}

