﻿/* ---------------------------------------
   HCLTechRoobert font family (consolidated)
   --------------------------------------- */
@font-face {
    font-family: "HCLTechRoobert";
    src: url("../HCLFonts/HCLTechRoobert-Light.otf") format("opentype");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "HCLTechRoobert";
    src: url("../HCLFonts/HCLTechRoobert-LightItalic.otf") format("opentype");
    font-weight: 300;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "HCLTechRoobert";
    src: url("../HCLFonts/HCLTechRoobert-Regular.otf") format("opentype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "HCLTechRoobert";
    src: url("../HCLFonts/HCLTechRoobert-RegularItalic.otf") format("opentype");
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "HCLTechRoobert";
    src: url("../HCLFonts/HCLTechRoobert-Medium.otf") format("opentype");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "HCLTechRoobert";
    src: url("../HCLFonts/HCLTechRoobert-MediumItalic.otf") format("opentype");
    font-weight: 500;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "HCLTechRoobert";
    src: url("../HCLFonts/HCLTechRoobert-Bold.otf") format("opentype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "HCLTechRoobert";
    src: url("../HCLFonts/HCLTechRoobert-BoldItalic.otf") format("opentype");
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "HCLTechRoobert";
    src: url("../HCLFonts/HCLTechRoobert-ExtraBold.otf") format("opentype");
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "HCLTechRoobert";
    src: url("../HCLFonts/HCLTechRoobert-ExtraBoldItalic.otf") format("opentype");
    font-weight: 800;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "HCLTechRoobert";
    src: url("../HCLFonts/HCLTechRoobert-Heavy.otf") format("opentype");
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "HCLTechRoobert";
    src: url("../HCLFonts/HCLTechRoobert-HeavyItalic.otf") format("opentype");
    font-weight: 900;
    font-style: italic;
    font-display: swap;
}

/* ---------------------------------------
   Base / Variables
   --------------------------------------- */
:root {
    /* Your palette */
    --hcl-bg-deep: #001024;
    --hcl-bg-blueish: #001024; /* rgb(0,16,36) */
    --hcl-blue: #033f5e;
    --hcl-accent: #5f1fbe;
    --hcl-accent-hover: #002452;
    --hcl-green: #304a8e;
    --hcl-yellow: #fdbb28;
    --hcl-red: #ff2944;
    --hcl-teal: #4bc0c0;
    --hcl-lime: #0e980e;
    --hcl-purple: #5f1fbe;
    --hcl-purple-subtle:#af96d5;
    --hcl-sky: #36a2eb;
    --hcl-orange: #ff9f40;
    /* Bootstrap theming via CSS variables */
    --bs-body-font-family: "HCLTechRoobert", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
    --bs-primary: #2575fc;
    --bs-primary-rgb: 37,117,252;
    --bs-secondary: #6a11cb;
    --bs-secondary-rgb: 106,17,203;
    --bs-link-color: var(--bs-primary);
}

/* Scope font to body instead of global * selector */
body {
    font-family: var(--bs-body-font-family);
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: #4BC3AF transparent;
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
    }
}

/* Chromium/WebKit scrollbars */
*::-webkit-scrollbar {
    width: 8px;
    background: transparent;
}

*::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 6px;
}

    *::-webkit-scrollbar-thumb:hover {
        background: #555;
    }

/* ---------------------------------------
   Layout & Utilities
   --------------------------------------- */
.bodyUserPreAuth {
    background-color: var(--hcl-accent);
    background-attachment: fixed;
}

.bg-blue {
    text-transform: uppercase;
    border-right: 2px solid #fff;
    border-left: 2px solid #fff;
    background: var(--hcl-blue);
}

.bg-notification {
    padding-top: 10px;
    padding-bottom: 10px;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    background-color: var(--hcl-bg-blueish);
    color: #fff;
    font-weight: 500;
    transition: background-color 0.3s ease, opacity 0.3s ease, text-shadow 0.3s ease;
    text-shadow: 0 0 20px #000;
}

    .bg-notification:hover {
        background: var(--hcl-accent-hover);
    }

.bg-blueish {
    background: var(--hcl-bg-blueish);
}

.bg-green {
    background: var(--hcl-green);
    transition: background-color 0.3s ease;
}

    .bg-green:hover {
        background: var(--hcl-bg-deep);
    }

.wrapper {
    display: flex;
    align-items: stretch;
}

/* ---------------------------------------
   Sidebar
   --------------------------------------- */
:root {
    --sidebar-width: 300px;
    --sidebar-bg: #200240;
    --sidebar-z: 1040;
    --sidebar-transition: 0.35s cubic-bezier(.4,0,.2,1);
}

