﻿.setDisplay, .displayStyle {
    display: none;
}

.modalBackground1 {
    background-color: Black;
    filter: alpha(opacity=90);
    opacity: 0.8;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
}

.modalPopup1 {
    background-color: #fff;
    border: 3px solid #ccc;
    padding: 10px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 80% !important;
    max-width: 1400px !important;
    height: 80% !important;
    max-height: 80% !important;
    margin: 0 !important;
    /* Critical fix: allow scrolling inside the modal */
    overflow-y: auto !important;
    overflow-x: auto !important;
    /* Optional: improve scrollbar appearance */
    scrollbar-width: thin;
    /*display: none !important;*/
}

    /* Ensure the grid does not cause extra overflow */
    .modalPopup1 .table {
        width: 100%;
        margin-bottom: 0;
    }

    /* Keep the close button area from being squashed */
    .modalPopup1 .row:last-of-type {
        margin-top: 20px;
        margin-bottom: 10px;
    }


    /* Fix the header (h3) at the top - prevent shrinking */
    .modalPopup1 > h3 {
        flex-shrink: 0;
        margin-top: 0;
    }

    /* First .row (contains the grid) – scrollable area */
    .modalPopup1 > .row:first-of-type {
        flex: 1 1 auto !important;
        overflow-y: auto !important; /* Vertical scrollbar when needed */
        min-height: 0; /* Flex overflow fix */
        margin-bottom: 10px;
    }

        /* Add horizontal scroll for wide grid content */
        .modalPopup1 > .row:first-of-type .col-md-12 {
            overflow-x: auto;
        }

    /* Ensure the grid takes full width inside the scrollable area */
    .modalPopup1 .table {
        width: 100%;
        margin-bottom: 0;
    }

    /* Footer row (Close button row) – fixed at bottom */
    .modalPopup1 > .row:last-of-type {
        flex-shrink: 0;
        margin-top: auto;
    }

