﻿html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}

span.field-validation-error {
    color: red;
    margin-top: 12px;
    display: block;
}

input.form-check-input[readonly] {
    pointer-events: none;
}

.dropdown-menu {
    max-height: 400px;
    overflow: auto;
}

.hidden-field {
    height: 0px;
    overflow: hidden;
}

.card-journey-small .card-image img {
    object-fit: cover;
}

a[data-is-disabled="True"] {
    pointer-events: none;
    background: #cbcbcb47 !important;
}

.box-image-preview img[src=''] {
    display: none !important;
}

.card-duration-tour {
    height: 22px !important;
}

.image-file-control {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
}

    .image-file-control > .box-image-preview {
        aspect-ratio: 1 / 1;
        background: var(--bs-background-9);
        display: flex;
        position: relative;
        border-radius: 8px;
        overflow: hidden;
        flex: 0 0 calc(25% - 8px); /* 4 item trên 1 dòng */
        box-sizing: border-box; /* tránh tràn */
    }

        .image-file-control > .box-image-preview.star {
            box-shadow: 0px 0px 10px var(--bs-warning);
            background: unset;
        }

        .image-file-control > .box-image-preview > img {
            background-position: center;
            margin: auto;
            width: 100%;
            height: 100%;
            object-fit: cover;
        }


.actions:hover {
    opacity: 1;
}

.actions {
    opacity: 0;
    transition: 0.5s;
    position: absolute;
    inset: 0;
    background: rgba(34,47,62,.7);
    color: white;
    z-index: 2;
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 8px;
    width: 100%;
}

    .actions > span {
        font-size: 10px;
        display: block;
        text-align: center;
        border: solid 1px;
        border-radius: 16px;
        transition: 0.5s;
        cursor: pointer;
        width: 100%;
    }

        .actions > span:hover {
            background: #ffffff;
            color: black;
            border-color: white;
        }


.box-image-preview.star:after {
    position: absolute;
    z-index: 1;
    width: 24px;
    height: 24px;
    right: 2px;
    top: 4px;
    content: '✦';
    color: #ffffff;
    font-size: 26px;
}

.weekly-item {
    flex: 1;
    display: inline-flex;
    min-width: 80px;
    flex-direction: column;
}

    .weekly-item > * {
        margin-left: auto;
        margin-right: auto;
    }

#weekly {
    margin-bottom: 20px;
}

body.modal-padding-overlap {
    overflow: inherit !important;
    padding-right: inherit !important;
    height: 100vw !important;
    position: fixed;
    overflow-y: scroll !important;
    width: calc(100vw - 17px) !important;
}

.ui-autocomplete {
    max-width: 370px;
    border: solid 1px #e6e6e6;
    margin-top: 3px;
    background: white;
}

    .ui-autocomplete > li {
        padding: 5px;
        border-bottom: solid 1px #e6e6e6;
        transition: 0.3s;
    }

        .ui-autocomplete > li:hover {
            background: #e6e6e6;
        }

div[data-can-pickup-bg="False"] .actions > span:first-child {
    display: none;
}

.image-wrapper {
    position: absolute;
    inset: 0;
    display: flex;
}

    .image-wrapper > img {
        object-fit: scale-down;
        height: 100%;
        margin: auto;
    }

.tox-promotion {
    display: none !important;
}
