﻿/* ======================================================
   AUTH
====================================================== */

.pantone-input-wrapper {
    position: relative;
    width: 100%;
}

.pantone-input-icon-modern {
    position: absolute;
    top: 50%;
    left: 18px; /* More spacing */
    transform: translateY(-50%);
    font-size: 1.25rem;
    color: var(--pantone-primary);
    pointer-events: none;
    z-index: 5;
}

.pantone-input-modern {
    padding-left: 60px !important; /* Critical fix */
    height: 50px;
    line-height: 50px;
    border-radius: var(--radius-md);
    border: 2px solid var(--pantone-primary-light);
    font-size: 1rem;
    transition: all .2s ease;
    width: 100%;
}

    .pantone-input-modern::placeholder {
        color: var(--text-placeholder);
        opacity: 0.8;
    }

    .pantone-input-modern:focus {
        border-color: var(--pantone-primary);
        box-shadow: var(--shadow-sm);
    }

.pantone-auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 0;
    min-height: calc(100vh - 160px); /* Adjust based on header+footer height */
}

.pantone-auth-card {
    width: 100%;
    max-width: 480px;
}

.pantone-input-standard {
    border: 2px solid var(--pantone-primary-light);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: 0.95rem;
    transition: all .2s ease;
}

    .pantone-input-standard:focus {
        border-color: var(--pantone-primary);
        box-shadow: var(--shadow-sm);
    }

    .pantone-input-standard::placeholder {
        color: var(--text-placeholder);
        opacity: 0.8;
    }

.badge.bg-primary-pantone {
    background-color: var(--pantone-primary-light) !important;
    color: var(--text-main) !important;
    border: 1px solid var(--pantone-primary) !important;
}

    .badge.bg-primary-pantone .chip-remove {
        color: var(--text-main) !important;
    }


@media (max-width: 768px) {
    .pantone-auth-card {
        max-width: 100%;
    }
}


/* ------------------------------------------------------
   DASHBOARD
---------------------------------------------------------*/

.dashboard-card {
    padding: clamp(16px, 2vw, 24px);
    background: var(--pantone-surface);
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all .25s ease;
}

    .dashboard-card:hover {
        transform: translateY(-4px);
    }

.dashboard-value {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 700;
    color: var(--text-main);
    line-height: 1;
}

.trip-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--space-4);
}

.dashboard-label {
    margin-top: 10px;
    color: var(--text-muted);
}

.dashboard-section {
    background: var(--pantone-surface);
    border-radius: var(--radius-lg);
    padding: clamp(16px, 2vw, 24px);
    box-shadow: var(--shadow-md);
}

.dashboard-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.trip-card {
    background: var(--pantone-surface-elevated);
    border-radius: var(--radius-lg);
    padding: 18px;
    border-left: 4px solid var(--pantone-primary);
}

.trip-title {
    font-size: 1rem;
    line-height: 1.3;
    margin-bottom: 4px;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.trip-city {
    font-size: .9rem;
    margin-bottom: 4px;
}

.trip-dates {
    font-size: .85rem;
    color: var(--text-muted);
}

.total-card {
    border-top: 4px solid var(--pantone-primary);
}

.draft-card {
    border-top: 4px solid var(--text-muted);
}

.ready-card {
    border-top: 4px solid var(--pantone-success);
}

.progress-card {
    border-top: 4px solid var(--pantone-warning);
}

.completed-card {
    border-top: 4px solid var(--pantone-success);
}

.shared-card {
    border-top: 4px solid var(--pantone-accent);
}

.access-card {
    border-top: 4px solid var(--pantone-accent-light);
}

.trip-list {
    max-height: 500px;
    overflow-y: auto;
    padding-right: 6px;
}

#cityChart {
    width: 100% !important;
    height: 350px !important;
}

@media (max-width: 768px) {

    .dashboard-card {
        padding: 16px;
    }

    .dashboard-value {
        font-size: 1.5rem;
    }

    .dashboard-label {
        font-size: .85rem;
    }

    .dashboard-title {
        font-size: 1rem;
    }

    .trip-header {
        flex-direction: column;
        align-items: flex-start;
    }

    #cityChart {
        height: 280px !important;
    }

    .trip-list {
        max-height: none;
    }
}


/* ======================================================
   GENERATE WIZARD
====================================================== */

.wizard-step {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 420px;
    padding: var(--space-5);
}

.wizard-columns {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 1000px;
    gap: 60px;
}

