/* ============================================
   RESPONSIVE CSS - Mobile & Tablet Optimization
   ============================================ */

/* ============================================
   HAMBURGER MENU BUTTON
   ============================================ */

/* Hidden on desktop by default */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    padding: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1002; /* Above sidebar */
    gap: 5px;
}

/* Sidebar close button - hidden on desktop */
.sidebar-close-btn {
    display: none;
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: #f0f0f0;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    color: #333;
    z-index: 10;
    transition: background 0.2s ease;
}

.sidebar-close-btn:hover {
    background: #e0e0e0;
}

.sidebar-close-btn span {
    display: block;
}

.hamburger-btn span {
    display: block;
    width: 24px;
    height: 3px;
    background: white; /* White for dark header */
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hamburger animation when active (X) */
.hamburger-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.hamburger-btn.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.hamburger-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -7px);
}

/* ============================================
   DRIVER SEARCH / HITTA ÅKARE - Base Styles
   ============================================ */
.driver-search-container {
    max-width: 1200px;
    margin: 0 auto;
}

.driver-search-header {
    padding: 30px 25px;
    margin-bottom: 20px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.driver-search-header h1 {
    color: white;
    margin: 0 0 8px 0;
    font-size: 1.6rem;
    font-weight: 600;
}

.driver-search-subtitle {
    color: rgba(255,255,255,0.9);
    margin: 0 0 15px 0;
    font-size: 0.95rem;
}

.driver-search-input-wrapper {
    margin-bottom: 15px;
}

.driver-search-input {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid white;
    border-radius: 8px;
    font-size: 0.95rem;
}

.driver-filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
}

.driver-filter-item {
    background: rgba(255,255,255,0.1);
    padding: 10px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.3);
}

.driver-filter-item label {
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
}

.driver-filter-item select,
.driver-filter-item input {
    width: 100%;
    padding: 6px;
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
}

.driver-filter-clear {
    display: flex;
    align-items: flex-end;
}

.driver-clear-btn {
    width: 100%;
    padding: 8px 14px;
    background: rgba(255,255,255,0.2);
    color: white;
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.driver-clear-btn:hover {
    background: rgba(255,255,255,0.3);
}

/* Sidebar overlay for mobile */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000; /* Above header (z-index: 1000) but below sidebar (z-index: 1001) */
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* ============================================
   MESSAGING PAGE - Compact Layout
   ============================================ */
.messaging-page-container {
    display: flex;
    flex-direction: column;
    height: calc(100dvh - 80px); /* Full height minus nav header - dvh for mobile */
    max-height: calc(100dvh - 80px);
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px; /* Matches page-container-wide */
    box-sizing: border-box;
}

/* Header - matches page-header-blue style */
.messaging-header-compact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border-radius: 12px;
    margin-bottom: 25px;
    flex-shrink: 0;
}

.messaging-header-compact h1 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 600;
}

.messaging-header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.messaging-stats-inline {
    display: flex;
    gap: 8px;
}

