﻿* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background: #fafafa;
    color: #333;
    font-family: Arial, sans-serif;
    font-size: 13px;
}

.container {
    width: 92%;
    max-width: 1400px;
    margin: 30px auto;
}


/* Filter Card */

.filter-card {
    background: #ffffff;
    border: 1px solid #dddddd;
    border-top: 3px solid #0076b5;
    border-radius: 4px;
    padding: 22px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.filter-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.filter-group {
    min-width: 0;
}

    .filter-group > label {
        display: block;
        margin-bottom: 9px;
        font-size: 12px;
        font-weight: 700;
        color: #17243a;
    }

.required {
    color: #dc3545;
}


/* Multi Select Dropdown */

.multi-select {
    position: relative;
    width: 100%;
}

.dropdown-button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 39px;
    padding: 8px 10px;
    background: white;
    border: 1px solid #c9c9c9;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    color: #333;
    text-align: left;
}

    .dropdown-button:hover,
    .dropdown-button:focus {
        border-color: #007bff;
    }

.selected-text {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.arrow {
    margin-left: 10px;
    color: #888;
    font-size: 11px;
}


/* Dropdown Menu */

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #ffffff;
    border: 1px solid #cccccc;
    border-radius: 3px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    z-index: 1000;
}

.multi-select.open .dropdown-menu {
    display: block;
}

.multi-select.open .dropdown-button {
    border-color: #007bff;
}

.dropdown-search {
    width: calc(100% - 20px);
    margin: 10px;
    height: 30px;
    border: 1px solid #cccccc;
    border-radius: 3px;
    padding: 6px 8px;
    outline: none;
    font-size: 12px;
}

    .dropdown-search:focus {
        border-color: #007bff;
    }


/* Select All */

.select-all {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px;
    background: #edf5fc;
    border-bottom: 1px solid #cbdff1;
    font-weight: bold;
    cursor: pointer;
}

.dropdown-options {
    max-height: 190px;
    overflow-y: auto;
    padding: 4px 0;
}

    .dropdown-options table {
        width: 100%;
        border-collapse: collapse;
    }

    .dropdown-options td {
        padding: 9px 10px;
    }

    .dropdown-options tr:hover {
        background: #f2f7fc;
    }

    .dropdown-options input[type="checkbox"],
    .select-all input[type="checkbox"] {
        accent-color: #007bff;
        margin: 0 5px 0 0;
        vertical-align: middle;
        cursor: pointer;
    }

    .dropdown-options label {
        cursor: pointer;
        font-size: 12px;
        line-height: 18px;
    }


    /* Scrollbar */

    .dropdown-options::-webkit-scrollbar,
    .subsector-container::-webkit-scrollbar {
        width: 7px;
    }

    .dropdown-options::-webkit-scrollbar-thumb,
    .subsector-container::-webkit-scrollbar-thumb {
        background: #a1adbb;
        border-radius: 5px;
    }

    .dropdown-options::-webkit-scrollbar-track,
    .subsector-container::-webkit-scrollbar-track {
        background: #edf0f4;
    }


/* Buttons */

.button-section {
    display: flex;
    gap: 10px;
    margin-top: 35px;
}

.btn-search,
.btn-reset {
    width: 140px;
    height: 34px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
}

.btn-search {
    background: #0078b5;
    border: 1px solid #006ca5;
    color: #ffffff;
    font-weight: bold;
}

    .btn-search:hover {
        background: #005f91;
    }

.btn-reset {
    background: #ffffff;
    border: 1px solid #cccccc;
    color: #333333;
}

    .btn-reset:hover {
        background: #f2f2f2;
    }

.error-message {
    display: block;
    color: #dc3545;
    margin-top: 10px;
    font-weight: 600;
}


/* Table Section */

.table-section {
    margin-top: 35px;
}

.table-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

    .table-heading h3 {
        font-size: 16px;
        color: #19283e;
        margin: 0;
    }

.record-count {
    color: #666;
    font-weight: 600;
    font-size: 12px;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}


/* GridView */

.scheme-table {
    width: 100%;
    min-width: 850px;
    background: #ffffff;
    border-collapse: collapse;
}

    .scheme-table th {
        background: #0076b1;
        color: white;
        padding: 12px 10px;
        font-size: 12px;
        font-weight: bold;
        text-align: center;
        border: 1px solid #dddddd;
    }

    .scheme-table td {
        padding: 10px 8px;
        vertical-align: middle;
        border: 1px solid #dddddd;
        font-size: 12px;
    }

    .scheme-table th:nth-child(2) {
        width: 20%;
    }

    .scheme-table th:nth-child(3) {
        width: 25%;
    }

    .scheme-table th:nth-child(4) {
        width: 18%;
    }

    .scheme-table th:nth-child(5) {
        width: 32%;
    }

    .scheme-table tbody tr:nth-child(even) {
        background: #fafafa;
    }

    .scheme-table tbody tr:hover {
        background: #f4f9ff;
    }

.bank-name {
    font-weight: 600;
}

.scheme-name {
    color: #007bba;
    font-weight: 600;
}


/* Sector Badges */

.sector-container {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.sector-badge {
    display: inline-block;
    padding: 4px 10px;
    background: #e1e5ff;
    border: 1px solid #c7ceff;
    color: #39359e;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}


/* Sub Sector Badges */

.subsector-container {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 5px;
    padding: 7px;
    max-height: 85px;
    overflow-y: auto;
    background: #f4f7fb;
    border: 1px solid #cbd5e1;
    border-radius: 5px;
}

.subsector-badge {
    display: inline-block;
    background: #ffffff;
    border: 1px solid #c3d1e2;
    border-left: 2px solid #0078b5;
    border-radius: 2px;
    padding: 4px 6px;
    font-size: 10px;
    font-weight: 600;
    color: #263448;
}

.empty-row {
    text-align: center;
    color: #777777;
    height: 70px;
}


/* Responsive Design */

@media screen and (max-width: 768px) {

    .container {
        width: 95%;
        margin: 15px auto;
    }

    .filter-row {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .filter-card {
        padding: 15px;
    }

    .button-section {
        margin-top: 22px;
    }

    .table-heading {
        gap: 10px;
    }
}
/* Table Search Section */

.table-tools {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.table-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

    .table-search label {
        font-size: 13px;
        font-weight: 600;
        color: #333;
    }

.table-search-input {
    width: 230px;
    height: 35px;
    padding: 8px 12px;
    border: 1px solid #cccccc;
    border-radius: 4px;
    background: #ffffff;
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s;
}

    .table-search-input:focus {
        border-color: #0076b5;
        box-shadow: 0 0 0 3px rgba(0, 118, 181, 0.10);
    }

    .table-search-input::placeholder {
        color: #999999;
    }


/* No Search Result */

.no-search-result td {
    text-align: center;
    padding: 25px !important;
    color: #777777;
    background: #ffffff;
}


/* Responsive Search Box */

@media screen and (max-width: 768px) {

    .table-tools {
        width: 100%;
        justify-content: space-between;
    }

    .table-search-input {
        width: 180px;
    }
}