﻿/* =========================================================
   GOVERNMENT STANDARD UI – YAVATMAL SAND SYSTEM
   Clean • Readable • Authoritative
========================================================= */

/* RESET */
* {
    box-sizing: border-box;
}

/* BASE */
body {
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 14px;
    background-color: #f4f6f9;
    color: #212529;
}

/* =========================================
   GLOBAL SCROLL LOCK (Govt Layout)
========================================= */
html, body {
    height: 100%;
/*    margin: 0;
    padding: 0;*/
    overflow-y: auto; /* ✅ allow scroll */
}

/* =========================================================
   PAGE HEADER
========================================================= */
.page-title {
    font-size: 18px;
    font-weight: 600;
    color: #0b5ed7;
    border-left: 4px solid #0b5ed7;
    padding-left: 10px;
    margin-bottom: 15px;
}

/* =========================================================
   CONTAINERS
========================================================= */

.card,
.gov-card {
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    padding: 15px;
    border-radius: 2px;
}

/* =========================================================
   TABLES – GOVT STYLE
========================================================= */
.table-responsive {
    max-height: 450px;
    overflow-y: auto;
    border: 1px solid #d1d5db;
}

/* TABLE */
.table {
    margin-bottom: 0;
    font-size: 13px;
}

    .table th,
    .table td {
        vertical-align: middle;
        border: 1px solid #d1d5db !important;
        padding: 6px 8px;
    }

    /* HEADER */
    .table thead th {
        background-color: #003366;
        color: #ffffff;
        font-weight: 600;
        /*text-align: center;*/
        position: sticky;
        top: 0;
        z-index: 1;
    }

    /* ROWS */
    .table tbody tr:nth-child(even) {
        background-color: #f8f9fa;
    }

    .table tbody tr:hover {
        background-color: #e9f2ff;
    }

/* =========================================================
   FORMS
========================================================= */
.form-label {
    font-size: 13px;
    font-weight: 600;
}

.form-control,
.form-select {
    font-size: 13px;
    /*height: 32px;*/
    border-radius: 2px;
    border: 1px solid #ced4da;
}

    .form-control:focus,
    .form-select:focus {
        border-color: #0b5ed7;
        box-shadow: none;
    }

/* =========================================================
   BUTTONS – FLAT GOVT STYLE
========================================================= */
.btn {
    font-size: 13px;
    border-radius: 2px;
    padding: 5px 12px;
    font-weight: 600;
}

.btn-icon {
    border: none;
    background: transparent;
    padding: 0;
    margin: 0 6px 0 0;
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
    box-shadow: none;
}

.btn-primary {
    background-color: #0b5ed7;
    border-color: #0b5ed7;
}

.btn-success {
    background-color: #198754;
    border-color: #198754;
}

.btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
}

.btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
}

.btn:hover {
    opacity: 0.9;
}

/* =========================================================
   MODALS – GOVT STYLE
========================================================= */
.modal-header {
    background-color: #0b5ed7;
    color: #ffffff;
    padding: 10px 15px;
}

.modal-title {
    font-size: 16px;
    font-weight: 600;
}

.modal-body {
    padding: 15px;
}

.modal-footer {
    padding: 10px;
    background-color: #f8f9fa;
}

/* =========================================================
   ICONS
========================================================= */
.bi,
.fa {
    font-size: 15px;
    vertical-align: middle;
}

/* ===============================
   Govt Page Header
================================ */
/*.gov-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;*/
    /*border-left: 5px solid #0d6efd;*/
    /*border-left: 5px solid #003366;
    padding: 8px 15px;
    background: #f8f9fa;
    margin-bottom: 10px;*/
    /*border-bottom: 2px solid #003366;*/
/*}*/

.gov-page-header {
    display: flex;
    align-items: center;
    justify-content: center;
    /*border-left: 5px solid #0d6efd;*/
    /*border-left: 5px solid #003366;*/
    padding: 8px 15px;
    background: #f8f9fa;
    /*margin-bottom: 10px;*/
    /*border-bottom: 2px solid #003366;*/
}

.gov-page-title {
    font-size: 17px;
    font-weight: 600;
    color: #003366;
    padding-bottom: 5px;
}



.gov-breadcrumb {
    font-size: 12px;
    color: #555;
}