#sidebar {
    width: var(--sidebar-width);
    height: 99vh;
    margin: 0.5vh 0 0.5vh 1vh;
    background: var(--sidebar-bg);
    color: #fff;
    position: fixed;
    border-radius: 20px;
    left: 0;
    z-index: var(--sidebar-z);
    box-shadow: 0 0 4px 4px rgba(0, 0, 0, 0.35);
    overflow:auto;
    max-height:98vh;
    scrollbar-gutter:stable both-edges;
    scrollbar-width:none;

}

.sidebar-scroll {
    height: 98vh;
    top: 1vh;
    overflow-y: hidden;
    transition: overflow 0.2s ease;
    border-radius: 20px;
    scrollbar-width: thin;
    scrollbar-color: #4BC3AF transparent;
}
/* Show scrollbar only on hover */
#sidebar:hover .sidebar-scroll {
    overflow-y: auto;
    scrollbar-width:thin;

}

#sidebarCollapse,
#CloseMenu {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--hcl-yellow);
    color: #fff;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    z-index: calc(var(--sidebar-z) + 2);
    visibility: visible;
}

/* Main content */
#renderbody {
    margin-left: var(--sidebar-width);
    transition: margin-left var(--sidebar-transition);
    min-height: 100vh;
    padding: 1vh;
    scrollbar-width: thin;
    scrollbar-color: #4BC3AF transparent;
}

/* Overlay for mobile/tablet */
#sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: 100;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

/* Collapsed sidebar (desktop) */
#sidebar.collapsed {
    left: -300px;
    box-shadow: none;
}

    #sidebar.collapsed ~ #renderbody {
        margin-left: 0;
    }

.sidebar-scroll {
    overflow-y: hidden;
}

/* When any collapse is open: enable scroll */
#sidebar.menu-open .sidebar-scroll {
    overflow-y: auto;
}
    /* Mobile/tablet behavior */
    @media (max-width: 991.98px) {
        #sidebar {
            left: -300px;
            box-shadow: none;
        }

            #sidebar.active {
                left: 0;
                box-shadow: 0 0 15px rgba(0,0,0,0.3);
            }

        #renderbody {
            margin-left: 0;
        }

        #sidebar.active ~ #sidebar-overlay {
            display: block;
            opacity: 1;
            pointer-events: auto;
        }

        #sidebar-overlay {
            display: block;
            opacity: 0;
            pointer-events: none;
        }
    }
    /* Sidebar nav links (Bootstrap compatible) */
    #sidebar .nav-item {
    width: 100%;
    display: block;
}

/* Visuals for collapsible section headers */
#sidebar .nav-link-header {
    color: #fff;
    padding: .5rem .75rem;
    margin:0.5rem 0.5rem;

    border-radius:50px;
    border:5px solid var(--hcl-purple);
/*    display: flex;
    justify-content: space-between;
    align-items: center;*/
    text-align:center;
}

    #sidebar .nav-link-header:hover,
    #sidebar .nav-link-header:focus {
        background: #5f1fbe; /* your accent */
        color: #fff;
    }

    /* Chevron indicator rotates when expanded */
    #sidebar .nav-link-header .chev {
        display: inline-block;
        width: 1em;
        text-align: center;
        transition: transform .2s ease;
    }

    #sidebar .nav-link-header[aria-expanded="true"] .chev {
        transform: rotate(90deg);
    }

    #sidebar .nav-link-header[aria-expanded="false"] .chev {
        transform: rotate(0deg);
    }

/* Nested list spacing */
#sidebar .collapse .nav {
    margin-top: .25rem;
}

/* Sidebar item link states */
#sidebar .nav-item > .nav-link {
    color: #fff;
    border-radius: 30px;
    padding: .5rem .75rem;
    margin: 0 0.5rem;
    transition: background .2s ease, color .2s ease;
}

    #sidebar .nav-item > .nav-link:hover {
        background: #9966ff;
        color: #fff;
    }
 
/* ---------------------------------------
   Typography & Links
   --------------------------------------- */
p {
    font-size: 1.1em;
    font-weight: 300;
    line-height: 1.7em;
    color: #999;
}

