@font-face {
    font-family: DIN;
    src: url(/assets/font/DIN-Regular.otf);
}

*{
    font-family: 'DIN', sans-serif !important;
}

.bi::before,
i.bi::before,
[class^="bi-"]::before,
[class*=" bi-"]::before{
    font-family: bootstrap-icons !important;
}

html, body{
    min-height: 100vh !important;
    height: fit-content;
}

body{
    overflow-x: hidden;
}

nav{
    background: #343A40;
}

.nav-tabs .nav-link{
    padding: 17px 16px 10px;
}

nav{
    color: white !important;
}

nav a:not(.dropdown-menu a){
    color: #ddd !important;
    text-decoration: none;
}

.navbar-dark .navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba(255, 255, 255, 0.55)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E") !important;
}

nav .dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0; /* remove the gap so it doesn't close */
}

/* @media (max-width: 1150px){
    .navbar-expand-lg .navbar-nav {
        font-size: .75em;
    }
} */

.my-select, .my-file-input, .my-date-input{
    width: 100%;
    padding: 0.32rem 0.75rem;
    border: 1px solid #bdbdbd;
    border-radius: 5px;
}

.my-select-outline, .my-file-input-outline, .my-date-input-outline{
    position: relative;
}

.my-select-label, .my-file-input-label, .my-date-input-label{
    /*STILE COPIATO DA MDB PER .form-outline .form-control~.form-label*/
    position: absolute;
    top: 0;
    max-width: 90%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    left: 0.75rem;
    padding-top: 0.37rem;
    pointer-events: none;
    transform-origin: 0 0;
    transition: all .2s ease-out;
    color: rgba(0,0,0,.6);
    margin-bottom: 0;

    /*STILE COPIATO DA MDB PER .form-outline .form-control.active~.form-label, .form-outline .form-control:focus~.form-label*/
    transform: translateY(-1rem) translateY(0.1rem) scale(.8);

    /* MIE AGGIUNTE */
    background: white;
    padding-left: 5px;
    padding-right: 5px;
}

.my-file-input{
    padding: 0 54px;
    height: 35px;
}
.my-file-input::-webkit-file-upload-button {
    visibility: hidden;
}

.my-table{
    width: 100%;
}
/* .my-table td{
    max-width: 50%;
} */
.my-table td:first-of-type{
    text-align: right;
    padding-right: 4px;
}
.my-table td:last-of-type{
    font-weight: bold;
    padding-left: 4px;
}

.my-tab-elements-counter{
    background: #737373;
    border-radius: 100px;
    padding: 0px 5px;
    color: white;
}

.active > .my-tab-elements-counter{
    background: #3a71ca;
}

button.width125{
    width: 125px;
    max-width: 100%;
}

/******************************************************************************************
/****************************************************************************************** SPECIFIC PAGE CSS
/******************************************************************************************/

@media screen and (max-width: 991px) {
    #headerBrandSelector{
        width: 100%;
        max-width: 250px;
        margin: 0 auto;
    }

    .navbar-nav .nav-link,
    .navbar-nav .dropdown-item{
        padding-top: 0.85rem;
        padding-bottom: 0.85rem;
    }
}

