@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
   
    .w-md-25 {
        width: 25% !important;
    }

    .w-md-50 {
        width: 50% !important;
    }

    .w-md-75 {
        width: 75% !important;
    }

    .w-md-100 {
        width: 100% !important;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .w-lg-25 {
        width: 25% !important;
    }

    .w-lg-50 {
        width: 50% !important;
    }

    .w-lg-75 {
        width: 75% !important;
    }

    .w-lg-100 {
        width: 100% !important;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .w-xl-25 {
        width: 25% !important;
    }

    .w-xl-50 {
        width: 50% !important;
    }

    .w-xl-75 {
        width: 75% !important;
    }

    .w-xl-100 {
        width: 100% !important;
    }
}

/* Base font sizes (mobile first) */
.fs-xs {
    font-size: 0.75rem !important;
}
/* 12px */
.fs-sm {
    font-size: 0.875rem !important;
}
/* 14px */
.fs-md {
    font-size: 1rem !important;
}
/* 16px */
.fs-lg {
    font-size: 1.125rem !important;
}
/* 18px */
.fs-xl {
    font-size: 1.25rem !important;
}
/* 20px */
.fs-xxl {
    font-size: 1.5rem !important;
}
/* 24px */

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    .fs-md-xs {
        font-size: 0.75rem !important;
    }

    .fs-md-sm {
        font-size: 0.875rem !important;
    }

    .fs-md-md {
        font-size: 1rem !important;
    }

    .fs-md-lg {
        font-size: 1.125rem !important;
    }

    .fs-md-xl {
        font-size: 1.25rem !important;
    }

    .fs-md-xxl {
        font-size: 1.5rem !important;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .fs-lg-xs {
        font-size: 0.75rem !important;
    }

    .fs-lg-sm {
        font-size: 0.875rem !important;
    }

    .fs-lg-md {
        font-size: 1rem !important;
    }

    .fs-lg-lg {
        font-size: 1.125rem !important;
    }

    .fs-lg-xl {
        font-size: 1.25rem !important;
    }

    .fs-lg-xxl {
        font-size: 1.5rem !important;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .fs-xl-xs {
        font-size: 0.75rem !important;
    }

    .fs-xl-sm {
        font-size: 0.875rem !important;
    }

    .fs-xl-md {
        font-size: 1rem !important;
    }

    .fs-xl-lg {
        font-size: 1.125rem !important;
    }

    .fs-xl-xl {
        font-size: 1.25rem !important;
    }

    .fs-xl-xxl {
        font-size: 1.5rem !important;
    }
}


.sticky-header {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: -18px;
    z-index: 1;
}

.bg-yellow {
    background-color: yellow !important;
}

.bg-babyblue {
    background-color: #89CFF0 !important;
}

.text-babyblue {
    color: #89CFF0 !important;
}

.input-rounded {
    border-radius: 5px;
    border: 1px solid #6c757d;
    text-align: center;
}

.hover-gray {
    position: relative; /* Ensure proper positioning */
    z-index: 1; /* Set z-index to ensure it's above other elements */
}

    .hover-gray:hover {
        background-color: lightgrey; /* Hover background color */
        z-index: 2; /* Increase z-index to ensure it's above other elements */
    }

/* Above SfDialog modal overlay (typically ~10k+), SfSpinner overlays (~1e5), and Bootstrap modals */
.e-toast-container {
    z-index: 200100 !important;
}

.custom-elipsis {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.employee-absence-request-comment {
    margin-bottom: 0;
    word-break: break-word;
}

.employee-absence-request-comment-collapsed {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
}

.employee-absence-request-comment-expanded {
    white-space: pre-wrap;
}

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

a, .btn-link {
    color: #0366d6;
}

.top-row {
    height: 3.5rem;
    display: flex;
    align-items: center;
    flex-shrink: 0; /* Prevents top row from shrinking */
}

.main {
    flex: 1;
}

    .main .top-row {
        background-color: #f7f7f7;
        border-bottom: 1px solid #d6d5d5;
        justify-content: flex-end;
    }

        .main .top-row > a {
            margin-left: 1.5rem;
        }

.content {
    padding-top: 1.1rem;
}

.navbar-toggler {
    background-color: rgba(255, 255, 255, 0.1);
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

.is-textbox {
    font-size: 15px;
}



.is-label {
    font-size: 15px;
    font-style: italic;
}

.is-label-no-wrap {
    font-size: 15px;
    font-style: italic;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: inherit;
}

.is-label-no-wrap-vanilla {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: inherit;
}

.is-button {
    font-size: 15px;
    height: 32px;
    border-radius: 3px;
}

.is-button-25 {
    font-size: 15px;
    height: 25px;
    border-radius: 3px;
}

.is-checkbox {
    width: 17px;
    height: 17px;
    min-width: 17px;
    min-height: 17px;
    cursor: pointer;
    accent-color: #007bff !important;
}

.is-label-explanation {
    font-size: 14px;
    font-style: italic;
}

.info-button-color {
    color: #007bff;
}

.is-div-label-vertical-align {
    padding: 5px 0px 0px 15px;
}

.is-popup-header {
    font-weight: bold;
    font-style: italic;
}

tr {
    font-size: 15px;
    padding: 0.25rem 0.75rem 0.25rem 0.75rem;
    vertical-align: middle;
}

.table td {
    padding: 0.5rem 0.75rem 0.25rem 0.75rem;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

table tbody tr:hover {
    background-color: #d4d1cf;
    color: #000000;
    /*text-shadow: 1px 2px #000000;*/
    box-shadow: 0px 0px 10px #ABAFB1;
    -webkit-box-shadow: 0px 0px 10px #edeae8;
    -moz-box-shadow: 0px 0px 10px #ABAFB1;
}

.is-div-time-entry-box {
    width: 130px;
}

.is-div-time-entry-box-header {
    text-align: center;
    padding-left: 2px;
    padding-right: 2px;
    font-size: 0.9rem;
    width: 130px;
    padding-bottom: 10px;
    padding-top: 10px;
}

.is-menu-item {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    display: inline-block;
}

.navbar-subitem-title, .navbar-item-title {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    width: 100%;
    padding-left: 5px;
}

@media ( min-width: 1200px ) {
    .is-div-time-entry-box {
        padding-left: 5px;
        padding-right: 5px;
    }

    .is-div-time-entry-box-header {
        width: 108px;
    }
}

@media ( min-width: 1440px ) {
    .is-div-time-entry-box {
        padding-left: 15px;
        padding-right: 15px;
    }

    .is-div-time-entry-box-header {
        width: 130px;
    }
}

@media (max-width: 950px) {
    #logoBigScreen .navbar-brand-name {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .main .top-row {
        display: none;
    }

    .navbar-brand-name {
        filter: brightness(0) invert(1);
    }

    .sidebar.collapsed {
        overflow-y: hidden !important;
    }

    #main-content {
        width: 100% !important;
    }

    .sidebar.collapsed {
        min-width: 100% !important;
        max-width: 100% !important;
        height: 56px !important;
    }

    .sidebar:not(.collapsed) {
        min-width: 100% !important;
        max-width: 100% !important;
        height: 100vh !important;
    }

    .sidebar:hover .nav-item {
        transition-delay :1s;
        min-width: 100% !important;
        max-width: 100% !important;
    }

    .app-container {
        flex-direction: column;
    }

    .sidebar.collapsed #mobileSearchBar {
        visibility: hidden;
    }
}

@media (min-width: 768px) {
    .sidebar-tabs + #navbarMenuItems {
        height: calc(100vh - 3.5rem - 47px); /* 47px is the height of the tabs */
    }
    #logoMobileScreen {
        display: none;
    }
    /* Hover styles */
    .sidebar.collapsed:hover {
        transition-delay: 1s;
        min-width: 292.3px !important;
        max-width: 292.3px !important;
    }

    .sidebar:not(.collapsed) {
        transition: none !important;
        min-width: 292.3px !important;
        max-width: 292.3px !important;
    }

    /* PBI 6274 — no-flash dock seed. Before the Blazor circuit takes over and removes `collapsed`,
       the prerendered `.sidebar.collapsed` would render at rail width (90px) and then jump to dock
       width (292.3px), causing a visible flicker on F5 / new login. The seed marker `html.sidebar-docked`
       (set synchronously in _Host.cshtml <head> when localStorage says docked) forces dock width on the
       very first frame. Once Blazor removes `collapsed`, this selector no longer matches and is inert.
       The seed marker is added only at innerWidth >= 992, so this never triggers on tablet (768–991). */
    html.sidebar-docked .sidebar.collapsed {
        min-width: 292.3px !important;
        max-width: 292.3px !important;
        transition: none !important;
    }
        .sidebar:not(.collapsed) .nav-item {
            transition: none !important;
        }
        .sidebar:not(.collapsed) .nav-subitem {
            transition: none !important;
        }

    .sidebar.collapsed {
        min-width: 90px;
        max-width: 90px;
    }

    .sidebar.collapsed:hover .nav-item {
        transition-delay:1s;
        min-width: 280px !important;
        max-width: 280px !important;
    }

    .sidebar .nav-item {
        transition: min-width 0s, max-width 0s;
        min-width: 83px;
        max-width: 83px;
    }

    .sidebar .nav-subitem {
        padding-left: 0;
        transition: min-width 0s, max-width 0s , padding-left 0s;
        min-width: 50px;
        max-width: 50px;
    }

    .sidebar:hover .nav-subitem {
        transition-delay:1s;
        min-width: 250px !important;
        max-width: 250px !important;
    }

    .sidebar:not(.collapsed) .nav-item {
        min-width: 280px !important;
        max-width: 280px !important;
    }

    .sidebar:not(.collapsed) .nav-subitem {
        min-width: 250px !important;
        max-width: 250px !important;
    }
}

