.DateRangePickerInput {
    background-color: rgba(137, 43, 226, 0);
    border-color: rgba(240, 248, 255, 0);
}

#pedcad-users-table {
    width: 100%;
}

#main-page-div-id {
    max-width: 70%;
}

@media (min-width: 2001px) {
    #main-page-div-id {
        max-width: 70%;
    }
}

@media (max-width: 2000px) and (min-width: 1801px) {
    #main-page-div-id {
        max-width: calc(70% + ((2000px - 100vw) * 0.05));
    }
}

@media (max-width: 1800px) {
    #main-page-div-id {
        max-width: 75%;
    }
}

/* ========================================
   GLOBAL TOP NAVIGATION BUTTONS
   Unified styling for hamburger, logout, and back buttons
   ======================================== */

/* Shared button styles */
#hamburger-menu-btn,
.logout-btn,
#back-button-container a {
    padding: 0em 0.75em;
    border: 1px solid #ccc;
    borderRadius: 5px;
    backgroundColor: white;
    color: #333;
    fontSize: 0.9em;
    textDecoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    boxShadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Hover effects - unified */
#hamburger-menu-btn:hover,
.logout-btn:hover,
#back-button-container a:hover {
    backgroundColor: #f8f9fa !important;
    borderColor: #999 !important;
    transform: translateY(-1px);
    boxShadow: 0 2px 5px rgba(0, 0, 0, 0.15) !important;
}

/* Active state */
#hamburger-menu-btn:active,
.logout-btn:active,
#back-button-container a:active {
    transform: translateY(0);
    boxShadow: 0 1px 2px rgba(0, 0, 0, 0.1) !important;
}

/* Hamburger menu - always top left, hidden on desktop */
#hamburger-menu-btn {
    display: none;
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 10001;
}

/* Logout button - top left, next to hamburger on mobile */
#global-logout-container {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 10000;
    transition: left 0.3s ease;
}

/* Back button - positioned after hamburger/logout */
#back-button-container {
    position: fixed;
    top: 10px;
    z-index: 9999;
    transition: left 0.3s ease;
}

/* Mobile layout: hamburger | logout | back */
@media (max-width: 1024px) {
    #hamburger-menu-btn {
        display: block !important;
        left: 10px;
    }

    #global-logout-container {
        left: 70px !important;
        /* Next to hamburger */
    }

    #back-button-container {
        left: 160px !important;
        /* After logout button */
    }
}

/* Desktop layout: logout | back (no hamburger) */
@media (min-width: 1025px) {
    #global-logout-container {
        left: 10px;
    }

    #back-button-container {
        left: 100px !important;
        /* After logout button */
    }
}

/* ========================================
   OVERVIEW PAGE RESPONSIVE STYLES
   ======================================== */

/* Sidebar responsive behavior */
.overview-sidebar {
    transition: transform 0.3s ease-in-out;
}

#sidebar-close-btn {
    display: none;
}

@media (max-width: 1024px) {
    .overview-sidebar {
        position: fixed !important;
        top: 0;
        left: 0;
        z-index: 1000;
        transform: translateX(-100%);
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        background-color: white;
    }

    .overview-sidebar.open {
        transform: translateX(0) !important;
    }

    #sidebar-close-btn {
        display: block !important;
    }
}

/* Main content responsive padding */
.overview-main-content {
    padding: 2em 5em;
}

@media (max-width: 1400px) {
    .overview-main-content {
        padding: 2em 3em !important;
    }
}

@media (max-width: 1024px) {
    .overview-main-content {
        padding: 4em 2em 2em 2em !important;
        /* Extra top padding for hamburger button */
        width: 100% !important;
    }
}

@media (max-width: 768px) {
    .overview-main-content {
        padding: 4em 1em 1em 1em !important;
    }
}

/* Title responsive sizing */
.overview-title {
    font-size: 2em;
}

@media (max-width: 768px) {
    .overview-title {
        font-size: 1.5em !important;
    }
}

/* Stats wrapper - stacks vertically on smaller screens */
.overview-stats-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
}

@media (max-width: 1024px) {
    .overview-stats-wrapper {
        flex-direction: column !important;
    }

    .overview-stats-wrapper>div {
        width: 100% !important;
    }
}

/* Clients status wrapper */
.clients-status-wrapper {
    background-color: inherit;
    border-radius: 10px;
    width: 100%;
    overflow: hidden;
}

/* Responsive behavior for clients status */
@media (max-width: 1400px) {

    /* Stack stats wrapper vertically on smaller screens */
    .overview-stats-wrapper {
        flex-direction: column !important;
    }

    .overview-stats-wrapper>div {
        width: 100% !important;
    }
}

@media (max-width: 1024px) {

    /* Make badges wrap on smaller screens */
    .clients-status-wrapper .mantine-Group-root {
        flex-wrap: wrap !important;
    }

    /* Reduce badge size on small screens */
    .clients-status-wrapper .mantine-Badge-root {
        font-size: 0.75rem !important;
        padding: 0.25rem 0.5rem !important;
    }
}

@media (max-width: 768px) {

    /* Further reduce badge size on mobile */
    .clients-status-wrapper .mantine-Badge-root {
        font-size: 0.7rem !important;
        padding: 0.2rem 0.4rem !important;
    }
}

/* Stats graph responsive sizing */
.overview-stats-graph {
    width: 100%;
}

@media (max-width: 768px) {
    .overview-stats-graph .js-plotly-plot {
        height: 200px !important;
    }
}

/* Table responsive styles */
.overview-table-container {
    width: 100%;
    margin-top: 2em;
}

.overview-table {
    width: 100%;
    border-collapse: collapse;
}

.overview-table th,
.overview-table td {
    padding: 0.75em;
    border-bottom: 1px solid #dee2e6;
}

.overview-table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

/* Table row hover effect */
.overview-table-row:hover {
    background-color: #f8f9fa;
}

/* Hide columns on tablet screens (< 1024px) */
@media (max-width: 1024px) {
    .hide-on-tablet {
        display: none !important;
    }
}

/* Hide columns on mobile screens (< 768px) */
@media (max-width: 768px) {
    .hide-on-mobile {
        display: none !important;
    }

    .overview-table th,
    .overview-table td {
        padding: 0.5em !important;
        font-size: 0.9em;
    }

    .project-search-input {
        font-size: 0.9em !important;
    }
}

/* Table wrapper responsive height */
.overview-table-wrapper {
    max-height: 400px;
    overflow-y: auto;
    width: 100%;
}

@media (max-width: 768px) {
    .overview-table-wrapper {
        max-height: 350px !important;
    }
}

/* Progress bar in table - make more visible on mobile */
@media (max-width: 768px) {
    .overview-table td>a>div {
        height: 25px !important;
        /* Slightly taller progress bars on mobile */
    }
}

/* Search input responsive */
.project-search-input {
    width: 100%;
    padding: 0.5em;
    margin-bottom: 1em;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    font-size: 1em;
}

@media (max-width: 768px) {
    .project-search-input {
        padding: 0.75em !important;
        /* Larger tap target on mobile */
    }
}

/* Sidebar overlay for mobile */
#sidebar-overlay {
    transition: opacity 0.3s ease-in-out;
}

/* Ensure smooth transitions */
* {
    -webkit-tap-highlight-color: transparent;
}

/* Fix for very small screens */
@media (max-width: 375px) {
    .overview-main-content {
        padding: 4em 0.5em 1em 0.5em !important;
    }

    .overview-title {
        font-size: 1.3em !important;
    }

    .overview-table th,
    .overview-table td {
        padding: 0.4em !important;
        font-size: 0.85em !important;
    }
}