a,
a:hover,
a:focus {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

/* ---------------------------------------
   Status / Metric badges
   --------------------------------------- */
.tobeAuditedClass,
.totalRoomsClass,
.auditedClass,
.IMEAClass,
.NAClass,
.YellowClass,
.AsiaClass,
.EuropeClass,
.GCClass,
.sixThClass {
    font-weight: bold;
    transition: opacity 0.3s ease, text-shadow 0.3s ease;
    pointer-events: auto; /* fixed invalid value */
    color: #fff;
}

.tobeAuditedClass {
    background: var(--hcl-red);
    opacity: 1;
}

.totalRoomsClass {
    background: var(--hcl-sky);
    opacity: 1;
}

.auditedClass {
    background: var(--hcl-lime);
    opacity: 1;
}

.IMEAClass {
    background: var(--hcl-teal);
    opacity: 1;
}

.NAClass {
    background: var(--hcl-purple);
    opacity: 1;
}

.YellowClass {
    background: var(--hcl-purple);
    opacity: 1;
}

.AsiaClass {
    background: var(--hcl-sky);
    opacity: 1;
}

.EuropeClass {
    background: var(--hcl-lime);
    opacity: 1;
}

.GCClass {
    background: var(--hcl-red);
    opacity: 1;
}

.sixThClass {
    background: var(--hcl-orange);
    opacity: 1;
}

    .tobeAuditedClass:hover,
    .totalRoomsClass:hover,
    .auditedClass:hover,
    .IMEAClass:hover,
    .NAClass:hover,
    .YellowClass:hover,
    .AsiaClass:hover,
    .EuropeClass:hover,
    .GCClass:hover,
    .sixThClass:hover {
        opacity: 0.75;
        text-shadow: 0 0 10px #000;
    }

/* ---------------------------------------
   Forms (scoped to login section to avoid global conflicts)
   --------------------------------------- */
.login-section-wrapper {
    display: flex;
    flex-direction: column;
    padding: 68px 100px;
    background-color: #fff;
    box-shadow: 0 0 5px rgba(0,0,0,0.6);
}

@media (max-width: 991px) {
    .login-section-wrapper {
        padding-left: 50px;
        padding-right: 50px;
    }
}

@media (max-width: 575px) {
    .login-section-wrapper {
        padding-top: 20px;
        padding-bottom: 20px;
        min-height: 100vh;
    }
}

.login-wrapper {
    width: 100%;
    max-width: 100%;
    padding-top: 24px;
    padding-bottom: 24px;
}

@media (max-width: 575px) {
    .login-wrapper {
        width: 100%;
    }
}

.login-wrapper label {
    font-size: 14px;
    font-weight: 700;
    color: #b0adad;
}

/* Avoid global .form-control overrides—scope to login */
.login-wrapper .form-control {
    border: none;
    border-bottom: 5px solid #e7e7e7;
    border-radius: 0;
    margin: 5px;
    padding: 18px 10px;
    min-height: 40px;
    font-size: 18px;
    font-weight: 400;
    background-color: #fff;
}

    .login-wrapper .form-control:focus {
        outline: none;
        box-shadow: none;
        border-bottom-color: var(--bs-primary);
    }

    .login-wrapper .form-control::placeholder {
        color: #b0adad;
    }

.login-wrapper .login-btn {
    padding: 13px 20px;
    background-color: var(--hcl-yellow);
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 14px;
    border: 2px solid #000;
    border-radius: 10px;
}

    .login-wrapper .login-btn:hover {
        border-color: var(--hcl-yellow);
        background-color: #fff;
        color: var(--hcl-yellow);
    }

.login-wrapper a.forgot-password-link {
    color: #080808;
    font-size: 14px;
    text-decoration: underline;
    display: inline-block;
    margin-bottom: 54px;
}

@media (max-width: 575px) {
    .login-wrapper a.forgot-password-link {
        margin-bottom: 16px;
    }
}

.login-wrapper-footer-text {
    font-size: 16px;
    color: #000;
    margin-bottom: 0;
}

.login-title {
    font-size: 30px;
    color: #000;
    font-weight: 700;
    margin-bottom: 25px;
}

.login-img,
.login-lfPane {
    width: 100%;
    height: 75vh;
    object-fit: cover;
    object-position: left;
}

.brand-wrapper {
    position: absolute;
    top: 45%;
    width: 50%;
    margin: auto;
    padding: 7px 0 8px;
    text-align: center;
    opacity: 0.8;
}

    .brand-wrapper .logo {
        height: 100px;
    }

.brand-wrapper-1 {
    text-align: center;
}

    .brand-wrapper-1 .logo {
        height: 100px;
    }

/* ---------------------------------------
   Tables / DataTables
   --------------------------------------- */
#auditTable {
    font-size: 0.75rem;
}

#auditTable2_filter,
#auditTable4_filter {
    bottom: 0;
    padding: 12px;
}

    #auditTable2_filter label,
    #auditTable4_filter label {
        font-weight: 700;
        font-size: 14px;
    }

    #auditTable2_filter input[type="search"],
    #auditTable4_filter input[type="search"] {
        border: 2px solid #000;
        background-color: #fff;
        border-radius: 5px;
        font-weight: 700;
        width: 300px;
    }