#navbarMenuItems {
    overflow-y: auto;
    overflow-x: hidden;
    height: calc(100vh - 3.5rem);
}

/* Mobile specific styles */
@media (max-width: 767.98px) {
    .sidebar-tabs {
        margin-top: 0;
        /*position: absolute;
        top: 56px;*/ /* Position below the navbar */
        width: 100%;
        opacity: 1;
        visibility: visible;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }
    
    .sidebar.collapsed .sidebar-tabs {
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        height: 0;
        overflow: hidden;
    }
    
    .sidebar:not(.collapsed) .sidebar-tabs {
        display: flex;
        opacity: 1;
        visibility: visible;
    }
    
    #navbarMenuItems {
        flex: 1;
    }
    
    .sidebar:not(.collapsed) {
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
    }
    
    .sidebar:not(.collapsed) #navbarMenuItems {
        height: auto !important;
        max-height: none !important;
        flex: 1 !important;
        overflow-y: auto !important;
    }
}

/* When hovering over collapsed sidebar, show all tabs */
.sidebar.collapsed:hover .sidebar-tabs {
    flex-direction: row;
}

/* Kiosk device modal checkbox styling */
.kiosk-device-option-checkbox {
    accent-color: #007bff;
    width: 1.25em;
    height: 1.25em;
}

