/**
 * DT24 Stitch Redesign - Customer View Order Styles
 * Typography: Inter
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    /* Brand Primary (DeTodo24 Canonical - Strictly Orange #f26419, never Motta Blue) */
    --dt24-primary: #f26419;
    --dt24-primary-hover: #d85510;
    --dt24-primary-light: rgba(242, 100, 25, 0.08);
    --dt24-primary-ring: rgba(242, 100, 25, 0.2);

    /* Neutrals & Slate */
    --dt24-slate-900: #0F172A;
    --dt24-slate-800: #1E293B;
    --dt24-slate-700: #334155;
    --dt24-slate-600: #475569;
    --dt24-slate-500: #64748B;
    --dt24-slate-400: #94A3B8;
    --dt24-slate-300: #CBD5E1;
    --dt24-slate-200: #E2E8F0;
    --dt24-slate-100: #F1F5F9;
    --dt24-slate-50:  #F8FAFC;

    /* Semantic Status Tokens (Stitch Prototype Canonical) */
    /* Processing (Procesando) - Clean Sky Blue */
    --dt24-status-processing-bg: #F0F9FF;
    --dt24-status-processing-border: #BAE6FD;
    --dt24-status-processing-text: #0284C7;
    --dt24-status-processing-dot: #0284C7;

    /* On-Hold / Pending (En espera / Pendiente) - Warm Amber */
    --dt24-status-on-hold-bg: #FEF3C7;
    --dt24-status-on-hold-border: #FDE68A;
    --dt24-status-on-hold-text: #D97706;
    --dt24-status-on-hold-dot: #D97706;

    /* Ready for Pickup / In Transit (Listo para retiro / En tránsito) - Warm Orange */
    --dt24-status-pickup-bg: #FFF7ED;
    --dt24-status-pickup-border: #FFEDD5;
    --dt24-status-pickup-text: #EA580C;
    --dt24-status-pickup-dot: #EA580C;

    /* Completed / Delivered (Completado / Entregado) - Fresh Emerald */
    --dt24-status-completed-bg: #ECFDF5;
    --dt24-status-completed-border: #A7F3D0;
    --dt24-status-completed-text: #059669;
    --dt24-status-completed-dot: #10B981;

    /* Cancelled / Failed (Cancelado / Fallido) - Soft Red */
    --dt24-status-cancelled-bg: #FEF2F2;
    --dt24-status-cancelled-border: #FECACA;
    --dt24-status-cancelled-text: #DC2626;
    --dt24-status-cancelled-dot: #DC2626;

    /* Default / Neutral */
    --dt24-status-default-bg: #F8FAFC;
    --dt24-status-default-border: #E2E8F0;
    --dt24-status-default-text: #475569;
    --dt24-status-default-dot: #64748B;
}

.dt24-stitch-order-container {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1E293B;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 0 40px;
}

/* 1. Header & Navigation */
.dt24-stitch-nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.dt24-stitch-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    text-decoration: none;
    transition: color 0.15s ease;
}

.dt24-stitch-back-link:hover {
    color: var(--dt24-primary, #f26419);
}

.dt24-stitch-breadcrumbs {
    font-size: 13px;
    color: #94A3B8;
    margin-left: 8px;
}

.dt24-stitch-nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dt24-stitch-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    font-size: 12px;
    font-weight: 600;
    font-family: inherit;
    color: #334155;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.dt24-stitch-btn-secondary:hover {
    background: #F8FAFC;
    border-color: #CBD5E1;
    color: #0F172A;
}

/* 2. Order Header Bar */
.dt24-stitch-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
}

.dt24-stitch-title-group h1 {
    font-size: 26px;
    font-weight: 800;
    color: #0F172A;
    margin: 0 0 6px 0;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.dt24-stitch-status-badge {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid transparent;
}

.dt24-stitch-status-badge.status-processing,
.dt24-stitch-status-badge.status-procesando {
    background: var(--dt24-status-processing-bg);
    border-color: var(--dt24-status-processing-border);
    color: var(--dt24-status-processing-text);
}

.dt24-stitch-status-badge.status-completed,
.dt24-stitch-status-badge.status-completado,
.dt24-stitch-status-badge.status-delivered,
.dt24-stitch-status-badge.status-entregado {
    background: var(--dt24-status-completed-bg);
    border-color: var(--dt24-status-completed-border);
    color: var(--dt24-status-completed-text);
}

.dt24-stitch-status-badge.status-waiting-pickup,
.dt24-stitch-status-badge.status-esperando-retiro,
.dt24-stitch-status-badge.status-esperando_retiro,
.dt24-stitch-status-badge.status-en-transito,
.dt24-stitch-status-badge.status-en_transito {
    background: var(--dt24-status-pickup-bg);
    border-color: var(--dt24-status-pickup-border);
    color: var(--dt24-status-pickup-text);
}

.dt24-stitch-status-badge.status-pending,
.dt24-stitch-status-badge.status-pendiente,
.dt24-stitch-status-badge.status-on-hold,
.dt24-stitch-status-badge.status-en-espera {
    background: var(--dt24-status-on-hold-bg);
    border-color: var(--dt24-status-on-hold-border);
    color: var(--dt24-status-on-hold-text);
}

.dt24-stitch-status-badge.status-failed,
.dt24-stitch-status-badge.status-fallido,
.dt24-stitch-status-badge.status-cancelled,
.dt24-stitch-status-badge.status-cancelado {
    background: var(--dt24-status-cancelled-bg);
    border-color: var(--dt24-status-cancelled-border);
    color: var(--dt24-status-cancelled-text);
}

.dt24-stitch-date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #64748B;
}