#auditTable2 tr {
    font-size: 12px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

    #auditTable2 tr:hover {
        background: linear-gradient(228deg, rgba(75,195,175,1) 0%, rgba(44,143,198,1) 52%, rgba(95,30,190,1) 100%);
        color: #fff;
    }

#auditTable4_info {
    visibility: hidden;
}

.auditTable2_wrapper,
.auditTable4_wrapper {
    width: 100%;
}

/* Fixed typo in selector */
#auditTable2 a:hover {
    color: red;
}

#auditTable1 {
    font-size: 12px;
}

    #auditTable1 tr:hover {
        background-color: #b1b1b1;
        color: #fff;
        opacity: 0.9;
        transition: background-color 0.2s ease, color 0.2s ease;
    }

    #auditTable1 thead:hover {
        background-color: var(--hcl-bg-blueish);
        color: #fff;
        opacity: 0.9;
    }

    #auditTable1 td:hover {
        font-weight: 700;
        text-shadow: 0 0 10px #000;
    }

    #auditTable1 th:hover {
        text-shadow: 0 0 10px #fff;
    }

.dt-buttons {
    max-width: 500px;
    display: inline-block;
    text-align: right;
    margin-bottom: 2px;
}

.dt-search {
    display: inline-block;
    position: relative;
    padding: 5px;
    background-color: var(--hcl-purple-subtle);
    border-radius: 10px;
    color: #fff;
    right: 0;
}
    .dt-search label {
        color: #fff
    }
.dt-input {
    color: #fff;
}
.dt-input input[type="search"] {
    background-color: white;
    border: 4px solid #6a11cb;
    min-width: 200px;
    color: #fff;
}

/* DataTables buttons: use combined class selector */
.dt-buttons .buttons-excel.buttons-html5 {
    border: 0;
    padding: 12px;
    background-color: #6200ea;
    color: #fff;
    min-width: 100px;
    font-size: 14px;
}

/* Style the input */
#CaptureDate {
    padding: 10px;
    font-size: 16px;
    background-color: #f9f9f9;
    color: #333;
    border: 2px solid #007bff;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

    /* Style the calendar icon */
    #CaptureDate::-webkit-calendar-picker-indicator {
        background-color: #007bff;
        padding: 5px;
        border-radius: 50%;
        cursor: pointer;
    }

/* ---------------------------------------
   Page chrome
   --------------------------------------- */
.page-header {
    background: linear-gradient(90deg, #6a11cb, #2575fc);
    color: #fff;
    padding: 15px;
    text-align: center;
    font-size: 1.6rem;
    font-weight: 700;
    border-radius: 8px;
    margin-bottom: 20px;
}

.card {
    /* keep Bootstrap card styling, just lift the shadow slightly */
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

/* If you want colored card headers, scope to a class to avoid overriding all cards */
.card-header.hcl {
    background-color: var(--hcl-purple);
    color: #fff;
    font-weight: 700;
    padding: 12px 15px;
    width:100%;
    border-radius: 10px 10px 0 0;
}

/* Avoid global .form-control overrides—use Bootstrap defaults elsewhere */
.form-control {
    border-radius: 6px;
    border: 1px solid #ccc;
}

/* Bootstrap buttons via variables, plus optional scoped overrides */
.btn-primary {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
    color: #fff;
    border-radius: 6px;
    padding: 8px 20px;
    font-weight: 700;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

    .btn-primary:hover {
        background-color: var(--bs-secondary);
        border-color: var(--bs-secondary);
    }

.btn-secondary {
    background-color: var(--bs-secondary);
    border-color: var(--bs-secondary);
    color: #fff;
    border-radius: 6px;
    padding: 8px 20px;
    font-weight: 700;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

    .btn-secondary:hover {
        background-color: var(--bs-primary);
        border-color: var(--bs-primary);
    }

.tip-text {
    color: #d9534f;
    font-size: 0.9rem;
    font-style: italic;
}

/* Misc */
select {
    border: 2px solid rgba(11,97,162,1);
    border-radius: 2px;
}

/* Buttons with bottom border effect */
.buttonClass {
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease;
}

    .buttonClass:hover {
        border-bottom-color: var(--hcl-red);
    }

#SRFeedback {
    height: 600px;
}

.nav-item {
    width: 100%;
    display: block;
}

    .nav-item:hover {
        color: ActiveBorder;
        font-weight: 700;
    }



.table-wrapper {
    max-height: 100vh; /* or a fixed px value */
    overflow: auto; /* enables vertical (and horizontal) scroll */
}

    /* Sticky header within the scrollable container */
    .table-wrapper .sticky-thead th {
        position: sticky;
        top: 0;
        background: #e9f2ff;
        z-index: 3;
        box-shadow: 0 2px 0 rgba(0,0,0,0.06);
    }


/*


LoadingScreen

    */