.wizard-left {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.wizard-right {
    flex: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    min-width: 0;
}

.wizard-hero-img {
    width: 100%;
    max-width: 320px;
    height: auto;
    object-fit: contain;
    opacity: .95;
}

#CityInput,
#FromDateInput,
#ToDateInput {
    width: 100%;
    max-width: 400px;
}

#PreferencesInput {
    width: 100%;
    max-width: 700px;
}

.wizard-buttons {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: var(--space-4);
    margin-top: var(--space-5);
}

@media (max-width: 768px) {

    .wizard-columns {
        flex-direction: column;
        gap: 24px;
        max-width: 100%;
    }

    .wizard-step {
        padding: 1rem;
        min-height: auto;
    }

    .wizard-left,
    .wizard-right {
        width: 100%;
        text-align: center;
    }

    .wizard-hero-img {
        max-width: 220px;
    }

    .wizard-buttons {
        justify-content: center;
    }

        .wizard-buttons .btn {
            width: 100%;
        }
}

/* ======================================================
   ITINERARY
====================================================== */

.activity-card {
    padding: 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--pantone-border);
    background: var(--pantone-surface-elevated);
    cursor: pointer;
}

    .activity-card:hover {
        background: var(--activity-selected-bg);
    }

.activity-selected {
    border-left: 4px solid var(--pantone-primary);
}

.day-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.day-color-circle {
    width: 16px;
    height: 16px;
    margin-left: 10px;
    border-radius: 50%;
}

.activity-vertical-wrapper {
    height: calc(100vh - 180px);
    overflow-y: auto;
    padding-right: 10px;
    border-right: 1px solid #ddd;
}

.step-wrapper {
    height: calc(80vh - 80px); /* adjust based on your header height */
}

    .step-wrapper .row {
        height: 100%;
    }

.activity-list {
    height: 100%;
    overflow-y: auto;
    border-right: 1px solid var(--pantone-border);
    background: var(--pantone-surface-alt);
    padding: 10px;
}

.activity-item {
    cursor: pointer;
    padding: 10px;
    border-bottom: 1px solid var(--pantone-border-light);
}

    .activity-item:hover {
        background: var(--pantone-surface-hover);
    }

    .activity-item.active {
        background: var(--activity-selected-bg);
        border-left-color: var(--activity-selected-border);
    }

.day-tab-mobile {
    display: none;
}

.day-tab-full {
    display: inline;
}