.dt24-stitch-bcv-widget {
    background: #FFFFFF;
    border: 1px solid var(--dt24-slate-200, #E2E8F0);
    border-radius: 12px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.dt24-stitch-bcv-icon {
    font-size: 18px;
    color: var(--dt24-primary, #f26419);
    display: flex;
    align-items: center;
}

.dt24-stitch-bcv-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dt24-stitch-bcv-label {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #64748B;
    text-transform: uppercase;
}

.dt24-stitch-bcv-value {
    font-size: 14px;
    font-weight: 800;
    color: #0F172A;
}

/* 3. Alert / Notice Banner */
.dt24-stitch-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    margin-bottom: 24px;
}

.dt24-stitch-alert-icon {
    font-size: 18px;
    color: var(--dt24-primary, #f26419);
    line-height: 1.4;
    flex-shrink: 0;
}

.dt24-stitch-alert-text {
    font-size: 13px;
    color: #334155;
    line-height: 1.5;
    margin: 0;
}

.dt24-stitch-alert-text strong {
    color: #0F172A;
}

/* 4. Stepper Card (Seguimiento del pedido) */
.dt24-stitch-stepper-card {
    background: #FFFFFF;
    border: 1px solid #F1F5F9;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    padding: 24px;
    margin-bottom: 28px;
}

.dt24-stitch-stepper-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.dt24-stitch-stepper-title {
    font-size: 15px;
    font-weight: 700;
    color: #0F172A;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.dt24-stitch-stepper-badge {
    font-size: 11px;
    font-weight: 600;
    color: #64748B;
    background: #F1F5F9;
    padding: 4px 10px;
    border-radius: 6px;
}

.dt24-stitch-stepper-track {
    display: flex;
    justify-content: space-between;
    position: relative;
    overflow-x: auto;
    padding: 6px 0 12px;
}

.dt24-stitch-step-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 110px;
    position: relative;
    text-align: center;
}

/* Connector Lines */
.dt24-stitch-step-item:not(:first-child)::before {
    content: '';
    position: absolute;
    top: 15px;
    right: 50%;
    width: 100%;
    height: 3px;
    background: #E2E8F0;
    z-index: 1;
}

.dt24-stitch-step-item.is-done:not(:first-child)::before,
.dt24-stitch-step-item.is-active:not(:first-child)::before {
    background: #10B981;
}

.dt24-stitch-step-node {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    position: relative;
    z-index: 2;
    background: #F1F5F9;
    color: #94A3B8;
    border: 2px solid #E2E8F0;
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

.dt24-stitch-step-item.is-done .dt24-stitch-step-node {
    background: #10B981;
    border-color: #10B981;
    color: #FFFFFF;
}

.dt24-stitch-step-item.is-active .dt24-stitch-step-node {
    background: var(--dt24-primary, #f26419);
    border-color: var(--dt24-primary, #f26419);
    color: #FFFFFF;
    box-shadow: 0 0 0 4px var(--dt24-primary-ring, rgba(242, 100, 25, 0.2));
}

.dt24-stitch-step-label {
    font-size: 12px;
    font-weight: 600;
    color: #64748B;
    margin-bottom: 2px;
    line-height: 1.3;
}

.dt24-stitch-step-item.is-active .dt24-stitch-step-label {
    color: #0F172A;
    font-weight: 700;
}

.dt24-stitch-step-item.is-done .dt24-stitch-step-label {
    color: #047857;
}

.dt24-stitch-step-sublabel {
    font-size: 11px;
    color: #94A3B8;
}

.dt24-stitch-step-item.is-active .dt24-stitch-step-sublabel {
    color: var(--dt24-primary, #f26419);
    font-weight: 600;
}

.dt24-stitch-step-item.is-done .dt24-stitch-step-sublabel {
    color: #10B981;
}

/* 5. 2-Column Grid Layout */
.dt24-stitch-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 24px;
    align-items: start;
}

@media (max-width: 900px) {
    .dt24-stitch-grid {
        grid-template-columns: 1fr;
    }
}

/* 6. Cards & Panels */
.dt24-stitch-card {
    background: #FFFFFF;
    border: 1px solid #F1F5F9;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    padding: 20px 24px;
    margin-bottom: 20px;
}

.dt24-stitch-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #F8FAFC;
}

.dt24-stitch-card-title {
    font-size: 15px;
    font-weight: 700;
    color: #0F172A;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dt24-stitch-card-meta {
    font-size: 12px;
    color: #64748B;
}

/* Products Table */
.dt24-stitch-table {
    width: 100%;
    border-collapse: collapse;
}

.dt24-stitch-table th {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #64748B;
    text-align: left;
    padding: 10px 8px;
    border-bottom: 1px solid #E2E8F0;
}

.dt24-stitch-table td {
    padding: 14px 8px;
    font-size: 13px;
    vertical-align: middle;
    border-bottom: 1px solid #F1F5F9;
}

.dt24-stitch-prod-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dt24-stitch-prod-thumb {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    object-fit: cover;
    background: #F1F5F9;
    border: 1px solid #E2E8F0;
    flex-shrink: 0;
}

.dt24-stitch-prod-name {
    font-weight: 600;
    color: #0F172A;
    line-height: 1.4;
    text-decoration: none;
}

.dt24-stitch-vendor-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 500;
    color: #475569;
    margin-top: 4px;
}

.dt24-stitch-vendor-tag strong {
    color: #1E293B;
    font-weight: 600;
}

.dt24-stitch-vendor-badge {
    color: #10B981;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
}

/* Vendor Info Box */
.dt24-stitch-vendor-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 14px 18px;
    margin-top: 14px;
}

.dt24-stitch-vendor-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #FFF7ED;
    color: var(--dt24-primary, #f26419);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.dt24-stitch-vendor-details {
    flex: 1;
}

.dt24-stitch-vendor-name {
    font-size: 14px;
    font-weight: 700;
    color: #0F172A;
    margin: 0 0 2px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dt24-stitch-vendor-sub {
    font-size: 12px;
    color: #64748B;
    margin: 0;
}

/* Shipping / Delivery Cards */
.dt24-stitch-delivery-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    padding: 18px;
    margin-top: 16px;
}

.dt24-stitch-delivery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.dt24-stitch-delivery-title {
    font-size: 14px;
    font-weight: 700;
    color: #0F172A;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.dt24-stitch-delivery-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 6px;
}

.dt24-stitch-delivery-badge.badge-pending {
    background: #FEF3C7;
    color: #B45309;
}

.dt24-stitch-delivery-badge.badge-success {
    background: #DCFCE7;
    color: #15803D;
}

.dt24-stitch-delivery-info {
    font-size: 13px;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 14px;
}

.dt24-stitch-delivery-info strong {
    color: #1E293B;
}

.dt24-stitch-btn-maps {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--dt24-primary, #f26419);
    color: #FFFFFF !important;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 8px;
    transition: all 0.15s ease;
    box-shadow: 0 1px 3px rgba(242, 100, 25, 0.25);
}

.dt24-stitch-btn-maps:hover {
    background: var(--dt24-primary-hover, #d85510);
    color: #FFFFFF !important;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(242, 100, 25, 0.35);
}

/* Financial Summary Column */
.dt24-stitch-summary-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 13px;
    color: #475569;
}

.dt24-stitch-summary-line.line-total {
    border-top: 1px solid #E2E8F0;
    margin-top: 8px;
    padding-top: 14px;
    font-size: 15px;
    font-weight: 700;
    color: #0F172A;
}

.dt24-stitch-total-amount {
    font-size: 24px;
    font-weight: 800;
    color: var(--dt24-primary, #f26419);
}

.dt24-stitch-bs-box {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    padding: 10px 14px;
    margin-top: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dt24-stitch-bs-label {
    font-size: 12px;
    color: #64748B;
    font-weight: 500;
}

.dt24-stitch-bs-amount {
    font-size: 15px;
    font-weight: 800;
    color: #1E293B;
}

/* Payment Method Card */
.dt24-stitch-payment-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 13px;
}

.dt24-stitch-payment-label {
    color: #64748B;
}

.dt24-stitch-payment-val {
    font-weight: 600;
    color: #0F172A;
}

/* 6. Bloque Informativo Retiro en Tienda (Stitch Grid 4 Sub-bloques) */
.dt24-stitch-pickup-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    padding: 22px;
    margin-top: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.dt24-stitch-pickup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.dt24-stitch-pickup-title {
    font-size: 16px;
    font-weight: 700;
    color: #0F172A;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.dt24-stitch-pickup-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 700;
    color: #047857;
    background: #ECFDF5;
    border: 1px solid #A7F3D0;
    padding: 4px 12px;
    border-radius: 9999px;
}

.dt24-stitch-pickup-badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10B981;
}

.dt24-stitch-pickup-sub {
    font-size: 13px;
    color: #64748B;
    margin: 0 0 18px 0;
}

.dt24-stitch-pickup-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

@media (max-width: 640px) {
    .dt24-stitch-pickup-grid {
        grid-template-columns: 1fr;
    }
}

.dt24-stitch-pickup-box {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.dt24-stitch-pickup-box-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #64748B;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.dt24-stitch-pickup-box-label svg {
    color: var(--dt24-primary, #f26419);
    flex-shrink: 0;
}

.dt24-stitch-pickup-box-val {
    font-size: 13.5px;
    font-weight: 600;
    color: #0F172A;
    line-height: 1.4;
    word-break: break-word;
}

.dt24-stitch-pickup-maps-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--dt24-primary, #f26419);
    text-decoration: none;
    margin-top: 4px;
    transition: color 0.15s ease;
}

.dt24-stitch-pickup-maps-btn:hover {
    color: #d85510;
    text-decoration: underline;
}

/* 7. Ganancia Neta del Vendedor (Highlight Box) */
.dt24-stitch-net-earning-box {
    background: #ECFDF5;
    border: 1.5px solid #A7F3D0;
    border-radius: 12px;
    padding: 14px 18px;
    margin-top: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dt24-stitch-net-info {
    display: flex;
    flex-direction: column;
}

.dt24-stitch-net-label {
    font-size: 11.5px;
    font-weight: 800;
    color: #065F46;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.dt24-stitch-net-sub {
    font-size: 11px;
    color: #047857;
    margin-top: 2px;
}

.dt24-stitch-net-amount {
    font-size: 24px;
    font-weight: 800;
    color: #059669;
    letter-spacing: -0.02em;
}

/* 8. Panel de Actualización de Estado (Lado Vendedor) */
.dt24-stitch-seller-status-box {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px dashed #E2E8F0;
}

.dt24-stitch-status-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dt24-stitch-status-form label {
    font-size: 13.5px;
    font-weight: 600;
    color: #1E293B;
}

.dt24-stitch-select {
    width: 100%;
    height: 46px;
    padding: 10px 14px;
    font-size: 14px;
    font-family: inherit;
    color: #0F172A;
    background: #FFFFFF;
    border: 1.5px solid #CBD5E1;
    border-radius: 10px;
    outline: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
    cursor: pointer;
}

.dt24-stitch-select:focus {
    border-color: var(--dt24-primary, #f26419);
    box-shadow: 0 0 0 3px rgba(242, 100, 25, 0.18);
}

.dt24-stitch-notify-note {
    font-size: 12px;
    color: #64748B;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dt24-stitch-btn-submit-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--dt24-primary, #f26419);
    color: #FFFFFF !important;
    font-size: 14px;
    font-weight: 700;
    padding: 12px 24px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: 0 2px 6px rgba(242, 100, 25, 0.28);
    width: fit-content;
}

.dt24-stitch-btn-submit-status:hover {
    background: #d85510;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(242, 100, 25, 0.35);
}

/* Responsive Overrides */
@media (max-width: 640px) {
    .dt24-stitch-stepper-track {
        justify-content: flex-start;
    }
    .dt24-stitch-header {
        flex-direction: column;
    }
    .dt24-stitch-bcv-widget {
        width: 100%;
    }
    .dt24-stitch-btn-submit-status {
        width: 100%;
    }
}

/* ==========================================================================
   7. Historial de Pedidos (Stitch / Flutter Redesign - Mobile & Desktop)
   Scoped Classes: .dt24-stitch-orders-* and .dt24-stitch-order-*
   ========================================================================== */

.dt24-stitch-orders-container {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1E293B;
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 16px 48px;
    box-sizing: border-box;
}

/* 7.1. Header: Back Arrow '<' + Title */
.dt24-stitch-orders-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.dt24-stitch-back-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    color: #1E293B !important;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    flex-shrink: 0;
}

.dt24-stitch-back-btn:hover {
    background: #F8FAFC;
    border-color: #CBD5E1;
    color: var(--dt24-primary) !important;
    transform: translateX(-2px);
}

.dt24-stitch-orders-title {
    font-size: 22px;
    font-weight: 800;
    color: #0F172A;
    margin: 0;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

/* 7.2. Search Bar: Rounded pill input with magnifying glass */
.dt24-stitch-search-wrapper {
    margin-bottom: 18px;
}

.dt24-stitch-search-box {
    position: relative;
    width: 100%;
    max-width: 600px;
}

.dt24-stitch-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94A3B8;
    pointer-events: none;
}

.dt24-stitch-search-input {
    width: 100%;
    height: 48px;
    padding: 10px 42px 10px 48px;
    font-size: 14px;
    font-family: inherit;
    color: #0F172A;
    background: #FFFFFF;
    border: 1.5px solid #E2E8F0;
    border-radius: 9999px;
    outline: none;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    box-sizing: border-box;
}

.dt24-stitch-search-input::placeholder {
    color: #94A3B8;
    font-weight: 400;
}

.dt24-stitch-search-input:focus {
    background: #FFFFFF;
    border-color: var(--dt24-primary);
    box-shadow: 0 0 0 3px var(--dt24-primary-ring);
}

.dt24-stitch-search-clear {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: #E2E8F0;
    border: none;
    color: #64748B;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    padding: 0;
}

.dt24-stitch-search-clear:hover {
    background: #CBD5E1;
    color: #0F172A;
}

/* 7.3. Horizontal Filter Tabs (Pills redondeados) */
.dt24-stitch-filters-wrapper {
    margin-bottom: 22px;
    position: relative;
}

.dt24-stitch-filters-scroll {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 2px 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.dt24-stitch-filters-scroll::-webkit-scrollbar {
    display: none;
}

.dt24-stitch-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    font-size: 13.5px;
    font-weight: 500;
    font-family: inherit;
    border-radius: 9999px;
    background: #FFFFFF;
    color: #475569;
    border: 1px solid #E2E8F0;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
    user-select: none;
}

.dt24-stitch-pill:hover {
    background: #F8FAFC;
    color: #0F172A;
    border-color: #CBD5E1;
}

.dt24-stitch-pill.is-active {
    background: #f26419 !important;
    color: #FFFFFF !important;
    border-color: #f26419 !important;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(242, 100, 25, 0.3);
}

.dt24-stitch-pill-count {
    font-size: 11.5px;
    opacity: 0.85;
}

.dt24-stitch-pill.is-active .dt24-stitch-pill-count {
    opacity: 0.95;
}

/* 7.4. Tarjetas de Pedido (Order Cards Container) */
.dt24-stitch-orders-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 28px;
}

@media (min-width: 768px) {
    .dt24-stitch-orders-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
        gap: 18px;
    }
    .dt24-stitch-orders-title {
        font-size: 26px;
    }
}

.dt24-stitch-order-card {
    background: #FFFFFF;
    border: 1px solid #F1F5F9;
    border-radius: 16px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.2s ease;
    position: relative;
    box-sizing: border-box;
}

.dt24-stitch-order-card:hover {
    border-color: #E2E8F0;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

/* Fila Superior: Fecha/hora a la izq | Badge de estado redondeado a la der */
.dt24-stitch-order-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.dt24-stitch-order-date {
    font-size: 12.5px;
    font-weight: 500;
    color: #64748B;
    letter-spacing: 0.1px;
}

.dt24-stitch-status-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 11px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: 9999px;
    border: 1px solid transparent;
    white-space: nowrap;
    line-height: 1.3;
}

/* Colores Dinámicos de Estatus */
.dt24-stitch-status-pill.status-processing,
.dt24-stitch-status-pill.status-procesando {
    color: var(--dt24-status-processing-text);
    background: var(--dt24-status-processing-bg);
    border-color: var(--dt24-status-processing-border);
}

.dt24-stitch-status-pill.status-paquete-en-destino,
.dt24-stitch-status-pill.status-paquete_en_destino,
.dt24-stitch-status-pill.status-esperando-retiro,
.dt24-stitch-status-pill.status-esperando_retiro,
.dt24-stitch-status-pill.status-waiting-pickup {
    color: var(--dt24-status-pickup-text);
    background: var(--dt24-status-pickup-bg);
    border-color: var(--dt24-status-pickup-border);
}

.dt24-stitch-status-pill.status-en-espera,
.dt24-stitch-status-pill.status-on-hold,
.dt24-stitch-status-pill.status-pending,
.dt24-stitch-status-pill.status-pendiente {
    color: var(--dt24-status-on-hold-text);
    background: var(--dt24-status-on-hold-bg);
    border-color: var(--dt24-status-on-hold-border);
}

.dt24-stitch-status-pill.status-en-transito,
.dt24-stitch-status-pill.status-en_transito {
    color: var(--dt24-status-pickup-text);
    background: var(--dt24-status-pickup-bg);
    border-color: var(--dt24-status-pickup-border);
}

.dt24-stitch-status-pill.status-completed,
.dt24-stitch-status-pill.status-completado,
.dt24-stitch-status-pill.status-entregado,
.dt24-stitch-status-pill.status-delivered {
    color: var(--dt24-status-completed-text);
    background: var(--dt24-status-completed-bg);
    border-color: var(--dt24-status-completed-border);
}

.dt24-stitch-status-pill.status-cancelled,
.dt24-stitch-status-pill.status-cancelado,
.dt24-stitch-status-pill.status-failed,
.dt24-stitch-status-pill.status-fallido {
    color: var(--dt24-status-cancelled-text);
    background: var(--dt24-status-cancelled-bg);
    border-color: var(--dt24-status-cancelled-border);
}

.dt24-stitch-status-pill.status-default {
    color: var(--dt24-status-default-text);
    background: var(--dt24-status-default-bg);
    border-color: var(--dt24-status-default-border);
}

/* Fila Central: Número de pedido grande en negrita y color naranja */
.dt24-stitch-order-card-mid {
    margin: 2px 0;
}

.dt24-stitch-order-number {
    font-size: 22px;
    font-weight: 800;
    color: #f26419 !important;
    text-decoration: none !important;
    letter-spacing: -0.02em;
    display: inline-block;
    transition: opacity 0.15s ease;
}

.dt24-stitch-order-number:hover {
    opacity: 0.85;
    color: #d85510 !important;
    text-decoration: none !important;
}

/* Fila Inferior: Monto total en negrita oscura seguido de cantidad de artículos */
.dt24-stitch-order-card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 4px;
    border-top: 1px dashed #F1F5F9;
}