/* ===============================
   Info Bar
================================ */
.gov-info-bar {
    display: flex;
    justify-content: space-between;
    background: #eef5ff;
    border: 1px solid #cfe2ff;
    padding: 6px 12px;
    font-size: 12px;
    margin-bottom: 8px;
}

/* ===============================
   Table Refinement
================================ */
.gov-table-wrapper {
    max-height: calc(100vh - 200px); /* header + info bar height */
    /*max-height: 500px;*/
    overflow-y: auto;
    overflow-x: hidden;
    border: 1px solid #cfd8dc;
    background: #ffffff;
    -webkit-overflow-scrolling: touch;
}

/*.gov-table-wrapper {
    max-height: calc(100vh - 200px);*/ /* header + info bar height */
    /*max-height: 500px;*/
    /*overflow-y: auto;
    width: 100%;
    overflow-x: auto;
    overflow-x: hidden;
    border: 1px solid #cfd8dc;
    background: #ffffff;
    -webkit-overflow-scrolling: touch;
}*/

    .gov-table-wrapper table {
        width: 100%;
        margin: 0;
    }

    
/* TABLE */

.gov-table thead th {
    position: sticky;
    top: 0;
    background: #003366;
    padding: 8px;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid #ccc;
    z-index: 5;
    position: sticky;
    color: #fff;
    text-transform: uppercase;
}

.gov-table tbody tr:hover {
    background: #f2f7fc;
}

.gov-table tbody td {
    font-size: 12px;
}

.gov-table tbody tr:hover td {
    background-color: #e7f1ff;
}
.table thead th {
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.4px;
}

.table tbody td {
    font-size: 12px;
}


/* Footer Note */
.gov-footer-note {
    font-size: 11px;
    color: #666;
    margin-top: 6px;
    text-align: right;
}

/* ===============================
   GOVERNMENT FORM DESIGN
================================ */

.gov-container {
   /* max-width: 1100px;
    margin: auto;*/
}

.gov-card {
    background: #ffffff;
    border: 1px solid #dcdcdc;
    padding: 20px;
}


.gov-section {
    /*border: 1px solid #e5e5e5;*/
    border: 1px solid #e1e1e1;
    padding: 15px;
    margin-bottom: 20px;
    background: #fafafa;
    /*background: #ffffff;*/
    border-radius: 8px;
}

.gov-doc-box {
    background: #fff;
    border: 1px dashed #bbb;
    padding: 15px;
}

/* ===============================
   GOVT MODAL DETAILS DESIGN
================================ */

.gov-modal {
    border-radius: 0;
}

.gov-modal-header {
    background: #003366;
    color: #ffffff;
    padding: 12px 16px;
}

    .gov-modal-header .modal-title {
        font-size: 15px;
        font-weight: 600;
    }

.gov-modal-body {
    background: #f8f9fa;
    padding: 16px;
}





/* LABEL VALUE */
.gov-field {
    margin-bottom: 10px;
}

.gov-label {
    display: block;
    font-size: 13px;
    color: #555;
    margin-bottom: 2px;
    font-weight: 500;
}


.gov-value {
    font-size: 14px;
    font-weight: 500;
    color: #000;
}



/* DOCUMENT LIST */
.gov-doc-list {
    list-style: none;
    padding-left: 0;
}

    .gov-doc-list li {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 6px 0;
        border-bottom: 1px dashed #ccc;
    }

.gov-doc-name {
    font-size: 13px;
}



/* ===============================
   GOVT LIST & TABLE DESIGN
================================ */

.gov-container-fluid {
    padding: 15px;
}




/* FILTER */
.gov-filter-box {
    background: #ffffff;
    border: 1px solid #dcdcdc;
    padding: 15px;
    margin-bottom: 15px;
}



/* TABLE */
.gov-table-box {
    border: 1px solid #dcdcdc;
    background: #fff;
}



.gov-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

  

    .gov-table td {
        padding: 8px;
        border: 1px solid #e1e1e1;
        vertical-align: middle;
    }


/* ===============================
   GOVERNMENT FORM DESIGN
================================ */


.gov-card {
    background: #ffffff;
    border: 1px solid #dcdcdc;
    padding: 20px;
}


