@media (min-width: 1024px) {
    .dropdown .dropdown-toggle,
    .user-name-mobile,
    .photo-profil-mobile{
        display: none !important;
    }

}
@media (min-width: 769px) {
    .dropdown .dropdown-toggle,
    .user-name-mobile,
    .photo-profil-mobile{
        display: none !important;
    }
}
@media (max-width: 768px) {
    .user-info-icons {
        display: none;
    }
    .dropdown {
        display: flex;
        flex-direction: column;
    }

    .dropdown-toggle{
       color: #fff;
       margin-right: 15px;
    }
    .dropdown-toggle::after {
        content: none; 
    }    
    .dropdown-menu {
        display: none;
    }
    .dropdown-menu.show {
        display: flex;
        flex-direction: row;
        position: absolute;
        top: -20px;
        left: 40px;
        background-color: #1678F2;
        border-radius: 5px;
    }
    .user-info-icons-dropdown{
        display: flex;
        width: 100%;
    }
    .user-info-icons-dropdown{
        padding: 5px;
        min-width: 200px;
    }
    .user-info-icons-dropdown a{
        margin: 0;
    }
    .user-info .user-name{
        display: none;
        font-size: 8px;
    }
    .user-info .photo-profil{
        display: none;
    }
        
    .user-info .user-name-mobile{
        display: none;
        font-size: 12px;
        position: relative;
        top: 10px;
    }
    .user-info .notification-badge .badge{
        position: relative;
        top: -35px;
        right: -15px;
    }
}

@media (max-width: 768px) {
    .header1, .header2 {
        flex-direction: row;
        justify-content: space-between;
        align-items: center !important;
    }

    .header1 .logo-container img {
        width: 40px;
        height: 40px;
    }

    .header1 .user-info {
        flex-direction: row;
        align-items: flex-start;
        justify-content: flex-start;
    }

    .header1 .user-info-icons {
        margin-bottom: 10px;
    }

    .header1 .user-info .profile-image {
        width: 35px;
        height: 35px;
        margin-left: 0;
    }

    .header1 .user-name {
        font-size: 14px;
    }

    .header2 .header-content {
        display: flex;
        justify-content: flex-start;
    }

    .header2 .title-header2 {
        margin-left: 0;
        font-size: 16px;
    }

    .header2 .content {
        margin-left: 0;
        font-size: 12px;
    }

    .main-content {
        padding-top: 10%;
    }
}
@media (max-width: 768px) {
    .modal-dialog-left {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-left: 100px !important;
        margin-right: auto !important;
    }
    .modal-dialog{
                display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
        left: -300px;
    }
}
@media (max-width: 480px) {
    .modal-dialog-left {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-left: 100px !important;
        margin-right: auto !important;
    }
    .modal-dialog{
                display: flex;
                justify-content: center;
        align-items: center;
        position: relative;
        left: -300px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 60px;
    }

    .sidebar {
        position: relative;
        top: -40px;
        display: block;
        transform: translateX(0);
    }

    .sidebar .sidebar-title {
        display: none;
    }
    .sidebar .sidebar-menu {
        margin-top: 35px;
    }
    
    .sidebar .dropdown-title {
        display: inline-block;
        transition: opacity 0.3s ease;
    }
    
    .sidebar .dropdown-title {
        display: none;
    }

    .toggle-btn{
        display: none;
    }

    .main-content {
        margin-left: 50px; 
        padding: 20px;
        transition: margin-left 0.3s ease;
        overflow-x: auto;
    }

    .main-content.small {
        margin-left: 60px;
    }

    .toggle-button {
        display: block;
    }
}
@media (max-width: 480px) {
    .sidebar {
        width: 60px;
    }

    .sidebar {
        position: relative;
        top: -40px;
        display: block;
        transform: translateX(0);
    }

    .sidebar .sidebar-title {
        display: none;
    }
    .sidebar .sidebar-menu {
        margin-top: 35px;
    }
    
    .sidebar .dropdown-title {
        display: inline-block;
        transition: opacity 0.3s ease;
    }
    
    .sidebar .dropdown-title {
        display: none;
    }

    .toggle-btn{
        display: none;
    }

    .main-content {
        margin-left: 50px; 
        padding: 20px;
        transition: margin-left 0.3s ease;
        overflow-x: auto;
    }

    .main-content.small {
        margin-left: 60px;
    }

    .toggle-button {
        display: block;
    }
}