.messaging-stats-inline .stat-badge {
    background: rgba(255,255,255,0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.messaging-stats-inline .stat-unread {
    background: #e74c3c;
}

.messaging-search-inline {
    padding: 8px 16px;
    border: none;
    border-radius: 20px;
    font-size: 0.9rem;
    width: 200px;
    background: rgba(255,255,255,0.95);
    color: #2c3e50;
    outline: none;
    transition: width 0.3s ease;
}

.messaging-search-inline:focus {
    width: 280px;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.3);
}

/* Main Layout - Side by Side */
.messaging-layout {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 15px;
    flex: 1;
    min-height: 0; /* Important for flex child scrolling */
    overflow: hidden;
}

/* Hide mobile back button on desktop */
.mobile-back-btn {
    display: none;
}

.messaging-layout .conversations-panel {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 12px;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.messaging-layout .conversations-list {
    flex: 1;
    overflow-y: auto;
}

.messaging-layout .chat-window {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 12px;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Chat Header Styles */
.chat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 2px solid #e9ecef;
    background: #f8f9fa;
}

.chat-header-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    flex-shrink: 0;
}

.chat-header-info {
    flex: 1;
    min-width: 0;
}

.chat-header-name {
    display: flex;
    align-items: center;
    gap: 8px;
}

.chat-header-name h2 {
    margin: 0;
    color: #2c3e50;
    font-size: 1rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-header-name .status-badge {
    font-size: 0.75rem;
    white-space: nowrap;
}

.chat-header-name .status-badge.online {
    color: #27ae60;
}

.chat-header-name .status-badge.archived {
    color: #95a5a6;
    background: #e9ecef;
    padding: 2px 8px;
    border-radius: 10px;
}

.chat-header-job {
    margin: 2px 0 0 0;
    font-size: 0.8rem;
    color: #3498db;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-header-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.chat-action-btn {
    background: #e9ecef;
    border: none;
    color: #2c3e50;
    width: 44px;
    height: 44px;
    min-width: 44px; /* WCAG touch target minimum */
    min-height: 44px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.chat-action-btn:hover {
    background: #dde4e6;
}

.chat-action-btn.primary {
    background: #3498db;
    color: white;
}

.chat-action-btn.primary:hover {
    background: #2980b9;
}

/* Tablet */
@media (max-width: 1024px) {
    .messaging-layout {
        grid-template-columns: 300px 1fr;
    }

    .messaging-search-inline {
        width: 150px;
    }

    .messaging-search-inline:focus {
        width: 200px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .messaging-page-container {
        height: calc(100dvh - 70px);
        max-height: calc(100dvh - 70px);
        padding: 0;
        overflow: hidden;
    }

    /* Edge-to-edge messaging header */
    .messaging-header-compact {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: 10px 12px;
        margin: 0;
        margin-bottom: 8px;
        border-radius: 8px !important;
    }

    .messaging-header-compact h1 {
        font-size: 1.05rem;
    }

    .messaging-header-left {
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }

    .messaging-stats-inline {
        display: flex;
        gap: 6px;
    }

    .messaging-stats-inline .stat-badge {
        padding: 4px 10px;
        font-size: 0.75rem;
    }

    .messaging-search-inline {
        display: none; /* Hide search on mobile - save space */
    }

    .messaging-layout {
        display: flex;
        flex-direction: column;
        height: calc(100% - 60px);
        gap: 0;
        overflow: hidden;
    }

    /* Mobile: Full-height conversations list - EDGE-TO-EDGE */
    .messaging-layout .conversations-panel {
        flex: 1;
        max-height: none;
        min-height: 0;
        overflow-y: auto;
        overflow-x: hidden;
        border-radius: 0 !important;
    }

    /* FIX DUBBELSCROLL: Only one scroll container */
    .messaging-layout .conversations-list {
        max-height: none !important;
        height: auto !important;
        overflow: visible !important;
    }

    /* Mobile: Hide empty chat window completely */
    .messaging-layout .chat-window:has(.chat-empty) {
        display: none !important;
    }

    /* Fallback for browsers without :has() - hide via JS class */
    .messaging-layout:not(.chat-open) .chat-window {
        display: none;
    }

    /* Mobile: When chat is open, show chat full-screen */
    .messaging-layout.chat-open .conversations-panel {
        display: none;
    }

    .messaging-layout.chat-open .chat-window {
        flex: 1;
        display: flex !important;
        min-height: 0;
        max-height: none;
        border-radius: 0 !important;
    }

    /* Compact conversation items on mobile */
    .messaging-layout .conversation-item {
        padding: 14px 16px !important;
        gap: 12px !important;
    }

    .messaging-layout .conversation-item > div:first-child > div:first-child {
        width: 44px !important;
        height: 44px !important;
        font-size: 1.1rem !important;
    }

    /* Chat header on mobile - compact layout */
    .chat-header {
        padding: 10px 12px !important;
        gap: 8px !important;
    }

    .chat-header-avatar {
        width: 32px !important;
        height: 32px !important;
        font-size: 0.9rem !important;
    }

    .chat-header-info {
        flex: 1;
        min-width: 0;
        overflow: hidden;
    }

    .chat-header-name {
        flex-wrap: nowrap;
    }

    .chat-header-name h2 {
        font-size: 0.9rem !important;
        max-width: none;
    }

    .chat-header-name .status-badge {
        display: none !important; /* Hide online status on mobile to save space */
    }

    .chat-header-job {
        font-size: 0.7rem !important;
    }

    /* Hide action buttons on mobile - only show back button */
    .chat-header-actions {
        display: none !important;
    }

    /* Back button is the main navigation on mobile */
    .mobile-back-btn {
        margin-right: 4px !important;
    }

    /* Messages list takes remaining space */
    .messaging-layout .messages-list {
        max-height: none !important;
        min-height: 0 !important;
        flex: 1;
        padding: 12px !important;
    }

    /* Message input on mobile */
    .messaging-layout .chat-input-container,
    .messaging-layout .message-input-area {
        padding: 10px 12px !important;
    }

    .messaging-layout .chat-input-container input,
    .messaging-layout .chat-input-container textarea,
    .messaging-layout .message-input-area input,
    .messaging-layout .message-input-area textarea,
    .messaging-layout .message-input {
        padding: 12px 16px !important;
        font-size: 1rem !important;
        border-radius: 24px !important;
    }

    /* Back button for mobile chat */
    .mobile-back-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        min-width: 44px; /* WCAG touch target minimum */
        min-height: 44px;
        border: none;
        background: rgba(0,0,0,0.1);
        border-radius: 50%;
        color: #2c3e50;
        font-size: 1.2rem;
        cursor: pointer;
        margin-right: 8px;
        flex-shrink: 0;
    }

    .mobile-back-btn:hover {
        background: rgba(0,0,0,0.15);
    }
}

/* ============================================
   MANAGE JOBS/AVAILABILITY PAGE CONTAINERS
   ============================================ */
.manage-jobs-page,
.manage-availability-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px;
}

/* Invoice containers render directly to #main-content (not inside .page or #component-container).
   Other pages have: .page (padding-top: 40px) + .page-container-wide (padding-top: 40px) = 80px total.
   We need to match this for consistent header positioning. */
.invoices-container,
.invoice-editor-container,
.commission-invoices-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 40px 40px 40px; /* 80px top = matches .page + .page-container-wide combined padding */
}

/* ============================================
   SPLIT VIEW LAYOUT - For Jobs/Availability pages
   ============================================ */
.split-view-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 20px;
    align-items: start;
}

/* Default styling for calendar and list columns (desktop) */
.split-view-layout .calendar-column {
    padding: 15px;
    position: sticky;
    top: 20px;
}

.split-view-layout .list-column {
    padding: 15px;
    max-height: calc(100vh - 220px);
    overflow-y: auto;
}

