:root {
    --bs-body-font-size: 1rem;
    --bs-body-font-weight: normal;
    --bs-body-line-height: 1.1rem;
    /** cards **/
    --bs-card-title-font-size: 1.25rem;
    --bs-card-title-font-weight: 500;
    --bs-card-title-line-height: 1.25rem;

}

body.theme-light {
    background-color: #f3f3f3;
}

.card .card-header h2 {
    font-size: var(--bs-card-title-font-size);
    font-weight: var(--bs-card-title-font-weight);
    line-height: var(--bs-card-title-line-height);
    margin: 0;
}


html, body {
    height: 100%;
    font-family: 'Ubuntu', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Ubuntu', sans-serif;
}


.sidebar-start {
    width: 16.2rem;
    height: 100%;
}

.sidebar-end {
    width: 16.2rem;
}


.sidebar-header {
    /**padding: 1rem !important;**/
    height: 4rem;
}

.sidebar-start li a {
    text-decoration: none;
    width: 100%;
    display: block;
    border-radius: 5px;
    padding: 8px 5px;
}

.sidebar-start li a.active {
    background: rgba(255, 255, 255, 0.2);
}

.sidebar-start li a:hover {
    background: rgba(255, 255, 255, 0.2);
}

.sidebar-start li a i {
    width: 25px;
    text-align: center;
}

.search-box-btn {
    border-color: var(--bs-border-color);


}


.data-container {
    height: 2.5rem;
    font-size: 1rem;
    line-height: 1rem;
    padding: 0.5rem;
}

.link-user.link-name {
    text-decoration: none;
    color: var(--bs-body-color);
}


.collapse:not(.show) {
    display: none !important;
}


.notification-badge {
    background-color: rgba(255, 255, 255, 0.7);
    float: right;
    color: #222;
    font-size: 14px;
    padding: 0 8px;
    border-radius: 2px;
}


.blog-header-logo {
    font-family: "Playfair Display", Georgia, "Times New Roman", serif /*rtl:Amiri, Georgia, "Times New Roman", serif*/;
    font-size: 2.25rem;
}

.blog-header-logo:hover {
    text-decoration: none;
}


.flex-auto {
    flex: 0 0 auto;
}

.h-250 {
    height: 250px;
}

@media (min-width: 768px) {
    .h-md-250 {
        height: 250px;
    }
}

/* Pagination */
.blog-pagination {
    margin-bottom: 4rem;
}

/*
 * Blog posts
 */
.blog-post {
    margin-bottom: 4rem;
}

.blog-post-meta {
    margin-bottom: 1.25rem;
    color: #727272;
}


.b-example-divider {
    width: 100%;
    height: 3rem;
    background-color: rgba(0, 0, 0, .1);
    border: solid rgba(0, 0, 0, .15);
    border-width: 1px 0;
    box-shadow: inset 0 .5em 1.5em rgba(0, 0, 0, .1), inset 0 .125em .5em rgba(0, 0, 0, .15);
}

.b-example-vr {
    flex-shrink: 0;
    width: 1.5rem;
    height: 100vh;
}

.bi {
    vertical-align: -.125em;
    fill: currentColor;
}

