/* ================================================================
   bankwise-msme-scheme.css
   Styles for BankWiseMsmeScheme.aspx
================================================================ */

/* ---- Search / Filter card ---- */
.msme-filter-box {
    background: #fff;
    border: 1px solid #e4e4e4;
    border-top: 3px solid #0077BD;
    border-radius: 3px;
    padding: 22px 24px 18px;
    margin-bottom: 28px;
    -webkit-box-shadow: 0 1px 4px rgba(0,0,0,.08);
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
}

.ms-dd-wrap {
    position: relative;
}

.ms-dd-btn {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    width: 100%;
    height: 40px;
    padding: 6px 10px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 13px;
    font-family: 'Open Sans', sans-serif;
    color: #444;
    cursor: pointer;
    text-align: left;
    -webkit-box-shadow: none;
    box-shadow: none;
    outline: none;
}

    .ms-dd-btn:focus, .ms-dd-btn:hover {
        border-color: #0077BD;
    }

    .ms-dd-btn .ms-caret {
        font-size: 10px;
        color: #999;
        margin-left: 6px;
        -ms-flex-negative: 0;
        flex-shrink: 0;
    }

    .ms-dd-btn > span:first-child {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        -webkit-box-flex: 1;
        -ms-flex-positive: 1;
        flex-grow: 1;
        margin-right: 5px;
        text-align: left;
    }

.ms-dd-panel {
    display: none;
    position: absolute;
    z-index: 1050;
    top: 100%;
    left: 0;
    min-width: 100%;
    max-height: 250px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 3px;
    -webkit-box-shadow: 0 2px 6px rgba(0,0,0,.12);
    box-shadow: 0 2px 6px rgba(0,0,0,.12);
    padding: 4px 0;
}

    .ms-dd-panel.open {
        display: block;
    }

    .ms-dd-panel label {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
        gap: 8px;
        padding: 6px 12px;
        margin: 0;
        font-family: 'Open Sans', sans-serif;
        font-size: 13px;
        font-weight: normal !important;
        color: #333 !important;
        cursor: pointer;
        white-space: nowrap;
    }

        .ms-dd-panel label:hover {
            background: #f5f5f5;
        }

    .ms-dd-panel input[type=checkbox] {
        width: 14px;
        height: 14px;
        margin: 0;
    }

.ms-dd-divider {
    border-top: 1px solid #e8e8e8;
    margin: 3px 0;
}

.ms-dd-all-label {
    background: #f0f7ff;
    border-bottom: 1px solid #d0e4f2;
}

    .ms-dd-all-label:hover {
        background: #daeeff !important;
    }

.msme-filter-box label {
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    font-size: 13px;
    color: #333;
    margin-bottom: 6px;
    display: block;
}

.msme-filter-box .form-control {
    height: 40px;
    font-size: 13px;
    font-family: 'Open Sans', sans-serif;
    border: 1px solid #ccc;
    border-radius: 3px;
    -webkit-box-shadow: none;
    box-shadow: none;
    color: #444;
}

    .msme-filter-box .form-control:focus {
        border-color: #0077BD;
        outline: none;
        -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 6px rgba(0,119,189,.3);
        box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 6px rgba(0,119,189,.3);
    }

.btn-site-primary {
    background: #0077BD !important;
    border-color: #006099 !important;
    color: #fff !important;
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    letter-spacing: .4px;
}

    .btn-site-primary:hover,
    .btn-site-primary:focus {
        background: #005f96 !important;
        color: #fff !important;
    }

.msme-result-box {
    background: #fff;
    border-radius: 3px;
    margin-bottom: 30px;
}

.table > thead > tr.bg-primary > th {
    background-color: #0077BD !important;
    color: #ffffff !important;
    font-weight: 600;
    border: 1px solid #e4e4e4;
    vertical-align: middle;
}

.table > tbody > tr > td {
    vertical-align: middle;
    border: 1px solid #e4e4e4;
}

.btn-view-eye {
    background: transparent;
    border: 2px solid #0077BD;
    color: #0077BD;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    -webkit-transition: all .2s;
    transition: all .2s;
    padding: 0;
}

    .btn-view-eye:hover {
        background: #0077BD;
        color: #fff;
    }

#msmeModalBackdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,24,47,.6);
    z-index: 1050;
    backdrop-filter: blur(2px);
}

    #msmeModalBackdrop.in {
        display: block;
    }

