.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    font-size: smaller;
    font-style: italic;
}

.truncate-1 {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.modal-dialog.large {
    width: 80% !important;
    max-width: unset;
}

.modal-dialog.mid-large {
    width: 50% !important;
    max-width: unset;
}

@media (max-width:900px) {
    .modal-dialog.large {
        width: 100% !important;
        max-width: unset;
    }
    .modal-dialog.mid-large {
        width: 100% !important;
        max-width: unset;
    }
    .modal-dialog {
        margin: unset !important;
    }
}

#viewer_modal .btn-close {
    position: absolute;
    z-index: 999999;
    right: 12px;
    top: 10px;
    width: 34px;
    height: 34px;
    line-height: 30px;
    padding: 0;
    border-radius: 50%;
    background: rgba(15, 23, 42, .82);
    color: #fff;
    border: 1px solid rgba(255,255,255,.22);
    font-size: 20px;
    text-align: center;
}

#viewer_modal .modal-dialog {
    width: min(92vw, 1180px);
    max-width: unset;
    height: auto;
    max-height: unset;
}

#viewer_modal .modal-content {
    background: #0f172a;
    border: 0;
    border-radius: 8px;
    min-height: 58vh;
    max-height: 86vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    box-shadow: 0 20px 60px rgba(15,23,42,.38);
    overflow: hidden;
}

#viewer_modal img,
#viewer_modal video {
    max-height: calc(86vh - 24px);
    max-width: calc(92vw - 24px);
    object-fit: contain;
    border-radius: 4px;
    background: #fff;
}

table.dataTable th,
table.dataTable td {
    padding: 5px !important;
}

.card.d-flex {
    flex-direction: row !important;
}

.card.d-flex>img {
    width: 20% !important;
}

.card.d-flex>.card-body {
    width: 80% !important;
}

span.btn {
    cursor: unset;
}

span.btn:hover {
    background: inherit;
}

#tourCarousel {
    height: 50vh !important;
}

#tourCarousel img {
    object-fit: fill;
}

div.stars {
    width: auto;
    display: inline-block
}

.mt-200 {
    margin-top: 200px
}

input.star {
    display: none
}

label.star {
    float: right;
    /* padding: 10px; */
    font-size: 30px;
    color: #333333;
    transition: all .2s
}

input.star:checked~label.star:before {
    content: '\2605';
    color: #ffc800;
    transition: all .25s
}

input.star-5:checked~label.star:before {
    color: #ffc800;
    /* text-shadow: 0 0 20px #952 */
}

input.star-1:checked~label.star:before {
    color: #F62
}

label.star:hover {
    transform: rotate(-15deg) scale(1.3)
}

label.star:before {
    content: '\2605';
    font-family: FontAwesome
}

#top-header {
    height: 70vh;
}

#top-header * {
    text-shadow: 3px 2px #000000b0;
}

#top-header .title {
    font-size: 5em;
    text-shadow: 4px 4px #000000f5;
}

#top-header:before {
    content: '';
    position: absolute;
    height: 80vh;
    width: calc(100%);
    top: 0;
    left: 0;
    background-image: var(--bg-img) !important;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    z-index: 0;
    filter: brightness(.95)
}

.company-name {
    font-size: 1.35rem;
    font-variant: all-petite-caps;
    font-family: monospace;
    font-weight: 600;
    color: #b5b5b5;
}

img.company-logo {
    transition: transform .02s ease-in;
}

img.company-logo:hover {
    transform: scale(1.02);
}
/* DataTable agrupado por fecha */
#tblResumen tr.dt-group-row td.dt-group-cell{
  background: #dbeafe;       /* azul pastel */
  color: #0f172a;            /* azul oscuro */
  font-weight: 800;
  padding: 8px 12px !important;
  border-top: 1px solid #bfdbfe;
  border-bottom: 1px solid #bfdbfe;
}
#tblResumen tr.dt-group-row td.dt-group-cell span{
  vertical-align: middle;
}

