﻿filter-input::placeholder {
    color: #9aa3af; 
    font-weight: 400;
    opacity: 1; 
}

.filter-select option[value=""] {
    font-weight: 700; 
}

.filters-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    align-items: end;
   /* padding: 40px 0;*/
}

/* INDIVIDUAL FILTER */
.filter-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

    .filter-item label {
        font-size: 13px;
        font-weight: 600;
        color: #333;
        font-weight:200;
    }


.filter-input,
.filter-select {
    height: 40px;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid #d7dde5;
    border-radius: 6px; 
    width: 100%;
    background: #fff;
    color: #111;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

   
    .filter-input:hover,
    .filter-select:hover {
        border-color: #005fcc;
    }

    
    .filter-input:focus,
    .filter-select:focus {
        outline: none;
        border-color: #005fcc;
        box-shadow: 0 0 0 1px rgba(0, 95, 204, 0.2);
    }

   
    .filter-select option[value=""] {
        font-weight: 600;
        color: #111;
    }



.filter-clear {
    background: none;
    border: none;
    color: #005fcc;
    font-size: 14px;
    cursor: pointer;
  /*  padding-top: 22px;*/
   /* text-align: left;*/
}

.clear-btn-wrapper {
    grid-column: 3 / -1; 
    display: flex;
    justify-content: flex-end; 
    align-items: center;
    padding-bottom:15px; 

}
.filter-multiselect {
    min-height: 40px;
    height: auto;
    max-height: 120px;
    overflow-y: auto;
}
    .filter-multiselect option {
        padding: 6px;
    }





#tableResults {
    overflow-x: hidden; 
}

    /* TABLE SHOULD SHRINK  */
    #tableResults table {
        width: 100%;
        table-layout: fixed; 
    }

    /*  ALLOW TEXT TO WRAP */
    #tableResults th,
    #tableResults td {
        white-space: normal; 
        word-break: break-word; 
        overflow-wrap: anywhere; 
        vertical-align: top;
    }

.logo-cell {
    width: 80px;
    height: 40px;
    text-align: center;
    vertical-align: middle;
}

.logo-loader {
    width: 20px;
    height: 20px;
}

.logo-img {
    max-width: 60px;
    max-height: 60px;
    object-fit: contain;
}

.table thead {
    font-size: 1.5rem !important;
}

.multiselect {
    position: relative;
    width: 100%;
}

.multiselect-toggle {
    height: 40px;
    padding: 8px 14px;
    border: 1px solid #d7dde5;
    border-radius: 6px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

    .multiselect-toggle:hover {
        border-color: #005fcc;
    }

.multiselect-label {
    font-size: 14px;
    color: #9aa3af;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.multiselect.has-value .multiselect-label {
    color: #111;
}

.multiselect-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 4px;
    background: #fff;
    border: 1px solid #d7dde5;
    border-radius: 6px;
    max-height: 220px;
    overflow-y: auto;
    display: none;
    z-index: 100;
}

.multiselect.open .multiselect-menu {
    display: block;
}

.multiselect-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    font-size: 14px;
    cursor: pointer;
    font-weight: 400;
}

    .multiselect-option span {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: block;
        max-width: 100%;
    }

    .multiselect-option:hover {
        background: #f1f4f8;
    }

.multiselect-toggle {
    position: relative;
    padding-right: 36px;
    display: flex;
    align-items: center;
    width: 100%;
}


    .multiselect-toggle::after {
        content: "";
        position: absolute;
        right: 14px;
        top: 50%;
        width: 6px;
        height: 6px;
        border-right: 2px solid #555;
        border-bottom: 2px solid #555;
        transform: translateY(-50%) rotate(45deg);
        transition: transform 0.2s ease;
    }


.multiselect.open .multiselect-toggle::after {
    transform: translateY(-50%) rotate(-135deg);
}








.view-more-btn {
    background: none;
    border: none;
    color: #005fcc;
    cursor: pointer;
    font-size: 14px;
    padding-right: 15px;
}


body.modal-open {
    overflow: hidden;
}


.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 16px;
    padding-top: 96px;
    z-index: 9999;
}

.modal-box {
    background: #f8f9fb;
    width: 1000px;
    /*max-width: 100%;*/
    height: 75vh;
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 112px);
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}