.dt24-stitch-order-total-group {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.dt24-stitch-order-total {
    font-size: 16.5px;
    font-weight: 800;
    color: #0F172A;
}

.dt24-stitch-order-items {
    font-size: 13px;
    color: #64748B;
    font-weight: 400;
}

/* Acciones en la tarjeta (Ver, Calificar, Pagar, etc.) */
.dt24-stitch-order-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dt24-stitch-card-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 16px;
    font-size: 12.5px;
    font-weight: 700;
    font-family: inherit;
    text-decoration: none !important;
    border-radius: 8px;
    background: #f26419 !important;
    color: #FFFFFF !important;
    border: none !important;
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: 0 1px 3px rgba(242, 100, 25, 0.25);
    white-space: nowrap;
}

.dt24-stitch-card-action-btn:hover {
    background: #d85510 !important;
    color: #FFFFFF !important;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(242, 100, 25, 0.35);
}

.dt24-stitch-card-action-btn.action-rate_order {
    background: #FFFFFF !important;
    color: #f26419 !important;
    border: 1px solid #f26419 !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.dt24-stitch-card-action-btn.action-rate_order:hover {
    background: var(--dt24-primary-light);
}

.dt24-stitch-card-action-btn.action-pay {
    background: #059669;
    box-shadow: 0 1px 3px rgba(5, 150, 105, 0.25);
}

