﻿.brand-link {
    background-color: #e7eaee;
}

.main-header {
    height: 50px;
}

.navbar {
    position: fixed;
    width: -webkit-fill-available;
}

.main-body {
    padding-top: 70px;
}

.active {
    background-color: #02366F;
    color: white;
}

.btn-custom-create-folder {
    background-color: #6AA6E980;
    /* Light blue color for the background */
    color: #001F3F; /* Dark blue color for the text */
    font-weight: bold; /* Bold font */
    border: none; /* Remove the default outline */
}

    .btn-custom-create-folder:hover,
    .btn-custom-create-folder:focus {
        background-color: #02366F;
        color: white; /* Set the text color to white */
    }


.btn-custom-upload-manual {
    border-color: #6AA6E9; /* Light blue color for the border */
    background-color: #6AA6E980; /* Dark blue color for the background */
    color: #001F3F; /* Dark blue color for the text */
    font-weight: bold; /* Bold font */
    border: none;
}

    .btn-custom-upload-manual:hover,
    .btn-custom-upload-manual:focus {
        background-color: #02366F;
        color: white; /* Set the text color to white */
    }




.btn-custom-tab {
    height: 50px;
    border-color: #6AA6E9; /* Orange color for the border */
    background-color: #6AA6E980;
    color: #001F3F;
    font-weight: bold; /* Bold font */
    padding: 2px 2px !important;
}

    .btn-custom-tab:hover,
    .btn-custom-tab:focus {
        background-color: #02366F;
        color: white; /* Set the text color tos white */
    }




.btn-custom-disable {
    border-color: #6AA6E9; 
    background-color: #6AA6E980; 
    color: #001F3F; 
    font-weight: bold; 
}

    .btn-custom-disable:hover,
    .btn-custom-disable:focus {
        background-color: #02366F;
        color: white; /* Set the text color to white */
    }

.btn-custom-submit {
    background-color: #02366F;
    color: white; /* White text color */
    font-weight: bold; /* Bold font */
    margin-top: 200px;
}

    .btn-custom-submit:hover {
        background-color: #ADD8E6;
        color: #001F3F; /* Set the text color to white */
    }

.checkboxcss {
    margin-right: 10px;
    transform: scale(1.5);
}

.marginT {
    margin-top: 7px;
    margin-left: 7px;
}

.custom-label {
    /*   font-family: Roboto;*/
    font-size: 16px;
    font-weight: 600;
    line-height: 19px;
    letter-spacing: 0em;
    text-align: left;
    color: #02366F;
    /* Dark blue color code */
}



.customheader {
    top: 0;
    right: 0;
}

.customfooter {
    bottom: 0;
    top: 100;
    right: 0;
    width: 84%;
    margin-top: 26%;
    position: fixed;
    right: 0;
}

table {
    border-collapse: collapse;
    width: 100%;
    padding: 30px;
}

.table-header-custom {
    background-color: #02366F !important;
    color: white !important;
}

th, td {
    text-align: left;
    padding: 8px;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: white;
    color: blue;
}

td:last-child {
    border-bottom: 1px solid #ddd;
}

button {
    padding: 5px 10px;
    cursor: pointer;
    border: none;
    color: white;
}

#approvalTable th, #approvalTable td {
    text-align: center;
}

#stationTable th, #stationTable td {
    text-align: center;
}

.button-container-table {
    display: flex;
    flex-wrap: wrap; /* Allows wrapping to the next line if space is insufficient */
    gap: 10px 5px; 
    justify-content: center;
    align-items: center;
}

.approve {
    background-color: blue;
    width: 80px;
    border-radius: 10px;
    padding: 8px 12px;
}

.reject {
    background-color: white;
    width: 80px;
    color: red;
    border: 1px solid red;
    border-radius: 10px;
    padding: 8px 12px;
}

.view-document {
    background-color: white;
    color: blue;
    border-radius: 10px;
    padding: 8px 12px;
}