.nav-scroller {
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.nav-scroller .nav {
    display: flex;
    flex-wrap: nowrap;
    padding-bottom: 1rem;
    margin-top: -1px;
    overflow-x: auto;
    text-align: center;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}

.btn-bd-primary {
    --bd-violet-bg: #712cf9;
    --bd-violet-rgb: 112.520718, 44.062154, 249.437846;

    --bs-btn-font-weight: 600;
    --bs-btn-color: var(--bs-white);
    --bs-btn-bg: var(--bd-violet-bg);
    --bs-btn-border-color: var(--bd-violet-bg);
    --bs-btn-hover-color: var(--bs-white);
    --bs-btn-hover-bg: #6528e0;
    --bs-btn-hover-border-color: #6528e0;
    --bs-btn-focus-shadow-rgb: var(--bd-violet-rgb);
    --bs-btn-active-color: var(--bs-btn-hover-color);
    --bs-btn-active-bg: #5a23c8;
    --bs-btn-active-border-color: #5a23c8;
}

.bd-mode-toggle {
    z-index: 1500;
}


.categories {

}

.categories .nav-link {
    border-right: 1px solid #ccc;
}

@media (min-width: 768px) {
    .categories .nav-link {
        padding-right: var(--bs-navbar-nav-link-padding-x);
        padding-left: var(--bs-navbar-nav-link-padding-x);
    }
}


.sponsored {

}

.sponsored h3 {
    font-size: 1.25rem;
    line-height: 1.25rem;
}

.sponsored .card-text {
    font-size: 1rem;
    line-height: 1rem;
}

.bd-placeholder-img {
    font-size: 1.125rem;
    text-anchor: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    height: 100%;
}

@media (min-width: 768px) {
    .bd-placeholder-img-lg {
        font-size: 3.5rem;
    }
}

.card-read-more {

}

.card-read-more a {
    text-decoration: none !important;
    padding: 10px;
    font-weight: 600;
}


/* -------------------------------------------------------------------------- */
/*                                   Avatar                                   */
/* -------------------------------------------------------------------------- */
.avatar {
    display: inline-block;
    position: relative;
    width: 2.5rem;
    height: 2.5rem;
    text-align: center;
    border: #000000;
    border-radius: 25%;
    padding: 2px;
}

.avatar img {
    border-radius: 50%;
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.truncate {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.data-avatar {

}

.online_icon.status-offline {
    display: none;
}

.online_icon {
    position: absolute;
    height: 13px;
    width: 13px;
    background-color: var(--positive);
    border-radius: 50%;
    bottom: -0.1rem;
    right: -0.1rem;
}


.stretched-link::after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    content: "";
}


.user-item {
    padding: 0.2rem;
    min-height: 2rem;
}


.navbar-profile-image {
    width: 2.5rem;
    height: 2.5rem;
    object-fit: cover;
    border-radius: 50%;
}


.float-right {
    float: right !important;
}


/** Textos **/
.fs-6 {font-size: 1rem !important;}
.fs-7{font-size: 0.875rem !important;}
.fs-8{font-size: 0.75rem !important;}
.fs-9{font-size: 0.625rem !important;}
.fs-10{font-size: 0.5rem !important;}

.lh-6{line-height: 1rem !important;}
.lh-7{line-height: 0.875rem !important;}
.lh-8{line-height: 0.75rem !important;}
.lh-9{line-height: 0.625rem !important;}
.lh-10{line-height: 0.5rem !important;}



.breadcrumb-item-a {
    text-decoration: none;
    color: var(--bs-body-color-rgb);
}


.theme-dark .sidebar-svg {
    filter: invert(1) !important;
}

.theme-light .sidebar-svg {
    filter: none !important;
}


.sidebar-start li a {
    font-size: var(--bs-body-font-size);
    font-weight: var(--bs-body-font-weight);
    line-height: var(--bs-body-line-height);
    color: var(--bs-body-color);
}


p.copyright {
    font-size: var(--bs-body-font-size);
    font-weight: var(--bs-body-font-weight);
    line-height: var(--bs-body-line-height);
    color: var(--bs-body-color);
}


.colorgraph {
    visibility: hidden;
}

.form-control::placeholder {
    color: #999;
}

.form-control.readonly {
    background-color: #e9ecef;
}


.help-block {
    font-size: .75rem;
    opacity: .5;
}

.ace_editor {
    width: 100%;
    height: 480px;
    border: 2px solid #a6adb9;
    border-radius: .125rem;
    padding: 1rem;
}

.map {
    width: 100%;
    height: 480px;
    border: 1px solid #000000;
}


.theme-light #main {
    transition: margin-left .35s ease-in-out, left .35s ease-in-out, margin-right .35s ease-in-out, right .35s ease-in-out;
    width: 100%;
    /**margin-left: 16.2rem;**/
}

.theme-dark #main {
    transition: margin-left .35s ease-in-out, left .35s ease-in-out, margin-right .35s ease-in-out, right .35s ease-in-out;
    width: 100%;
    /**margin-left: 16.2rem;**/
    background: rgba(0, 0, 0, 0.25);
}

.theme-light .control-view {
    display: block;
    width: 100%;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--bs-body-color);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: var(--bs-body-bg);
    background-clip: padding-box;
    border: var(--bs-border-width) solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}


.control-view .form-check {
    padding-left: 1.5em;
    margin-top: 0;
    margin-bottom: 0;
}

.theme-dark .control-view {
    background-color: #0a3622 !important;
    border-color: #051b11 !important;
    color: #479f76 !important;
    font-weight: bold;
}


.croppie-img-fluid {
    width: 100%;
}


.croppie-input-group.input-group {

}


.croppie-btn-file {
    display: inline-block;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0.5rem;
    line-height: 1.5rem;
    border-radius: 0.375rem;
    align-items: center;
    justify-content: center;
}

