.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: -4.5em;*/
    background: unset;
    color: white;
    border: unset;
    font-size: 27px;
    top: 0;
}

#viewer_modal .modal-dialog {
    width: 80%;
    max-width: unset;
    height: calc(90%);
    max-height: unset;
}

#viewer_modal .modal-content {
    background: black;
    border: unset;
    height: calc(100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

#viewer_modal img,
#viewer_modal video {
    max-height: calc(100%);
    max-width: calc(100%);
}

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
}

.product-holder {
    background-color: #fff;
    height: 20vh !important;
    width: 100% !important;
}

.product-cover {
    width: 100% !important;
    height: 100% !important;
    object-fit: scale-down !important;
    object-position: center center;
    transition: all ease-in .3s;
}

a.card.product-item:hover {
    background: #ebebebb8;
}

a.card.product-item:hover .product-cover {
    transform: scale(1.2);
}

.login-page {
    overflow-x: hidden !important;
}
/* ---------- Responsive / mobile ---------- */

/* AdminLTE 3.1.0-rc keeps the 4.6rem mini-sidebar gutter below 768px even though
   the sidebar is hidden off-canvas there. Give phones the full width back. */
@media (max-width: 767.98px) {
    body .content-wrapper,
    body .content-wrapper::before,
    body .main-header,
    body .main-header::before,
    body .main-footer,
    body .main-footer::before {
        margin-left: 0 !important;
    }
    .content-wrapper > .content {
        padding-left: .25rem;
        padding-right: .25rem;
    }
    /* 16px stops iOS Safari zooming the page when a field gets focus */
    .form-control,
    .custom-select,
    .select2-container .select2-selection,
    .dataTables_filter input,
    .dataTables_length select {
        font-size: 16px !important;
    }
    .card-header .card-title {
        float: none;
        margin-bottom: .5rem;
    }
    .card-header .card-tools {
        float: none;
        margin: 0;
    }
    .main-footer {
        font-size: .75rem;
        text-align: center;
    }
}

/* Top bar user menu */
.navbar-user-btn {
    display: inline-flex !important;
    align-items: center;
    gap: .5rem;
    max-width: 100%;
    padding: .1875rem .75rem .1875rem .1875rem !important;
    font-size: .875rem !important;
    line-height: 1.2;
}
.main-header .btn-group.nav-link {
    padding-top: 0;
    padding-bottom: 0;
    height: 2.5rem;
    display: flex;
    align-items: center;
}
.navbar-user-btn .user-img {
    width: 24px;
    height: 24px;
    object-fit: cover;
    flex-shrink: 0;
}
.navbar-user-btn .user-name {
    max-width: 12rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
@media (max-width: 575.98px) {
    .navbar-user-btn .user-name {
        max-width: 7rem;
    }
}
.main-header .nav-link[data-widget="pushmenu"] {
    min-width: 44px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Dashboard stat tiles */
.dash-stats .info-box {
    min-height: 0;
    height: calc(100% - 1rem);
}
.dash-stats .info-box-icon {
    flex-shrink: 0;
}
.dash-stats .info-box-content {
    min-width: 0;
}
.dash-stats .info-box-text {
    white-space: normal;
    line-height: 1.25;
}
.dash-stats .info-box-number {
    font-variant-numeric: tabular-nums;
}
@media (max-width: 575.98px) {
    .dash-stats {
        margin-left: -.375rem;
        margin-right: -.375rem;
    }
    .dash-stats > [class*="col-"] {
        padding-left: .375rem;
        padding-right: .375rem;
    }
    .dash-stats .info-box {
        flex-direction: column;
        align-items: flex-start;
        padding: .75rem;
        margin-bottom: .75rem;
        height: calc(100% - .75rem);
    }
    .dash-stats .info-box-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
        border-radius: .375rem;
    }
    .dash-stats .info-box-content {
        padding: .5rem 0 0;
        display: flex;
        flex-direction: column-reverse;
    }
    .dash-stats .info-box-number {
        font-size: 1.5rem;
        line-height: 1.1;
        margin: 0 0 .125rem;
    }
    .dash-stats .info-box-text {
        font-size: .8125rem;
        color: #6c757d;
    }
}

/* Dashboard banner: shorter on small screens, never stretched */
#tourCarousel {
    height: clamp(160px, 35vh, 420px) !important;
}
#tourCarousel img {
    object-fit: contain !important;
}

/* DataTables on small screens */
@media (max-width: 767.98px) {
    .dataTables_wrapper .dataTables_length,
    .dataTables_wrapper .dataTables_filter,
    .dataTables_wrapper .dataTables_info,
    .dataTables_wrapper .dataTables_paginate {
        text-align: left !important;
    }
    .dataTables_wrapper .dataTables_filter label {
        display: flex;
        align-items: center;
        gap: .5rem;
        width: 100%;
    }
    .dataTables_wrapper .dataTables_filter input {
        flex: 1;
        min-width: 0;
        width: auto !important;
        margin-left: 0 !important;
    }
    .dataTables_wrapper .dataTables_paginate .pagination {
        justify-content: flex-start !important;
        flex-wrap: wrap;
    }
    /* Show whole values and let Responsive move overflow columns into the row details */
    table.dataTable .truncate-1 {
        display: block;
        white-space: nowrap;
        -webkit-line-clamp: unset;
    }
    .card-body > .container-fluid,
    .card-body > .container-fluid > .container-fluid {
        padding-left: 0;
        padding-right: 0;
    }
}