#msmeModalDialog {
    display: none;
    background: #ffffff;
    border-radius: 4px;
    width: 95%;
    max-width: 1000px;
    height: 85vh;
    flex-direction: column;
    overflow: hidden;
    position: fixed;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%) scale(.95);
    transform: translate(-50%, -50%) scale(.95);
    z-index: 1051;
    opacity: 0;
    -webkit-transition: opacity .22s ease, -webkit-transform .22s ease;
    transition: opacity .22s ease, transform .22s ease;
    -webkit-box-shadow: 0 5px 25px rgba(0,0,0,.2);
    box-shadow: 0 5px 25px rgba(0,0,0,.2);
    border: 1px solid #cccccc;
}

    #msmeModalDialog.in {
        display: flex !important;
        opacity: 1;
        -webkit-transform: translate(-50%, -50%) scale(1);
        transform: translate(-50%, -50%) scale(1);
    }

.mmodal-hdr {
    background: #0077BD;
    padding: 15px 20px;
    border-radius: 3px 3px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid #005f96;
    flex: 0 0 auto;
}

    .mmodal-hdr h4 {
        font-family: 'Raleway', sans-serif;
        font-size: 20px;
        font-weight: 700;
        color: #fff;
        margin: 0;
    }

.mmodal-close {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 24px;
    width: 28px;
    height: 28px;
    line-height: 24px;
    cursor: pointer;
    text-align: center;
    opacity: 0.85;
    transition: opacity 0.2s;
}

    .mmodal-close:hover {
        opacity: 1;
    }

.mmodal-sub-hdr {
    background: #f8f9fa;
    padding: 14px 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 40px;
    align-items: center;
    border-bottom: 1px solid #e4e4e4;
    flex: 0 0 auto;
}

    .mmodal-sub-hdr .msh-item {
        display: flex;
        flex-direction: column;
    }

    .mmodal-sub-hdr .msh-lbl {
        font-family: 'Open Sans', sans-serif;
        font-size: 10px;
        font-weight: 700;
        color: #777777;
        text-transform: uppercase;
        letter-spacing: .5px;
        margin-bottom: 1px;
    }

    .mmodal-sub-hdr .msh-val {
        font-family: 'Open Sans', sans-serif;
        font-size: 16px;
        font-weight: 700;
        color: #003e63;
    }

.mmodal-body {
    padding: 20px 24px;
    flex: 1 1 auto;
    overflow-y: auto;
}

.mmodal-section-title {
    font-family: 'Open Sans', sans-serif;
    font-size: 13.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #0077BD;
    border-bottom: 2px solid #e4e4e4;
    padding-bottom: 5px;
    margin: 20px 0 12px;
    display: flex;
    align-items: center;
}

    .mmodal-section-title i {
        margin-right: 6px;
        font-size: 13px;
    }

.mfield {
    background: #ffffff;
    border: 1px solid #e4e4e4;
    border-radius: 3px;
    padding: 10px 14px;
    margin-bottom: 12px;
    min-height: 56px;
}

    .mfield .mf-lbl {
        font-family: 'Open Sans', sans-serif;
        font-size: 12px;
        font-weight: 700;
        text-transform: uppercase;
        color: #111111;
        letter-spacing: 0.5px;
        margin-bottom: 4px;
    }

    .mfield .mf-val {
        font-family: 'Open Sans', sans-serif;
        font-size: 13px;
        color: #555555;
        font-weight: 600;
        line-height: 1.4;
    }

.subsectors-scrollable {
    max-height: 100px;
    overflow-y: auto;
    padding: 6px;
    border: 1px solid #e4e4e4;
    border-radius: 3px;
    margin-top: 5px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.mfield.highlighted {
    background: #f4f9fc;
    border-color: #d0e4f2;
}

    .mfield.highlighted .mf-val {
        color: #0077BD;
        font-weight: 600;
    }

.msme-tag {
    display: inline-block;
    background: #f1f3f5;
    color: #495057;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 3px;
    margin: 2px;
    border: 1px solid #dee2e6;
    white-space: nowrap;
}

    .msme-tag.sector-tag {
        background: #e0f2fe;
        color: #0369a1;
        border-color: #bae6fd;
    }

    .msme-tag.subsector-tag {
        background: #f1f5f9;
        color: #475569;
        border-color: #cbd5e1;
    }

.mmodal-footer {
    border-top: 1px solid #e4e4e4;
    padding: 12px 20px;
    text-align: right;
    background: #f8f9fa;
    border-radius: 0 0 4px 4px;
}

@media (max-width: 767px) {
    #msmeModalDialog {
        width: 96%;
        max-height: 95vh;
    }

    .mmodal-body {
        padding: 12px 16px;
    }
}