.dt24-stitch-card-action-btn.action-pay:hover {
    background: #047857;
}

.dt24-stitch-card-action-btn.action-cancel {
    background: #FFFFFF;
    color: #64748B !important;
    border: 1px solid #CBD5E1;
    box-shadow: none;
}

.dt24-stitch-card-action-btn.action-cancel:hover {
    color: #DC2626 !important;
    border-color: #FECACA;
    background: #FEF2F2;
}

/* 7.5. Empty State & No Results */
.dt24-stitch-empty-orders,
.dt24-stitch-no-results {
    background: #FFFFFF;
    border: 1px solid #F1F5F9;
    border-radius: 16px;
    padding: 48px 24px;
    text-align: center;
    color: #64748B;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.dt24-stitch-empty-orders h3,
.dt24-stitch-no-results h3 {
    font-size: 18px;
    font-weight: 700;
    color: #0F172A;
    margin: 0 0 8px 0;
}

.dt24-stitch-empty-orders p,
.dt24-stitch-no-results p {
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
}

/* 7.6. Pagination (Stitch Pill Style) */
.dt24-stitch-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding: 12px 0 0;
}

.dt24-pagination-info {
    font-size: 13px;
    color: #64748B;
}

.dt24-pagination-links {
    display: flex;
    align-items: center;
    gap: 6px;
}

