.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: 100%;
}

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

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

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

/* ========================================
   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;
    }
}

/* ========================================
   PIE CHART HOVER TOOLTIP OVERFLOW FIX
   Ensures hover tooltips are not clipped by container boundaries
   ======================================== */

.pie-chart-overflow,
.pie-chart-overflow .js-plotly-plot,
.pie-chart-overflow .plotly,
.pie-chart-overflow .svg-container {
    overflow: visible !important;
}

/* Ensure the hoverlayer (tooltip container) has high z-index */
.pie-chart-overflow .hoverlayer {
    z-index: 10000 !important;
}

/* Make sure parent containers don't clip the tooltips */
.pie-chart-overflow .main-svg {
    overflow: visible !important;
}

/* ========================================
   FRAMESETS REVIEW TAB STYLES
   Styles for the error framesets review feature
   ======================================== */

/* Frameset list item hover effect */
.review-frameset-item:hover {
    background-color: #f8f9fa !important;
    border-color: #1E4E5F !important;
    transform: translateX(3px);
}

/* Selected frameset item */
.review-frameset-item.selected {
    background-color: #e7f5ff !important;
    border-color: #1E4E5F !important;
    border-width: 2px !important;
}

/* Pending review item hover */
.review-pending-item:hover {
    background-color: #f8f9fa !important;
}

/* Image viewer container */
.review-image-container {
    position: relative;
    overflow: auto;
    background-color: #f5f5f5;
    border-radius: 8px;
}

/* Zoom transition for image */
.review-image-viewer {
    transition: transform 0.2s ease;
    cursor: grab;
}

.review-image-viewer:active {
    cursor: grabbing;
}

/* Review labels panel styling */
.review-labels-panel {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.review-labels-column {
    align-items: flex-start;
}

#review-save-labels:not(:disabled):hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(30, 78, 95, 0.25);
}

/* Confirmation modal overlay */
.review-confirm-modal .mantine-Modal-overlay {
    backdrop-filter: blur(3px);
}

/* Scoped override: keep Mantine checkbox stable even with global Codepen form styles */
.review-label-checkbox-wrap .mantine-Checkbox-body {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.review-label-checkbox-wrap .mantine-Checkbox-inner {
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    min-height: 16px !important;
    flex: 0 0 16px !important;
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.review-label-checkbox-wrap .mantine-Checkbox-input {
    -webkit-appearance: none !important;
    appearance: none !important;
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    min-height: 16px !important;
    margin: 0 !important;
    display: inline-block !important;
    border: 1px solid #adb5bd !important;
    border-radius: 4px !important;
    background-color: #fff !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.review-label-checkbox-wrap .mantine-Checkbox-input:checked {
    border-color: #40c057 !important;
    background-color: #40c057 !important;
}

.review-label-checkbox-wrap .mantine-Checkbox-icon {
    width: 12px !important;
    height: 12px !important;
}

.review-label-checkbox-wrap .mantine-Checkbox-label {
    display: inline-block !important;
    margin: 0 !important;
    line-height: 1.2 !important;
    font-size: 14px !important;
}