@media (max-width: 768px) {
    .search-filter {
        display: flex;
        justify-content: center;
        flex-direction: column;
        align-items: center !important;
    }
    
    .input-group {
        position: relative;
        left: 10px;
        width: 100% !important;
        margin-bottom: 8px;
    }
    
    .form-select{
        width: 95% !important;
    }

    #Demande, #Paiement-mutuelle, #Message{
        margin-bottom: 8px;
        position: relative;
        left: 3px;
        height: 40px;
    }

    .form-select-input {
        width: 94% !important;
    }

    #searchBtn {
        position: relative;
        left: -10px;
        width: 95% !important;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .search-filter {
        flex-direction: row;
        align-items: center;
    }

    .input-group {
        flex: 1 1 45%;
    }

    .btn {
        flex: 1 1 100%;
        max-width: 200px;
        margin: 0 auto;
    }
}

 @media (max-width: 768px){

    table, thead, tbody, th, td, tr {
        display: block;
        width: 100%;
        box-sizing: border-box;
        font-size: 12px !important;
    }

    thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    thead tr th {
        text-align: left !important;
    }

    tr {
        border: 1px solid #ccc;
        margin-bottom: 0.625rem;
    }

    td {
        text-align: right;
        border: none;
        border-bottom: 1px solid #eee;
        position: relative;
        left: 0px;
        padding-left: 150px;
        white-space: normal;
        word-wrap: break-word;
        width: 100%;
    }

    td:before {
        position: absolute;
        top: 10px;
        width: 45%;
        white-space: nowrap;
        text-align: left;
        font-weight: bold;
        width: auto; 
        padding-right: 0;
        color: #333;
    }

    td:nth-of-type(1):before { content: "Dossier"; }
    td:nth-of-type(2):before { content: "Date"; }
    td:nth-of-type(3):before { content: "Assuré"; }
    td:nth-of-type(4):before { content: "Bénéficiare"; }
    td:nth-of-type(5):before { content: "Montant total"; }

    td:nth-of-type(6):before { content: "AMO"; }
    td:nth-of-type(7):before { content: "Statut"; }
    td:nth-of-type(8):before { content: "A rembourser"; }
    td:nth-of-type(9):before { content: "Remboursé"; }
    td:nth-of-type(10):before { content: "Reste"; }

    td:nth-of-type(11):before { content: "AMC"; }
    td:nth-of-type(12):before { content: "Statut"; }
    td:nth-of-type(13):before { content: "A rembourser"; }
    td:nth-of-type(14):before { content: "Remboursé"; }
    td:nth-of-type(15):before { content: "Reste"; }

    td:nth-of-type(16):before { content: ""; }

    td:last-child {
        border-bottom: 0;
        margin-bottom: 10px;
    }
}
 @media (max-width: 243px){

    table, thead, tbody, th, td, tr {
        display: block;
        width: 100%;
        box-sizing: border-box;
        font-size: 12px !important;
    }

    thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    thead tr th {
        text-align: left !important;
    }

    tr {
        border: 1px solid #ccc;
        margin-bottom: 0.625rem;
    }

    td {
        text-align: right;
        border: none;
        border-bottom: 1px solid #eee;
        position: relative;
        padding-left: 0px;
        white-space: normal;
        word-wrap: break-word;
        width: 100%;
    }

    td:before {
        position: absolute;
        top: 10px;
        width: 45%;
        padding-right: 0.625rem;
        white-space: nowrap;
        text-align: left;
        font-weight: bold;
        width: auto; 
        padding-right: 0;
        color: #333;
    }


    td:nth-of-type(1):before { content: "Dossier"; }
    td:nth-of-type(2):before { content: "Date"; }
    td:nth-of-type(3):before { content: "Assuré"; }
    td:nth-of-type(4):before { content: "Bénéficiare"; }
    td:nth-of-type(5):before { content: "Montant total"; }

    td:nth-of-type(6):before { content: "AMO"; }
    td:nth-of-type(7):before { content: "Statut"; }
    td:nth-of-type(8):before { content: "A rembourser"; }
    td:nth-of-type(9):before { content: "Remboursé"; }
    td:nth-of-type(10):before { content: "Reste"; }

    td:nth-of-type(11):before { content: "AMC"; }
    td:nth-of-type(12):before { content: "Statut"; }
    td:nth-of-type(13):before { content: "A rembourser"; }
    td:nth-of-type(14):before { content: "Remboursé"; }
    td:nth-of-type(15):before { content: "Reste"; }

    td:nth-of-type(16):before { content: ""; }

    td:last-child {
        border-bottom: 0;
        margin-bottom: 10px;
    }
}

@media (max-width: 440px) {
    .main-header{
        display: flex;
        flex-direction: column;
    }

}


@media (max-width: 768px) {
    .buttons-right {
        flex-direction: row;
        align-items: center;
    }

    .btn-icon {
        width: 100%;
        margin-bottom: 10px;
        padding: 0;
    }

    .btn-note {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        font-size: 12px;
        padding: 0px 5px;
        height: 35px;
        box-sizing: border-box;
        transition: background-color 0.3s ease;
    }

    .btn-note:hover {
        background-image: linear-gradient(to right, #37A5E8, #255A9B);
        color: #fff;
        border: none;
        padding: 0px 5px;
        border-radius: 5px;
        cursor: pointer;
    }
    
    .btn-icon,
    .btn-note, 
    .add-icon {
        padding: 0px 5px;
    }

    .btn-icon img,
    .btn-note img{
        width: 20px;
    }
    .add-icon img {
        width: 20px;
    }


    .buttons-right .btn-icon .btn-note .imprimer-icon,
    .buttons-right .btn-icon .btn-note .refresh-icon{
        width: 20px !important;
    }

    .total-card .card-navigation {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .total-card .card-navigation span,
    .total-card .card-navigation .empty,
    .total-card .card-navigation .spacer {
        display: block;
        width: 100%;
        margin-bottom: 5px;
    }

    .total-card .card-navigation .title {
        font-size: 14px;
    }

    .total-card .card-navigation span {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    * {
        font-size: 12px !important; 
    }
    .main-header > div:first-child{
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
}
