/* ============================================
   HOMEPAGE COMPONENT STYLES (v3)
   Modern, clean design with CSS variables
   ============================================ */

/* Main container - matching page-container-wide spacing */
/* Note: Parent .page has padding: 40px 20px, we add matching padding like page-container-wide */
.home-page-v3 {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-3xl, 40px);
    min-height: calc(100vh - 120px);
    display: flex;
    flex-direction: column;
}

/* Header with gradient - matching page-header-blue style */
.home-header-v3 {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    border-radius: 12px;
    padding: 25px 30px;
    margin-bottom: 25px;
    color: white;
    flex-shrink: 0;
}

.home-header-v3 .header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-xs, 8px);
}

.home-header-v3 .header-greeting h1 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 600;
}

.home-header-v3 .btn-cta-white {
    background: white;
    color: var(--color-primary, #3498db);
    padding: 8px 16px;
    border-radius: var(--radius-sm, 6px);
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.home-header-v3 .btn-cta-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Stats bar in header - inline compact */
.header-stats-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.header-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    min-width: 100px;
    text-align: center;
}

/* Support both class names */
.header-stat .stat-value,
.header-stat-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
}

.header-stat .stat-label,
.header-stat-label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.9);
    white-space: nowrap;
}

/* Mobile: 2x2 grid for stats */
@media (max-width: 767px) {
    .header-stats-bar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        width: 100%;
    }

    .header-stat {
        padding: 8px 10px;
        min-width: auto;
    }

    .header-stat .stat-value {
        font-size: 1.2rem;
    }

    .header-stat .stat-label {
        font-size: 0.65rem;
    }
}

/* Grid layout - equal height columns with aligned bottom edges */
.home-grid-v3 {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--spacing-lg, 24px);
    flex: 1;
    align-items: stretch; /* Both columns stretch to same height */
}

/* Left column (main content) */
.home-grid-v3 > .home-col-main {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md, 16px);
}

