:root {
    --ts-color-primary: #262262;
    --ts-color-primary-dark: #6F6B96;
    --ts-color-primary-darker: #DE6949;
}

.timesheet-first-column {
    position: sticky; 
    left: 0; 
    background: white; 
    z-index: 1;
}

.timesheet-last-column {
    position: sticky; 
    right: 0; 
    background: white; 
    z-index: 1;
}

.text-right {
    text-align: right;
}

table.table-timesheet {
    table-layout: fixed;
    position: relative;
}

@media screen and (min-height:650px) {
    .timesheet {
        overflow-x: auto;
        overflow-y: auto;
        max-height: calc(100vh - 360px); /*Adjust the height as needed */
    }
    table.table-timesheet thead th {
        position: sticky;
        top: -3px;
        z-index: 9999;
        background-color: white;
    }
}

table.table-timesheet thead th {
    text-wrap: wrap;
    width: 100px;
}
table.table-timesheet .timesheet-first-column {
    text-wrap: wrap;
    width: 100px;
}
table.table-timesheet tbody tr:last-child td[data-date="total"],
table.table-timesheet tbody tr:last-child td[id="total_total"],
table.table-timesheet tbody tr:last-child td.remarks_total,
table.table-timesheet tbody tr:last-child td.timesheet-first-column {
    border-top: 5px solid #000;
    font-weight: bold;
    position: relative;
}
table.table-timesheet tbody tr td.week_total {
    border-top: 2px solid #000;
    font-weight: bold;
    position: relative;
}
table.table-timesheet tbody tr:last-child td:first-child,
table.table-timesheet tbody tr:last-child td:last-child,
table.table-timesheet tbody tr td:first-child,
table.table-timesheet tbody tr td:last-child {
    position: sticky !important;
}
table.table-timesheet tbody tr:last-child td::before,
table.table-timesheet tbody tr td.week_total::before {
    content: '';
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    position: absolute;
    background-color: rgba(0,0,0,0.04);
}

body .text-primary,
body .text-body:hover {
    color: var(--ts-color-primary) !important;
    transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out;
}
body #page-topbar {
    background-color: var(--ts-color-primary-darker);
}
body #page-topbar .app-search {
    display: none !important;
}
body .topnav .navbar-nav .nav-link:focus,
body .topnav .navbar-nav .nav-link:hover,
body .topnav .navbar-nav .nav-item .nav-link.active {
    color: var(--ts-color-primary);
}
body .btn-primary {
    background-color: var(--ts-color-primary);
    border-color: var(--ts-color-primary);
}
body .btn-primary:hover {
    background-color: var(--ts-color-primary-dark);
    border-color: var(--ts-color-primary-dark);
}
body .active>.page-link,
body .page-link.active {
    background-color: var(--ts-color-primary);
    border-color: var(--ts-color-primary);
}
body .page-link,
.page-link:focus {
    color: var(--ts-color-primary);
}
body .form-check-input:checked {
    background-color: var(--ts-color-primary);
    border-color: var(--ts-color-primary);
}
body.authentication-bg {
    background: url('/assets/images/employee-bg.jpg') center center no-repeat;
    background-size: cover;
    position: relative;
}
body.authentication-bg::before {
    content: '';
    background-color: rgba(0,0,0,0.5);
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    position: fixed;
}
.toast, #toast-container > div {
    opacity: 1!important;
 }