﻿/*.gridtable > thead > tr > th, .gridtable > thead > tr > td {
    position: relative;
}

.gridtable {
    border-spacing: 0;
    width: 100%;
    border: solid #101010 1px;
    border-radius: 6px;
    font-size: 14px;
    font-family: 'Open Sans';
    color: #444;
    margin: auto;
}

    .gridtable.breakpoint > tbody > tr > td.expand {
        background: url(img/plus.png) no-repeat 5px center;
        padding-left: 40px;
    }

    .gridtable.breakpoint > tbody > tr.gridtable-detail-show > td.expand {
        background: url(img/minus.png) no-repeat 5px center;
    }

    .gridtable.breakpoint > tbody > tr.gridtable-row-detail {
        background: #eee;
    }

    .gridtable > tbody > tr:hover {
        background: #fbf8e9;
    }*/

      /*.gridtable > tbody > tr > th:hover {
        background: black;
    }*/
    /*.gridtable.breakpoint > tbody > tr:hover:not(.gridtable-row-detail) {
        cursor: pointer;
    }

    .gridtable > tbody > tr > td, .gridtable > thead > tr > th {
        border-left: 1px solid #ccc;
        border-top: 1px solid #ccc;
        padding: 1px;*//*6px*/
         /*}

    .gridtable > thead > tr > th, .gridtable > thead > tr > td {
        background-color: #dce9f9;
        background-image: -webkit-gradient(linear,left top,left bottom,from(#ebf3fc),to(#dce9f9));
        background-image: -webkit-linear-gradient(top,#ebf3fc,#dce9f9);
        background-image: -moz-linear-gradient(top,#ebf3fc,#dce9f9);
        background-image: -ms-linear-gradient(top,#ebf3fc,#dce9f9);
        background-image: -o-linear-gradient(top,#ebf3fc,#dce9f9);
        background-image: linear-gradient(to bottom,#ebf3fc,#dce9f9);
        -webkit-box-shadow: 0 1px 0 rgba(255,255,255,.8) inset;
        -moz-box-shadow: 0 1px 0 rgba(255,255,255,.8) inset;
        box-shadow: 0 1px 0 rgba(255,255,255,.8) inset;
        border-top: 0;
        text-shadow: 0 1px 0 rgba(255,255,255,.5);
    }

        .gridtable > thead > tr > th:first-child, .gridtable > thead > tr > td:first-child {
            -moz-border-radius: 6px 0 0;
            -webkit-border-radius: 6px 0 0;
            border-radius: 6px 0 0;
        }

        .gridtable > thead > tr > th:last-child, .gridtable > thead > tr > td:last-child {
            -moz-border-radius: 0 6px 0 0;
            -webkit-border-radius: 0 6px 0 0;
            border-radius: 0 6px 0 0;
        }

        .gridtable > thead > tr > th:only-child, .gridtable > thead > tr > td:only-child {
            -moz-border-radius: 6px 6px 0 0;
            -webkit-border-radius: 6px 6px 0 0;
            border-radius: 6px 6px 0 0;
        }

    .gridtable > tbody > tr:last-child > td:first-child {
        -moz-border-radius: 0 0 0 6px;
        -webkit-border-radius: 0 0 0 6px;
        border-radius: 0 0 0 6px;
    }

    .gridtable > tbody > tr:last-child > td:last-child {
        -moz-border-radius: 0 0 6px;
        -webkit-border-radius: 0 0 6px;
        border-radius: 0 0 6px;
    }

    .gridtable > tbody img {
        vertical-align: middle;
    }

.GridPager a, .GridPager span {
    display: block;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
}

.GridPager a {
    background-color: #f5f5f5;
    color: #969696;
    border: 1px solid #969696;
}

.GridPager span {
    background-color: #A1DCF2;
    color: #000;
    border: 1px solid #3AC0F2;
}

.gridview-container {
    max-height: 800px;*/ /* Set a maximum height for your GridView container */
    /*overflow-y: auto;*/ /* Enable vertical scrolling if needed */
    /*position: relative;*/ /* Ensure relative positioning for sticky header */
/*}*/


/*New code 30 Jan 2026*/
/* Container to handle the scrolling and sticky header */
.gridview-container {
    max-height: 800px;
    overflow-y: auto;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
}

.gridtable {
    border-spacing: 0;
    width: 100%;
    font-family: 'Inter', 'Open Sans', sans-serif; /* Clean modern font */
    color: #1e293b;
    background-color: #ffffff;
    border-collapse: separate; /* Required for border-radius */
}

    /* Header Styling - Sticky and Clean */
    .gridtable > thead > tr > th {
        position: sticky;
        top: 0;
        z-index: 10;
        background-color: #f8fafc; /* Subtle grey background */
        color: #475569;
        font-weight: 600;
        text-transform: uppercase;
        font-size: 12px;
        letter-spacing: 0.05em;
        padding: 12px 16px;
        border-bottom: 2px solid #e2e8f0;
        border-left: none; /* Removed heavy vertical lines */
        text-align: left;
    }

    /* Cell Styling */
    .gridtable > tbody > tr > td {
        padding: 12px 16px;
        border-bottom: 1px solid #f1f5f9;
        transition: background-color 0.2s ease;
    }

    /* Hover Effect - Light and Professional */
    .gridtable > tbody > tr:hover:not(.gridtable-row-detail) {
        background-color: #f1f5f9;
        cursor: pointer;
    }

    /* The Expansion/Nodal Detail Styling */
    .gridtable.breakpoint > tbody > tr > td.expand {
        background: url(img/plus.png) no-repeat 12px center;
        padding-left: 45px;
    }

    .gridtable.breakpoint > tbody > tr.gridtable-detail-show > td.expand {
        background: url(img/minus.png) no-repeat 12px center;
    }

/* Modernized Pagination */
.GridPager {
    padding: 15px;
    display: flex;
    gap: 5px;
}

    .GridPager a, .GridPager span {
        min-width: 35px;
        height: 35px;
        line-height: 35px;
        border-radius: 6px;
        font-size: 13px;
        transition: all 0.2s ease;
    }

    .GridPager a {
        background-color: white;
        color: #64748b;
        border: 1px solid #e2e8f0;
    }

        .GridPager a:hover {
            background-color: #3b82f6;
            color: white;
            border-color: #3b82f6;
        }

    .GridPager span {
        background-color: #eff6ff;
        color: #2563eb;
        border: 1px solid #bfdbfe;
    }

.row-pending {
    border-left: 4px solid #f59e0b !important; /* Amber color warning */
    background-color: #fffbeb;
}

/* Center alignment helpers */
.gridtable .h-center {
    text-align: center !important;
}

.gridtable .t-center {
    text-align: center;
}

/* Global Header Styling */
.gridtable > thead > tr > th {
    background-color: #f8fafc;
    color: #475569;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 12px;
    padding: 14px 16px;
    border-bottom: 2px solid #e2e8f0;
    /* This ensures text doesn't wrap awkwardly in small headers */
    white-space: nowrap;
}

/* Specific fix for S.No. and small ID columns */
.gridtable th[style*="width:30"],
.gridtable th[style*="width:50"],
.gridtable .h-center {
    padding-left: 5px;
    padding-right: 5px;
}

/* Zebra striping for better readability */
.gridtable > tbody > tr:nth-child(even) {
    background-color: #fcfcfc;
}