.gov-section-title {
    font-size: 14px;
    font-weight: 600;
    color: #003366;
    /*color: #2c3e50;*/
    /*border-bottom: 1px solid #dcdcdc;*/
    margin-bottom: 12px;
    padding-bottom: 4px;
}


.gov-doc-box {
    background: #fff;
    border: 1px dashed #bbb;
    padding: 15px;
}

.taluka-count-right {
    background: #e6f0ff;
    color: #003366;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid #b3d1ff;
}

.total-count-right {
    background: #e6f0ff;
    color: #003366;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid #b3d1ff;
}


.select2-container .select2-selection--single {
    height: 32px;
}

.select2-selection__rendered {
    line-height: 32px !important;
}

.gov-icon-btn {
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

    .gov-icon-btn i {
        color: #003366;
        font-size: 1.2rem;
        /*margin-left: 4px;*/
    }

    .gov-icon-btn:hover {
        background-color: #003366;
    }

        .gov-icon-btn:hover i {
            color: #ffffff;
        }

/*.form-check-input {
    appearance: auto !important;
    -webkit-appearance: radio !important;
    opacity: 1 !important;
    position: static !important;
    width: 16px !important;
    height: 16px !important;
    background-color: #fff !important;
    border: 2px solid #003366 !important;
    box-shadow: none !important;
}*/

    /* Checked state */
    /*.form-check-input:checked {
        background-color: #003366 !important;
        border-color: #003366 !important;
    }*/

    /* Remove bootstrap focus glow */
    /*.form-check-input:focus {
        box-shadow: none !important;
    }*/

.form-check-input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #003366;
    border-radius: 50%;
    background-color: #fff;
    cursor: pointer;
    position: relative;
    box-shadow: none;
}

    /* Inner dot when checked */
    .form-check-input[type="radio"]:checked::before {
        content: "";
        position: absolute;
        top: 3px;
        left: 3px;
        width: 8px;
        height: 8px;
        background-color: #003366;
        border-radius: 50%;
    }

    /* Remove Bootstrap focus glow */
    .form-check-input[type="radio"]:focus {
        box-shadow: none;
    }



/* Scroll wrapper */
.gov-table-scroll {
    max-height: 430px; /* Vertical scroll */
    overflow-y: auto;
    overflow-x: auto; /* Horizontal scroll */
}

    /* Scrollbar styling */
    .gov-table-scroll::-webkit-scrollbar {
        height: 8px;
        width: 8px;
    }

    .gov-table-scroll::-webkit-scrollbar-thumb {
        background: #c1c1c1;
        border-radius: 10px;
    }

        .gov-table-scroll::-webkit-scrollbar-thumb:hover {
            background: #999;
        }

.gov-table-container {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #e5e5e5;
    padding: 15px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.04);
}


.gov-table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    min-width: 1300px; /* IMPORTANT: forces horizontal scroll */
}

.gov-master-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 5px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.06);
}

.gov-section-title {
    font-size: 11px;
    font-weight: 700;
    color: #003366;
    /*margin-bottom: 12px;*/
    text-transform: uppercase;
    letter-spacing: .6px;
    /*border-bottom: 2px solid #e5edf5;*/
    padding-bottom: 6px;
}

.gov-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px 25px;
    margin-bottom: 14px;
}

.gov-item {
    display: flex;
    flex-direction: column;
}

.gov-label {
    font-size: 11px;
    color: #6c757d;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .4px;
}

.gov-value {
    font-size: 13px;
    font-weight: 600;
    color: #212529;
    margin-top: 2px;
    word-break: break-word;
}

/* AUDIT TABLE */
.audit-table th {
    font-size: 13px;
    font-weight: 700;
    color: #003366;
    background-color: #f1f6fb;
}

.audit-table td {
    font-size: 13px;
    vertical-align: middle;
}

/* REGISTRATION */
.badge-registered {
    background-color: #e8f0fe;
    color: #1a73e8;
}

/* BDO APPROVED */
.badge-bdo-approved {
    background-color: #e6f4ea;
    color: #137333;
}

/* TAHASILDAR APPROVED */
.badge-tah-approved {
    background-color: #e3f2fd;
    color: #0b5394;
}

