﻿/* Prevent page scroll */
html, body {
    height: 100%;
    margin: 0;
    overflow: hidden;
}

/* Grid container: scroll only inside grid */
#DIV1 {
    width: 98vw;
    max-height: 18.5em; /* fallback if table not sized */
    overflow-y: auto;
    overflow-x: auto;
    box-sizing: border-box;
    border: 1px solid #d0d7de;
    border-radius: 4px;
    background-color: #fff;
}

/* DataGrid table */
.GridTable {
    width: 100%;
    border-collapse: collapse;
    font-family: "Segoe UI", Verdana, sans-serif;
    font-size: 13px;
    color: #333;
}

/* Header style */
.GridHead {
    background-color: #203864;
    color: white;
    font-weight: bold;
    text-align: left;
    padding: 8px;
    position: sticky;
    top: 0;
    z-index: 0;
    overflow: visible !important;
}

    .GridHead th {
        border-bottom: 1px solid #cbd3e1; /* horizontal line below header */
    }

/* Row style */
/* Column separators only for data rows */
.GridRow td,
.GridAltRow td {
    border-right: 1px solid #d0d7de; /* vertical line */
}

    /* Remove last column border */
    .GridRow td:last-child,
    .GridAltRow td:last-child {
        border-right: none;
    }


/* Row style */
.GridRow td {
    padding: 8px 10px;
    border-bottom: 1px solid #e2e8f0;
    height: 32px; /* fixed row height */
}

/* Alternate row style */
/*.GridAltRow td {
        background-color: #f8fafc;
        height: 32px;*/ /* fixed row height */
/*}*/

/* Hover effect */
.GridRow:hover td,
.GridAltRow:hover td {
    background-color: #edf2fb;
}

/* Scrollbar styling for grid only */
#DIV1::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

#DIV1::-webkit-scrollbar-thumb {
    background-color: #888;
    border-radius: 4px;
}

    #DIV1::-webkit-scrollbar-thumb:hover {
        background-color: #555;
    }

.btn-primary {
    background-color: #001f3f;
    border: none;
}

    .btn-primary:hover {
        background-color: #003366;
    }
/* Allow calendar popup to overflow outside the grid container */
#DIV1 {
    overflow: auto !important; /* very important */
}

/* Calendar popup styling */
.ajax__calendar_container {
    z-index: 999999 !important;
    position: absolute !important;
    background: #fff !important;
    border: 1px solid #ccc !important;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}



.height {
    height: 3rem;
}

#dgScheme tr, td {
    height: 1.6rem;
}

.Linkbtn.disabled {
    color: gray;
    text-decoration: none;
    pointer-events: none;
    opacity: 0.6;
}

/* Reusable styling for form fields */
.txtBox {
    height: 35px !important;
    padding: 5px 8px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
}

.MasterButton {
    height: 32px !important;
    padding: 5px 15px;
    font-size: 14px;
    border-radius: 6px;
    background-color: #001f3f;
    color: white;
    border: none;
    cursor: pointer;
}

    .MasterButton:hover {
        background-color: #0056b3;
    }

.tblLabel {
    font-weight: bold;
    font-size: 14px;
}

.tblBorder {
    width: 100%;
    border-collapse: collapse;
}

.SearchLabel {
    padding: 0 8px 8px 8px;
    vertical-align: middle;
}

.SearchHead {
    background-color: #f1f1f1;
    font-weight: bold;
    font-size: 15px;
}

.errLabel {
    color: red;
    font-weight: bold;
}

.clearlink {
    margin-left: 5px;
    color: red;
    cursor: pointer;
    font-weight: bold;
}

.img-style {
    visibility: hidden;
}

.input-with-icon {
    position: relative;
}

.area-input {
    padding-right: 55px !important; /* space for the two icons */
}

.icon-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
}

.open-icon {
    right: 28px;
}

.clear-icon {
    right: 8px;
}

.area-label {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
}