.activity-summary {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.activity-details {
    margin-top: 10px;
    padding: 10px;
    border-left: 3px solid var(--pantone-primary);
    background: var(--pantone-surface-alt);
    border-radius: var(--radius-sm);
    font-size: .9rem;
}

    .activity-details div + div {
        margin-top: 6px;
    }

.activity-total-time {
    display: inline-block;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    background: #d9eaff;
    font-weight: 600;
    white-space: nowrap;
}

@media (max-width:768px) {

    .itinerary-table,
    .itinerary-table thead,
    .itinerary-table tbody,
    .itinerary-table th,
    .itinerary-table td,
    .itinerary-table tr {
        display: block;
    }

        .itinerary-table thead {
            display: none;
        }

        .itinerary-table tbody tr {
            background: var(--pantone-surface-elevated);
            border: 1px solid var(--pantone-border);
            border-radius: var(--radius-md);
            margin-bottom: 12px;
            padding: 12px;
            box-shadow: var(--shadow-sm);
        }

        .itinerary-table td {
            border: none;
            padding: 6px 0;
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            gap: 12px;
        }

            .itinerary-table td::before {
                content: attr(data-label);
                color: var(--pantone-primary);
                font-weight: 600;
                flex-shrink: 0;
                min-width: 100px;
            }

            .itinerary-table td:nth-child(2) {
                display: block;
            }

                .itinerary-table td:nth-child(2)::before {
                    display: block;
                    margin-bottom: 6px;
                }

            .itinerary-table td:last-child {
                justify-content: flex-start;
            }
}

@media (max-width:768px) {

    .edit-itinerary-table,
    .edit-itinerary-table thead,
    .edit-itinerary-table tbody,
    .edit-itinerary-table th,
    .edit-itinerary-table td,
    .edit-itinerary-table tr {
        display: block;
    }

        .edit-itinerary-table thead {
            display: none;
        }

        .edit-itinerary-table tbody tr {
            background: var(--pantone-surface-elevated);
            border: 1px solid var(--pantone-border);
            border-radius: var(--radius-md);
            margin-bottom: 10px;
            padding: 10px 20px 10px 20px;
            box-shadow: var(--shadow-sm);
            height: auto !important;
        }

        .edit-itinerary-table td {
            border: none;
            padding: 2px 0;
        }

            /* hide drag column */

            .edit-itinerary-table td:first-child {
                display: none;
            }

            /* time */

            .edit-itinerary-table td:nth-child(2) {
                font-weight: 700;
                color: var(--pantone-primary);
                font-size: 1rem;
            }

            /* activity */

            .edit-itinerary-table td:nth-child(3) {
                margin-top: 2px;
            }

            /* duration */

            .edit-itinerary-table td:nth-child(4) {
                margin-top: 2px;
            }

            /* details */

            .edit-itinerary-table td:nth-child(5) {
                margin-top: 2px;
            }

            /* actions */

            .edit-itinerary-table td:nth-child(6) {
                margin-top: 2px;
            }

        .edit-itinerary-table .action-buttons-vertical {
            flex-direction: row;
            justify-content: flex-end;
            align-items: center;
            gap: 8px;
        }


    .day-tab-full {
        display: none;
    }

    .day-tab-mobile {
        display: inline;
        font-weight: 600;
    }

    .day-tabs .nav-link {
        min-width: 48px;
        padding-left: 10px;
        padding-right: 10px;
        text-align: center;
    }
}

/* ======================================================
   STEP BY STEP
====================================================== */

/* TOP NAV */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

/* BOTTOM ACTIONS */
.top-actions {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.activity-item-current {
    background-color: var(--activity-current-bg);
    border-left-color: var(--activity-current-border);
}

.activity-item-completed {
    background-color: var(--activity-completed-bg);
    border-left-color: var(--activity-completed-border);
}

.activity-item-skipped {
    background-color: var(--activity-skipped-bg);
    border-left-color: var(--activity-skipped-border);
}

.activity-item-future {
    background-color: var(--activity-future-bg);
    border-left: 4px solid var(--activity-future-border);
}

.activity-item {
    position: relative;
    padding-left: 20px;
    border-left: 4px solid transparent;
}

.photo-thumb {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid #ddd;
}


.page-wrapper {
    height: calc(100vh - 210px);
    display: flex;
    flex-direction: column;
}

.sidebar {
    height: 100%;
    overflow-y: auto;
    padding-right: 10px;
    border-right: 1px solid #ddd;
    background: #fafafa;
}

.activity-selected {
    border-left: 4px solid var(--pantone-primary);
}

.nav-activity-btn {
    min-width: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.nav-label {
    font-size: .75rem;
    opacity: .8;
}

.nav-title {
    font-size: .95rem;
    font-weight: 600;
    max-width: 220px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.step-layout {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.map-section {
    display: flex;
    flex-direction: column;
    flex: 0 0 calc(100% - 150px);
    min-height: 0;
}

.activity-timeline {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    padding: 10px;
    border-top: 1px solid var(--pantone-border);
    flex-shrink: 0;
    min-height: 130px;
    height: 130px;
    flex: 0 0 130px;
}

.activity-timeline-card {
    flex-shrink: 0;
    min-width: 280px;
    max-width: 320px;
    height: 100px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 4px;
    padding: 10px 10px;
    margin-bottom: 0 !important;
}

.timeline-day-header {
    flex-shrink: 0;
    min-width: 180px;
    max-width: 180px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    margin-left: 12px;
}

.timeline-day-title {
    line-height: 1.2;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.activity-title-link {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-decoration: none;
    font-weight: 600;
    font-size: .95rem;
    line-height: 1.3;
}

.timeline-row-1 {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 8px;
    font-size: .85rem;
}

.activity-status-badge {
    margin-left: auto;
}

.timeline-counter {
    font-weight: 700;
    color: var(--pantone-primary);
}

.timeline-row-2 {
    width: 100%;
}

.timeline-row-3 {
    width: 100%;
    font-size: .8rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.timeline-row-4 {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: .8rem;
    color: var(--text-muted);
}

@media (max-width: 1100px) {

    .nav-title {
        display: none;
    }

    .nav-label {
        font-size: 0;
    }

        .nav-label i {
            font-size: 1.25rem;
        }

    .nav-activity-btn {
        width: 44px;
        height: 44px;
        min-width: 44px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .nav-activity-btn .nav-label {
            display: flex;
            align-items: center;
            justify-content: center;
        }

    .top-actions {
        gap: 8px;
    }

    .action-label {
        display: none;
    }

    #topActionButtons .btn {
        width: 44px;
        height: 44px;
        min-width: 44px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

        #topActionButtons .btn i {
            margin: 0 !important;
        }
}

/* ======================================================
   PREVIEW MAP + EDIT ITINERARY MAP + PUBLIC ITINERARY MAP
====================================================== */

.preview-map-layout {
    height: calc(100vh - 192px);
    display: flex;
    flex-direction: column;
}

.preview-map-timeline {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    padding: 10px;
    border-top: 1px solid var(--pantone-border);
    height: 150px;
    min-height: 150px;
    flex: 0 0 150px;
}

.preview-map-card {
    flex-shrink: 0;
    min-width: 250px;
    max-width: 320px;
    height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 4px;
    padding: 10px 12px;
}

.preview-map-day-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-shrink: 0;
    min-width: 180px;
    max-width: 180px;
    height: 120px;
    color: white;
    padding: 10px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    text-align: center;
}

/* ======================================================
   REELS
====================================================== */

.reels-container {
    height: calc(100vh - 90px);
    overflow-y: auto;
    scroll-snap-type: y mandatory;
}

.itinerary-reel {
    height: calc(100vh - 90px);
    width: 100%;
    scroll-snap-align: start;
    position: relative;
}

.days-slider {
    display: flex;
    height: 100%;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
}

    .days-slider::-webkit-scrollbar {
        display: none;
    }

.reel-page {
    min-width: 100%;
    height: 100%;
    overflow-y: auto;
    scroll-snap-align: start;
    max-width: 100vw;
    box-sizing: border-box;
}

.reel-cover {
    position: relative;
    background-position: center top;
    /* fit height */
    background-size: auto 100%;
    /* repeat horizontally */
    background-repeat: repeat-x;
    overflow: hidden;
}

.reel-cover-overlay {
    display: none;
}

.cover-content {
    position: relative;
    z-index: 2;
    width: 90%;
    max-width: 1400px;
    margin: auto;
}

    .cover-content .btn {
        box-shadow: var(--shadow-lg);
    }

.cover-info-card {
    background: rgba(255,255,255,.92);
    border-radius: var(--radius-lg);
    padding: 24px 36px;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(8px);
    display: block;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.cover-location-pill {
    display: inline-flex;
    align-items: center;
    padding: 10px 22px;
    border-radius: var(--radius-pill);
    background: rgba(255,255,255,.15);
    backdrop-filter: blur(10px);
    font-size: 1rem;
    margin-bottom: 30px;
}

.cover-title {
    color: #1f2937;
    text-shadow: none;
    margin-bottom: 10px;
    font-size: clamp(2rem, 5vw, 4rem);
}

.cover-subtitle {
    color: #4b5563;
    font-weight: 500;
}

.cover-stats {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.cover-stat-card {
    background: rgba(255,255,255,.95);
    border-radius: var(--radius-lg);
    padding: 18px 26px;
    color: #1f2937;
    box-shadow: var(--shadow-md);
}

.cover-stat-label {
    opacity: .8;
    font-size: .9rem;
    margin-bottom: 6px;
}

.cover-stat-value {
    font-size: 1.15rem;
    font-weight: 600;
}

.cover-callout {
    font-size: 1.1rem;
    opacity: .9;
}

.cover-city {
    font-size: 1.4rem;
}

.cover-created,
.cover-days {
    margin-top: 20px;
    font-size: 1.1rem;
}

.swipe-hint {
    margin-top: 60px;
    opacity: .8;
}

.reel-actions {
    position: absolute;
    right: 25px;
    bottom: 80px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.reel-action-btn {
    width: 56px;
    height: 56px;
    border: none;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: black;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
}

.day-container {
    width: 90%;
    max-width: 900px;
    margin: auto;
}

.day-title {
    text-align: center;
    margin-bottom: 40px;
}

.timeline-item {
    display: flex;
    gap: 24px;
}

.timeline-time {
    width: 90px;
    font-weight: 700;
}

.timeline-center {
    width: 20px;
}

.timeline-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--pantone-primary);
}

.timeline-content {
    flex: 1;
    padding-bottom: 25px;
}

.activity-title {
    font-weight: 600;
    font-size: 1.1rem;
}

.activity-metadata {
    margin-top: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: #6c757d;
    font-size: .9rem;
}

.timeline-commute {
    margin-left: 114px;
    color: #6c757d;
    padding-bottom: 16px;
}

.cover-content,
.cover-stats,
.day-container,
.timeline,
.timeline-content {
    min-width: 0;
}

@@media (max-width: 1200px) {

    .cover-content {
        width: 100%;
        max-width: 100%;
    }

    .cover-info-card {
        max-width: 100%;
    }

    .cover-title {
        font-size: 3rem;
    }

    .cover-stats {
        flex-wrap: wrap;
    }

    .day-container {
        width: 100%;
        max-width: 100%;
        padding: 0 20px;
    }
}

@media (max-width: 768px) {

    .reel-page {
        width: 100%;
        max-width: 100vw;
        padding: 16px;
        box-sizing: border-box;
    }

    .cover-content {
        width: 100%;
    }

    .cover-info-card {
        width: 100%;
        max-width: 100%;
        display: block;
        padding: 16px;
        box-sizing: border-box;
    }

    .cover-stats {
        display: flex;
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }

    .cover-stat-card {
        width: 100%;
        max-width: none;
        box-sizing: border-box;
    }

    .day-container {
        width: 100%;
        max-width: 100%;
        padding: 0;
    }

    .timeline-item {
        flex-direction: column;
        gap: 6px;
    }

    .timeline-center {
        display: none;
    }

    .timeline-time {
        width: auto;
    }

    .timeline-commute {
        margin-left: 0;
    }

    .day-header {
        margin-bottom: 20px;
    }

    .day-title {
        font-size: 1.3rem;
    }

    .cover-title {
        font-size: 2rem;
    }

    .reel-actions {
        position: fixed;
        bottom: 20px;
        right: 12px;
        gap: 8px;
    }

    .reel-action-btn {
        width: 48px;
        height: 48px;
    }
}

/* ======================================================
   TASKS
====================================================== */

.priority-low,
.priority-medium,
.priority-high {
    display: inline-flex;
    align-items: center;
    padding: .35rem .75rem;
    border-radius: var(--radius-pill);
    font-size: .85rem;
    font-weight: 600;
}

.priority-low {
    background: #e7f5ec;
    color: #2e8b57;
}

.priority-medium {
    background: #fff3cd;
    color: #856404;
}

.priority-high {
    background: #f8d7da;
    color: #842029;
}

.task-completed {
    opacity: .75;
    background: var(--pantone-surface-alt);
}

.task-overdue {
    border-left: 4px solid var(--pantone-danger);
}

@media (max-width: 768px) {

    #taskTable,
    #taskTable thead,
    #taskTable tbody,
    #taskTable th,
    #taskTable td,
    #taskTable tr {
        display: block;
    }

        #taskTable thead {
            display: none;
        }

        #taskTable tbody tr {
            background: var(--pantone-surface-elevated);
            border: 1px solid var(--pantone-border);
            border-radius: var(--radius-md);
            margin-bottom: 12px;
            padding: 12px;
            box-shadow: var(--shadow-sm);
        }

        #taskTable td {
            border: none;
            padding: 6px 0;
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            gap: 12px;
        }

            #taskTable td:before {
                content: attr(data-label);
                font-weight: 600;
                color: var(--pantone-primary);
                flex-shrink: 0;
                min-width: 110px;
            }

            #taskTable td:first-child:before,
            #taskTable td:last-child:before {
                display: none;
            }


    .action-buttons-vertical {
        flex-direction: row;
        align-items: center;
        justify-content: flex-end;
        width: 100%;
    }

    #taskTable tr.editing td {
        display: block !important;
        width: 100%;
        padding: 4px 0;
    }

        #taskTable tr.editing td:before {
            display: none;
        }

    #taskTable tr.editing .form-control,
    #taskTable tr.editing .form-select {
        width: 100%;
    }

    .mobile-field-label {
        display: block;
        margin-bottom: 6px;
        font-size: .85rem;
        font-weight: 600;
        color: var(--pantone-primary);
    }
}

/* ======================================================
   PAGE MOBILE RULES
====================================================== */

@media (max-width:768px) {

    .wizard-columns {
        flex-direction: column;
        gap: 24px;
    }

    .wizard-buttons .btn {
        width: 100%;
    }

    .dashboard-value {
        font-size: 1.5rem;
    }

    .trip-header {
        flex-direction: column;
    }

    .mobile-action-group {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

        .mobile-action-group .btn {
            width: 100%;
        }

    .btn-mobile-full {
        width: 100%;
        justify-content: center;
    }
}

/* ------------------------------------------------------
   ITINERARY CARDS IN COLLECTIONS
---------------------------------------------------------*/

.itinerary-card {
    transition: all .25s ease;
    border-radius: var(--radius-lg);
}

    .itinerary-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-lg);
    }

.itinerary-info-block {
    background: #f8fafc;
    border-radius: var(--radius-md);
    padding: 12px;
}