.kiosk-device-option-checkbox:checked {
    background-color: #007bff;
    border-color: #007bff;
}

.kiosk-device-option-checkbox:focus {
    border-color: #66b0ff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.sidebar.collapsed:hover .sidebar-tab:not(.active) {
    display: block !important;
}

.sidebar.collapsed:hover .sidebar-tab.active {
    border-bottom: 2px solid #007bff;
    border-left: none;
}

/* Fix for sidebar hover behavior */
.sidebar.collapsed:hover .nav-item {
    display: block;
}

.sidebar.collapsed:hover .nav-subitem {
    display: block;
}

.sidebar.collapsed:hover #navbarMenuItems {
    display: block !important;
}

.sidebar.collapsed:hover .sidebar-tabs {
    flex-direction: row;
    display: flex !important;
}

.sidebar.collapsed:hover .sidebar-tab {
    display: block !important;
}

/* Multi-column dropdown template styles */
.template-dropdown .e-list-item {
    padding: 0 !important;
}

.template-dropdown .e-list-parent {
    padding: 0 !important;
}

.template-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
}

.template-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    padding: 4px 4px;
    border-bottom: 1px solid #e6e6e6;
    width: 100%;
    min-height: 28px;
}

.template-header-row {
    background-color: #f8f9fa !important;
    font-weight: bold;
    border-bottom: 2px solid #dee2e6 !important;
    padding: 6px 4px;
}

.template-col {
    flex: none !important;
    padding: 4px 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
}

.template-col-description {
    width: 250px !important;
    text-align: left;
}