/* Right column (sidebar) with visual separator */
.home-grid-v3 > .home-col-sidebar {
    padding-left: var(--spacing-md, 16px);
    border-left: 2px solid var(--color-border, #e9ecef);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md, 16px);
}

/* Last section in each column grows to fill remaining space */
.home-grid-v3 > .home-col-main > .home-section:last-child,
.home-grid-v3 > .home-col-sidebar > .home-section:last-child {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Content inside stretched sections should fill available space */
.home-grid-v3 > .home-col-main > .home-section:last-child > *:last-child,
.home-grid-v3 > .home-col-sidebar > .home-section:last-child > *:last-child {
    flex: 1;
}

@media (max-width: 900px) {
    .home-grid-v3 {
        grid-template-columns: 1fr;
        /* MOBILE: Show sidebar (guide) FIRST, then main content */
        display: flex;
        flex-direction: column;
    }

    /* MOBILE: Guide/sidebar comes BEFORE main content */
    .home-grid-v3 > .home-col-sidebar {
        order: 1; /* First */
        padding-left: 0;
        border-left: none;
        border-bottom: 2px solid var(--color-border, #e9ecef);
        padding-bottom: var(--spacing-md, 16px);
        margin-bottom: var(--spacing-md, 16px);
        background: none;
        width: 100%; /* Ensure full width on mobile */
        max-width: 100%; /* Prevent overflow */
    }

    .home-grid-v3 > .home-col-main {
        order: 2; /* Second */
        padding-right: 0;
        width: 100%; /* Ensure full width on mobile */
    }

    /* Ensure sections inside sidebar take full width */
    .home-grid-v3 > .home-col-sidebar > .home-section {
        width: 100%;
        box-sizing: border-box;
    }
}

/* Mobile responsive header styles - matching page-header-blue */
@media (max-width: 767px) {
    .home-page-v3 {
        padding: 12px;
    }

    .home-header-v3 {
        padding: 15px;
        border-radius: 8px;
        margin-bottom: 15px;
    }

    .home-header-v3 .header-greeting h1 {
        font-size: 1.3rem;
    }

    .home-header-v3 .header-greeting p {
        font-size: 0.85rem;
    }

    /* Kompakta stat-bubblor */
    .home-header-v3 .header-stats {
        gap: 8px;
    }

    .home-header-v3 .stat-bubble-v3 {
        padding: 8px 12px;
    }

    .home-header-v3 .stat-bubble-v3 .stat-value {
        font-size: 1.2rem;
    }

    .home-header-v3 .stat-bubble-v3 .stat-label {
        font-size: 0.7rem;
    }

    /* Kompakta sektioner */
    .home-section {
        padding: 12px;
        margin-bottom: 12px;
    }

    .home-section .section-title {
        font-size: 1rem;
    }

    /* Guide section compact on mobile */
    .guide-section-compact {
        padding: 12px;
    }

    .guide-header-compact {
        flex-wrap: wrap;
        gap: 6px;
    }

    .guide-progress-badge {
        margin-left: auto;
    }

    .checklist-items {
        margin-top: 10px;
        gap: 6px;
    }

    .checklist-item {
        padding: 10px;
        gap: 10px;
    }

    .checklist-item-status {
        width: 24px;
        height: 24px;
        font-size: 0.75rem;
    }

    .checklist-item-title {
        font-size: 0.85rem;
    }

    .guide-tour-btn {
        padding: 8px;
        font-size: 0.8rem;
        margin-top: 10px;
    }

    /* Notifications section compact on mobile */
    .notifications-section-compact {
        padding: 12px;
    }

    .notifications-list-compact {
        gap: 6px;
    }

    button.notification-item-compact {
        padding: 8px 10px;
        gap: 6px;
    }

    .notification-icon-compact {
        font-size: 0.9rem;
    }

    .notification-text-compact {
        font-size: 0.8rem;
    }
}

/* Sections - compact padding */
.home-section {
    background: white;
    border-radius: var(--radius-md, 8px);
    padding: var(--spacing-md, 16px);
    box-shadow: var(--shadow-sm, 0 2px 8px rgba(0, 0, 0, 0.08));
}

/* Section-specific left border accents for visual separation */
.quick-actions-section {
    border-left: 4px solid var(--color-primary);
}

.activity-section {
    border-left: 4px solid #95a5a6;
}

.guide-section-compact {
    border-left: 4px solid var(--color-success);
}

.notifications-section-compact {
    border-left: 4px solid var(--color-warning);
}

.section-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text, #2c3e50);
    margin: 0 0 var(--spacing-sm, 12px) 0;
    padding-bottom: var(--spacing-xs, 8px);
    border-bottom: 1px solid var(--color-border, #eee);
}

/* Quick Actions Grid - always 2x2 */
.quick-actions-grid-2x2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg, 24px);
}

@media (max-width: 600px) {
    /* Snabbåtgärder - 2x2 grid på mobil med kompakta kort */
    .quick-actions-grid-2x2 {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
    }

    .quick-actions-grid-2x2 .action-card-v3 {
        min-height: 80px;
        padding: 12px 8px;
    }

    .quick-actions-grid-2x2 .action-icon-v3 {
        font-size: 1.5rem;
        margin-bottom: 6px;
    }

    .quick-actions-grid-2x2 .action-title-v3 {
        font-size: 0.8rem;
    }
}

.action-card-v3 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xl, 32px) var(--spacing-lg, 24px);
    background: var(--color-bg-light, #f8f9fa);
    border: 2px solid transparent;
    border-radius: var(--radius-lg, 12px);
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    min-height: 130px;
}

.action-card-v3:hover {
    background: white;
    border-color: var(--color-primary, #3498db);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md, 0 4px 12px rgba(0, 0, 0, 0.1));
}

.action-card-v3:focus-visible {
    outline: 2px solid var(--color-primary, #3498db);
    outline-offset: 2px;
    background: white;
}

.action-icon-v3 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md, 16px);
}

.action-title-v3 {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--color-text, #2c3e50);
}

/* Activity section */
.activity-list-compact {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs, 8px);
}