/* Hide calendar toggle on desktop (MUST be before media query) */
.calendar-toggle-mobile {
    display: none;
}

@media (max-width: 900px) {
    .split-view-layout {
        grid-template-columns: 1fr;
    }

    .split-view-layout .calendar-column {
        display: none;
    }

    /* Show calendar toggle button on mobile */
    .calendar-toggle-mobile {
        display: block !important;
    }

    /* MOBILE: Remove inner scroll on list containers to prevent double-scroll */
    #jobs-list,
    #availability-list {
        max-height: none !important;
        overflow-y: visible !important;
        overflow: visible !important;
    }
}

/* ============================================
   FORM GRIDS - Responsive
   ============================================ */
.form-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.form-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.form-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

/* Tablet breakpoint for form-grid-4: 4 → 2 columns */
@media (max-width: 1023px) {
    .form-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile breakpoint: all grids → 1 column */
@media (max-width: 767px) {
    .form-grid-2,
    .form-grid-3,
    .form-grid-4 {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    /* Availability form mobile optimizations */
    #availability-form-container .card-white {
        padding: 15px !important;
    }

    #inline-availability-form button[type="submit"],
    #inline-availability-form button[type="button"] {
        width: 100%;
        padding: 14px 16px !important;
        font-size: 1rem !important;
    }

    #inline-availability-form > div:last-child {
        flex-direction: column;
        gap: 10px;
    }

    /* Advanced settings on mobile */
    #inline-availability-form details summary {
        padding: 10px 12px !important;
        font-size: 0.9rem;
    }

    #inline-availability-form details > div {
        padding: 12px !important;
    }

    /* Checkbox groups on mobile - allow wrapping */
    #inline-availability-form div[style*="flex-wrap: wrap"] {
        gap: 8px !important;
    }

    #inline-availability-form div[style*="flex-wrap: wrap"] label {
        flex: 1 1 auto;
        min-width: 45%;
    }
}

/* ============================================
   CALENDAR GRID - Mobile touch friendly
   ============================================ */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
}

.calendar-day {
    min-height: 44px; /* WCAG touch target */
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 480px) {
    .calendar-grid {
        gap: 2px;
    }

    .calendar-day {
        min-width: 44px; /* WCAG touch target */
        min-height: 44px; /* WCAG touch target */
        font-size: 0.8rem;
    }
}

/* Show hamburger and adjust layout on mobile only (not tablet/desktop) */
@media (max-width: 767px) {
    .hamburger-btn {
        display: flex !important;
        flex-shrink: 0;
    }

    /* Header adjustments for mobile */
    #main-header {
        padding: 8px 15px; /* Reduce header height, add horizontal padding */
    }

    #main-header .container {
        padding: 0; /* Remove container padding since header has it */
        max-width: 100%;
    }

    .header-content {
        display: flex !important;
        flex-wrap: nowrap !important; /* NEVER wrap */
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        width: 100%;
    }

    .logo {
        font-size: 1rem; /* Smaller logo on mobile */
        flex-shrink: 1;
        min-width: 0; /* Allow text truncation */
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .nav-buttons {
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 8px;
        flex-shrink: 0;
        align-items: center;
    }

    /* Header guest buttons - keep horizontal on mobile, but respect .hidden class */
    .header-guest-buttons:not(.hidden) {
        display: flex;
        flex-direction: row !important;
        gap: 8px;
    }

    .header-guest-buttons .btn {
        padding: 8px 12px;
        font-size: 0.85rem;
        white-space: nowrap;
    }

    /* Profile dropdown - position from right edge */
    .profile-dropdown-menu {
        right: 0 !important;
        left: auto !important;
        min-width: 180px;
        transform: none;
    }

    /* Show sidebar close button on mobile */
    .sidebar-close-btn {
        display: block;
    }

    /* When sidebar is open, show text */
    .sidebar.active .sidebar-text {
        display: block;
        opacity: 1;
    }

    .sidebar.active .sidebar-item {
        justify-content: flex-start;
        padding: 15px 20px;
    }

    /* Show sidebar header text when active */
    .sidebar.active .sidebar-header-text {
        display: inline;
        opacity: 1;
    }
}

/* ============================================
   DESKTOP - Hide hamburger (768px and above)
   ============================================ */
@media (min-width: 768px) {
    .hamburger-btn {
        display: none !important;
    }
}

/* ============================================
   STATUS FILTER TABS - Mobile compact wrap
   ============================================ */