.dt24-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 10px;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    color: #475569 !important;
    transition: all 0.15s ease;
}

.dt24-page-btn:hover {
    background: #F8FAFC;
    border-color: #CBD5E1;
    color: #0F172A !important;
}

.dt24-page-btn.is-active {
    background: var(--dt24-primary) !important;
    border-color: var(--dt24-primary) !important;
    color: #FFFFFF !important;
    box-shadow: 0 2px 6px rgba(242, 100, 25, 0.28);
}

@media (max-width: 768px) {
    .dt24-stitch-pagination {
        flex-direction: column;
        align-items: center;
    }
}

/* ==========================================================================
   8. Stitch Orders Table Card (Customer /my-account/orders/ - Upload 2 Prototype)
   ========================================================================== */
.dt24-stitch-orders-page {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1E293B;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 0 40px;
    box-sizing: border-box;
}

.dt24-stitch-orders-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    box-sizing: border-box;
}

@media (max-width: 640px) {
    .dt24-stitch-orders-card {
        padding: 16px;
        border-radius: 12px;
    }
}

.dt24-stitch-orders-header {
    margin-bottom: 22px;
}

.dt24-stitch-orders-title {
    font-size: 26px;
    font-weight: 800;
    color: #0F172A;
    margin: 0 0 6px;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.dt24-stitch-orders-subtitle {
    font-size: 14px;
    color: #64748B;
    margin: 0;
    line-height: 1.5;
}

.dt24-stitch-orders-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}

