.card {
    background-color: white;
}

.absence-request-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.worklog-session-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1rem;
}

.absence-requst-toolbar__middle {
    display: flex;
    justify-content: space-between;
}

.reason-checkbox {
    margin-left: 2em;
}

.inline-actions {
    display: flex;
    justify-content: flex-end;
}

.add-request-btn-text {
    margin-left: 0.5em;
}

.month-row {
    background-color: rgba(62, 142, 247, 0.18)
}
/* removing the hover color */
.table-hover tbody tr.month-row:hover {
    background-color: rgba(62, 142, 247, 0.18);
}

.info-icon {
    display: flex;
    font-size: 20px;
    background-color: #37474f;
    color: #f1f4f5;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    justify-content: center;
    align-items: center;
    margin: 22px 0 11px 0.5em;
    cursor: pointer;
}

.header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.header-title {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.icon-btn i {
    margin-right: 0.5em;
}

.dropdown-menu {
    margin-top: 0;
}

.dropdown-menu, .dropdown button {
    width: 200px;
}

.dropdown-menu li a {
    color: #76838f;
}

.dropdown-menu li i {
    margin: 0 0.8em 0 1em;
}

.status-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.status-group {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.badge, .status-item {
    margin-left: 1em;
}

.month-picker {
    margin-top: 2.5em;
}

.interaction-wrapper {
    margin-bottom: 1rem;
}

.user-selection-row {
    margin-bottom: 1rem;
}

.user-selection-row form {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-selection-row select {
    width: auto;
    display: inline-block;
}

.user-timezone {
    white-space: nowrap;
}

.controls-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.month-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-and-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.status-section {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.action-buttons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-messages {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.dashboard-item {
    padding: 2em;
    background-color: white;
    margin-right: 1em;
}

.settings {
    display: flex;
    justify-content: space-between;
    padding-bottom: 1em;
}

.start-day-col {
    width: 15%;
}
.start-time-col {
    width: 5%;
}
.stop-time-col {
    /* has to expand for timezone when editing - keep it bigger */
    width: 20%;
}
.action-col {
    text-align: right;
    padding-right: 1em !important;
}
.table-wrapper {
    padding: 1em;
    background: white;
}

.dashboard-item-h {
    margin-top: 0;
}

table.order {
    width: 100%;
    margin-top: 1em;
}
table.order td {
    vertical-align: top;
    padding-right: 0.75em;
}
table.order td:last-child, table.order th:last-child, .expenses table td:last-child {
    text-align: right;
    padding-right: 0;
}

.expenses {
    margin-top: 1em;
}

.expenses table {
    width: 100%;
}

.expenses table tr.summary-row {
    font-weight: bold;
}

.next-order {
    display: flex;
    justify-content: space-between;
    padding: 0;
}
.fallback-msg {
    font-style: italic;
}
.image-container {
    display: inline-block;
}
.remove-button {
    cursor: pointer;
    text-decoration: underline;
}
.receipt-image {
    max-width: 400px;
    max-height: 400px;
    display: block;
}
.reimbursements-table td:not(:first-child) {
    padding-left: 1em;
}

/* Custom navbar background */
.navbar-custom {
    background-color: #3e8ef7 !important;
}

/* Login page background */
.login-background {
    background-color: #3e8ef7;
}

/* Responsive Navigation Styles */
.sidebar {
    width: 280px;
    min-height: calc(100vh - 56px); /* navbar height */
    position: relative;
    z-index: 1000;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease-in-out;
}

.sidebar-overlay {
    position: fixed;
    top: 56px; /* navbar height */
    left: 0;
    width: 100%;
    height: calc(100vh - 56px);
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.main-content {
    transition: margin-left 0.3s ease-in-out;
}

/* Mobile styles */
@media (max-width: 991.98px) {
    .sidebar {
        position: fixed;
        top: 56px; /* navbar height */
        left: 0;
        height: calc(100vh - 56px);
        transform: translateX(-100%);
        z-index: 1001;
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .sidebar-overlay.show {
        opacity: 1;
        visibility: visible;
    }
    
    .main-content {
        margin-left: 0 !important;
    }
}

/* Desktop styles */
@media (min-width: 992px) {
    .sidebar {
        position: relative;
        transform: translateX(0) !important;
    }
    
    .main-content {
        flex: 1;
    }
    
    .sidebar-overlay {
        display: none;
    }
}

/* Navigation pills styling in sidebar */
.sidebar .nav-pills .nav-link {
    border-radius: 8px;
    margin-bottom: 4px;
    color: #495057;
    transition: all 0.2s ease-in-out;
}

.sidebar .nav-pills .nav-link:hover {
    background-color: #e9ecef;
    color: #3e8ef7;
}

.sidebar .nav-pills .nav-link.active {
    background-color: #3e8ef7;
    color: white;
}

/* User section styling */
.sidebar .border-bottom {
    border-color: #dee2e6 !important;
}

/* Button spacing in user section */
.sidebar .btn-sm {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

/* Hide hamburger menu on desktop when not needed */
@media (min-width: 992px) {
    #sidebarToggle {
        display: none !important;
    }
}

/* Mobile Timesheet Styles */
@media (max-width: 991.98px) {
    .mobile-timesheet .card {
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        margin-bottom: 1rem;
    }
    
    .mobile-timesheet .card-header {
        border-radius: 12px 12px 0 0 !important;
        cursor: pointer;
        transition: all 0.3s ease;
        min-height: 48px;
        display: flex;
        align-items: center;
    }
    
    .mobile-timesheet .card-header:hover {
        background-color: rgba(62, 142, 247, 0.9) !important;
    }
    
    .mobile-timesheet .card-header[aria-expanded="true"] .fa-chevron-down {
        transform: rotate(180deg);
    }
    
    .mobile-timesheet .transition-transform {
        transition: transform 0.3s ease;
    }
    
    .mobile-timesheet .day-entry:last-child {
        border-bottom: none !important;
    }
    
    .mobile-timesheet .work-sessions .session-item {
        display: inline-block;
        margin-bottom: 0.25rem;
    }
    
    .mobile-timesheet .badge {
        font-size: 0.75rem;
    }
    
    /* Color coding for differences */
    .text-success {
        color: #198754 !important;
    }
    
    .text-danger {
        color: #dc3545 !important;
    }
}

/* Mobile Form Optimizations */
@media (max-width: 991.98px) {
    /* Large touch targets for mobile */
    .btn-lg {
        min-height: 48px;
        font-size: 1.1rem;
        padding: 0.75rem 1.5rem;
    }
    
    /* Improved form controls */
    .form-control-lg, .form-select-lg {
        min-height: 48px;
        font-size: 1.1rem;
        padding: 0.75rem 1rem;
    }
    
    /* Better spacing for mobile */
    .card {
        margin-bottom: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    /* Mobile-specific action buttons */
    .mobile-actions {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: white;
        border-top: 1px solid #dee2e6;
        padding: 1rem;
        z-index: 1000;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    }
    
    /* Prevent body scroll when mobile actions are present */
    body.has-mobile-actions {
        padding-bottom: 80px;
    }
    
    /* Mobile Absence Form Specific Styles */
    .mobile-absence-form .card {
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        overflow: hidden;
    }
    
    .mobile-absence-form .card-header {
        background-color: #f8f9fa;
        padding: 0.75rem 1rem;
        font-weight: 500;
    }
    
    .mobile-absence-form .form-check-lg {
        padding-left: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .mobile-absence-form .form-check-lg .form-check-input {
        margin-left: -2.5rem;
        margin-top: 0.3rem;
    }
    
    .mobile-absence-form .form-check-lg .form-check-label {
        padding-top: 0.25rem;
    }
    
    .mobile-absence-form .form-text {
        margin-top: 0.25rem;
        margin-left: 0.25rem;
        color: #6c757d;
    }
    
    /* Enhanced touch targets for radio buttons */
    .mobile-absence-form input[type="radio"] {
        cursor: pointer;
    }
    
    /* Improved card spacing */
    .mobile-absence-form .card:last-child {
        margin-bottom: 1.5rem;
    }
    
    /* Action buttons at bottom */
    .mobile-absence-form .d-grid {
        margin-top: 1.5rem;
    }
    
    /* Larger form labels */
    .mobile-absence-form .form-label {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
}

/* Table responsiveness fallback */
@media (max-width: 991.98px) {
    .table-responsive-mobile {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .table-responsive-mobile table {
        min-width: 600px;
        font-size: 0.875rem;
    }
    
    .table-responsive-mobile th,
    .table-responsive-mobile td {
        padding: 0.5rem 0.25rem;
        white-space: nowrap;
    }
    
    /* Mobile Absences List Styles */
    .mobile-absences .card {
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        border: none;
    }
    
    .mobile-absences .card-header {
        border-radius: 12px 12px 0 0 !important;
        padding: 0.75rem 1rem;
    }
    
    .mobile-absences .card-body {
        padding: 1rem;
    }
    
    .mobile-absences .badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
        border-radius: 6px;
    }
    
    .mobile-absences .text-muted {
        color: #6c757d !important;
    }
    
    /* Touch-friendly buttons */
    .mobile-absences .btn {
        min-height: 38px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    .mobile-absences .btn-sm {
        padding: 0.375rem 0.75rem;
    }
    
    /* Improved spacing */
    .mobile-absences h5 {
        font-size: 1.1rem;
        font-weight: 500;
    }
    
    /* Ensure icons align properly */
    .mobile-absences i.fas {
        width: 20px;
        text-align: center;
    }
    
    /* Mobile Statistics Styles */
    .mobile-statistics .card {
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        border: none;
        overflow: hidden;
    }
    
    .mobile-statistics .card-header {
        padding: 0.75rem 1rem;
    }
    
    .mobile-statistics .card-header h5 {
        font-size: 1rem;
        font-weight: 500;
    }
    
    .mobile-statistics .text-muted {
        font-size: 0.8rem;
        color: #6c757d !important;
    }
    
    .mobile-statistics h2 {
        font-size: 2.5rem;
        font-weight: 600;
        color: #3e8ef7;
    }
    
    .mobile-statistics h4 {
        font-size: 1.5rem;
        font-weight: 500;
    }
    
    .mobile-statistics h5 {
        font-size: 1.25rem;
        font-weight: 500;
    }
    
    .mobile-statistics .border-bottom {
        border-color: #e9ecef !important;
    }
    
    /* Color coding for vacation stats */
    .mobile-statistics .text-primary {
        color: #3e8ef7 !important;
    }
}

/* Mobile Navigation Improvements */
@media (max-width: 991.98px) {
    .header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .header-title {
        text-align: center;
    }
    
    .header-title h1 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .dropdown {
        width: 100%;
    }
    
    .dropdown .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Mobile Dashboard Styles */
@media (max-width: 991.98px) {
    .mobile-dashboard .card {
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        border: none;
        overflow: hidden;
    }
    
    .mobile-dashboard .card-header {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid rgba(0,0,0,0.125);
    }
    
    .mobile-dashboard .card-body {
        padding: 1rem;
    }
    
    /* Mobile workstats cards */
    .mobile-workstats .card {
        border-radius: 8px;
        border: 1px solid #dee2e6;
        overflow: hidden;
    }
    
    .mobile-workstats .card-header {
        background-color: #f8f9fa !important;
        padding: 0.5rem 0.75rem;
        border-bottom: 1px solid #dee2e6;
    }
    
    .mobile-workstats .card-body {
        padding: 0.75rem;
    }
    
    .mobile-workstats h6 {
        font-size: 0.9rem;
        font-weight: 600;
        margin: 0;
    }
    
    .mobile-workstats .small {
        font-size: 0.75rem;
    }
    
    .mobile-workstats .fw-bold {
        font-weight: 600;
    }
    
    /* Mobile tracking status */
    .mobile-tracking-status .bg-light-success {
        background-color: rgba(40, 167, 69, 0.1) !important;
        border: 1px solid rgba(40, 167, 69, 0.2);
    }
    
    .mobile-tracking-status .bg-light-danger {
        background-color: rgba(220, 53, 69, 0.1) !important;
        border: 1px solid rgba(220, 53, 69, 0.2);
    }
    
    /* Large touch targets for mobile dashboard */
    .mobile-dashboard .btn-lg {
        min-height: 48px;
        font-size: 1.1rem;
        font-weight: 500;
    }
    
    .mobile-dashboard .card-header h5 {
        font-size: 1rem;
        font-weight: 600;
    }
    
    /* Better text contrast for mobile */
    .mobile-dashboard .text-muted {
        color: #6c757d !important;
    }
    
    .mobile-dashboard .text-primary {
        color: #3e8ef7 !important;
    }
    
    /* Mobile timetracker specific styles */
    .mobile-dashboard #start_timepicker_mobile,
    .mobile-dashboard #stop_timepicker_mobile {
        margin: 0 auto;
    }
    
    /* Ensure proper spacing */
    .mobile-dashboard .gap-3 {
        gap: 1rem !important;
    }
}

/* Time Picker Styles */
.time-picker-container {
    display: flex;
    justify-content: center;
    width: 100%;
    min-width: 200px;
}

.time-picker {
    justify-content: center;
    align-items: center;
    width: auto;
    min-width: 160px;
}

.time-input-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex-shrink: 0;
}

.time-input {
    width: 70px !important;
    min-width: 70px !important;
    max-width: 70px !important;
    height: 45px !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    border: 2px solid #dee2e6 !important;
    border-radius: 8px !important;
    background-color: #f8f9fa;
    transition: all 0.2s ease;
    padding: 8px 4px !important;
    box-sizing: border-box !important;
}

.time-input:focus {
    border-color: #0d6efd !important;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25) !important;
    background-color: white;
    outline: none !important;
}

.time-input:hover {
    border-color: #0d6efd !important;
    background-color: white;
}

.time-separator {
    font-size: 28px;
    font-weight: bold;
    color: #6c757d;
    margin: 0 12px;
    line-height: 1;
    align-self: center;
}

/* Desktop layout improvements */
.d-none.d-lg-block #start_timepicker,
.d-none.d-lg-block #stop_timepicker {
    width: auto !important;
    min-width: 200px !important;
    max-width: none !important;
    overflow: visible !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
}

.d-none.d-lg-block .btn-primary,
.d-none.d-lg-block .btn-danger {
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}