/* BDO REJECTED */
.badge-bdo-rejected {
    background-color: #fdecea;
    color: #a50e0e;
}

/* TAHASILDAR REJECTED */
.badge-tah-rejected {
    background-color: #fce8e6;
    color: #b31412;
}

/* eTP GENERATED */
.badge-etp {
    background-color: #fff4e5;
    color: #b06000;
}

/* TRIP STARTED */
.badge-trip-start {
    background-color: #fff8e1;
    color: #ff8f00;
}

/* TRIP COMPLETED */
.badge-trip-complete {
    background-color: #e6f4ea;
    color: #1e7e34;
}

/* DEFAULT */
.badge-default {
    background-color: #f1f3f4;
    color: #444;
}

/* COMMON */
.badge-approved,
.badge-rejected,
.badge-registered,
.badge-bdo-approved,
.badge-tah-approved,
.badge-bdo-rejected,
.badge-tah-rejected,
.badge-etp,
.badge-trip-start,
.badge-trip-complete,
.badge-default {
    padding: 4px 10px;
    border-radius: 14px;
    font-size: 11px;
    font-weight: 600;
    display: inline-block;
}

.modal-body {
    max-height: 75vh;
    overflow-y: auto;
}

.bg-disabled {
    background-color: #62626250; /* Soft gray with 60% opacity */
    color: #000000; /* Light gray text color */
    cursor: not-allowed; /* Changes cursor to indicate non-interactivity */
    /*opacity: 0.6;*/ /* Slight transparency for the disabled effect */
    /*padding: 8px 12px;*/ /* Add padding for a more balanced appearance */
    border-radius: 4px; /* Rounded corners for a cleaner, modern look */
    /*font-style: italic;*/ /* Italicize the text to make it distinctively "disabled" */
    text-decoration: none; /* Remove any underlines from links if it's used on text links */
    pointer-events: none; /* Disables any interaction with the element */
}


.action-label {
    font-weight: bold;
}


/* =========================================
   CLEAN HORIZONTAL SCROLLBAR (TABLE)
========================================= */


    /* CHROME / EDGE / SAFARI */
    .table-responsive::-webkit-scrollbar {
        height: 6px; /* 🔥 thin like modern apps */
    }

    .table-responsive::-webkit-scrollbar-track {
        background: transparent;
    }

    .table-responsive::-webkit-scrollbar-thumb {
        background-color: #c1c7d0;
        border-radius: 10px;
    }

        .table-responsive::-webkit-scrollbar-thumb:hover {
            background-color: #9aa4b2;
        }



        /* =========================================
   GOV TABLE SCROLL FIX (CLEAN + MODERN)
========================================= */


/* CHROME / EDGE */
.gov-table-scroll::-webkit-scrollbar {
    height: 6px;
}

.gov-table-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.gov-table-scroll::-webkit-scrollbar-thumb {
    background-color: #c1c7d0;
    border-radius: 10px;
}

.gov-table-scroll::-webkit-scrollbar-thumb:hover {
    background-color: #9aa4b2;
}

.gov-master-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 5px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.06);
}

.gov-section-title {
    font-size: 11px;
    font-weight: 700;
    color: #003366;
    /*margin-bottom: 12px;*/
    text-transform: uppercase;
    letter-spacing: .6px;
    /*border-bottom: 2px solid #e5edf5;*/
    padding-bottom: 6px;
}

.gov-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px 25px;
    margin-bottom: 14px;
}

.gov-item {
    display: flex;
    flex-direction: column;
}

.gov-label {
    font-size: 11px;
    color: #6c757d;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .4px;
}

.gov-value {
    font-size: 13px;
    font-weight: 600;
    color: #212529;
    margin-top: 2px;
    word-break: break-word;
}

/* AUDIT TABLE */
.audit-table th {
    font-size: 13px;
    font-weight: 700;
    color: #003366;
    background-color: #f1f6fb;
}

.audit-table td {
    font-size: 13px;
    vertical-align: middle;
}

.badge-approved {
    background-color: #e6f4ea;
    color: #137333;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.badge-rejected {
    background-color: #fdecea;
    color: #a50e0e;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.badge-registered {
    background-color: #e8f0fe;
    color: #1a73e8;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.modal-body {
    max-height: 75vh;
    overflow-y: auto;
}