﻿/* ===== Google Font Import - Poppins ===== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins' !important;
}



[class*="Rad"] .p-icon,
[class*="rddl"] .p-icon,
.p-icon {
    font-family: "WebComponentsIcons" !important;
}

.t-icon {
    font-family: "WebComponentsIcons" !important;
}

.k-icon {
    font-family: "WebComponentsIcons" !important;
}


body {
    height: 100vh;
}

nav {
    
    left: 0;
    height: 70px;
    width: 100%;
    z-index: 100;
    color: #979797;
}


    nav .nav-bar {
        position: relative;
        height: 100%;
        max-width: 1000px;
        width: 100%;
        margin: auto;
        align-items: center;
        justify-content: center;
        color: #979797;
        display: flex;
    }

nav .nav-bar .sidebarOpen {
    color: var(--text-color);
    font-size: 25px;
    padding: 5px;
    cursor: pointer;
    display: none;
}

nav .nav-bar .logo a {
    font-size: 25px;
    font-weight: 500;
    color: var(--text-color);
    text-decoration: none;
}

.menu .logo-toggle {
    display: none;
}

.nav-bar .nav-links {
    display: flex;
    align-items: center;
}

.nav-bar .nav-links li {
    margin: 0 25px;
    list-style: none;
    text-decoration: none;
}

.nav-links li a {
    position: relative;
    color: #979797;
    text-decoration: none;
    font-size: 24px;
    font-weight: 600;
    line-height: 23px;
    letter-spacing: 0em;
    text-align: left;
}

.nav-links li a::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 2px;
    transform: translateX(-50%);
    height: 1px;
    width: 150px;
    border-radius: 10%;
    background-color: var(--text-color);
    opacity: 0;
    transition: all 0.3s ease;
    color: blue;
}




@media (max-width: 790px) {
    nav .nav-bar .sidebarOpen {
        display: block;
    }

    .menu {
        position: fixed;
            height: 100%;
            width: 320px;
        left: -100%;
        top: 0;
        padding: 20px;
        background-color: var(--side-nav);
        z-index: 100;
        transition: all 0.4s ease;
    }

    nav.active .menu {
        left: -0%;
    }

    nav.active .nav-bar .navLogo a {
        opacity: 0;
        transition: all 0.3s ease;
    }

    .menu .logo-toggle {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .logo-toggle .siderbarClose {
        color: var(--text-color);
        font-size: 24px;
        cursor: pointer;
    }

      .nav-bar .nav-links {
        flex-direction: column;
        padding-top: 30px;
    }

    .nav-links li a {
        display: block;
        margin-top: 20px;
    }
}





#MidContent {
    margin-top: 100px;
}

.leftnavigation {
    background-color: #000000;
    margin: 200px;
}

/* side nav*/


.sidenav {
    height: 100%;
    width: 320px;
    position: relative;
    z-index: 1;
    top: 0;
    left: 0;
    background-color: #4183DF; /* Blue background */
    padding-top: 100px;
}

.sidenav a {
    padding: 15px 15px 10px 30px;
    text-decoration: none;
    font-size: 14px;
    color: #fff;/* White font color */
    display: block;
    font-weight: 600;
    justify-content: center
}

.sidenav a:hover {
    background-color: white;/* Darker blue on hover */
    color: #4183DF;
    font-weight: bold;
}

.content {
    display: flex;
    width: 100%;
    height: 100%;
}

#MidContent {
    flex: 1;
    display: block;
    position: relative;
    margin-top: 100px;
}

.child-container {
    grid-column: 2/3;
    grid-row: 3;
}

.openprocument-container {
    box-shadow: 0px 5px 15px 0px #00000026;
    padding: 10px;
    width: auto;
    font-family: 'Poppins';
    letter-spacing: 0em;
    margin: 8px;
    height: auto;
    overflow-x: scroll;
}

.openprocument_header {
    font-family: 'Poppins';
    font-size: 32px;
    font-weight: 600;
    line-height: 38px;
    letter-spacing: 0em;
    color: #15428B;    
    padding-bottom:25px;
}

.openprocument_desc * {
    font-size: 16px !important;

}

.openprocument_desc {
    text-align: left;
    font-weight: 400;
}

