﻿/* site-v1.0.1.css - vFINAL */
/* General body font (if you want Lato globally, from old SideNav.css) */
body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    font-weight: 400;
}

.CheckinWarning, .cancelled {
    color: red;
    font-weight: bold;
}
.cancelled{
    text-decoration: line-through;
    background-color: #CCCCCC !important;
}
.CheckinComplete {
    color: green;
    font-weight: bold;
}
.form-group input[type="checkbox"] {
    height: 16px;
    width: 16px;
}
.timezone-note {
    display: block;
    width: 100%;
    font-size: 80%;
    font-style: italic;
    color: #6c757d;
    text-align: right;
}

.nowrap {
    white-space: nowrap;
}

/* REMOVED: a.navbar-brand - styling is now handled by .sidebar-nav > .sidebar-brand in custom-sidebar.css */

input:invalid {
    border: 2px solid red;
}
div.invalid {
    color: red;
}
:out-of-range {
    border: 2px dashed red;
}

/* Footer Styles */
html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}
@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}
.border-top { border-top: 1px solid #e5e5e5; }
.border-bottom { border-bottom: 1px solid #e5e5e5; }
.box-shadow { box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05); }
button.accept-policy { font-size: 1rem; line-height: inherit; }

.footer {
    width: 100%;
    line-height: 60px;
    background-color: #f8f9fa;
    border-top: 1px solid #e5e5e5;
    color: #6c757d;
    padding-left: 15px;
    margin-top: 15px;
}
.footer a {
    color: #007bff; /* Default footer link color */
}
.footer a:hover {
    color: #0056b3;
}


/* --- DataTables Sorting Icons - Triangles --- */
table.dataTable thead .sorting,
table.dataTable thead .sorting_asc,
table.dataTable thead .sorting_desc,
table.dataTable thead .sorting_asc_disabled,
table.dataTable thead .sorting_desc_disabled {
    cursor: pointer;
    position: relative;
    padding-right: 20px; /* Adjust space for a single triangle icon */
}

/* Hide default DataTables 1.10.x background image icons */
table.dataTable thead .sorting { background-image: none !important; }
table.dataTable thead .sorting_asc { background-image: none !important; }
table.dataTable thead .sorting_desc { background-image: none !important; }

/* Common style for the pseudo-element that will hold the triangle */
table.dataTable thead .sorting:after, /* Use :after for all states */
table.dataTable thead .sorting_asc:after,
table.dataTable thead .sorting_desc:after,
table.dataTable thead .sorting_asc_disabled:after,
table.dataTable thead .sorting_desc_disabled:after {
    position: absolute;
    top: 50%; /* Align vertically */
    margin-top: -0.5em; /* Adjust for half of the icon's effective height */
    right: 8px; /* Position from the right */
    display: block;
    opacity: 0.4; /* Default subtle opacity for non-active sortable columns */
    font-size: 0.8em; /* Adjust triangle size */
    line-height: 1;
}

/* Remove the :before pseudo-element if it was used previously */
table.dataTable thead .sorting:before,
table.dataTable thead .sorting_asc:before,
table.dataTable thead .sorting_desc:before {
    display: none !important;
}

/* Default sortable icon (very faint up/down triangles, or just one neutral) */
/* Option 1: Show both faint triangles for unsorted */
/*
table.dataTable thead .sorting:before {
    content: "\25B2"; // UP Black Small Triangle
    opacity: 0.2;
    bottom: 0.9em; // Adjust if using two
}
table.dataTable thead .sorting:after {
    content: "\25BC"; // DOWN Black Small Triangle
    opacity: 0.2;
    bottom: 0.3em; // Adjust if using two
}
*/
/* Option 2: Show a single neutral/faint indicator for unsorted (e.g., just down or a different char) */
table.dataTable thead .sorting:after {
    content: "\25BC"; /* Default DOWN Black Small Triangle, faint */
    opacity: 0.25;
}


/* Styles for ASC sorting */
table.dataTable thead .sorting_asc:after {
    content: "\25B2"; /* UP Black Small Triangle */
    opacity: 1;
    color: #007bff; /* Active sort color (Bootstrap primary) */
}

/* Styles for DESC sorting */
table.dataTable thead .sorting_desc:after {
    content: "\25BC"; /* DOWN Black Small Triangle */
    opacity: 1;
    color: #007bff; /* Active sort color */
}

/* Disabled sorting icons */
table.dataTable thead .sorting_asc_disabled:after,
table.dataTable thead .sorting_desc_disabled:after {
    opacity: 0.2;
    color: #999; /* Dim color for disabled */
}
/* --- END DataTables Sorting Icons - Triangles --- */

.dt-nowrap { white-space: nowrap; }

.logo { /* General logo class - review if still needed broadly or if sidebar specific is enough */
    width: 120px;
    margin-right: 40px;
}

/* Helpers from your file */
.flex-center-gap { display: flex; align-items: center; gap: 2px; }
.btn-replace { background-color: #C2D4DD; }
.btn-replace:hover { background-color: #A8BFCB; }
.no-pointer { pointer-events: none; opacity: 0.6; }
:root { --space-0: 0px; --space-1: 4px; --space-2: 8px; --space-3: 16px; --space-4: 24px; --space-5: 32px; }
.m-0 { margin: var(--space-0); } .m-1 { margin: var(--space-1); } .m-2 { margin: var(--space-2); } .m-3 { margin: var(--space-3); } .m-4 { margin: var(--space-4); } .m-5 { margin: var(--space-5); }
.mt-1 { margin-top: var(--space-1); } .mb-1 { margin-bottom: var(--space-1); } .ml-1 { margin-left: var(--space-1); } .mr-1 { margin-right: var(--space-1); }
.mx-1 { margin-left: var(--space-1); margin-right: var(--space-1); } .my-1 { margin-top: var(--space-1); margin-bottom: var(--space-1); }
.p-0 { padding: var(--space-0); } .p-1 { padding: var(--space-1); } .p-2 { padding: var(--space-2); } .p-3 { padding: var(--space-3); } .p-4 { padding: var(--space-4); } .p-5 { padding: var(--space-5); }
.pt-1 { padding-top: var(--space-1); } .pb-1 { padding-bottom: var(--space-1); } .pl-1 { padding-left: var(--space-1); } .pr-1 { padding-right: var(--space-1); }
.px-1 { padding-left: var(--space-1); padding-right: var(--space-1); } .py-1 { padding-top: var(--space-1); padding-bottom: var(--space-1); }


/* REMOVE Old .ra-not-production .navbar rule if it exists here.
   The styles for .ra-not-production are now in custom-sidebar.css */


/* === DARK MODE THEME === */
@media (prefers-color-scheme: dark) {
    #sidebar-wrapper .sidebar-nav > .sidebar-brand,
    .sidebar-nav > .sidebar-brand {
        background-color: lightseagreen !important;
    }


    body {
        background-color: #212124;
        color: #e0e0e0; /* Default light text for the body in dark mode */
    }

    .footer {
        background-color: #2c2c2c !important;
        border-top-color: #3a3a3a !important;
        color: #c5c5c5 !important;
    }
    .footer a {
        color: #6cbaff !important;
    }
    .footer a:hover {
        color: #8ccfff !important;
    }

    .form-control[disabled], .form-control[readonly], fieldset[disabled] .form-control {
        background-color: #333333;
        opacity: 1;
    }

    .cmw-card {
        background: #000000 !important;
    }

    .list-group-item {
        background-color: #000000 !important;
    }

    #sidebar-wrapper {
        background-color: #3a3a3a !important;
        border-right-color: #4a4a4a !important;
    }
    #sidebar-wrapper .sidebar-nav > .sidebar-brand {
        border-bottom-color: #4a4a4a !important;
    }
    #sidebar-wrapper .sidebar-nav > .sidebar-brand a,
    #sidebar-wrapper .sidebar-nav li a {
        color: #dadada !important;
        border-bottom-color: #4a4a4a !important;
    }
    #sidebar-wrapper .sidebar-nav li:last-child a {
        border-bottom: none !important;
    }
    #sidebar-wrapper .sidebar-nav li a:hover,
    #sidebar-wrapper .sidebar-nav li.open > a {
        color: #ffffff !important;
        background-color: #4f4f4f !important;
    }
    #sidebar-wrapper .sidebar-nav li.dropdown > .dropdown-menu {
        background-color: #404040 !important; /* Submenu background */
    }
    #sidebar-wrapper .sidebar-nav li.dropdown > .dropdown-menu > li > a {
        color: #b0b0b0 !important;
        border-bottom: none !important;
    }
    #sidebar-wrapper .sidebar-nav li.dropdown > .dropdown-menu > li > a:hover {
        color: #ffffff !important;
        background-color: #5a5a5a !important;
    }
    #sidebar-wrapper .sidebar-nav #logoutFormSidebar button,
    #sidebar-wrapper .sidebar-nav .manage-account-link { /* For "Hello User!" link */
        color: #dadada !important;
    }
    #sidebar-wrapper .sidebar-nav #logoutFormSidebar button:hover,
    #sidebar-wrapper .sidebar-nav .manage-account-link:hover {
        color: #ffffff !important;
        background-color: #4f4f4f !important;
    }

    #sidebar-wrapper .sidebar-nav li.nav-item.active > a.nav-link,
    #sidebar-wrapper .sidebar-nav li.nav-item.dropdown.active > a.dropdown-toggle {
        color: #82cfff !important; /* Brighter, distinct active color for dark mode */
        /* background-color: #454545 !important; /* Optional */
    }
    #sidebar-wrapper .sidebar-nav .dropdown-menu a.dropdown-item.active {
        color: #9ad4ff !important;
        background-color: #525252 !important; /* Optional */
    }
    
    .page-top-bar {
        background-color: #2c2c2c !important;
        border-bottom-color: #3a3a3a !important;
        color: #b0b0b0 !important; /* Default text color for this bar e.g. "You are currently..." */
    }
    .page-top-bar .hamburger-btn {
        color: #dadada !important;
    }
    .page-top-bar .hamburger-btn:hover,
    .page-top-bar .hamburger-btn:focus {
        color: #ffffff !important;
    }
    /* The text "You are currently working with:" inherits from .page-top-bar color */
    .page-top-bar .company-selector-dropdown-actual .dropdown-toggle {
        color: #dadada !important; /* Company name */
    }
    .page-top-bar .company-selector-dropdown-actual .dropdown-toggle:hover,
    .page-top-bar .company-selector-dropdown-actual .dropdown-toggle:focus {
        color: #ffffff !important;
    }
    .page-top-bar .company-selector-dropdown-actual .dropdown-menu {
        background-color: #3a3a3a !important;
        border: 1px solid #4a4a4a !important;
        box-shadow: 0 3px 6px rgba(0,0,0,0.25) !important;
        min-width: 240px; /* Consistent min-width */
        padding-top: 5px;
        padding-bottom: 5px;
    }
    .page-top-bar .company-selector-dropdown-actual .dropdown-menu > li > a,
    .page-top-bar .company-selector-dropdown-actual .dropdown-menu > a.dropdown-item {
        color: #dadada !important;
        padding: 8px 15px;
    }
    .page-top-bar .company-selector-dropdown-actual .dropdown-menu > li > a:hover,
    .page-top-bar .company-selector-dropdown-actual .dropdown-menu > a.dropdown-item:hover {
        color: #ffffff !important;
        background-color: #4f4f4f !important;
    }

    .mainbody {
        background-color: #303030; /* Your existing dark background */
        color: #e0e0e0;
    }
    .mainbody h1, .mainbody h2, .mainbody h3, .mainbody h4, .mainbody h5, .mainbody h6 {
        color: #f5f5f5;
    }
    .mainbody a:not(.btn) {
        color: #6cbaff;
    }
    .mainbody a:not(.btn):hover {
        color: #8ccfff;
    }
    .mainbody .text-dark { color: #e0e0e0 !important; } /* Override Bootstrap's .text-dark */

    /* Default sortable icon in dark mode */
    table.dataTable thead .sorting:after {
        opacity: 0.25 !important;
        color: #888 !important; /* Dark mode subtle color */
    }

    /* Active ASC sorting in dark mode */
    table.dataTable thead .sorting_asc:after {
        opacity: 1 !important;
        color: #6cbaff !important; /* Lighter blue for dark mode active sort */
    }

    /* Active DESC sorting in dark mode */
    table.dataTable thead .sorting_desc:after {
        opacity: 1 !important;
        color: #6cbaff !important; /* Lighter blue for dark mode active sort */
    }

    /* Disabled sorting icons in dark mode */
    table.dataTable thead .sorting_asc_disabled:after,
    table.dataTable thead .sorting_desc_disabled:after {
        opacity: 0.2 !important;
        color: #666 !important;
    }

    /* --- DataTables Dark Mode --- */

    .sorting_1 {
        background-color: inherit !important;
    }

    .table, table.dataTable { color: #e0e0e0 !important; background-color: #3a3a3a; }
    table.dataTable thead th, table.dataTable thead td { color: #f5f5f5 !important; border-bottom: 1px solid #4a4a4a !important; }
    table.dataTable tbody tr { border-color: #4a4a4a !important; }
    table.dataTable tbody th, table.dataTable tbody td { border-top: 1px solid #4a4a4a !important; }
    .table-striped tbody tr:nth-of-type(odd) { background-color: #505050 !important; }
    .table-striped tbody tr:nth-of-type(even) { background-color: #3a3a3a !important; }
    .table-striped > tbody > tr.cancelled { background-color: #8B4343 !important; color: white !important; }


    .table-hover tbody tr:hover { background-color: #000000 !important; color: #ffffff !important; }
    .dataTables_wrapper .dataTables_processing { background-color: #2c2c2c; color: #e0e0e0; border: 1px solid #4a4a4a; }

    .dataTables_wrapper .dataTables_length label,
    .dataTables_wrapper .dataTables_filter label,
    .dataTables_wrapper .dataTables_info { color: #b0b0b0 !important; }
    .dataTables_wrapper .dataTables_length select,
    .dataTables_wrapper .dataTables_filter input[type="search"] { background-color: #4a4a4a !important; color: #dadada !important; border: 1px solid #5a5a5a !important; }
    .dataTables_wrapper .dataTables_filter input[type="search"]::placeholder { color: #888 !important; }

    .dataTables_wrapper .dataTables_paginate .paginate_button { color: #dadada !important; background: #4a4a4a !important; border: 1px solid #5a5a5a !important; box-shadow: none !important; }
    .dataTables_wrapper .dataTables_paginate .paginate_button:hover { color: #ffffff !important; background: #5a5a5a !important; border-color: #6a6a6a !important; }
    .dataTables_wrapper .dataTables_paginate .paginate_button.current,
    .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover { color: #ffffff !important; background: #007bff !important; border-color: #007bff !important; }
    .dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
    .dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover,
    .dataTables_wrapper .dataTables_paginate .paginate_button.disabled:active { color: #888 !important; background: #404040 !important; border-color: #505050 !important; }

    /* General form controls in dark mode */
    .form-control { background-color: #4a4a4a; color: #dadada; border: 1px solid #5a5a5a; }
    .form-control:focus { background-color: #4a4a4a; color: #dadada; border-color: #007bff; box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25); }
    .form-control::placeholder { color: #888; }
    label { color: #c5c5c5; }

    /* Buttons */
    .btn-default, .btn-secondary { color: #dadada; background-color: #5a5a5a; border-color: #6a6a6a; }
    .btn-default:hover, .btn-secondary:hover { color: #ffffff; background-color: #6a6a6a; border-color: #7a7a7a; }
    .btn-link { color: #6cbaff; } .btn-link:hover { color: #8ccfff; }
    .btn-primary { color: #fff; background-color: #007bff; border-color: #007bff; }
    .btn-primary:hover { color: #fff; background-color: #0069d9; border-color: #0062cc; }
    /* Add other .btn-success, .btn-danger etc. as needed */

    #cookieConsent.alert-info { background-color: #3a3a3a; color: #dadada; border-color: #4a4a4a; }
    #cookieConsent.alert-info a { color: #6cbaff; }
    #cookieConsent.alert-info .accept-policy.close { color: #dadada; opacity: 0.7; }
    #cookieConsent.alert-info .accept-policy.close:hover { color: #ffffff; opacity: 1; }

    /* Sidebar Profile Section - Dark Mode */
    .sidebar-profile,
    .sidebar-nav > .sidebar-brand{
        background-color: #2c2c2c !important; /* Darker than sidebar for separation */
        border-top-color: #3a3a3a !important;
    }
    .sidebar-profile .profile-toggle {
        color: #dadada !important;
    }
    .profile-avatar { /* Assuming default blue avatar in light theme */
        background-color: #007bff !important; /* Keep it noticeable or choose a dark-theme accent */
        color: white !important;
    }
    /* Alternative: Dark theme avatar */
    .profile-avatar {
        background-color: #5a5a5a !important;
        color: #dadada !important;
    }
    .profile-role {
        color: #888 !important; /* Dimmer role text */
    }
    .profile-caret {
        color: #aaa !important;
    }

    .sidebar-profile .profile-dropdown-menu {
        background-color: #3a3a3a !important;
        border-color: #4a4a4a !important;
        box-shadow: 0 -2px 5px rgba(0,0,0,0.3) !important;
    }
    .profile-dropdown-menu .dropdown-item,
    .profile-dropdown-menu .btn-logout {
        color: #dadada !important;
    }
    .profile-dropdown-menu .dropdown-item:hover,
    .profile-dropdown-menu .btn-logout:hover {
        background-color: #4f4f4f !important;
        color: #ffffff !important;
    }
    .profile-dropdown-menu .dropdown-item .glyphicon {
        opacity: 0.7;
    }
}
/* --- END DARK MODE THEME --- */