.croppie-btn-file.bi {
    font-size: 1rem;
}

.croppie-file-input {
    display: none;
}

.croppie-input-group.input-group {
    position: absolute;
    bottom: 1rem;
    align-content: end;
}

.btn.croppie-btn-file {
    border: 2px solid #cccccc;
    border-radius: 0;
    padding: 0;
    margin: 0.25rem !important;
    color: #cccccc;
}

.color-green {
    color: #28a745 !important;
}


.status-online::after {
    content: '';
    position: absolute;
    right: 3px;
    bottom: 3px;
    width: 12px;
    height: 12px;
    background-color: green;
    border-radius: 50%;
    border: 2px solid white; /* Ajustar al color de fondo para hacer que parezca que el punto se superpone */
}


/* Efecto de brillo / destello */
@keyframes shimmer {
    0% {
        background-position: -150% 0;
    }
    50% {
        background-position: 150% 0;
    }
    100% {
        background-position: -150% 0;
    }
}


.heatgraph-canvas {
    display: flex;
    width: 180px;
    height: 254px;
    align-content: center;
}

.card-badge {
    position: absolute;
    right: 0;
    top: 0;
    padding: 12px 15px;
    border-radius: 0 0 0 26px;
    font-size: 1.5rem;
    color: #ffffff;
}


.opacity-1 {
    opacity: .1;
}

.opacity-2 {
    opacity: .2;
}

.opacity-3 {
    opacity: .3;
}

.opacity-4 {
    opacity: .4;
}

.opacity-5 {
    opacity: .5;
}

.opacity-6 {
    opacity: .6;
}

.opacity-7 {
    opacity: .7;
}

.opacity-8 {
    opacity: .8;
}

.opacity-9 {
    opacity: .9;
}

.opacity-10 {
    opacity: 1;
}


.easy-tree {

}

.easy-tree ul {
    padding-left: 0;

}

.easy-tree li {
    list-style-type: none;
    margin: 0;
    padding-right: 0;
    position: relative;
    padding-top: 1rem;
}


.easy-tree li::after {
    border-top: 1px solid #f00 !important;
    height: 40px;
    top: -10px;
    width: 7px;
    left: -6px;
    border-left: 1px solid #f80f0f;
    border-bottom: 1px solid #f00;
}

.theme-light .easy-tree li > span {
    border: 1px dotted #6c757d;
    border-radius: 0.5rem;
    display: inline-block;
    padding: 0.5rem;
    text-decoration: none;
    background: #f5f6fa;
}

.theme-dark,
.easy-tree li.parent_li > span {
    cursor: pointer
}


.theme-light .easy-tree .title {
    color: #606366;
    font-weight: bold;
}

.easy-tree > ul > li::after, .easy-tree > ul > li::before {
    border: 0
}

.easy-tree li:last-child::before {
    height: 26px;
}

.easy-tree li.parent_li > span:hover, .easy-tree li.parent_li > span:hover + ul li span {
    /* background: #cccccc;*/
}

.easy-tree li.parent_li > span:hover + ul li.li_selected span {
    /*background: #cccccc;*/
    /* color: #212529 */
}

.theme-light .easy-tree li > span > a {
    color: rgba(0, 0, 0, 0.5);
    text-decoration: none;
}

.theme-dark .easy-tree li > span > a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
}


.easy-tree li > span > a:hover {
    color: #212529;
    text-decoration: underline;
}

.easy-tree li > span > span.glyphicon-folder-close, .easy-tree li > span > span.glyphicon-folder-open {
    margin-right: 5px
}

.easy-tree li.li_selected > span, .easy-tree li.li_selected > span > a {
    background: #e5e2e1;
    color: #212529
}

.easy-tree li.li_selected > span:hover, .easy-tree li.li_selected > span:hover > a {
    /*background: #fafafa;*/
    /*color: #212529*/
}

.easy-tree .easy-tree-toolbar {
    background-color: #fff
}

.easy-tree .easy-tree-toolbar > div {
    display: inline-block
}

.easy-tree .easy-tree-toolbar > div > button {
    border-radius: 0;
    margin: 20px 5px
}

.easy-tree .easy-tree-toolbar .create .input-group {
    top: -15px;
    margin-left: 5px;
    margin-right: 5px
}

.easy-tree .easy-tree-toolbar .create .input-group button, .easy-tree .easy-tree-toolbar .create .input-group input {
    border-radius: 0
}

.benchmark {
    opacity: 0.7;
}