.template-col-code {
    width: 100px !important;
    text-align: center;
}

.template-col-price {
    width: 120px !important;
    text-align: right;
}

.template-col-vat {
    width: 100px !important;
    text-align: right;
}

.template-dropdown .e-list-item:hover .template-row {
    background-color: #f1f3f4 !important;
}

.template-dropdown .e-list-item.e-active .template-row {
    background-color: #e3f2fd !important;
}

/* Force the popup content to respect our layout */
.template-dropdown .e-content {
    padding: 0 !important;
}

.template-dropdown .e-list-parent {
    padding: 0 !important;
}

/* Ensure the header stays on top */
.template-dropdown .e-list-item:first-child {
    position: sticky;
    top: 0;
    z-index: 10;
}

/* Syncfusion dropdown popups: ensure list items are visible (dark text on light bg) when popup is outside modal */
.e-popup .e-dropdownbase .e-list-item,
.e-popup .e-list-item {
    color: #212529 !important;
    background-color: #fff !important;
}
.e-popup .e-dropdownbase .e-list-item:hover,
.e-popup .e-list-item:hover {
    background-color: #f8f9fa !important;
    color: #212529 !important;
}
.e-popup .e-dropdownbase .e-list-item.e-active,
.e-popup .e-list-item.e-active {
    color: #212529 !important;
}
.e-popup.e-ddl,
.e-popup .e-list-parent {
    background-color: #fff !important;
    color: #212529 !important;
}

.sidebar .nav-item {
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
}

.sidebar .nav-subitem {
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
}

.sidebar:not(.collapsed) .nav-subitem {
    padding-left: 0.75rem;
}

.sidebar:hover .nav-subitem {
    transition-delay: 1s;
    padding-left: 0.75rem;
}

#main-content {
    flex: 1;
    overflow-x: auto;
}

.app-container {
    display: flex;
    width: 100vw;
    height: 100vh;
}

.main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0; /* Prevents content from overflowing */
    overflow-x: hidden;
}
/* Optional: Add smooth transitions for child elements */
.nav-item {
    transition: opacity 0.2s ease;
    white-space: nowrap;
}