@media (max-width: 767px) {
    .status-filter-tabs {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 6px !important;
        padding: 6px !important;
        background: #f8f9fa !important;
        border-radius: 10px !important;
    }

    .status-tab {
        padding: 8px 12px !important;
        font-size: 0.75rem !important;
        white-space: nowrap !important;
        border-radius: 6px !important;
        gap: 4px !important;
    }

    .status-tab .badge {
        font-size: 0.65rem !important;
        padding: 1px 5px !important;
        min-width: 16px !important;
    }

    /* Jobs filter tabs - keep in single row with horizontal scroll */
    .jobs-filter-tabs {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        gap: 2px !important;
        padding-bottom: 4px !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
    }

    .jobs-filter-tabs::-webkit-scrollbar {
        display: none;
    }

    .jobs-filter-tabs .jobs-filter-tab {
        flex-shrink: 0 !important;
        white-space: nowrap !important;
        padding: 6px 8px !important;
        font-size: 0.75rem !important;
    }

    /* ============================================
       UNIFIED JOB CARDS - Mobile Layout Fixes
       Fix overlapping badges, text, and status
       ============================================ */
    .unified-card-header {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
        padding: 12px 15px !important;
    }

    .header-main {
        width: 100%;
    }

    .header-title {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 4px !important;
    }

    .header-title .job-title-header {
        font-size: 0.95rem !important;
    }

    .header-title .counterparty-collapsed {
        font-size: 0.75rem !important;
    }

    .header-route-row {
        flex-direction: column !important;
        gap: 4px !important;
    }

    .header-route {
        font-size: 0.8rem !important;
    }

    .header-meta {
        flex-wrap: wrap !important;
        gap: 8px !important;
        font-size: 0.8rem !important;
    }

    /* Status area stacked below on mobile */
    .header-status {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: flex-start !important;
        gap: 6px !important;
        padding-top: 8px;
        border-top: 1px solid #eee;
        width: 100%;
    }

    .completion-badge {
        padding: 4px 8px !important;
        font-size: 0.7rem !important;
    }

    .job-status-badge-small {
        padding: 4px 8px !important;
        font-size: 0.7rem !important;
    }

    .expand-chevron {
        margin-left: auto !important;
    }

    /* Job actions buttons - stack and equal width */
    .job-actions {
        flex-direction: column !important;
        gap: 8px !important;
    }

    .btn-job {
        width: 100% !important;
        padding: 12px 15px !important;
        font-size: 0.9rem !important;
    }

    /* Make sure Neka-knapp same size as Acceptera */
    .btn-job-reject,
    .btn-job-accept {
        flex: 1 1 100% !important;
        min-height: 44px !important;
    }

    /* Completion actions horizontal on mobile */
    .completion-actions {
        flex-direction: column !important;
    }

    .completion-actions .btn-job {
        width: 100% !important;
    }

    /* Conversation items - compact on mobile */
    .conversation-item {
        padding: 10px 12px !important;
        gap: 10px !important;
    }

    .conversation-item div[style*="width: 48px"] {
        width: 40px !important;
        height: 40px !important;
        font-size: 1rem !important;
    }

    .conversation-name {
        font-size: 0.9rem !important;
    }

    .conversation-preview {
        font-size: 0.8rem !important;
    }

    /* Chat header compact on mobile */
    .chat-header {
        padding: 10px 12px !important;
        gap: 8px !important;
    }

    .chat-header div[style*="width: 40px"] {
        width: 32px !important;
        height: 32px !important;
        font-size: 0.9rem !important;
    }

    .chat-header h2 {
        font-size: 0.9rem !important;
    }

    /* Messages list use dynamic viewport height */
    .messages-list {
        max-height: calc(100dvh - 380px) !important;
        min-height: 250px !important;
    }

    /* Message input area */
    .message-input-area {
        padding: 10px !important;
    }

    .message-input {
        font-size: 16px !important; /* Prevent zoom on iOS */
    }
}

/* ============================================
   FULL WIDTH MOBILE - page containers
   ============================================ */
@media (max-width: 767px) {
    /* ============================================
       EDGE-TO-EDGE MOBILE DESIGN
       ============================================ */

    /* Edge-to-edge page containers */
    .page-container-wide,
    .home-page-v3,
    .page-container,
    .manage-jobs-page,
    .manage-availability-page,
    .invoices-container,
    .commission-invoices-container {
        padding: 0 !important;
        max-width: 100% !important;
        margin: 0 !important;
    }

    /* Edge-to-edge headers - ALL blue headers */
    .page-header-blue,
    .home-header-v3,
    .profile-header {
        padding: 10px 12px !important;
        margin: 0 !important;
        margin-bottom: 8px !important;
        border-radius: 0 !important;
    }

    .page-header-blue h1,
    .home-header-v3 .header-greeting h1 {
        font-size: 1.05rem !important;
    }

    .page-header-blue p,
    .home-header-v3 .header-greeting p {
        font-size: 0.75rem !important;
    }

    /* Hide stats bubbles in headers on mobile for cleaner look */
    #jobs-stats,
    #availability-stats {
        display: none !important;
    }

    /* Keep home page stats visible but compact */
    .home-header-v3 .header-stats .stat-bubble-v3 {
        padding: 6px 10px !important;
        min-width: auto !important;
        font-size: 0.75rem !important;
    }

    /* Edge-to-edge cards */
    .card-white,
    .card-muted {
        border-radius: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* ============================================
       ACTION LEGEND ROW - Edge-to-edge on mobile
       ============================================ */
    .action-legend-row {
        padding: 8px 0 !important;
        margin: 0 !important;
        margin-bottom: 8px !important;
    }

    /* Hide legend on mobile to save space */
    .action-legend-row > div:last-child {
        display: none !important;
    }

    /* Buttons inside action row - edge-to-edge padding */
    .action-legend-row > div:first-child,
    .action-buttons {
        padding-left: 12px !important;
    }

    /* Hide legend items on mobile to save space */
    .legend-items {
        display: none !important;
    }

    /* Page header content - stack on mobile */
    .page-header-content {
        flex-direction: column !important;
        gap: 8px !important;
        text-align: center !important;
    }

    .page-header-title-section {
        text-align: center !important;
    }

    /* ============================================
       MIN TILLGÄNGLIGHET & MINA JOBB - Edge-to-edge
       ============================================ */
    .split-view-layout {
        padding: 0 !important;
        gap: 0 !important;
        margin: 0 !important;
    }

    /* Remove ALL padding from list containers */
    #availability-list,
    #jobs-list,
    .split-view-layout .list-column {
        padding: 0 !important;
        border-radius: 0 !important;
        margin: 0 !important;
    }

    /* Calendar column - hidden on mobile anyway */
    #availability-calendar,
    #jobs-calendar,
    .calendar-column {
        position: static !important;
        top: auto !important;
        padding: 0 !important;
        border-radius: 0 !important;
        margin: 0 !important;
    }

    /* Remove card-white padding inside split-view on mobile */
    .split-view-layout .card-white {
        padding: 0 !important;
    }

    /* Segment control wrapper - full width on mobile */
    .availability-segment-wrapper,
    .segment-control-wrapper {
        margin: 0 !important;
        padding: 8px 12px !important;
        border-radius: 0 !important;
    }

    /* ============================================
       PROFILE PAGE - Edge-to-edge
       ============================================ */
    .profile-container {
        padding: 0 !important;
    }

    .profile-header-card {
        border-radius: 0 !important;
        margin: 0 !important;
    }

    .profile-section,
    .profile-card {
        border-radius: 0 !important;
        margin: 0 0 8px 0 !important;
    }

    /* ============================================
       JOB CARDS - Consistent on mobile
       ============================================ */
    .job-card,
    .availability-card,
    .offer-card {
        border-radius: 0 !important;
        margin: 0 0 1px 0 !important;
    }

    /* ============================================
       BUTTONS - Full width on mobile
       ============================================ */
    .action-buttons-row {
        padding: 8px 12px !important;
    }

    .action-buttons-row .btn {
        flex: 1;
    }

    /* ============================================
       TABS - Full width on mobile
       ============================================ */
    .tabs-container,
    .tab-buttons {
        padding: 0 12px !important;
    }

    /* ============================================
       FORM CONTAINERS - Full width
       ============================================ */
    #availability-form-container,
    #job-form-container,
    .inline-form-container {
        border-radius: 0 !important;
        margin: 0 !important;
        padding: 12px !important;
    }
}