.theme-light .benchmark .indicator {
    border: 2px solid #bebebe;
    background-color: #fff;
    color: #000
}

.theme-light .benchmark .label {
    border: 2px solid #bebebe;
    background-color: #bebebe;
    color: #fff;
}

.theme-dark .benchmark .indicator {
    border: 2px solid #000;
    background-color: #0003;
    color: #ffffff5c;
}

.theme-dark .benchmark .label {
    border: 2px solid #000;
    background-color: #000;
    color: #ffffff85;
}

.theme-light .navbar-button {
    font-size: 1.25rem;
    width: 2.5rem;
    height: 2.5rem;
    object-fit: cover;
    border-radius: 50%;
    border-width: 1px;
    border-color: #cccccc;
    padding-left: 0.6rem;
    line-height: 1.25rem;
    padding-top: 0.5rem;
    color: #b2b2b2;
    text-align: center;
}


.theme-light .navbar-button:hover {
    border-color: #6c757d;
    background-color: #6c757d;
    color: #ffffff;
}


.theme-dark .form-control.readonly {
    background-color: rgba(0, 0, 0, 0.5);
}

.theme-dark .form-control {
    background-color: rgba(0, 0, 0, 0.7);
}


.min-fit {
    min-width: fit-content;
}


.vh-100 {
    height: 100vh;
}

.h-8px {
    height: 8px !important;
}

.h-16px {
    height: 16px !important;
}

.h-32px {
    height: 32px !important;
}

.h-64px {
    height: 64px !important;
}

.h-128px {
    height: 128px !important;
}

.h-256px {
    height: 256px !important;
}

.h-512px {
    height: 512px !important;
}

.h-768px {
    height: 768px !important;
}

.h-1024px {
    height: 1024px !important;
}

.h-100 {
    height: 100% !important;

}

.h-50 {
    height: 50% !important;

}

.h-25 {
    height: 25% !important;

}

.h-75 {
    height: 75% !important;

}

.h-10 {
    height: 10% !important;

}

.h-20 {
    height: 20% !important;

}

.h-30 {
    height: 30% !important;

}

.h-40 {
    height: 40% !important;

}

.h-60 {
    height: 60% !important;

}

.h-70 {
    height: 70% !important;

}

.h-80 {
    height: 80% !important;

}

.h-90 {
    height: 90% !important;

}


.theme-light #main-content {
    background-color: #f0f2f5;
}


.border-left {
    border-left: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color) !important;
}

.border-right {
    border-right: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color) !important;
}

.border-top {
    border-top: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color) !important;
}

.border-bottom {
    border-bottom: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color) !important;
}

.form-header {
    font-size: 1.2rem;
    font-weight: normal;
    line-height: 2rem;
    background-color: #dddee1;
    padding-left: 1rem;
    padding-right: 1rem;
    border: 1px dotted #acadaf;
    border-radius: 0.35rem;
    color: black;
}


.sidebar {
    min-width: 250px;
    width: 250px;
    transition: transform 1s ease, width 1s ease, display 1s ease; /* Agregamos la transición aquí */
    overflow: hidden;
}

.main-content {
    flex-grow: 1;
    transition: margin 0.3s ease;
}

.left-collapsed {
    transition: all 0.3s ease;
    margin-left: -250px;
}

.right-collapsed {
    transition: all 0.3s ease;
    margin-right: -250px;
}

.left-expanded {
    transition: all 0.3s ease;
    transform: translateX(0);
    width: 250px;
    display: block; /* Mostrar el elemento y ocupar espacio */
}

.right-expanded {
    transition: all 0.3s ease;
    transform: translateX(0);
    width: 250px;
    display: block; /* Mostrar el elemento y ocupar espacio */
}

.logo-fluid {
    max-width: 100%;
    height: auto;
    padding: 2rem;
}


.extra-data {
    font-size: 0.7rem;
    color: #6c757d;
}


.w-1 {
    width: 1% !important;
}


.counter-box {
    display: block;
    text-align: center
}

.counter-box p {
    margin: 5px 0 0;
    padding: 0;
    color: #909090;
    font-size: 18px;
    font-weight: 500
}

.counter-box i {
    font-size: 2rem;
    margin: 0.5rem;
    color: #9b9fa4;
}

.counter {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: #666;
    line-height: 28px
}

.counter-box.colored {
    background: #3acf87;
}

.counter-box.colored p,
.counter-box.colored i,
.counter-box.colored .counter {
    color: #fff
}