.sidebar {
    z-index: 1000;
    flex-shrink: 0; /* Prevents sidebar from shrinking */
    position: sticky;
    top: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    transition-delay:0s;
    white-space: nowrap;
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%); /*default*/
    background-image: linear-gradient(-70deg, rgb(4,140,212) 0%, #3a0647 70%);
    background-image: linear-gradient(103deg, rgb(4,140,212) 0%, #3a0647 95%);
    background-color: rgb(4, 140, 212);
    background-color: #0494da;
    background-color: rgb(9 124 185);
    /*background-image: linear-gradient(180deg, rgb(4,140,212) 0%, #3cc4d8 70%);*/
    /*background-image: linear-gradient(180deg, rgb(4,140,212) 0%, #fcce89 70%);*/
}


.main .top-row {
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main > div {
    padding-left: 3rem !important;
    padding-right: 1.5rem !important;
}

.navbar {
    padding: 0 !important;
    padding-left: 12.5px !important;
}

.navbar-main {
    padding: 0 !important;
    padding-left: 12.5px !important;
}

.sidebar .collapse {
    /* Never collapse the sidebar for wide screens */
    display: block;
}

/*.sidebar .collapse .nav-item {
        width: 81px;
    }*/


.sidebar .top-row {
    background-color: rgba(0,0,0,0.4);
}

.sidebar .navbar-brand {
    font-size: 1.1rem;
}

.sidebar .oi, .sidebar .bi, .sidebar .fa-solid {
    width: 2rem;
    font-size: 1.1rem;
    vertical-align: text-top;
    top: -2px;
}

.sidebar .nav-subitem:first-of-type {
    padding-top: 0.5rem;
}

.sidebar .nav-item:first-of-type {
    padding-top: 1rem;
}

.sidebar .nav-item:last-of-type {
    padding-bottom: 1rem;
}

.sidebar .nav-item a {
    color: #d7d7d7 !important;
    cursor: pointer;
    border-radius: 4px;
    height: 3rem;
    display: flex;
    align-items: center;
    line-height: 3rem;
}

.nav-item a.active {
    background-color: rgba(255,255,255,0.25);
    color: white;
}

.nav-item a:hover {
    background-color: rgba(255,255,255,0.1);
    color: white;
}

/* Non-clickable menu items (parent items without Href that only open submenu) */
/* Visual distinction - bold text and left border to indicate it's a category/parent item */
.sidebar .nav-item a.nav-link.nav-link-non-clickable,
.nav-item a.nav-link.nav-link-non-clickable {
    color: #d7d7d7 !important;
    font-weight: bold;
    border-left: 2px solid rgba(255, 255, 255, 0.3);
    padding-left: 14px;
}

.sidebar .nav-item a.nav-link.nav-link-non-clickable *,
.nav-item a.nav-link.nav-link-non-clickable * {
    color: #d7d7d7 !important;
    font-weight: bold;
}

.sidebar .nav-item a.nav-link.nav-link-non-clickable:hover,
.nav-item a.nav-link.nav-link-non-clickable:hover {
    color: white !important;
    background-color: rgba(255,255,255,0.1) !important;
    border-left-color: rgba(255, 255, 255, 0.5);
}

.sidebar .nav-item a.nav-link.nav-link-non-clickable:hover *,
.nav-item a.nav-link.nav-link-non-clickable:hover * {
    color: white !important;
}

/* ============================================================
   PBI 5870 — Sidebar navigation redesign
   Clearer "has submenu" affordance, open/closed state, active-trail,
   and a collapsed-rail "has submenu" badge.
   ALL rules are scoped under .sidebar so generic Bootstrap .nav-item /
   .nav-link (e.g. .crm-secondary-nav-tabs) are NOT affected.
   ============================================================ */

/* Anchor is the positioning context for the collapsed-rail badge */
.sidebar .nav-item > a.nav-link,
.sidebar .nav-subitem > a.nav-link {
    position: relative;
}

/* AC1/AC2 — caret affordance on branching parents; rotates when open */
.sidebar .collapsable {
    transition: transform 0.18s ease;
}

.sidebar .collapsable--open {
    transform: rotate(90deg);
}

/* AC2 — open group header: tinted + brighter, visually joined to its tray */
.sidebar .nav-item a.nav-link.nav-link-non-clickable.is-open,
.sidebar .nav-link.nav-link-non-clickable.is-open {
    background-color: rgba(255, 255, 255, 0.06);
    color: #ffffff !important;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
}

.sidebar .nav-item a.nav-link.nav-link-non-clickable.is-open *,
.sidebar .nav-link.nav-link-non-clickable.is-open * {
    color: #ffffff !important;
}

/* AC2 — submenu "tray": indented with a vertical guide line */
.sidebar .nav-submenu-tray {
    margin-left: 1.6rem;
    padding-left: 0.35rem;
    border-left: 2px solid rgba(255, 255, 255, 0.18);
}

/* AC3 — active page: strong white "pill" + accent bar
   (scoped + higher specificity so it beats the global .nav-item a.active) */
.sidebar .nav-item a.nav-link.active,
.sidebar .nav-subitem a.nav-link.active {
    background-color: #ffffff !important;
    color: #0a5f8f !important;
    box-shadow: inset 3px 0 0 #0494da;
    border-radius: 4px;
    font-weight: 600;
}

.sidebar .nav-item a.nav-link.active *,
.sidebar .nav-subitem a.nav-link.active * {
    color: #0a5f8f !important;
}

/* AC3 — active-trail: the parent of the active page gets a warm accent + bar,
   distinct from a merely-open group and from the active pill */
.sidebar .nav-item a.nav-link.nav-link-non-clickable.is-trail,
.sidebar .nav-link.nav-link-non-clickable.is-trail {
    color: #ffb352 !important;
    box-shadow: inset 3px 0 0 #ffb352;
}

.sidebar .nav-item a.nav-link.nav-link-non-clickable.is-trail *,
.sidebar .nav-link.nav-link-non-clickable.is-trail * {
    color: #ffb352 !important;
}

/* AC5 — collapsed rail (not hovered): "has submenu" badge on the icon.
   Hidden once the rail expands on hover (labels + caret become visible). */
.sidebar.collapsed .nav-item.has-sub > a.nav-link::after,
.sidebar.collapsed .nav-subitem.has-sub > a.nav-link::after {
    content: "";
    position: absolute;
    left: 1.55rem;
    bottom: 0.55rem;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-top: 4px solid rgba(255, 255, 255, 0.75);
}

.sidebar.collapsed:hover .nav-item.has-sub > a.nav-link::after,
.sidebar.collapsed:hover .nav-subitem.has-sub > a.nav-link::after {
    display: none;
}

/* --- Mobile (phone) polish: full-screen menu, touch-friendly --- */
@media (max-width: 767.98px) {
    /* Comfortable touch targets (>=44px) for every row in the open menu */
    .sidebar .nav-item a.nav-link,
    .sidebar .nav-subitem a.nav-link {
        min-height: 44px;
    }

    /* Smaller tray indent so long labels don't get pushed off-screen on narrow phones */
    .sidebar .nav-submenu-tray {
        margin-left: 1rem;
    }

    /* One column, never a horizontal scrollbar inside the menu */
    #navbarMenuItems {
        overflow-x: hidden;
    }
}

/* Icon-specific padding adjustments */
.fas.fa-user-clock {
    padding-right: 10px;
}

.fas.fa-box-open {
    padding-right: 11px;
}

/* START OF Login, Registration, Forgot your password */

#login-content, #forgot-password-content {
    display: flex;
    justify-content: center;
    flex-direction: column;
    max-width: 466px;
    margin: 50px auto 15px auto;
    padding: 10px 25px 10px 25px;
    border-radius: 3px;
    -webkit-box-shadow: 0px 2px 5px rgb(0 0 0 / 30%);
    box-shadow: 0px 2px 5px rgb(0 0 0 / 30%);
}