/* MOBILE-FIRST ENHANCEMENTS */
@media (max-width: 1023px) {
    /* Touch-friendly button sizing (minimum 44px for accessibility) */
    .btn, button {
        min-height: 44px;
        min-width: 44px;
    }

    /* Improve form input touch targets */
    .form-control, input, select, textarea {
        min-height: 44px;
    }

    /* Better spacing for touch navigation */
    .sidebar-item {
        min-height: 50px;
    }

    /* Prevent zoom on input focus */
    input, select, textarea {
        font-size: 16px !important;
    }

    /* Improve modal bottom sheet experience */
    .modal-content {
        max-height: 90vh;
    }

    /* Better grid gap on touch devices */
    .role-cards {
        gap: 12px;
    }
}

/* LARGE DESKTOP - 1400px and above */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }

    /* Dashboard role-cards: 4 columns on XL screens */
    .role-cards:not(.guest-content) {
        grid-template-columns: repeat(4, 1fr);
    }

    /* Sidebar hover state - expand to 280px on hover instead of 250px */
    .sidebar:hover {
        width: 280px;
    }
}

/* DESKTOP - 1024px+ : Always hide sidebar close button */
@media (min-width: 1024px) {
    .sidebar-close-btn {
        display: none !important;
    }
}

/* DESKTOP - 1024px to 1399px */
@media (max-width: 1399px) {
    .container {
        max-width: 1100px;
    }

    /* Dashboard role-cards: 3 columns on desktop */
    .role-cards:not(.guest-content) {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Sidebar hover state - expand to 240px on hover instead of 250px */
    .sidebar:hover {
        width: 240px;
    }
}

/* LAPTOP - 768px to 1023px */
@media (max-width: 1023px) {
    .sidebar {
        position: fixed;
        left: 0;
        top: 0; /* Start from top to cover full height */
        width: 260px;
        height: 100dvh;
        background: #f8f9fa;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1001; /* Above header (z-index: 1000) */
        padding-top: 70px; /* Space for header */
        box-shadow: 2px 0 10px rgba(0,0,0,0.15);
    }

    .sidebar.active {
        transform: translateX(0);
    }

    main {
        margin-left: 0;
    }

    /* Dashboard role-cards: 2 columns on laptop */
    .role-cards:not(.guest-content) {
        grid-template-columns: repeat(2, 1fr);
    }

    .modal-content {
        max-width: 90vw;
    }
}

/* TABLET - 480px to 767px */
@media (max-width: 767px) {
    html, body {
        font-size: 14px;
    }

    /* Fix card overflow on mobile */
    .card-white,
    .card,
    [class*="form-container"] {
        overflow: hidden;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    /* Modal fixes for mobile */
    .modal-content,
    .job-modal-content {
        width: 95vw !important;
        max-width: 95vw !important;
        margin: 10px;
        max-height: 90vh;
    }

    .modal-body,
    .job-modal-body {
        padding: 15px !important;
        overflow-x: hidden;
    }

    /* Form inputs should not overflow */
    input, select, textarea {
        max-width: 100%;
        box-sizing: border-box;
    }

    header {
        padding: 10px 0;
    }

    .logo {
        font-size: 1.2rem;
    }

    .sidebar {
        width: 240px;
        padding-top: 60px; /* Smaller header on tablet */
    }

    main {
        padding: 15px;
    }

    .page {
        padding: 15px 0;
    }

    /* Dashboard role-cards: 1 column on tablet */
    .role-cards:not(.guest-content) {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .role-card {
        padding: 20px;
    }

    .hero {
        padding: 40px 20px;
        margin: -15px -15px 30px -15px;
        border-radius: 0 0 15px 15px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .form-container {
        padding: 25px 15px;
    }

    .form-group {
        margin-bottom: 15px;
    }

    .form-control {
        font-size: 16px;
    }

    .btn {
        padding: 12px 16px;
        font-size: 0.95rem;
    }

    .btn-group {
        flex-direction: column;
        gap: 10px;
    }

    .btn-group > .btn {
        width: 100%;
    }

    .sidebar-text {
        display: none;
    }

    .sidebar-icon {
        font-size: 1.5rem;
    }

    .sidebar-item {
        justify-content: center;
        padding: 15px 10px;
    }

    .profile-avatar {
        width: 35px;
        height: 35px;
    }

    /* header-content should stay ROW on mobile - hamburger left, logo center, buttons right */
    .header-content {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
    }

    /* nav-buttons must stay horizontal */
    .nav-buttons {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 6px;
        align-items: center;
    }

    .user-menu {
        flex-direction: row;
        align-items: center;
        gap: 8px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .modal-content {
        max-width: 95vw;
        width: 95vw;
        margin: 20px;
    }

    .card {
        padding: 15px;
    }

    .card-header {
        padding-bottom: 10px;
        margin-bottom: 10px;
    }

    .card-title {
        font-size: 1.1rem;
    }

    .card-footer {
        flex-direction: column;
        gap: 8px;
    }

    .card-footer .btn {
        width: 100%;
    }

    /* TABLE RESPONSIVENESS */
    table {
        font-size: 0.9rem;
    }

    table th,
    table td {
        padding: 10px;
    }

    /* FORM GRID */
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .form-row.two-column {
        grid-template-columns: 1fr;
    }

    .form-row.three-column {
        grid-template-columns: 1fr;
    }

    /* NOTIFICATIONS */
    .notification {
        margin: 10px;
        max-width: calc(100% - 20px);
    }

    /* BADGES AND LABELS */
    .badge {
        font-size: 0.6rem;
        width: 18px;
        height: 18px;
    }

    .status-badge {
        padding: 4px 8px;
        font-size: 0.75rem;
    }

    /* LAYOUT - Sidebar hidden by default on tablet, shown via hamburger */
    /* Note: sidebar sliding handled by .sidebar.active class */

    /* HERO ADJUSTMENTS */
    .role-card {
        text-align: center;
    }

    .role-card h3 {
        font-size: 1.1rem;
    }

    .role-card p {
        font-size: 0.9rem;
    }

    /* TABS RESPONSIVENESS */
    .tabs-header {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .tab-button {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
}

/* MOBILE - Below 480px */
@media (max-width: 479px) {
    html, body {
        font-size: 14px; /* WCAG minimum readable size */
    }

    header {
        padding: 8px 0;
    }

    .logo {
        font-size: 1rem;
    }

    main {
        padding: 10px;
    }

    .page {
        padding: 10px 0;
    }

    .container {
        padding: 0 10px;
    }

    .hero {
        padding: 30px 15px;
        margin: -10px -10px 20px -10px;
    }

    .hero h1 {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .form-container {
        padding: 20px 15px;
        margin: 0;
    }

    .form-group {
        margin-bottom: 12px;
    }

    .form-group label {
        font-size: 0.9rem;
        margin-bottom: 5px;
    }

    .form-control {
        padding: 10px;
        font-size: 16px;
    }

    .btn {
        padding: 10px 12px;
        font-size: 0.9rem;
        border-radius: 6px;
    }

    .btn-large {
        width: 100%;
    }

    .role-cards {
        gap: 10px;
    }

    .role-card {
        padding: 15px;
    }

    .role-card > div {
        font-size: 2rem;
    }

    .role-card h3 {
        font-size: 1rem;
        margin-bottom: 10px;
    }

    .role-card p {
        font-size: 0.85rem;
        margin-bottom: 15px;
    }

    /* Sidebar hidden on mobile - shown via hamburger menu */
    .sidebar {
        width: 220px; /* Full width when opened via toggle */
    }

    main {
        margin-left: 0; /* No sidebar margin on mobile */
    }

    footer {
        padding-left: 0; /* No sidebar padding on mobile */
    }

    .sidebar-item {
        width: auto;
        padding: 15px 20px;
    }

    /* Page header stats - hide on very small screens */
    .page-header-blue .header-stats {
        display: none;
    }

    .sidebar-icon {
        font-size: 1.2rem;
    }

    .profile-avatar {
        width: 30px;
        height: 30px;
        font-size: 0.7rem;
    }

    #user-menu {
        flex-direction: column;
        gap: 5px;
    }

    #user-menu span {
        font-size: 0.75rem;
    }

    .card {
        padding: 12px;
        margin-bottom: 15px;
    }

    .card-header {
        padding-bottom: 8px;
        margin-bottom: 8px;
    }

    .card-title {
        font-size: 1rem;
    }

    .card-subtitle {
        font-size: 0.75rem;
    }

    .card-footer {
        flex-direction: column;
        gap: 6px;
    }

    .card-footer .btn {
        width: 100%;
        padding: 8px;
    }

    /* TABLE */
    table {
        font-size: 0.8rem;
    }

    table th,
    table td {
        padding: 6px;
    }

    /* MODAL */
    .modal-content {
        max-width: 100%;
        width: 100%;
        max-height: 100dvh;
        border-radius: 8px 8px 0 0;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        animation: slideUp 0.3s ease;
    }

    .modal-overlay {
        padding: 0;
    }

    /* FOOTER */
    #main-footer {
        padding: 25px 0;
        margin-top: 30px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    #main-footer .footer-section h3 {
        font-size: 1rem;
        margin-bottom: 10px;
    }

    #main-footer .footer-section p {
        font-size: 0.85rem;
    }

    #main-footer .footer-section ul li {
        margin-bottom: 5px;
    }

    #main-footer .footer-section ul li a {
        font-size: 0.85rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        padding-top: 15px;
    }

    .footer-bottom p {
        font-size: 0.8rem;
    }

    .social-links {
        gap: 10px;
    }

    .social-links a {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    /* NOTIFICATION */
    .notification {
        margin: 5px;
        max-width: calc(100% - 10px);
        font-size: 0.85rem;
    }

    /* BADGE */
    .badge {
        width: 16px;
        height: 16px;
        font-size: 0.6rem;
    }

    .status-badge {
        padding: 3px 6px;
        font-size: 0.7rem;
    }

    /* PROGRESS BAR */
    .progress-bar {
        height: 6px;
    }

    /* LIST ITEMS */
    .list-item {
        gap: 10px;
        padding: 10px 0;
    }

    .list-item-icon {
        font-size: 1.2rem;
    }

    .list-item-title {
        font-size: 0.95rem;
    }

    .list-item-subtitle {
        font-size: 0.75rem;
    }

    /* TABS */
    .tabs-header {
        gap: 0;
    }

    .tab-button {
        padding: 8px 10px;
        font-size: 0.8rem;
    }

    /* ============================================
       WCAG 2.5.5 TOUCH TARGETS - Minimum 44x44px
       ============================================ */
    .btn-icon {
        min-width: 44px;
        min-height: 44px;
    }

    .action-btn,
    .icon-btn,
    .close-btn {
        min-width: 44px;
        min-height: 44px;
    }

    /* Ensure clickable items in lists have adequate touch targets */
    .list-item-action,
    .dropdown-item,
    .menu-item {
        min-height: 44px;
        padding: 10px 12px;
    }

    /* Driver card buttons - ensure touch targets */
    .btn-view-profile,
    .btn-send-offer {
        min-height: 44px;
        padding: 12px 20px;
    }

    /* EMPTY STATE */
    .empty-state {
        padding: 40px 15px;
    }

    .empty-state-icon {
        font-size: 2rem;
        margin-bottom: 10px;
    }

    .empty-state-title {
        font-size: 1rem;
        margin-bottom: 8px;
    }

    .empty-state-text {
        font-size: 0.85rem;
        margin-bottom: 15px;
    }

    /* HIDE ELEMENTS ON MOBILE */
    .hide-mobile {
        display: none !important;
    }

    /* SHOW ELEMENTS ONLY ON MOBILE */
    .show-mobile {
        display: block !important;
    }

    /* ============================================
       HITTA ÅKARE - DRIVER SEARCH (Mobile)
       Compact layout for mobile screens
       ============================================ */
    .driver-search-container {
        padding: 0 !important;
    }

    .driver-search-header {
        padding: 15px 12px !important;
        margin-bottom: 12px !important;
        border-radius: 8px !important;
    }

    .driver-search-header h1 {
        font-size: 1.2rem !important;
        margin-bottom: 4px !important;
    }

    .driver-search-subtitle {
        font-size: 0.8rem !important;
        margin-bottom: 10px !important;
    }

    .driver-search-input-wrapper {
        margin-bottom: 10px !important;
    }

    .driver-search-input {
        padding: 8px 10px !important;
        font-size: 0.9rem !important;
    }

    .driver-filters-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 6px !important;
    }

    .driver-filter-item {
        padding: 8px !important;
    }

    .driver-filter-item label {
        font-size: 0.75rem !important;
        margin-bottom: 3px !important;
    }

    .driver-filter-item select,
    .driver-filter-item input {
        padding: 5px !important;
        font-size: 0.8rem !important;
    }

    .driver-filter-clear {
        grid-column: span 2 !important;
    }

    .driver-clear-btn {
        padding: 6px 12px !important;
        font-size: 0.85rem !important;
    }

    #resultsHeader {
        flex-wrap: wrap;
        gap: 8px;
        padding: 0 8px !important;
    }

    #drivers-sort-select {
        font-size: 0.8rem !important;
        padding: 5px 8px !important;
        max-width: 150px !important;
    }
}

