﻿
.bank-logo {
    max-height: 40px;
    object-fit: contain;
}

.btn i {
    margin-right: 0.3rem;
}

a.no-underline:hover {
    text-decoration: none;
}

.blazored-toast-container {
    z-index: 9999 !important;
}

.accordion-content {
    color: #333;
    font-size: 1rem;
    line-height: 1.5;
    user-select: text;
    white-space: pre-wrap;
}

.accordion-wrapper {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.5s ease, padding 0.4s ease, opacity 0.5s ease;
    padding: 0 1rem;
    background-color: #f8f9fa;
    border-radius: 0 0 0.3rem 0.3rem;
    box-shadow: inset 0 1px 3px rgb(0 0 0 / 0.1);
}

    .accordion-wrapper.open {
        max-height: 500px;
        padding: 1rem;
        opacity: 1;
    }

.accordion-content {
    padding: 10px 0;
}

.arrow {
    display: flex;
    transition: transform 0.5s ease;
    justify-content: flex-end;
}

    .arrow.open {
        transform: rotate(180deg);
    }


/*Download File Hover Color*/

.downloadable {
    transition: color 0.2s ease-in-out;
    cursor: pointer;
}

    .downloadable:hover {
        color: dodgerblue;
    }

/*Spinner*/

.spinner {
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-top-color: dodgerblue;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0;
    margin-bottom: 1rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.scrolling-line {
    display: table;
    table-layout: fixed;
    width: 100%;
}


/* custom select 2 */
.form-control.multiselect {
    height: auto;
}

    .form-control.multiselect input {
        border: none;
        display: inline;
        width: auto;
    }

        .form-control.multiselect input:focus {
            outline: none; /* supprime complètement le contour */
        }

.multiselect .selected-item {
    padding-left: 10px;
    padding-right: 10px;
    margin: 1px;
    background-color: rgb(65, 133, 244);
    display: inline-block;
    color: white;
    align-content: center;
    height: 24px;
    border-right: solid 1px white;
}

    .multiselect .selected-item i {
        border-left: 1px solid white;
        margin-left: 4px;
        padding-left: 9px;
    }

.multiselect-dropdown {
    max-height: 250px;
    overflow-y: auto;
    border-radius: 0.5rem;
    z-index: 1050; /* au-dessus du reste */
}

    .multiselect-dropdown li {
        cursor: pointer;
    }

        .multiselect-dropdown li:hover {
            background-color: #f0f8ff;
        }

/*SubMenu*/
ul.sub-menu {
    margin-bottom: 31px;
    font-size: 14px;
    font-weight: 600;
    padding-left: 0;
    list-style: none;
    color: #5f6368;
    border-left: 2px solid #d8d8d8;
    width: 100%;
}

    ul.sub-menu li {
        width: 100%;
        margin-left: -32px;
        padding-left: 32px;
        padding-right: 15px;
        border-top-right-radius: 23px;
        border-bottom-right-radius: 23px;
        -webkit-transition: background-color .3s ease;
        -o-transition: background-color .3s ease;
        transition: background-color .3s ease;
    }

        ul.sub-menu li:hover {
            background-color: #e4eefd;
            overflow: visible;
            width: fit-content;
            position: sticky;
            z-index: 5000;
        }

            ul.sub-menu li:hover a {
                border-left: 2px solid #4185f4;
                color: #4185f4;
                text-decoration: none;
                overflow: visible;
                text-overflow: unset;
                width: fit-content;
                min-width: inherit;
            }

        ul.sub-menu li.active {
            background-color: #e4eefd;
        }

            ul.sub-menu li.active a {
                border-left: 2px solid #4185f4;
                color: #4185f4;
                text-decoration: none;
            }

        ul.sub-menu li a {
            text-overflow: ellipsis;
            width: 100%;
            overflow: hidden;
            white-space: nowrap;
            display: inline-block;
            display: block;
            margin-left: -2px;
            padding: 7px 0px 4px 18px;
            border-left: 2px solid transparent;
        }




/* Mode desktop/tablette : on ajoute juste le scroll horizontal */
.table.table-mobile {
    /*    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;*/
}

@media (min-width: 577px) {
    .table.table-mobile td:last-child {
        width:60px;
    }
}

/* Mode mobile : transformation en cartes */
@media (max-width: 576px) {
    .table.table-mobile,
    .table.table-mobile thead,
    .table.table-mobile tbody,
    .table.table-mobile th,
    .table.table-mobile td,
    .table.table-mobile tr {
        display: block;
        width: 100%;
    }

        .table.table-mobile thead {
            display: none; /* cache l'entête */
        }

        .table.table-mobile tr {
            margin-top: 1rem;
            border: 1px solid #ddd;
            border-radius: .5rem;
            padding: .5rem;
            background: #fff;
        }

        .table.table-mobile td {
            display: flex;
            text-align:left;
            justify-content: space-between;
            padding: .5rem;
            border: none;
            border-bottom: 1px solid #eee;
        }

            .table.table-mobile td:last-child {
                border-bottom: none;
            }


            .table.table-mobile td::before {
                display: block;
                content: attr(data-label); /* injecte le label */
                white-space: pre;
                font-weight: bold;
                margin-right: .5rem;
                color: #555;
            }

            .table.table-mobile td:has(.tools) {
                justify-content: flex-end;
            }

            .table.table-mobile td .tools a.btn {
                display: none;
            }


            .table.table-mobile td .tools .dropdown-menu {
                float: right;
                display: inline-flex;
                position: initial;
                margin: initial;
                width: 100%;
                min-width: 100%;
                box-shadow: none;
                background-color: transparent;
                border: none;
            }
}

/* Explorer styles moved to _document-explorer.scss */

/* ── Installation View ── */

.installation-view .installation-view-summary {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.installation-view .summary-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid #e0e0e0;
    background: #fff;
    transition: all 0.2s ease;
}

    .installation-view .summary-card:hover {
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
        transform: translateY(-1px);
    }

    .installation-view .summary-card i {
        font-size: 1.5rem;
        color: #4185f4;
    }

    .installation-view .summary-card div {
        display: flex;
        flex-direction: column;
        line-height: 1.2;
    }

    .installation-view .summary-card strong {
        font-size: 1.4rem;
        font-weight: 700;
        color: #333;
    }

    .installation-view .summary-card span {
        font-size: 0.8rem;
        color: #999;
        text-transform: uppercase;
        letter-spacing: 0.04em;
    }

.installation-view .summary-card--active {
    border-color: #a3d9a5;
    background: #edf7ee;
}

    .installation-view .summary-card--active i {
        color: #28a745;
    }

.installation-view .summary-card--expired {
    border-color: #f5a5a5;
    background: #fdecea;
}

    .installation-view .summary-card--expired i {
        color: #dc3545;
    }

.installation-view .contract-row--expired {
    background-color: rgba(220, 53, 69, 0.04) !important;
}

    .installation-view .contract-row--expired td {
        color: #6c757d;
    }

.installation-view .contract-row--warning {
    background-color: rgba(255, 193, 7, 0.08) !important;
}

/* ---- Login / registration result pages (inscription, confirmation) ---- */
.login-result {
    text-align: center;
}

    .login-result .result-icon {
        width: 88px;
        height: 88px;
        margin: 0 auto 28px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 40px;
    }

        .login-result .result-icon.success {
            background: #edf7ee;
            color: #28a745;
        }

        .login-result .result-icon.error {
            background: #fdecea;
            color: #d9534f;
        }

        .login-result .result-icon.primary,
        .login-result .result-icon.loading {
            background: #e8f0fe;
            color: #4185f4;
        }

    .login-result h1 {
        font-size: 28px;
        margin-bottom: 16px;
    }

    .login-result p {
        color: #6c757d;
        margin-bottom: 12px;
    }

    .login-result .result-email {
        font-weight: 700;
        color: #333;
        font-size: 17px;
        background: #f5f7fa;
        border-radius: 4px;
        padding: 10px 16px;
        margin: 4px 0 16px;
        word-break: break-all;
    }

    .login-result .result-note {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        text-align: left;
        background: #fff8e6;
        border: 1px solid #ffe1a8;
        border-radius: 4px;
        padding: 12px 14px;
        font-size: 14px;
        color: #8a6d3b;
        margin: 20px 0 24px;
    }

        .login-result .result-note i {
            font-size: 18px;
            margin-top: 1px;
        }

    .login-result .btn-action {
        display: block;
        width: 100%;
        padding: 11px;
        border: none;
        border-radius: 4px;
        font-weight: 600;
        margin: 12px 0 25px;
        text-align: center;
        background: #4185f4;
        color: #fff;
        transition: background .2s ease-out;
    }

        .login-result .btn-action:hover {
            background: #2b6fe0;
            color: #fff;
            text-decoration: none;
        }

    .login-result .spinner {
        width: 40px;
        height: 40px;
        border: 4px solid rgba(65, 133, 244, .25);
        border-top-color: #4185f4;
        border-radius: 50%;
        animation: login-result-spin .8s linear infinite;
    }

@keyframes login-result-spin {
    to {
        transform: rotate(360deg);
    }
}