.display-6.font-weight-normal{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.display-6.font-weight-normal > .btn{
    margin-left: auto;
}

.top-brand-img{
    height: 45px;
    max-width: min(40vw, 180px);
    margin-left: auto;
    object-fit: contain;
    float: none;
}

.store-brand-img{
    width: 80%;
    margin: 8px auto;
    display: block;
    border-radius: 8px;
}

.store-map{
    width:100%; 
    height: 250px;
    border-radius: 8px;
}

.store-image{
    width: 100%; 
    max-height: 250px;
    margin: 8px auto;
    display: block;
    border-radius: 8px;
}

.brandselector-link{
    width: min(100%, 220px);
    min-height: 90px;
    height: auto;
    margin: 10px;
    padding: 12px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: normal;
}

.brandselector-link:hover{
    opacity: .7;
}

.brandselector-link img{
    max-width: 100%;
}

.storeName, .userName, .settingName{
    cursor: pointer;
}

.deadline-status{
    color: white;
    width: auto;
    min-width: 96px;
    max-width: 100%;
    padding: 6px 0;
    border-radius: 4px;
    display: inline-block;
    font-size: .9em;
    text-align: center;
}

.card-header{
    row-gap: 8px;
}

.dashboard-card{
    display: flex;
    flex-direction: column;
}

.dashboard-card .card-body{
    flex: 1 1 auto;
}

.dashboard-card-body-balanced{
    min-height: 280px;
}

.btn-icon-circle{
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-icon-circle .bi,
.dashboard-tooltip-icon .bi{
    display: block;
    line-height: 1;
}

.btn-icon-circle .bi{
    font-size: 1.05rem;
}

.dashboard-tooltip-icon{
    width: 24px;
    height: 24px;
    color: #98a1ab;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: default;
}

.dashboard-tooltip-icon .bi{
    font-size: 1rem;
}

.table-mobile-stack td,
.table-mobile-stack th{
    white-space: normal;
    vertical-align: top;
}

.table-mobile-stack td > div{
    white-space: inherit !important;
}

.map-store-list details + details{
    margin-top: 0.75rem;
}

.map-store-list summary{
    cursor: pointer;
    font-weight: bold;
}

.map-all-stores{
    width: 100%;
    height: 500px;
    max-height: 80vh;
    border-radius: 10px;
}

.admin-picker-table,
.admin-picker-table tbody,
.admin-picker-table tr,
.admin-picker-table td{
    width: 100%;
}

.admin-picker-table td{
    padding: 0.8rem 0.5rem;
    border-bottom: 1px solid #eceff1;
}

.mobile-install-prompt{
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 1100;
    display: none;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid #d9dee3;
    box-shadow: 0 10px 30px rgba(52, 58, 64, 0.18);
}

.mobile-install-prompt.is-visible{
    display: flex;
}

.mobile-install-prompt__content{
    min-width: 0;
}

.mobile-install-prompt__title{
    display: block;
    margin-bottom: 4px;
}

.mobile-install-prompt__message{
    color: #4b5563;
    line-height: 1.4;
}

.mobile-install-prompt__actions{
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    flex-shrink: 0;
}

@media screen and (max-width: 767px) {
    .display-6.font-weight-normal{
        align-items: flex-start;
    }

    .display-6.font-weight-normal > .btn{
        width: 100%;
        margin-left: 0;
    }

    .top-brand-img{
        height: 34px;
        max-width: 130px;
        margin-left: 0;
    }

    .table-mobile-stack thead{
        display: none;
    }

    .table-mobile-stack,
    .table-mobile-stack tbody,
    .table-mobile-stack tr,
    .table-mobile-stack td{
        display: block;
        width: 100%;
    }

    .table-mobile-stack tr{
        margin-bottom: 12px;
        padding: 12px 14px;
        border: 1px solid #dee2e6;
        border-radius: 12px;
        background: #ffffff;
        box-shadow: 0 6px 18px rgba(52, 58, 64, 0.08);
    }

    .table-mobile-stack td{
        border: 0;
        padding: 6px 0;
    }

    .table-mobile-stack td::before{
        content: attr(data-label);
        display: block;
        margin-bottom: 2px;
        font-size: 0.75rem;
        font-weight: bold;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        color: #6c757d;
    }

    .table-mobile-stack tr.table-mobile-empty-row{
        padding: 0;
        margin-bottom: 0;
        border: 0;
        background: transparent;
        box-shadow: none;
    }

    .table-mobile-stack tr.table-mobile-empty-row td::before,
    .table-mobile-stack td[data-label='']::before{
        display: none;
    }

    .table-responsive > .btn,
    .table-responsive .float-end{
        float: none !important;
        width: 100%;
        margin-top: 12px;
    }

    .map-all-stores{
        height: 320px;
        max-height: none;
    }

    .mobile-install-prompt{
        flex-direction: column;
        align-items: stretch;
    }

    .mobile-install-prompt__actions{
        justify-content: stretch;
    }

    .mobile-install-prompt__actions .btn{
        width: 100%;
    }
}