.modal-header {
    display: ruby;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: linear-gradient(to right, #f6f8fb, #ffffff);
    border-bottom: 4px solid #d6dbe3;    
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

    .modal-logo,
    .header-left img {
        width: 42px;
        height: 32px;
        object-fit: contain;
    }



.modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 25px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    background: #f8f9fb;
}


.modal-col {
    padding-right: 16px;
}

    .modal-col:first-child {
        border-right: 1px solid #dfe4ec;
    }

    .modal-col:last-child {
        padding-left: 0px;
    }




.modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: transparent;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #555;
    z-index: 10;
}

    .modal-close:hover {
        color: #005fcc;
    }


.modal-logo img {
    width: 50px; 
    height: 17px;
    object-fit: contain;
}
.modal-section h4 {
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

#modalPartnerLogo{
    height:50px;
}

#modalContacts .contact-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    border: none;
    padding: 0px 0;
}

    #modalContacts .contact-card a {
        color: #005fcc;
        font-size: 12px;
        text-decoration: none;
    }

.modal-section {
    padding-bottom: 20px;
}

.modal-section ul {
    padding-left: 18px;
    margin: 0;
}

.modal-section li {
    margin-bottom: 6px;
    color: #374151;
}

.tag-list li {
    background: #eef2f7;
    border-radius: 14px;
    padding: 4px 10px;
    font-size: 13px;
}

.modal-title h2 {
    margin: 0; 
    font-size: 18px; 
    line-height: 1.2; 
}

.modal-title a {
    display: inline-block;
    margin-top: 2px; 
    font-size: 13px;
    line-height: 1.2;
    color: #005fcc;
}
.modal-title {
    display: flex;
    flex-direction: column;
    gap: 2px; 
}

.contact-card {
    background: #f8fafc;
    border: 1px solid #e5eaf1;
    border-radius: 10px;
    padding: 12px;
    margin-top: 10px;
}

.doc-link {
    color: #2563eb;
    text-decoration: underline;
    pointer-events: auto;
}

.indata-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.language-chip {
    background: #eef2f7;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    color: #1f2937;
    white-space: nowrap;
}

.text-chip {
    background: #eef2f7;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 14px;
    display: block;
    white-space: normal;
    line-height: 1.5;
}

.modal-box a {
    color: #005fcc;
    font-weight: 500;
    font-size:12px;
}

    .modal-box a:hover {
        color: #0047a3;
        text-decoration: underline;
        font-size: 12px;
    }
.contact-line {
    display: flex;
    align-items: center;
    gap: 6px; 
    padding:3px;
}

.email-icon {
    width: 20px;
    height: 20px;
}
.modal-section #modalCompanyoverview,
.modal-section #modalToolName,
.modal-section #modalToolDescription {
    font-size: 12px;
}





@@media (max-width: 1024px) {
    .filters-wrapper {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }

    .modal-box {
        width: 90vw;
        height: 80vh;
    }
}

@@media (max-width: 768px) {
    .filters-wrapper {
        grid-template-columns: 1fr;
    }

    .filter-clear {
        padding-top: 0;
    }

    .modal-overlay {
        padding-top: 64px;
    }

    .modal-box {
        width: 100%;
        height: calc(100vh - 64px);
        border-radius: 0; /* full-screen modal feel */
    }

    .modal-body {
        grid-template-columns: 1fr; /* stack columns */
    }
}

/* MOBILE – SWITCH TABLE TO CARDS */
@media (max-width: 640px) {

    .responsive-table table,
    .responsive-table thead,
    .responsive-table tbody,
    .responsive-table th,
    .responsive-table td,
    .responsive-table tr {
        display: block;
    }

    .responsive-table thead {
        display: none; /* hide table headers */
    }

    .responsive-table tr {
        border: 1px solid #e5e7eb;
        border-radius: 6px;
        padding: 10px;
        margin-bottom: 12px;
        background: #fff;
    }

    .responsive-table td {
        display: flex;
        justify-content: space-between;
        gap: 8px;
        padding: 6px 0;
        font-size: 14px;
        content: attr(data-label);
    }

        /* Label */
        .responsive-table td::before {
            content: attr(data-label);
            font-weight: 600;
            color: #374151;
            min-width: 120px;
        }

    /* Logo */
    .logo-cell {
        justify-content: center;
    }

    /* Action */
    .action-col {
        justify-content: flex-end;
    }

    .view-more-btn {
        font-size: 14px;
        white-space: nowrap;
    }
    
    .responsive-table td.action-col {
        display: block;
        text-align: right;
        padding-top: 8px;
    }

       
        .responsive-table td.action-col::before {
            content: none;
        }

    .responsive-table .view-more-btn {
        display: inline-block;
        font-size: 14px;
        padding: 6px 8px;
        white-space: nowrap;
    }

    .modal-box {
        height: calc(100vh - 48px);
    }


   
      
}