/* ORIENTATION: LANDSCAPE */
@media (orientation: landscape) and (max-height: 600px) {
    header {
        padding: 5px 0;
    }

    main {
        padding: 10px;
    }

    .hero {
        padding: 20px;
        margin-bottom: 15px;
    }

    .hero h1 {
        font-size: 1.3rem;
        margin-bottom: 5px;
    }

    .form-control {
        padding: 8px;
        font-size: 14px;
    }

    .btn {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
}

/* PRINT STYLES */
@media print {
    header,
    .sidebar,
    .notification,
    .modal-overlay,
    .btn-group,
    button,
    footer {
        display: none !important;
    }

    body {
        margin: 0;
        padding: 0;
    }

    main {
        margin: 0;
        padding: 0;
        background: white;
    }

    .page {
        page-break-inside: avoid;
        margin-bottom: 20px;
    }

    .card {
        box-shadow: none;
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }

    a {
        text-decoration: underline;
    }
}

/* TOUCH DEVICE OPTIMIZATIONS */
@media (hover: none) and (pointer: coarse) {
    button,
    a {
        min-height: 44px;
        min-width: 44px;
    }

    .btn {
        padding: 12px 16px;
    }

    .tooltip {
        border-bottom: none;
    }

    .tooltip:hover .tooltip-text {
        display: none;
    }

    /* INCREASE TAP TARGET SIZE */
    .sidebar-item {
        padding: 12px;
    }

    .list-item {
        padding: 12px 0;
    }
}

/* HIGH DPI SCREENS */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* DARK MODE PREFERENCE */
@media (prefers-color-scheme: dark) {
    /* Only apply dark mode if we add support later */
}

/* REDUCED MOTION PREFERENCE */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* LANDSCAPE ORIENTATION - Mobile Devices */
@media (max-height: 600px) and (orientation: landscape) {
    header {
        padding: 8px 0;
        min-height: 50px;
    }

    main {
        margin-left: 50px;
    }

    .sidebar {
        width: 50px;
    }

    .sidebar-item {
        padding: 8px;
    }

    .page {
        padding: 15px;
    }

    /* Reduce modal size on small landscape screens */
    .modal-content {
        max-height: 90vh;
        max-width: 90vw;
    }

    /* Make cards more compact */
    .role-card {
        padding: 12px;
    }
}

/* VIEWPORT HEIGHT OPTIMIZATION */
@media (max-height: 400px) {
    /* Very short screens - optimize for scrolling */
    .hero {
        padding: 20px 15px;
    }

    .hero h1 {
        font-size: 1.2rem;
    }

    .form-group {
        margin-bottom: 10px;
    }
}

/* MODERN VIEWPORT UNITS - Safe area for notches and safe zones */
@supports (padding: max(0px)) {
    @media (max-width: 479px) {
        .sidebar {
            padding-left: max(10px, env(safe-area-inset-left));
            padding-right: max(10px, env(safe-area-inset-right));
        }

        main {
            padding-left: max(10px, env(safe-area-inset-left));
            padding-right: max(10px, env(safe-area-inset-right));
        }

        #main-header {
            padding-left: max(10px, env(safe-area-inset-left));
            padding-right: max(10px, env(safe-area-inset-right));
        }
    }
}