.form-select {
    font-family: "Space Mono", monospace;
    font-size: 14px;
    font-weight: normal;
}


.w-4px {
    width: 4px !important;
}

.w-8px {
    width: 8px !important;
}

.w-16px {
    width: 16px !important;
}

.w-32px {
    width: 32px !important;
}

.w-64px {
    width: 64px !important;
}

.w-128px {
    width: 128px !important;
}

.w-256px {
    width: 256px !important;
}

.w-512px {
    width: 512px !important;
}

::-webkit-scrollbar-track {
    border-radius: 0.125rem;
    background-color: lightgray;
}
::-webkit-scrollbar {
    width: 0.25rem;
    border-radius: 0.125rem;
}
::-webkit-scrollbar-thumb {
    border-radius: 0.125rem;
    background-color: gray;}

body {
    scrollbar-gutter: stable both-edges;
}


/* Estilos esenciales para períodos académicos */
.period-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem;
    border-bottom: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    cursor: pointer;
}

.period-item:hover {
    background-color: #f8fafc;
    transform: translateX(5px);
}

.period-item:last-child {
    border-bottom: none;
}

.period-info {
    display: flex;
    align-items: center;
}

.period-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-weight: bold;
    color: white;
    font-size: 0.8rem;
}

.period-2024a .period-icon { background: linear-gradient(135deg, #059669, #047857); }
.period-2024b .period-icon { background: linear-gradient(135deg, #0891b2, #0e7490); }
.period-2025a .period-icon { background: linear-gradient(135deg, #7c3aed, #6d28d9); }
.period-2025b .period-icon { background: linear-gradient(135deg, #dc2626, #b91c1c); }

.period-name {
    font-weight: 600;
    color: #374151;
    font-size: 1rem;
}

.period-results {
    text-align: right;
}

.period-value {
    font-weight: 700;
    color: #111827;
    font-size: 1rem;
}

.period-change {
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: 0.25rem;
}

.change-positive { color: #059669; }
.change-negative { color: #dc2626; }
.change-neutral { color: #6b7280; }

.trend-icon {
    margin-right: 0.25rem;
    font-size: 0.7rem;
}


/**
 * Status Cards

 */
.status-card {
    width: 164px;
    height: 180px;
    border: 1px solid;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin: 0;
    position: relative;
    transition: all 0.3s ease;
}

.status-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.status-card.activo {
    border-color: #28a745;
}

.status-card.cerrado {
    border-color: #dc3545;
}

.status-card.cancelado {
    border-color: #ffc107;
}

.status-card.pausado {
    border-color: #6c757d;
}

.status-sidebar {
    width: 35%;
    height: 100%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1rem;
    letter-spacing: 2px;
    writing-mode: vertical-lr;
    text-orientation: mixed;
    transform: rotate(180deg);
}

.status-sidebar.activo {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.status-sidebar.cerrado {
    background: linear-gradient(135deg, #dc3545, #e74c3c);
}

.status-sidebar.cancelado {
    background: linear-gradient(135deg, #ffc107, #ffb300);
}

.status-sidebar.pausado {
    background: linear-gradient(135deg, #6c757d, #5a6268);
}

.status-content {
    width: 65%;
    height: 100%;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.user-icon {
    width: 60px;
    height: 60px;
    background: #6c757d;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    color: white;
    font-size: 1.5rem;
}

.status-number {
    font-size: 3rem;
    font-weight: bold;
    color: #333;
    margin-top: 0.5rem;
    line-height: 1;
}

.status-label {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 0;
    text-align: center;
}

/* Diferentes tamaños */
.status-card.small {
    width: 150px;
    height: 200px;
}

.status-card.large {
    width: 250px;
    height: 350px;
}

.status-card.large .user-icon {
    width: 80px;
    height: 80px;
    font-size: 2rem;
}

.status-card.large .status-number {
    font-size: 4rem;
}

/* Versión horizontal */
.status-card.horizontal {
    width: 300px;
    height: 120px;
    flex-direction: row;
}

.status-card.horizontal .status-sidebar {
    width: 25%;
    writing-mode: horizontal-tb;
    transform: none;
    font-size: 0.9rem;
}

.status-card.horizontal .status-content {
    width: 75%;
    flex-direction: row;
    justify-content: space-around;
}

.status-card.horizontal .user-icon {
    width: 45px;
    height: 45px;
    margin-bottom: 0;
    margin-right: 1rem;
}

.status-card.horizontal .status-number {
    font-size: 2rem;
}