/* =============================================================================
   Dashboard Shipping Styles - Main Dashboard Layout
   ============================================================================= */

@import url('dashboard-shipping-workflow.css');


/* =============================================================================
   SHIPPING DASHBOARD STYLES
   ============================================================================= */

.section-title {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-primary);
    margin: 0 0 var(--space) 0;
    line-height: 1.3;
}

.customs-summary {
    margin-top: var(--space);
    padding: var(--space);
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border-lighter);
    border-radius: var(--border-radius-md);
}

.customs-parcel-summary {
    margin-bottom: var(--space);
}

.customs-parcel-summary:last-child {
    margin-bottom: 0;
}

.customs-parcel-summary h6 {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-primary);
    margin: 0 0 var(--space) 0;
    padding-bottom: var(--space);
    border-bottom: 1px solid var(--color-border-lighter);
}

/* Old customs table styles - removed, now using proper HTML table in dashboard-shipping-workflow.css */

.profile-incomplete-overlay {
    position: relative;
    min-height: 400px;
}

.profile-incomplete-overlay > .lc-inline-alert {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    max-width: 500px;
    width: 90%;
}

.greyed-content {
    opacity: 0.3;
    pointer-events: none;
    filter: grayscale(1);
}

/* =============================================================================
   SHIPPING-SPECIFIC EXTENSIONS
   ============================================================================= */

.parcel-info {
    flex: 1;
    cursor: pointer;
    margin: 0;
}

.shipping-actions {
    display: flex;
    gap: var(--space);
    margin-top: var(--space);
    justify-content: flex-start;
}

.tracking-link {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
}

.tracking-link:visited {
    color: var(--color-accent) !important;
}

.tracking-link:hover {
    color: var(--color-accent-hover);
    text-decoration: underline;
}

.no-tracking {
    color: var(--color-text-secondary);
    font-style: italic;
}

.parcel-name {
    color: var(--color-text-primary);
    cursor: pointer;
    transition: color 0.2s ease;
}

.parcel-name:hover {
    color: var(--color-accent);
}

/* =============================================================================
   GLOBAL MILESTONE COMPONENT - Used for shipping workflow
   ============================================================================= */

.lunarcat-milestone {
    margin: var(--space) 0;
    width: 100%;
}

.lunarcat-milestone .milestone-track {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.lunarcat-milestone .milestone-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space);
}

.lunarcat-milestone .milestone-point {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    z-index: 2;
    position: relative;
}

/* Light mode: Pink background, white numbers */
.lunarcat-milestone .milestone-point.active {
    background: var(--color-accent);
    color: #ffffff;
}

/* Dark mode: Yellow background, black numbers */
[data-theme="dark"] .lunarcat-milestone .milestone-point.active {
    background: var(--color-accent);
    color: #000000;
}

.lunarcat-milestone .milestone-point.inactive {
    background: var(--color-bg-secondary);
    color: var(--color-text-secondary);
    border: 2px solid var(--color-border-light);
}

.lunarcat-milestone .milestone-line {
    flex: 1;
    height: 2px;
    position: relative;
    margin: 0 var(--space);
}

.lunarcat-milestone .milestone-line.active {
    background: var(--color-accent);
}

.lunarcat-milestone .milestone-line.inactive {
    background: var(--color-border-light);
}

.lunarcat-milestone .milestone-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: calc(0.25 * var(--space));
    min-width: 80px;
}

.lunarcat-milestone .milestone-label .label-title {
    font-weight: var(--font-weight-medium);
    color: var(--color-text-primary);
    font-size: var(--font-size-sm);
}

.lunarcat-milestone .milestone-label .label-date {
    color: var(--color-text-secondary);
    font-size: var(--font-size-xs);
}

/* Shipment Status Messages */
.shipment-items {
    padding-left: var(--space);
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    border-top: 1px solid var(--color-border-lighter);
    padding-top: var(--space);
    margin-top: var(--space);
}

/* =============================================================================
   RESPONSIVE BREAKPOINTS
   ============================================================================= */

@media (max-width: 768px) {
    .modal-content {
        width: 90%;
        max-width: 800px;
    }
    
    .shipping-method-option {
        flex-direction: column;
        text-align: center;
    }

    .customs-table-header,
    .customs-table-row {
        grid-template-columns: 1.5fr 1.5fr 100px 80px;
        gap: calc(0.5 * var(--space));
    }
    
    .lunarcat-milestone .milestone-label .label-title {
        font-size: 11px;
    }

    .lunarcat-milestone .milestone-label .label-date {
        font-size: 10px;
    }

    .lunarcat-milestone .milestone-point {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .step-actions {
        flex-direction: column;
        gap: var(--space);
    }

    .step-actions .btn {
        width: 100%;
        min-height: 44px;
    }
}

@media (max-width: 430px) {
    .ready-to-ship-customs-actions {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: calc(0.5 * var(--space));
    }

    .ready-to-ship-customs-actions .expand-toggle.shipping-expand-toggle {
        width: 100%;
        justify-content: flex-start;
    }

    .shipment-items {
        padding-left: 0;
    }
}