/* SWIPE-OPTIMIZED SIDEBAR NAVIGATION */
@media (max-width: 767px) {
    .sidebar {
        will-change: transform;
        /* Enable GPU acceleration for smooth animations */
        -webkit-transform: translate3d(-100%, 0, 0);
        transform: translate3d(-100%, 0, 0);
    }

    .sidebar.active {
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
    }
}

/* PERFORMANCE OPTIMIZATIONS */
@media (prefers-reduced-data: reduce) {
    /* Reduce image quality and animations on slow connections */
    img {
        filter: none;
    }

    .animation {
        animation: none;
    }
}

/* ========================================
   JOB CARD STATUS INDICATORS
   ======================================== */

/* Orange left border - needs MY action */
.unified-job-card.needs-action {
    border-left: 4px solid #e67e22 !important;
}

/* Blue left border - waiting on other party */
.unified-job-card.waiting-other {
    border-left: 4px solid #3498db !important;
}

/* Completion badge base styles */
.completion-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
}

/* Badge variant - needs action (orange) - WCAG AA compliant contrast */
.completion-badge.needs-action {
    background: #fff3e0;
    color: #b85c00;
    border: 1px solid #b85c00;
}

/* Badge variant - waiting on other party (blue/muted) - WCAG AA compliant */
.completion-badge.waiting {
    background: #e3f2fd;
    color: #0d47a1;
    border: 1px solid #0d47a1;
}

/* Badge variant - invoiced (green) */
.completion-badge.invoiced {
    background: #d4edda;
    color: #155724;
    border: 1px solid #28a745;
}

/* Invoice button styles - moved from inline styles */
.btn-job-invoice {
    background: linear-gradient(135deg, #9b59b6, #8e44ad) !important;
    color: white !important;
}

.btn-job-create-invoice {
    background: linear-gradient(135deg, #27ae60, #229954) !important;
    color: white !important;
    font-weight: bold !important;
}

/* Review button styles */
.btn-job-review {
    background: #ffc107 !important;
    color: #000 !important;
}

.btn-job-reviewed {
    background: #28a745 !important;
    color: white !important;
    opacity: 0.6;
    cursor: not-allowed;
}

/* Mobile adjustments for badges */
@media (max-width: 767px) {
    .completion-badge {
        padding: 3px 8px;
        font-size: 0.75rem;
    }

    /* Waiting banner responsive for mobile */
    .completion-waiting-banner {
        padding: 10px 12px;
        gap: 10px;
    }

    .completion-waiting-icon {
        font-size: 1.4rem;
    }

    .completion-waiting-text strong {
        font-size: 0.85rem;
    }

    .completion-waiting-subtext {
        font-size: 0.75rem;
    }
}