.modal-header-custom {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

    .modal-header-custom h4 {
        margin: 0;
        font-weight: 600;
    }

    .modal-header-custom .btn {
        margin: 0;
    }

.modal-body-custom {
    padding: 20px;
    height: calc(100% - 60px);
    overflow: auto;
}

/* Responsive modal for smaller screens */
@media (max-width: 768px) {
    .modern-modal {
        width: 95% !important;
        height: 90% !important;
    }

    .modal-body-custom {
        padding: 10px;
    }
}

@media (min-width: 1920px) {
    .modern-modal {
        max-width: 1600px !important;
    }
}

.GlassPanel {
    background: #000000;
    opacity: 0.5;
    filter: alpha(opacity=70);
    position: absolute;
    left: 0px;
    top: 0px;
    z-index: 110;
    cursor: not-allowed;
}

.modalBackground {
    background-color: Black;
    filter: alpha(opacity=60);
    opacity: 0.6;
}

.modalPopup {
    background-color: #FFFFFF;
    width: 300px;
    border: 3px solid #0DA9D0;
    padding: 0;
}

    .modalPopup .header {
        background-color: #2FBDF1;
        height: 30px;
        color: White;
        line-height: 30px;
        text-align: center;
        font-weight: bold;
    }

    .modalPopup .body {
        min-height: 50px;
        line-height: 30px;
        text-align: center;
        font-weight: bold;
        margin-bottom: 5px;
    }

.typingmodehindi {
    font-family: 'Kruti Dev 011' !important;
    font-size: 20px !important;
}
/*.ParentAccordionContent {
    border-color: -moz-use-text-color #5078B3;
    border-right: 1px dashed #2F4F4F;
    border-style: none solid solid;
    border-width: medium 1px 1px;
    padding: 10px 5px 5px;
    width: 50%;
    text-align: center;
    background-color: #c1e2f5;
}

.ParentAccordionHeader {
    cursor: pointer;
    font-family: Arial,Sans-Serif;
    font-weight: bold;
    margin-top: 10px;
    padding: 5px;
    font-size: 14px;
    border: 1px solid #2F4F4F;
    width: 50%;
    background: url(images/img-collapse.png) no-repeat 750px 7px;
    background-color: #425e89;
    color: white;
    text-align: left;
}

.ParentAccordionHeaderSelected {
    color: white;
    cursor: pointer;
    font-family: Arial,Sans-Serif;
    font-weight: bold;
    margin-top: 10px;
    padding: 5px;
    font-size: 14px;
    border: 1px solid #2F4F4F;
    width: 50%;
    background: url(images/img-expand.png) no-repeat 750px 7px;
    background-color: #2fa4e7;
    text-align: center;
}

.ChildAccordionContent {
    border-color: -moz-use-text-color #72b65a;
    border-right: 1px dashed #2F4F4F;
    border-style: none solid solid;
    border-width: medium 1px 1px;
    padding: 10px 5px 5px;
    width: 98%;
    text-align: left;
    background-color: #cbebbf;
}

.ChildAccordionHeader {
    cursor: pointer;
    font-family: Arial,Sans-Serif;
    font-weight: bold;
    margin-top: 10px;
    padding: 5px;
    font-size: 14px;
    border: 1px solid #2F4F4F;
    width: 98%;
    background: url(images/arrow_down.png) no-repeat 720px 7px;
    background-color: #3e6331;
    color: white;
    text-align: left;
}

.ChildAccordionHeaderSelected {
    color: white;
    cursor: pointer;
    font-family: Arial,Sans-Serif;
    font-weight: bold;
    margin-top: 10px;
    padding: 5px;
    font-size: 14px;
    border: 1px solid #2F4F4F;
    width: 98%;
    background: url(images/arrown_up.png) no-repeat 720px 7px;
    background-color: #6ca359;
    text-align: center;
}*/

.GridPager a,
.GridPager span {
    display: inline-block;
    padding: 0px 9px;
    margin-right: 4px;
    border-radius: 3px;
    border: solid 1px #c0c0c0;
    background: #e9e9e9;
    box-shadow: inset 0px 1px 0px rgba(255,255,255, .8), 0px 1px 3px rgba(0,0,0, .1);
    font-size: .875em;
    font-weight: bold;
    text-decoration: none;
    color: #717171;
    text-shadow: 0px 1px 0px rgba(255,255,255, 1);
}

.GridPager a {
    background-color: #f5f5f5;
    color: #969696;
    border: 1px solid #969696;
}

.GridPager span {
    background: #616161;
    box-shadow: inset 0px 0px 8px rgba(0,0,0, .5), 0px 1px 0px rgba(255,255,255, .8);
    color: #f0f0f0;
    text-shadow: 0px 0px 3px rgba(0,0,0, .5);
    border: 1px solid #3AC0F2;
}

.dataTables_scrollBody {
    transform: rotateX(180deg);
}

    .dataTables_scrollBody table {
        transform: rotateX(180deg);
    }

/* ===== Bootstrap 3 → 5 Compatibility Overlay ===== */
/* These rules provide backward compatibility for pages not yet migrated */

/* Float helpers */
.pull-left { float: left !important; }
.pull-right { float: right !important; }

/* Button styles */
.btn-default {
    color: #333;
    background-color: #fff;
    border-color: #ccc;
}
.btn-default:hover, .btn-default:focus, .btn-default:active {
    color: #333;
    background-color: #e6e6e6;
    border-color: #adadad;
}
.btn-xs { padding: .25rem .5rem; font-size: .75rem; line-height: 1.5; border-radius: .2rem; }
.btn-white { background: #fff; color: #333; border-color: #ddd; }

/* Label styles (BS3 labels → BS5 badges) */
.label { display: inline; padding: .2em .6em .3em; font-size: 75%; font-weight: 700; line-height: 1; text-align: center; white-space: nowrap; border-radius: .25em; }
.label-default { background-color: #777; color: #fff; }
.label-primary { background-color: #337ab7; color: #fff; }
.label-success { background-color: #5cb85c; color: #fff; }
.label-info { background-color: #5bc0de; color: #fff; }
.label-warning { background-color: #f0ad4e; color: #fff; }
.label-danger { background-color: #d9534f; color: #fff; }

/* Badge styles */
.badge { display: inline-block; min-width: 10px; padding: 3px 7px; font-size: 12px; font-weight: 700; line-height: 1; color: #fff; text-align: center; white-space: nowrap; vertical-align: middle; border-radius: 10px; }
.badge-default { background-color: #777; }
.badge-primary { background-color: #337ab7; }
.badge-success { background-color: #5cb85c; }
.badge-info { background-color: #5bc0de; }
.badge-warning { background-color: #f0ad4e; color: #333; }
.badge-danger { background-color: #d9534f; }
.badge-grey { background-color: #777; }
.badge-important { background-color: #d9534f; }

/* Responsive visibility */
.hidden-xs { display: none !important; }
@media (min-width: 768px) { .hidden-xs { display: block !important; } .visible-xs { display: none !important; } }
@media (max-width: 767px) { .visible-xs { display: block !important; } .hidden-xs { display: none !important; } }

/* Table helpers */
.table-condensed { padding: 5px; }
.table-condensed > thead > tr > th,
.table-condensed > tbody > tr > td,
.table-condensed > tfoot > tr > td { padding: 5px; }

/* Input group */
.input-group-addon {
    padding: .375rem .75rem;
    margin-bottom: 0;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    text-align: center;
    background-color: #e9ecef;
    border: 1px solid #ced4da;
    border-radius: .25rem;
}

/* Panel → Card mapping */
.panel { margin-bottom: 20px; background-color: #fff; border: 1px solid #ddd; border-radius: 4px; }
.panel-body { padding: 15px; }
.panel-heading { padding: 10px 15px; border-bottom: 1px solid #ddd; border-top-left-radius: 3px; border-top-right-radius: 3px; }
.panel-title { margin-top: 0; margin-bottom: 0; font-size: 16px; }
.panel-footer { padding: 10px 15px; background-color: #f5f5f5; border-top: 1px solid #ddd; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; }
.panel-default > .panel-heading { background-color: #f5f5f5; border-color: #ddd; }

/* Well */
.well { min-height: 20px; padding: 19px; margin-bottom: 20px; background-color: #f5f5f5; border: 1px solid #e3e3e3; border-radius: 4px; }

/* Image responsive */
.img-responsive { max-width: 100%; height: auto; }

/* Navbar compatibility */
.navbar { position: relative; min-height: 50px; margin-bottom: 20px; border: 1px solid transparent; }
.navbar-default { background-color: #f8f9fa; border-color: #e7e7e7; }

/* Dropdown carets */
.caret { display: inline-block; width: 0; height: 0; margin-left: 2px; vertical-align: middle; border-top: 4px dashed; border-right: 4px solid transparent; border-left: 4px solid transparent; }

/* List group */
.list-group-item { position: relative; display: block; padding: .75rem 1.25rem; margin-bottom: -1px; background-color: #fff; border: 1px solid rgba(0,0,0,.125); }

/* Page header */
.page-header { padding-bottom: 9px; margin: 40px 0 20px; border-bottom: 1px solid #eee; }

/* Text colors */
.text-primary { color: #337ab7; }
.text-success { color: #3c763d; }
.text-info { color: #31708f; }
.text-warning { color: #8a6d3b; }
.text-danger { color: #a94442; }
.text-muted { color: #777; }

/* Background colors */
.bg-primary { background-color: #337ab7; color: #fff; }
.bg-success { background-color: #dff0d8; }
.bg-info { background-color: #d9edf7; }
.bg-warning { background-color: #fcf8e3; }
.bg-danger { background-color: #f2dede; }

/* Ace-specific classes needed for backward compat */
.ace-icon { display: inline-block; }
.bigger-110 { font-size: 1.1em; }
.bigger-120 { font-size: 1.2em; }
.bigger { font-size: 1.3em; }
.bolder { font-weight: bold; }
.no-hover { pointer-events: none; }
.widget-box { position: relative; }
.widget-box.visible { display: block; }

/* Bootstrap page-header like */
.page-header { padding-bottom: 9px; margin: 40px 0 20px; border-bottom: 1px solid #eee; }

/* Progress bar compatibility */
.progress { display: flex; height: 1rem; overflow: hidden; font-size: .75rem; background-color: #e9ecef; border-radius: .25rem; }

/* Alert compatibility */
.alert { position: relative; padding: .75rem 1.25rem; margin-bottom: 1rem; border: 1px solid transparent; border-radius: .25rem; }
.alert-success { color: #155724; background-color: #d4edda; border-color: #c3e6cb; }
.alert-info { color: #0c5460; background-color: #d1ecf1; border-color: #bee5eb; }
.alert-warning { color: #856404; background-color: #fff3cd; border-color: #ffeeba; }
.alert-danger { color: #721c24; background-color: #f8d7da; border-color: #f5c6cb; }

/* Dropdown-menu positioning */
.dropdown-menu { position: absolute; z-index: 1000; display: none; min-width: 10rem; }
.dropdown-menu-right { right: 0; left: auto; }
.dropdown-header { display: block; padding: .5rem 1rem; margin-bottom: 0; font-size: .875rem; white-space: nowrap; }
.dropdown-footer { display: block; padding: .5rem 1rem; font-size: .875rem; }
.dropdown-menu > li > a { display: block; padding: 3px 20px; clear: both; font-weight: 400; line-height: 1.42857143; color: #333; white-space: nowrap; }
.dropdown-menu > li > a:hover, .dropdown-menu > li > a:focus { background-color: #f5f5f5; }
.dropdown-menu .divider { height: 1px; margin: 9px 0; overflow: hidden; background-color: #e5e5e5; }
.bootstrap-datetimepicker-widget.dropdown-menu { display: inline-block; }

/* Modal backdrop compatibility */
.modal-backdrop { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 1040; background-color: #000; }
.modal-backdrop.fade { opacity: 0; }
.modal-backdrop.in { opacity: .5; }
.modal-open { overflow: hidden; }
.modal { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 1050; display: none; overflow: hidden; outline: 0; }
.fade.in { opacity: 1; }

/* Tab content compatibility */
.tab-content > .tab-pane { display: none; }
.tab-content > .active { display: block; }
.nav-tabs.nav-justified { width: 100%; }

/* Center-block helper */
.center-block { display: block; margin-right: auto; margin-left: auto; }

/* Row offset compatibility */
.col-sm-offset-1 { margin-left: 8.33333333%; }

/* Jumbotron */
.jumbotron { padding: 2rem 1rem; margin-bottom: 2rem; background-color: #e9ecef; border-radius: .3rem; }

/* Thumbnail */
.thumbnail { display: block; padding: 4px; margin-bottom: 20px; line-height: 1.42857143; background-color: #fff; border: 1px solid #ddd; border-radius: 4px; }

/* Help block */
.help-block { display: block; margin-top: 5px; margin-bottom: 10px; color: #737373; }

/* ===== Sidebar Menu Text Wrapping ===== */
/* Override AdminLTE's white-space:nowrap so long menu items wrap instead of being truncated */
.sidebar-wrapper .nav-link p {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    word-wrap: break-word;
    line-height: 1.3;
}

.sidebar-menu,
.sidebar-menu .nav-link,
.sidebar-menu > .nav-header {
    white-space: normal !important;
}

/* ===== Bootstrap Datepicker — BS5 override fix ===== */
/* When container:'body' moves the dropdown outside <form>,
   BS5's .dropdown-menu styles (min-width, padding, font-size) 
   can interfere with the datepicker's intrinsic sizing. */
.datepicker.dropdown-menu {
    min-width: auto !important;
    padding: 4px !important;
    font-size: 13px !important;
    background: #fff !important;
    border: 1px solid rgba(0,0,0,.15) !important;
    border-radius: 4px !important;
    box-shadow: 0 6px 12px rgba(0,0,0,.175) !important;
    z-index: 1060 !important;
    --bs-dropdown-bg: #fff;
    --bs-dropdown-color: #212529;
    --bs-dropdown-border-width: 1px;
    --bs-dropdown-border-color: rgba(0,0,0,.15);
    --bs-dropdown-border-radius: 4px;
    --bs-dropdown-box-shadow: 0 6px 12px rgba(0,0,0,.175);
    --bs-dropdown-min-width: auto;
    --bs-dropdown-padding-x: 4px;
    --bs-dropdown-padding-y: 4px;
    --bs-dropdown-font-size: 13px;
}
.datepicker table {
    width: auto;
    margin: 0;
}
.datepicker table tr td,
.datepicker table tr th {
    width: 30px;
    height: 30px;
    padding: 0;
}
.datepicker td,
.datepicker th {
    min-width: 32px;
}