/* All dropdown popups - enable scrolling */
.k-list-container.k-popup,
.k-dropdowngrid-popup {
    background-color: #F2F2F2;
    border: 1px solid #ccc;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    max-height: 400px;
    overflow-x: auto !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
}

    /* Enable horizontal scrolling for all dropdown grids */
    .k-dropdowngrid-popup .k-grid,
    .k-popup .k-grid {
        overflow-x: auto !important;
        overflow-y: visible !important;
    }

        /* Make dropdown tables scroll horizontally */
        .k-dropdowngrid-popup .k-grid table,
        .k-popup .k-grid table {
            width: max-content !important;
            min-width: 100%;
        }

    /* Grid content area scrolling */
    .k-dropdowngrid-popup .k-grid-content,
    .k-popup .k-grid-content {
        overflow-x: auto !important;
    }

    /* Style for all dropdown headers */
    .k-dropdowngrid-popup .k-grid-header .k-header,
    .k-popup .k-grid-header .k-header {
        font-weight: bold !important;
        background-color: #e6e6e6 !important; 
        color: #333 !important;
        white-space: nowrap;
    }

    /* Style for all dropdown cells */
    .k-dropdowngrid-popup .k-grid th,
    .k-dropdowngrid-popup .k-grid td,
    .k-popup .k-grid th,
    .k-popup .k-grid td {
        white-space: nowrap;
        padding: 8px;
        font-size: 14px;
        min-width: 100px;
    }

/* Make dropdown cells wrap text if needed */
.k-cell {
    text-wrap: wrap !important;
}

/* Ensure dropdown wrappers don't clip content */
.k-widget.k-multicolumncombobox,
.k-widget.k-combobox,
.k-widget.k-dropdown {
    overflow: visible !important;
}

/* Custom scrollbar styling for better UX */
.k-list-container.k-popup::-webkit-scrollbar,
.k-dropdowngrid-popup::-webkit-scrollbar,
.k-popup .k-grid::-webkit-scrollbar,
.k-grid-content::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.k-list-container.k-popup::-webkit-scrollbar-track,
.k-dropdowngrid-popup::-webkit-scrollbar-track,
.k-popup .k-grid::-webkit-scrollbar-track,
.k-grid-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.k-list-container.k-popup::-webkit-scrollbar-thumb,
.k-dropdowngrid-popup::-webkit-scrollbar-thumb,
.k-popup .k-grid::-webkit-scrollbar-thumb,
.k-grid-content::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

    .k-list-container.k-popup::-webkit-scrollbar-thumb:hover,
    .k-dropdowngrid-popup::-webkit-scrollbar-thumb:hover,
    .k-popup .k-grid::-webkit-scrollbar-thumb:hover,
    .k-grid-content::-webkit-scrollbar-thumb:hover {
        background: #555;
    }

/* Mobile responsive adjustments */
@media screen and (max-width: 768px) {
    /* Reduce dropdown max width on mobile */
    .k-animation-container {
        max-width: calc(100vw - 20px);
    }

    .k-list-container.k-popup,
    .k-dropdowngrid-popup {
        max-width: calc(100vw - 20px);
        max-height: 300px;
    }

        /* Smaller text on mobile */
        .k-dropdowngrid-popup .k-grid th,
        .k-dropdowngrid-popup .k-grid td,
        .k-popup .k-grid th,
        .k-popup .k-grid td {
            font-size: 12px;
            padding: 6px;
            min-width: 80px;
        }

    /* Better touch scrolling */
    .k-list-container.k-popup,
    .k-dropdowngrid-popup,
    .k-grid-content {
        -webkit-overflow-scrolling: touch !important;
    }
}

@media screen and (max-width: 480px) {
    /* Even smaller on very small screens */
    .k-animation-container {
        max-width: calc(100vw - 10px);
    }

    .k-list-container.k-popup,
    .k-dropdowngrid-popup {
        max-width: calc(100vw - 10px);
        max-height: 250px;
    }

        .k-dropdowngrid-popup .k-grid th,
        .k-dropdowngrid-popup .k-grid td,
        .k-popup .k-grid th,
        .k-popup .k-grid td {
            font-size: 11px;
            padding: 4px;
            min-width: 70px;
        }
}

/* Fix for specific page-level overrides that might interfere */
[id*="RadMultiColumnComboBox"] {
    overflow: visible !important;
}

/* Ensure list containers position properly */
[id*="-list"] {
    position: relative !important;
}