#registration-content {
    display: flex;
    justify-content: center;
    flex-direction: column;
    max-width: 932px;
    width: 100%;
    margin: 50px auto 15px auto;
    padding: 10px 25px 10px 25px;
    border-radius: 3px;
    -webkit-box-shadow: 0px 2px 5px rgb(0 0 0 / 30%);
    box-shadow: 0px 2px 5px rgb(0 0 0 / 30%);
    box-sizing: border-box;
}

#forgot-password-content {
    padding: 25px;
}

@media (min-width: 500) {
    #registration-content, #forgot-password-content {
        width: auto;
    }
}

/* END OF Login, Registration, Forgot your password */

/* START of DailyAbsenceReporting */

.daily-absence-employees > div {
    display: flex;
    flex-wrap: nowrap;
    margin-top: 5px;
}

.emoloyee-name, .employee-label-container {
    min-width: 250px;
}

@media (max-width: 767px) {
    .daily-absence-employees {
        overflow: auto;
    }
}

/*END of DailyAbsenceReporting*/

.is-div-time-entry-box-header-button {
    margin-left: 1px;
}

/*START of CompanyTimesheet*/

.is-companytimesheet-employeenames-column {
    float: left;
    font-size: 0.9rem;
}

.is-companytimesheet-employeenames-column-header {
    text-align: left;
    padding-left: 2px;
    padding-right: 2px;
    font-size: 0.9rem;
    width: 280px;
    padding-bottom: 10px;
    padding-top: 10px;
}

.is-companytimesheet-projectname {
    min-width: 280px;
    max-width: 280px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: inherit;
}
/*END of CompanyTimesheet*/
.is-timeentry-textbox {
    width: 30px;
    height: 31px;
    text-align: right;
    border-radius: 3px;
    font-size: 14px;
}

.is-timeentry-button {
    width: 30px;
    height: 31px;
    border-radius: 3px;
    font-size: 12px;
    text-align: center;
}

.is-timeentry-button-edit-add {
    width: 30px;
    height: 31px;
    border-radius: 3px;
    font-size: 12px;
    text-align: center;
    margin-left: 4px;
}

.is-div-time-entry-box-total {
    text-align: center;
    padding-left: 2px;
    padding-right: 2px;
    font-size: 0.9rem;
    width: 130px;
    padding-top: 10px;
    font-weight: bold;
}

.is-timerow-projectname {
    min-width: 220px;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: inherit;
}

#panel {
    position: fixed;
    top: 0;
    right: -20%; /* Initially hidden */
    width: 20%;
    height: 100%;
    background-color: #f0f0f0;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.2);
    transition: right 0.3s ease-out;
    z-index: 1000;
}

    #panel.open {
        right: 0;
    }