/* Sidebar compacto para pantallas de baja resolucion */
.layout-fixed .main-sidebar {
    height: 100vh;
}

.main-sidebar,
.main-sidebar .nav-sidebar {
    font-size: .68rem !important;
}

.main-sidebar .brand-link {
    font-size: .72rem !important;
    min-height: 2.15rem !important;
    padding: .25rem .45rem !important;
}

.main-sidebar .brand-image {
    height: 1.35rem !important;
    margin-top: 0 !important;
    max-height: 1.35rem !important;
    width: 1.35rem !important;
}

.main-sidebar .brand-text {
    line-height: 1rem !important;
}

.layout-fixed .main-sidebar .sidebar {
    overflow-x: hidden !important;
    overflow-y: auto !important;
    padding-bottom: .55rem;
    scrollbar-width: thin;
}

.layout-navbar-fixed.layout-fixed .main-sidebar .sidebar {
    height: calc(100vh - 2.15rem - 1px);
}

.main-sidebar .sidebar .os-content,
.main-sidebar .sidebar > .os-content {
    height: auto !important;
    min-height: 100%;
}

.main-sidebar .sidebar nav.mt-4 {
    margin-top: .12rem !important;
}

.nav-sidebar .nav-header {
    font-size: .52rem !important;
    letter-spacing: .04em;
    padding: .28rem .35rem .08rem !important;
}

.nav-sidebar .nav-link {
    align-items: center;
    display: flex;
    margin-bottom: 0 !important;
    min-height: 22px !important;
    padding: .12rem .32rem !important;
}

.nav-sidebar .nav-link > .nav-icon {
    flex: 0 0 .9rem !important;
    font-size: .68rem !important;
    margin-left: 0;
    margin-right: .22rem !important;
    text-align: center;
    width: .9rem !important;
}

.nav-sidebar .nav-link p {
    font-size: .68rem !important;
    line-height: .82rem !important;
    margin: 0;
    min-width: 0;
    overflow-wrap: anywhere;
    white-space: normal;
}

.nav-sidebar .nav-link p > .right {
    font-size: .62rem !important;
    top: .22rem !important;
}

.nav-sidebar .nav-treeview > .nav-item > .nav-link {
    min-height: 20px !important;
    padding-left: .22rem !important;
}

.nav-sidebar .nav-treeview > .nav-item > .nav-link .nav-icon {
    flex-basis: .72rem !important;
    font-size: .48rem !important;
    width: .72rem !important;
}

@media (min-width: 768px) and (max-width: 1366px) {
    body:not(.sidebar-collapse) .main-sidebar,
    body:not(.sidebar-collapse) .main-sidebar::before {
        width: 210px !important;
    }

    body:not(.sidebar-collapse) .content-wrapper,
    body:not(.sidebar-collapse) .main-footer,
    body:not(.sidebar-collapse) .main-header {
        margin-left: 210px !important;
    }
}

@media (min-width: 768px) and (max-width: 1100px) {
    body:not(.sidebar-collapse) .main-sidebar,
    body:not(.sidebar-collapse) .main-sidebar::before {
        width: 195px !important;
    }

    body:not(.sidebar-collapse) .content-wrapper,
    body:not(.sidebar-collapse) .main-footer,
    body:not(.sidebar-collapse) .main-header {
        margin-left: 195px !important;
    }
}

@media (max-height: 720px) {
    .main-sidebar .brand-link {
        font-size: .66rem !important;
        min-height: 1.9rem !important;
        padding-bottom: .2rem !important;
        padding-top: .2rem !important;
    }

    .main-sidebar .sidebar nav.mt-4 {
        margin-top: .05rem !important;
    }

    .nav-sidebar .nav-header {
        font-size: .48rem !important;
        padding-bottom: .05rem !important;
        padding-top: .2rem !important;
    }

    .nav-sidebar .nav-link {
        min-height: 19px !important;
        padding-bottom: .08rem !important;
        padding-top: .08rem !important;
    }

    .nav-sidebar .nav-link p {
        font-size: .62rem !important;
        line-height: .75rem !important;
    }
}