.modal {
    display: none;
    position: fixed;
    top: 5%;
    left: 20%;
    width: 60%;
    height: 80%;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fefefe;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.close {
    position: absolute;
    top: 25px;
    right: 25px;
    cursor: pointer;
}

.close-approve {
    position: relative;
    top: 15px;
    right: 25px;
    cursor: pointer;
}

.fixed-height-textarea {
    max-height: 200px; /* Set the desired height */
    min-height: 200px
}

.approvetext {
    margin-top: 10px
}

.clrwhite {
    color: white;
}




.multiselect {
    position: relative;
}

.selectBox {
    cursor: pointer;
}

    .selectBox span {
        margin-right: 20px;
    }

.overSelect {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
}

.checkbox-container {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    z-index: 100;
}

    .checkbox-container label {
        display: block;
        margin: 0;
        padding: 10px;
    }

        .checkbox-container label:hover {
            background-color: #f1f1f1;
        }

.dropdown-menu {
    max-height: 400px; /* Adjust based on your needs */
    overflow-y: auto;
}


/* Reset default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Center the file input */
.file-input {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 15px;
}

/* Style the label */
label {
    font-weight: bold;
    margin-bottom: 10px;
}

/* Style the file display container */
.file-display {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px;
    width: auto;
    margin: 15px;
}

    /* Style the text box */
    .file-display input[type="text"] {
        flex-grow: 1;
        border: none;
        outline: none;
        padding: 5px;
    }

    /* Style the Browse button */
    .file-display button {
        background-color: #0078BA;
        color: #fff;
        border: none;
        margin-left: auto;
        margin-right: 0;
        border-radius: 4px;
        cursor: pointer;
    }

        .file-display button:hover {
            background-color: #005E8C;
        }

/* Responsive images */
img {
    max-width: 100%;
    height: auto;
}

.choose-file {
    width: 550px;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: #005E8C !important;
}

.select2-container--default .select2-selection--single {
    height: 38px;
    line-height: 38px;
    display: flex;
    align-items: center;
    padding: 0 8px; 
    border: 1px solid #ced4da; 
    border-radius: 0.25rem; 
}

    .select2-container--default .select2-selection--single .select2-selection__rendered {
        line-height: 38px; /* Ensures text is vertically centered */
    }

    .select2-container--default .select2-selection--single .select2-selection__arrow {
        height: 38px;
        line-height: 38px; /* Ensures the arrow is vertically centered */
        display: flex;
        align-items: center;
    }

.anchor-power-off {
    display: flex;
    justify-content: center; /* Horizontally center the button */
    align-items: center;
}

.fa-power-off:before {
    padding: 10px 20px;
    border: none;
    cursor: pointer;
}

.pdfViewer {
    flex: 0 0 100%;
    max-width: 100%;
    margin-left: unset;
    position: relative;
}


#viewerContainer {
    position: relative;
}

/* Critical: make viewerContent fill the embed-responsive area */
#viewerContent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0b0b0b; /* optional */
}

    /* Make iframe/video fill the whole area */
    #viewerContent iframe,
    #viewerContent video {
        width: 100%;
        height: 100%;
        border: 0;
    }

    /* Make image fit within the area, centered */
    #viewerContent img.viewer-image {
        max-width: 100%;
        max-height: 100%;
        width: auto;
        height: auto;
        object-fit: contain;
        display: block;
    }

/* Place fullscreen button over the viewer */
#fullscreenBtn {
    position: absolute;
    bottom: 8px;
    right: 12px;
    z-index: 20;
}



.bg-light {
    background-color: #D9D9D9;
}

    .bg-light h4 {
        color: #02366F;
    }

    .bg-light li {
        color: #1E1E1E;
    }

        .bg-light li strong {
            color: #000080;
        }

    .bg-light p {
        font-size: 16px;
    }

.bg-light {
    border-radius: 20px;
}

.bg-light {
    padding: 20px;
}

.error {
    color: red;
    font-family: auto;
}
.pre-notice {
    color: blue;
}
.lbl-viewPDF {
    font-weight: bolder;
    font-size: larger;
}

.ztree li a.curSelectedNode {
    background-color: lightblue !important;
    font-weight: 800;
    color: #0319f1 !important;
}

.active-button {
    background-color: #02366F !important;
    color: white !important;
}

.dashboard {
    display: none;
}

.loader {
    animation: rotate 1s infinite;
    height: 20px;
    width: 20px;
    display: inline-block;
    vertical-align: middle;
    margin-left: 10px;
}

    .loader:before,
    .loader:after {
        border-radius: 50%;
        content: "";
        display: block;
        height: 10px;
        width: 10px;
    }

    .loader:before {
        animation: ball1 1s infinite;
        background-color: #fff;
        box-shadow: 15px 0 0 #ff3d00;
        margin-bottom: 5px;
    }

    .loader:after {
        animation: ball2 1s infinite;
        background-color: #ff3d00;
        box-shadow: 15px 0 0 #fff;
    }