#closeBtn {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
}

#sidePanelTitle {
    font-size: 1.5rem;
    padding-top: 20px;
    padding-left: 20px;
}

#infoList {
    padding-top: 20px;
    height: 87vh;
    overflow-y: auto;
}

    #infoList ul {
        list-style-type: none;
        padding: 0;
        margin: 0;
    }

    #infoList li {
        padding: 3px 0px;
        transition: background-color 0.3s;
        display: flex;
    }

        #infoList li:nth-child(odd) {
            background-color: #f0f0f0;
        }

        #infoList li:nth-child(even) {
            background-color: #ffffff;
        }

        #infoList li:hover {
            background-color: #c0c0c0;
            cursor: default;
        }

        #infoList li .change-icon {
            display: inline-block;
            width: 30px;
            vertical-align: middle;
        }

            #infoList li .change-icon i {
                padding: 7px;
            }

        #infoList li span.name {
            font-size: 0.8rem;
            font-weight: 600;
            margin-right: 10px;
        }

        #infoList li span.time {
            font-size: 0.8rem;
            font-weight: 600;
        }

        #infoList li span.change-label {
            font-size: 0.8rem;
            display: inline-block;
            width: calc(100% - 40px);
            vertical-align: middle;
        }

        #infoList li span.order-number {
            font-size: 0.8rem;
            font-weight: 600;
            width: 30px;
            display: inline-block;
            text-align: center;
        }

#loadMore {
    text-align: center;
}

.disabled-div {
    opacity: 0.6 !important;
    pointer-events: none !important;
    cursor: default !important;
    filter: grayscale(1);
}

/* Sidebar Tabs Styles */
.sidebar-tabs {
    display: flex;
    background-color: rgba(0,0,0,0.2);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1001; /* Higher than sidebar to ensure proper stacking */
    height: 47px; /* Fixed height to prevent layout shifts */
}

.sidebar-tab {
    flex: 1;
    text-align: center;
    padding: 10px;
    cursor: pointer;
    color: #fff;
    font-weight: 500;
    transition: background-color 0.3s, opacity 0.3s;
}

.sidebar-tab.active {
    background-color: rgba(0,0,0,0.4);
    border-bottom: 2px solid #007bff;
}

.sidebar-tab:hover:not(.active) {
    background-color: rgba(0,0,0,0.3);
}

@media (max-width: 767.98px) {
    .sidebar-tabs {
        margin-top: 0;
    }
    
    .sidebar.collapsed .sidebar-tabs {
        display: none;
    }
    
    .sidebar:not(.collapsed) .sidebar-tabs {
        display: flex;
    }
}

/* When hovering over collapsed sidebar, show all tabs */
.sidebar.collapsed:hover .sidebar-tabs {
    flex-direction: row;
}

.sidebar.collapsed:hover .sidebar-tab:not(.active) {
    display: block !important;
}

.sidebar.collapsed:hover .sidebar-tab.active {
    border-bottom: 2px solid #007bff;
    border-left: none;
}

/* Fix for sidebar hover behavior */
.sidebar.collapsed:hover .nav-item {
    display: block;
}

.sidebar.collapsed:hover .nav-subitem {
    display: block;
}

.sidebar.collapsed:hover #navbarMenuItems {
    display: block !important;
}

.sidebar.collapsed:hover .sidebar-tabs {
    flex-direction: row;
    display: flex !important;
}

.sidebar.collapsed:hover .sidebar-tab {
    display: block !important;
}

/* Bootstrap nav-tabs: high-contrast labels, clear active tab (CFO Dashboard, document read customization, …) */
.crm-secondary-nav-tabs.nav-tabs .nav-item .nav-link {
    color: #212529;
    font-weight: normal;
    cursor: pointer;
}

.crm-secondary-nav-tabs.nav-tabs .nav-item .nav-link:hover {
    color: #212529;
    background-color: #f8f9fa;
    text-decoration: none;
}

.crm-secondary-nav-tabs.nav-tabs .nav-item .nav-link.active {
    color: #212529;
    background-color: #fff;
    border-color: #dee2e6 #dee2e6 #fff;
    font-weight: 500;
}