.dt24-stitch-search-box {
    position: relative;
    flex: 1;
    min-width: 260px;
    max-width: 650px;
}

.dt24-stitch-search-box svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94A3B8;
    pointer-events: none;
}

.dt24-stitch-search-input {
    width: 100%;
    height: 44px;
    padding: 8px 36px 8px 42px;
    font-size: 13.5px;
    font-family: inherit;
    color: #0F172A;
    background: #FFFFFF;
    border: 1.5px solid #E2E8F0;
    border-radius: 10px;
    outline: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.dt24-stitch-search-input:focus {
    border-color: var(--dt24-primary, #f26419);
    box-shadow: 0 0 0 3px rgba(242, 100, 25, 0.15);
}

.dt24-stitch-date-filter-box {
    min-width: 160px;
}

.dt24-stitch-date-select {
    height: 44px;
    padding: 8px 16px;
    font-size: 13.5px;
    font-family: inherit;
    color: #334155;
    background: #FFFFFF;
    border: 1.5px solid #E2E8F0;
    border-radius: 10px;
    outline: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.dt24-stitch-date-select:focus {
    border-color: var(--dt24-primary, #f26419);
    box-shadow: 0 0 0 3px rgba(242, 100, 25, 0.15);
}

.dt24-stitch-table-responsive {
    width: 100%;
    overflow-x: auto;
    margin-bottom: 18px;
    -webkit-overflow-scrolling: touch;
}

.dt24-stitch-orders-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    margin: 0;
}

.dt24-stitch-orders-table th {
    font-size: 11px;
    font-weight: 700;
    color: #64748B;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    padding: 12px 16px;
    border-bottom: 1.5px solid #E2E8F0;
    background: #FAFBFD;
    white-space: nowrap;
}

.dt24-stitch-orders-table td {
    padding: 16px;
    vertical-align: middle;
    border-bottom: 1px solid #F1F5F9;
    font-size: 13.5px;
}

.dt24-order-tr {
    transition: background 0.15s ease;
}

.dt24-order-tr:hover {
    background: #F8FAFC;
}

.dt24-order-num-link {
    font-size: 14px;
    font-weight: 700;
    color: #0F172A;
    text-decoration: none;
    transition: color 0.15s ease;
}

.dt24-order-num-link:hover {
    color: var(--dt24-primary, #f26419);
    text-decoration: underline;
}

.dt24-order-date-text {
    color: #64748B;
    font-weight: 500;
    font-size: 13px;
    white-space: nowrap;
}

.dt24-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    line-height: 1.3;
}

.dt24-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}

.dt24-status-badge.status-processing,
.dt24-status-badge.status-procesando {
    background: var(--dt24-status-processing-bg);
    color: var(--dt24-status-processing-text);
    border: 1px solid var(--dt24-status-processing-border);
}

.dt24-status-badge.status-on-hold,
.dt24-status-badge.status-en-espera,
.dt24-status-badge.status-pending,
.dt24-status-badge.status-pendiente {
    background: var(--dt24-status-on-hold-bg);
    color: var(--dt24-status-on-hold-text);
    border: 1px solid var(--dt24-status-on-hold-border);
}

.dt24-status-badge.status-waiting-pickup,
.dt24-status-badge.status-esperando-retiro,
.dt24-status-badge.status-esperando_retiro,
.dt24-status-badge.status-en-transito,
.dt24-status-badge.status-en_transito {
    background: var(--dt24-status-pickup-bg);
    color: var(--dt24-status-pickup-text);
    border: 1px solid var(--dt24-status-pickup-border);
}

.dt24-status-badge.status-completed,
.dt24-status-badge.status-completado,
.dt24-status-badge.status-delivered,
.dt24-status-badge.status-entregado {
    background: var(--dt24-status-completed-bg);
    color: var(--dt24-status-completed-text);
    border: 1px solid var(--dt24-status-completed-border);
}

.dt24-status-badge.status-failed,
.dt24-status-badge.status-fallido,
.dt24-status-badge.status-cancelled,
.dt24-status-badge.status-cancelado {
    background: var(--dt24-status-cancelled-bg);
    color: var(--dt24-status-cancelled-text);
    border: 1px solid var(--dt24-status-cancelled-border);
}

.dt24-order-total-block {
    display: flex;
    flex-direction: column;
}

.dt24-order-total-val {
    font-size: 14px;
    font-weight: 700;
    color: #0F172A;
}

.dt24-order-total-items {
    font-size: 12px;
    color: #64748B;
    margin-top: 1px;
    white-space: nowrap;
}

.dt24-order-actions-wrap {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

html body .woocommerce-account .dt24-btn-action-ver,
html body .dt24-order-actions-wrap a.dt24-btn-action-ver,
html body a.dt24-btn-action-ver,
html body .dt24-btn-action-ver {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 7px 20px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    font-family: inherit !important;
    color: #FFFFFF !important;
    background: #f26419 !important;
    background-color: #f26419 !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    box-shadow: 0 1px 3px rgba(242, 100, 25, 0.25) !important;
}

html body .woocommerce-account .dt24-btn-action-ver:hover,
html body .dt24-order-actions-wrap a.dt24-btn-action-ver:hover,
html body a.dt24-btn-action-ver:hover,
html body .dt24-btn-action-ver:hover {
    background: #d85510 !important;
    background-color: #d85510 !important;
    color: #FFFFFF !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 3px 8px rgba(242, 100, 25, 0.35) !important;
}

html body .woocommerce-account .dt24-btn-action-rate,
html body .dt24-order-actions-wrap a.dt24-btn-action-rate,
html body a.dt24-btn-action-rate,
html body .dt24-btn-action-rate {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 6px 14px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    font-family: inherit !important;
    color: #f26419 !important;
    background: #FFFFFF !important;
    background-color: #FFFFFF !important;
    border: 1px solid #f26419 !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
}

html body .woocommerce-account .dt24-btn-action-rate:hover,
html body .dt24-order-actions-wrap a.dt24-btn-action-rate:hover,
html body a.dt24-btn-action-rate:hover,
html body .dt24-btn-action-rate:hover {
    background: #FFF7ED !important;
    background-color: #FFF7ED !important;
    color: #f26419 !important;
}

.dt24-stitch-table-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    padding-top: 14px;
    border-top: 1px solid #F1F5F9;
}

.dt24-stitch-count-info {
    font-size: 13px;
    color: #64748B;
}

/* Protect product names from theme blue color */
html body .dt24-stitch-prod-name,
html body a.dt24-stitch-prod-name,
html body .dt24-stitch-prod-cell a,
html body .dt24-stitch-prod-cell span {
    font-weight: 600 !important;
    color: #0F172A !important;
    line-height: 1.4 !important;
    text-decoration: none !important;
}

html body .dt24-stitch-prod-name:hover,
html body a.dt24-stitch-prod-name:hover,
html body .dt24-stitch-prod-cell a:hover {
    color: #f26419 !important;
    text-decoration: underline !important;
}

/* ==========================================================================
   9. Mobile Responsive Flutter Cards (upload4 prototype)
   Desktop: Table shown (upload2), Cards and Pills hidden.
   Mobile (<= 768px): Table hidden, Cards and Pills shown (upload4).
   ========================================================================== */

.dt24-stitch-mobile-cards {
    display: none !important;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

/* Suppress duplicate Motta page header title on WooCommerce My Account */
.woocommerce-account #page-header .page-header__content,
.woocommerce-account #page-header .page-header__title,
.woocommerce-account .page-header .page-header__title {
    display: none !important;
}

@media (min-width: 769px) {
    .dt24-stitch-table-responsive {
        display: block !important;
    }
    .dt24-stitch-mobile-cards {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .dt24-stitch-table-responsive {
        display: none !important;
    }
    .dt24-stitch-mobile-cards {
        display: flex !important;
    }
    .dt24-stitch-orders-card {
        padding: 16px !important;
        border-radius: 14px !important;
    }
    .dt24-stitch-orders-toolbar {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
    }
    .dt24-stitch-search-box {
        max-width: 100% !important;
        width: 100% !important;
    }
    .dt24-stitch-date-filter-box {
        width: 100% !important;
    }
    .dt24-stitch-date-select {
        width: 100% !important;
    }
}

/* Flutter-style Mobile Order Card (upload4) */
.dt24-stitch-mobile-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-decoration: none !important;
    color: inherit !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    transition: all 0.15s ease;
    box-sizing: border-box;
    cursor: pointer;
}

.dt24-stitch-mobile-card:hover {
    border-color: #CBD5E1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
}

.dt24-stitch-mcard-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.dt24-stitch-mcard-date {
    font-size: 12.5px;
    font-weight: 500;
    color: #64748B;
    letter-spacing: 0.1px;
}

.dt24-stitch-mcard-status {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 3px 12px;
    border-radius: 9999px;
    white-space: nowrap;
    line-height: 1.3;
}

/* Status Outline Badges on Mobile Cards */
.dt24-stitch-mcard-status.status-processing,
.dt24-stitch-mcard-status.status-procesando {
    color: #0284C7;
    background: #F0F9FF;
    border: 1.5px solid #BAE6FD;
}

.dt24-stitch-mcard-status.status-on-hold,
.dt24-stitch-mcard-status.status-en-espera,
.dt24-stitch-mcard-status.status-pending,
.dt24-stitch-mcard-status.status-pendiente {
    color: #D97706;
    background: #FEF3C7;
    border: 1.5px solid #FDE68A;
}

.dt24-stitch-mcard-status.status-waiting-pickup,
.dt24-stitch-mcard-status.status-esperando-retiro,
.dt24-stitch-mcard-status.status-paquete-en-destino,
.dt24-stitch-mcard-status.status-paquete_en_destino,
.dt24-stitch-mcard-status.status-en-transito,
.dt24-stitch-mcard-status.status-en_transito {
    color: #EA580C;
    background: #FFF7ED;
    border: 1.5px solid #FED7AA;
}

.dt24-stitch-mcard-status.status-completed,
.dt24-stitch-mcard-status.status-completado,
.dt24-stitch-mcard-status.status-delivered,
.dt24-stitch-mcard-status.status-entregado {
    color: #059669;
    background: #ECFDF5;
    border: 1.5px solid #A7F3D0;
}

.dt24-stitch-mcard-status.status-failed,
.dt24-stitch-mcard-status.status-fallido,
.dt24-stitch-mcard-status.status-cancelled,
.dt24-stitch-mcard-status.status-cancelado {
    color: #DC2626;
    background: #FEF2F2;
    border: 1.5px solid #FECACA;
}

.dt24-stitch-mcard-mid {
    margin: 2px 0;
}

.dt24-stitch-mcard-number {
    font-size: 22px;
    font-weight: 800;
    color: #f26419 !important;
    letter-spacing: -0.02em;
    display: inline-block;
}

.dt24-stitch-mcard-bottom {
    display: flex;
    align-items: baseline;
    gap: 6px;
    padding-top: 4px;
    border-top: 1px dashed #F1F5F9;
}

.dt24-stitch-mcard-total {
    font-size: 16px;
    font-weight: 800;
    color: #0F172A;
}

.dt24-stitch-mcard-items {
    font-size: 13px;
    font-weight: 400;
    color: #64748B;
}

.dt24-stitch-mcard-link-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-decoration: none !important;
    color: inherit !important;
}

.dt24-stitch-mcard-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    padding-top: 10px;
    border-top: 1px solid #F1F5F9;
}

.dt24-mcard-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    font-size: 12.5px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    text-decoration: none !important;
    box-sizing: border-box;
}

.dt24-stitch-rate-callout {
    animation: fadeIn 0.3s ease-in-out;
}