@keyframes rotate {
    0% {
        transform: rotate(0deg) scale(0.8)
    }

    50% {
        transform: rotate(360deg) scale(1.2)
    }

    100% {
        transform: rotate(720deg) scale(0.8)
    }
}

@keyframes ball1 {
    0% {
        box-shadow: 15px 0 0 #ff3d00;
    }

    50% {
        box-shadow: 0 0 0 #ff3d00;
        margin-bottom: 0;
        transform: translate(7.5px, 7.5px);
    }

    100% {
        box-shadow: 15px 0 0 #ff3d00;
        margin-bottom: 5px;
    }
}

@keyframes ball2 {
    0% {
        box-shadow: 15px 0 0 #fff;
    }

    50% {
        box-shadow: 0 0 0 #fff;
        margin-top: -10px;
        transform: translate(7.5px, 7.5px);
    }

    100% {
        box-shadow: 15px 0 0 #fff;
        margin-top: 0;
    }
}

.tab-pane {
    background-color: transparent !important;
    color: black;
}

.modern-tabs .nav-item {
    margin-right: 10px;
}

.modern-tabs .nav-link {
    border: 1px solid #dee2e6;
    border-radius: 0.5rem 0.5rem 0.25rem 0.25rem;
    background-color: #c4e7ff;
    color: #000000;
    padding: 10px 15px;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
    font-weight: 700;
    font-size: 16px;
    opacity: 0.8;
}

    .modern-tabs .nav-link:hover {
        background-color: #e9ecef;
        color: #0056b3;
        border-color: #dee2e6 #dee2e6 #f8f9fa;
        opacity: 1;
    }

    .modern-tabs .nav-link.active {
        color: #fff;
        background-color: #007bff;
        border-color: #007bff #007bff #f8f9fa;
        font-weight: 800;
        opacity: 1;
    }

        .modern-tabs .nav-link:focus, .modern-tabs .nav-link.active:focus {
            box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
        }

.is-invalid {
    border-color: red;
}

.select2-container.is-invalid .select2-selection {
    border-color: red;
}

.folder-tabs .nav-item {
    flex: 1; 
    text-align: center;
}

.folder-tabs .nav-link {
    background-color: #d9d9d9; 
    color: #02366F; 
    font-weight: bold;
    border-radius: 5px 5px 0 0;
    padding: 10px;
    border: 1px solid #02366F;
}

    .folder-tabs .nav-link.active {
        background-color: #1699cc; 
        color: #fff; 
    }

.folder-tabs {
    display: flex;
}

.report-icon {
    text-align: center;
    margin: 20px 0;
}

.report-image {
    width: 80px;
    height: 80px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

    .report-image:hover {
        transform: scale(1.1);
    }


.notification-panel-modern {
    position: absolute;
    top: 50px;
    right: 20px;
    background-color: #ffffff;
    border: 1px solid #ddd;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 300px;
    border-radius: 8px;
    z-index: 1000;
    overflow: hidden;
}

.notification-header {
    background-color: #f5f5f5;
    padding: 10px;
    font-size: 16px;
    font-weight: bold;
    border-bottom: 1px solid #ddd;
    margin: 0;
    text-align: center;
}

.notification-list-modern {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 400px;
    overflow-y: auto;
}

    .notification-list-modern li {
        padding: 10px 15px;
        border-bottom: 1px solid #f0f0f0;
        display: flex;
        flex-direction: column;
    }

        .notification-list-modern li:last-child {
            border-bottom: none;
        }

    .notification-list-modern .document-name {
        font-size: 14px;
        font-weight: bold;
        color: #333;
        margin: 0;
    }

    .notification-list-modern .document-date {
        font-size: 12px;
        color: #666;
        margin: 2px 0 0;
    }

.custom-dropdown {
    appearance: none; /* Remove default styles */
    -webkit-appearance: none;
    -moz-appearance: none;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24"><path fill="gray" d="M7 10l5 5 5-5H7z"/></svg>') no-repeat right 10px center;
    background-size: 16px;
    padding-right: 30px; /* Ensure space for arrow */
}

.btn-danger-subtle {
    background-color: #f8d7da !important; /* Light red background */
    color: #721c24 !important; /* Dark red text */
    border-color: #f5c6cb !important;
}

    .btn-danger-subtle:hover {
        background-color: #f1b0b7 !important;
        border-color: #f1a1a9 !important;
    }

.document-path {
    font-size: 12px;
    opacity: 0.75;
    margin: 0;
}

/************ This is for user search loader **********/

/* Overlay covers the whole manageUsers tab content */
#manageUsers {
    position: relative;
}