/* Activity items as buttons for accessibility */
button.activity-item-compact {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    gap: var(--spacing-xs, 8px);
    align-items: center;
    padding: var(--spacing-xs, 8px) var(--spacing-sm, 12px);
    background: var(--color-bg-light, #f8f9fa);
    border-radius: var(--radius-sm, 6px);
    transition: background 0.2s;
    font-size: 0.9rem;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

button.activity-item-compact:hover {
    background: var(--color-bg-hover, #e9ecef);
}

button.activity-item-compact:focus-visible {
    outline: 2px solid var(--color-primary, #3498db);
    outline-offset: 2px;
}

.activity-dot-compact {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-text-muted, #95a5a6);
}

.activity-dot-compact.active { background: var(--color-primary, #3498db); }
.activity-dot-compact.success { background: var(--color-success, #27ae60); }
.activity-dot-compact.completed { background: var(--color-success, #27ae60); }
.activity-dot-compact.pending { background: var(--color-warning, #f39c12); }
.activity-dot-compact.rejected { background: var(--color-error, #e74c3c); }
.activity-dot-compact.cancelled { background: var(--color-text-muted, #95a5a6); }

.activity-text-compact {
    font-weight: 500;
    color: var(--color-text, #2c3e50);
}

.activity-meta-compact {
    font-size: 0.85rem;
    color: var(--color-text-muted, #7f8c8d);
}

.activity-time-compact {
    font-size: 0.8rem;
    color: var(--color-text-muted, #95a5a6);
    white-space: nowrap;
}

.empty-activity-compact {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs, 8px);
    padding: var(--spacing-md, 16px);
    color: var(--color-text-muted, #7f8c8d);
    justify-content: center;
}

/* Guide section */
.guide-section-compact {
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
}

.guide-header-compact {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs, 8px);
    margin-bottom: var(--spacing-sm, 12px);
}

.guide-icon-compact {
    font-size: 1.2rem;
}

.guide-steps-compact {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs, 8px);
}

.guide-step-compact {
    display: flex;
    gap: var(--spacing-sm, 12px);
    align-items: center;
}

.step-number-compact {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--color-primary, #3498db);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.step-content-compact h4 {
    margin: 0;
    font-size: 0.85rem;
    color: var(--color-text, #2c3e50);
}

.step-content-compact p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--color-text-muted, #7f8c8d);
    line-height: 1.3;
}

.guide-full-btn {
    margin-top: var(--spacing-sm, 12px);
    width: 100%;
}

/* Guide section compact title */
.guide-section-compact .section-title {
    border: none;
    padding: 0;
    margin: 0;
}

/* Notifications section */
.notifications-section-compact .section-title {
    border: none;
    padding: 0;
}

.notifications-list-compact {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Notification items as buttons for accessibility */
button.notification-item-compact {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs, 8px);
    padding: var(--spacing-xs, 8px) var(--spacing-sm, 12px);
    background: var(--color-bg-light, #f8f9fa);
    border-radius: var(--radius-sm, 6px);
    transition: background 0.2s;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

button.notification-item-compact:hover {
    background: var(--color-bg-hover, #e9ecef);
}

button.notification-item-compact:focus-visible {
    outline: 2px solid var(--color-primary, #3498db);
    outline-offset: 2px;
}

.notification-item-compact.unread {
    background: rgba(52, 152, 219, 0.1);
    border-left: 3px solid var(--color-primary, #3498db);
}

.notification-icon-compact {
    font-size: 1rem;
}

.notification-text-compact {
    flex: 1;
    font-size: 0.85rem;
    color: var(--color-text, #2c3e50);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (min-width: 768px) {
    .notification-text-compact {
        -webkit-line-clamp: 1;
    }
}

.empty-notifications-compact {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs, 8px);
    padding: var(--spacing-sm, 12px);
    color: var(--color-text-muted, #7f8c8d);
    justify-content: center;
    font-size: 0.9rem;
}

/* Button styles */
.btn-link {
    background: none;
    border: none;
    color: var(--color-primary, #3498db);
    cursor: pointer;
    padding: var(--spacing-xs, 8px) 0;
    font-size: 0.9rem;
}

.btn-link:hover {
    text-decoration: underline;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--color-primary, #3498db);
    color: var(--color-primary, #3498db);
    padding: var(--spacing-xs, 8px) var(--spacing-md, 16px);
    border-radius: var(--radius-sm, 6px);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-outline:hover {
    background: var(--color-primary, #3498db);
    color: white;
}

.btn-sm {
    font-size: 0.85rem;
    padding: var(--spacing-xs, 8px) var(--spacing-sm, 12px);
}

/* ============================================
   ROLE-BASED MODIFIERS
   ============================================ */

/* Driver theme (blue) */
.guide-section-compact.guide--driver .guide-header-compact {
    color: var(--color-primary, #3498db);
}

.guide-section-compact.guide--driver .step-number-compact {
    background: var(--color-primary, #3498db);
}

/* Supplier theme (green) */
.guide-section-compact.guide--supplier .guide-header-compact {
    color: var(--color-success, #27ae60);
}

.guide-section-compact.guide--supplier .step-number-compact {
    background: var(--color-success, #27ae60);
}

/* Full guide (used in renderGuide) */
.home-guide {
    padding: var(--spacing-2xl, 30px);
    border-radius: var(--radius-xl, 16px);
    margin-bottom: var(--spacing-2xl, 30px);
    color: white;
}

.home-guide.guide--driver {
    background: linear-gradient(135deg, var(--color-primary, #3498db) 0%, var(--color-primary-dark, #2980b9) 100%);
}

.home-guide.guide--supplier {
    background: linear-gradient(135deg, var(--color-success, #27ae60) 0%, var(--color-success-dark, #229954) 100%);
}

.home-guide h2 {
    margin: 0 0 var(--spacing-md, 15px) 0;
    font-size: 1.6rem;
}

.home-guide > p {
    margin: 0 0 var(--spacing-xl, 25px) 0;
    opacity: 0.95;
    font-size: 1.05rem;
}

.guide-steps {
    display: grid;
    gap: var(--spacing-md, 15px);
}

.guide-step {
    background: rgba(255, 255, 255, 0.15);
    padding: var(--spacing-lg, 20px);
    border-radius: var(--radius-lg, 12px);
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md, 15px);
}

.guide-step .step-number {
    background: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.home-guide.guide--driver .step-number {
    color: var(--color-primary, #3498db);
}

.home-guide.guide--supplier .step-number {
    color: var(--color-success, #27ae60);
}

.guide-step .step-content {
    flex: 1;
}

.guide-step .step-content h4 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
}

.guide-step .step-content p {
    margin: 0;
    opacity: 0.9;
    font-size: 0.95rem;
}

.guide-step .btn {
    margin-top: var(--spacing-sm, 10px);
    background: white;
}

.home-guide.guide--driver .guide-step .btn {
    color: var(--color-primary, #3498db);
}

.home-guide.guide--supplier .guide-step .btn {
    color: var(--color-success, #27ae60);
}

/* ============================================
   PROFILE COMPLETION SECTION
   ============================================ */

.profile-completion-section {
    border-left: 4px solid #9b59b6;
    cursor: pointer;
    transition: all 0.2s ease;
}

.profile-completion-section:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md, 0 4px 12px rgba(0, 0, 0, 0.12));
}

.profile-completion-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm, 12px);
    margin-bottom: var(--spacing-md, 16px);
}

.profile-completion-header .section-title {
    border: none;
    padding: 0;
    margin: 0;
}

/* Circular Progress Bar */
.circular-progress {
    position: relative;
    width: 70px;
    height: 70px;
    flex-shrink: 0;
}

.circular-progress svg {
    transform: rotate(-90deg);
    width: 70px;
    height: 70px;
}

.circular-progress .progress-bg {
    fill: none;
    stroke: #e9ecef;
    stroke-width: 6;
}

.circular-progress .progress-bar {
    fill: none;
    stroke: #9b59b6;
    stroke-width: 6;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.5s ease;
}

.circular-progress .progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1rem;
    font-weight: 700;
    color: #9b59b6;
}

.profile-completion-content {
    flex: 1;
}

.profile-completion-content h3 {
    margin: 0 0 4px 0;
    font-size: 0.95rem;
    color: var(--color-text, #2c3e50);
    font-weight: 600;
}

.profile-completion-content p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--color-text-muted, #7f8c8d);
}

.profile-missing-fields {
    margin-top: var(--spacing-sm, 12px);
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.missing-field-tag {
    background: #fef5e7;
    color: #d68910;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.profile-completion-cta {
    margin-top: var(--spacing-md, 16px);
    display: flex;
    align-items: center;
    gap: 6px;
    color: #9b59b6;
    font-size: 0.9rem;
    font-weight: 600;
}

.profile-completion-cta::after {
    content: '→';
    transition: transform 0.2s;
}

.profile-completion-section:hover .profile-completion-cta::after {
    transform: translateX(4px);
}

/* Dynamic layout: When sidebar should match quick-actions height only */
.home-col-sidebar.sidebar-compact {
    align-self: start; /* Don't stretch to full column height */
}

/* Override the flex:1 rule for compact sidebar */
.home-col-sidebar.sidebar-compact > .home-section:last-child {
    flex: 0 0 auto;
}

/* ============================================
   UPCOMING JOBS SECTION
   ============================================ */

.upcoming-jobs-section {
    margin-bottom: var(--spacing-md, 16px);
}

.upcoming-jobs-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs, 8px);
    max-height: 280px;
    overflow-y: auto;
}

.upcoming-jobs-loading {
    padding: var(--spacing-md, 16px);
    text-align: center;
    color: var(--color-text-muted, #95a5a6);
}

.empty-upcoming-jobs {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm, 12px);
    padding: var(--spacing-lg, 24px);
    color: var(--color-text-muted, #95a5a6);
    text-align: center;
}

.empty-upcoming-jobs .empty-icon {
    font-size: 2rem;
}

/* Upcoming job card - clickable button */
button.upcoming-job-card {
    display: grid !important;
    grid-template-columns: 56px 1fr 90px !important;
    gap: 12px !important;
    align-items: center !important;
    padding: 12px !important;
    background: var(--color-surface, #fff) !important;
    border: 1px solid var(--color-border, #e0e0e0) !important;
    border-radius: 8px !important;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left !important;
    width: 100% !important;
    box-sizing: border-box !important;
    font-family: inherit;
    font-size: inherit;
}

.upcoming-job-card:hover {
    border-color: var(--color-primary, #3498db);
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.15);
    transform: translateY(-1px);
}

.upcoming-job-card:focus-visible {
    outline: 2px solid var(--color-primary, #3498db);
    outline-offset: 2px;
}

/* Date column */
.upcoming-job-card .upcoming-job-date {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    justify-self: start !important;
    background: var(--color-primary, #3498db) !important;
    color: white !important;
    border-radius: 6px !important;
    padding: 6px 8px !important;
    width: 48px !important;
    min-width: 48px !important;
    max-width: 48px !important;
    height: 50px !important;
    box-sizing: border-box !important;
}

.upcoming-job-day {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.upcoming-job-month {
    font-size: 0.7rem;
    text-transform: uppercase;
    opacity: 0.9;
}

/* Info column */
.upcoming-job-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0; /* Allow text truncation */
}

.upcoming-job-title {
    font-weight: 600;
    color: var(--color-text-primary, #2c3e50);
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.upcoming-job-route {
    font-size: 0.85rem;
    color: var(--color-text-secondary, #666);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.upcoming-job-meta {
    display: flex;
    gap: var(--spacing-sm, 12px);
    font-size: 0.8rem;
    color: var(--color-text-muted, #95a5a6);
}

.upcoming-job-countdown {
    font-weight: 500;
}

.upcoming-job-countdown.soon {
    color: var(--color-warning, #f39c12);
    font-weight: 600;
}

/* Price column */
.upcoming-job-price {
    font-weight: 600;
    color: var(--color-success, #27ae60);
    font-size: 0.95rem;
    white-space: nowrap;
    text-align: right;
    justify-self: end;
}

/* Mobile responsive */
@media (max-width: 480px) {
    .upcoming-job-card {
        grid-template-columns: 45px 1fr;
        gap: var(--spacing-xs, 8px);
    }

    .upcoming-job-price {
        grid-column: 2;
        font-size: 0.85rem;
    }

    .upcoming-job-date {
        width: 45px;
        min-width: 45px;
        max-width: 45px;
    }

    .upcoming-job-day {
        font-size: 1.2rem;
    }

    .upcoming-jobs-list {
        max-height: 220px;
    }
}