.overlay-loader {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.75);
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: all; /* blocks clicks */
}

.overlay-content {
    text-align: center;
    padding: 16px 20px;
    border-radius: 8px;
    background: rgba(255,255,255,0.9);
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

/************* This below is for user Group add/update loader *************/

/* Modal must be position:relative so overlay can cover it */
.modal .modal-content {
    position: relative;
}

/* Full-cover overlay inside modal */
.modal-overlay-loader {
    position: absolute;
    inset: 0; /* top:0 right:0 bottom:0 left:0 */
    z-index: 1056; /* above modal content, below default BS modal zindex is fine */
    background: rgba(255, 255, 255, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Center box */
.modal-overlay-box {
    text-align: center;
    padding: 16px 22px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(0,0,0,0.12);
}

/* Optional: prevent pointer events when overlay shown */
.modal-overlay-loader {
    pointer-events: all;
}

/****************************************************/

/************* This below is for Doc Upload/Update loader *************/

.form-overlay-container {
    position: relative;
}

.form-overlay-loader {
    position: absolute;
    inset: 0;
    z-index: 1050;
    background: rgba(255, 255, 255, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

    .form-overlay-loader.d-none {
        display: none !important;
    }

.form-overlay-content {
    text-align: center;
    padding: 20px 24px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    min-width: 240px;
}

.form-overlay-spinner {
    width: 42px;
    height: 42px;
    margin: 0 auto 12px auto;
    border: 4px solid #d9d9d9;
    border-top: 4px solid #1f6feb;
    border-radius: 50%;
    animation: formOverlaySpin 0.8s linear infinite;
}

.form-overlay-text {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

@keyframes formOverlaySpin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/****************************************************/

/************* Move folder/doc modal css *************/

.move-btn {
    height: 38px;
    display: flex;
    align-items: center;
    padding: 0 14px;
    font-weight: 600;
    white-space: nowrap;
}

/* Remove scrolling from modal layers */
#moveNodeModal {
    height: 650px;
    overflow: hidden !important;
}

    #moveNodeModal .modal-dialog {
        max-width: 1000px;
        margin: 40px auto;
    }

    #moveNodeModal .modal-content {
        display: flex;
        flex-direction: column;
        overflow: hidden; /* IMPORTANT */
    }

    /* No scroll here */
    #moveNodeModal .modal-body {
        overflow: hidden !important;
    }

/* ONLY scrollable area */
#moveTreeContainer {
    height: 200px;
    overflow-y: auto;
    overflow-x: auto;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 6px;
}

/* Footer clean alignment */
#moveNodeModal .modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Buttons */
.btn-modal-submit {
    background-color: #02366F;
    color: #fff;
    height: 38px;
    min-width: 90px;
    border-radius: 4px;
    font-weight: 600;
}

    .btn-modal-submit:hover {
        background-color: #012b59;
        color: #fff;
    }

/****************************************************/

/******* Header Logged in Group name related ********/

.layout-user-nav-item {
    display: flex;
    align-items: center;
}

.layout-user-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 40px;
    margin-right: 14px;
}

.users-name-navbar {
    display: flex;
    align-items: center;
    margin: 0;
    color: #02366F;
    font-weight: 700;
    line-height: 1;
}

.layout-group-badge {
    display: inline-flex;
    align-items: center;
    height: 26px;
    max-width: 240px;
    padding: 3px 12px;
    border-radius: 14px;
    background-color: #eef4fb;
    color: #02366F;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border: 1px solid #d4e4f5;
}

.layout-logout-nav-item {
    display: flex;
    align-items: center;
}

.layout-logout-link {
    display: flex !important;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 0 !important;
    color: #02366F !important;
}

    .layout-logout-link i {
        font-size: 18px;
        line-height: 1;
    }

/****************************************************/
