/**
 * 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');

.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: #F05423;
}

.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;
}

.dt24-stitch-status-badge.status-processing {
    background: #F3E8FF;
    color: #7E22CE;
}

.dt24-stitch-status-badge.status-completed {
    background: #DCFCE7;
    color: #15803D;
}

.dt24-stitch-status-badge.status-delivered {
    background: #E0E7FF;
    color: #3730A3;
}

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

.dt24-stitch-status-badge.status-failed,
.dt24-stitch-status-badge.status-cancelled {
    background: #FEE2E2;
    color: #B91C1C;
}

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

.dt24-stitch-bcv-widget {
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
    border-radius: 10px;
    padding: 8px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 1px 3px rgba(37, 99, 235, 0.05);
}

.dt24-stitch-bcv-icon {
    font-size: 18px;
    color: #2563EB;
}

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

.dt24-stitch-bcv-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #1D4ED8;
    text-transform: uppercase;
}

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

/* 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: #64748B;
    line-height: 1.4;
}

.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: #F05423;
    border-color: #F05423;
    color: #FFFFFF;
    box-shadow: 0 0 0 4px rgba(240, 84, 35, 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: #F05423;
    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: 4px;
    font-size: 11px;
    font-weight: 600;
    color: #0F766E;
    background: #F0FDFA;
    padding: 2px 8px;
    border-radius: 6px;
    border: 1px solid #CCFBF1;
    margin-top: 4px;
}

.dt24-stitch-vendor-badge {
    color: #0D9488;
    font-size: 12px;
}

/* 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: #F05423;
    color: #FFFFFF;
    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: #F05423;
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 8px;
    transition: background 0.15s ease;
    box-shadow: 0 1px 3px rgba(240, 84, 35, 0.3);
}

.dt24-stitch-btn-maps:hover {
    background: #D94415;
    color: #FFFFFF;
}

/* 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: 22px;
    font-weight: 800;
    color: #0F172A;
}

.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;
}

/* 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%;
    }
}

/* ==========================================================================
   7. Mis Pedidos (Orders List View) Styles
   ========================================================================== */
.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: 10px 0 40px;
}

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

.dt24-stitch-orders-title {
    font-size: 26px;
    font-weight: 800;
    color: #0F172A;
    margin: 0 0 6px 0;
}

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

/* Buscador en tiempo real */
.dt24-stitch-search-bar {
    position: relative;
    margin-bottom: 20px;
    max-width: 540px;
}

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

.dt24-stitch-search-bar input {
    width: 100%;
    padding: 11px 16px 11px 40px;
    font-size: 13px;
    font-family: inherit;
    color: #1E293B;
    background: #FFFFFF;
    border: 1.5px solid #E2E8F0;
    border-radius: 10px;
    outline: none;
    transition: all 0.15s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.dt24-stitch-search-bar input:focus {
    border-color: #F05423;
    box-shadow: 0 0 0 3px rgba(240, 84, 35, 0.12);
}

/* Tarjeta y Tabla de Pedidos */
.dt24-stitch-orders-card {
    background: #FFFFFF;
    border: 1px solid #F1F5F9;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-bottom: 24px;
}

.dt24-stitch-orders-table {
    width: 100%;
    border-collapse: collapse;
}

.dt24-stitch-orders-table thead {
    background: #F8FAFC;
    border-bottom: 1px solid #E2E8F0;
}

.dt24-stitch-orders-table th {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #64748B;
    text-align: left;
    padding: 14px 18px;
}

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

.dt24-stitch-orders-table tr:last-child td {
    border-bottom: none;
}

.dt24-stitch-orders-table tr:hover td {
    background: #FAFAFA;
}

.dt24-col-id strong {
    font-size: 14px;
    font-weight: 700;
    color: #0F172A;
}

.dt24-date-main {
    font-weight: 600;
    color: #1E293B;
    margin-bottom: 2px;
}

.dt24-date-sub {
    font-size: 11px;
    color: #94A3B8;
}

.dt24-total-main {
    font-size: 14px;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 2px;
}

.dt24-total-sub {
    font-size: 11px;
    color: #94A3B8;
}

/* Botones de acción */
.dt24-actions-group {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.dt24-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 15px;
    font-size: 12px;
    font-weight: 700;
    font-family: inherit;
    text-decoration: none;
    border-radius: 8px;
    background: #F05423;
    color: #FFFFFF !important;
    border: none;
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: 0 1px 3px rgba(240, 84, 35, 0.25);
}

.dt24-action-btn:hover {
    background: #D94415;
    color: #FFFFFF !important;
    transform: translateY(-1px);
}

.dt24-action-btn.btn-rate {
    background: #EA580C;
    box-shadow: 0 1px 3px rgba(234, 88, 12, 0.25);
}

.dt24-action-btn.btn-rate:hover {
    background: #C2410C;
}

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

.dt24-action-btn.btn-cancel:hover {
    background: #F8FAFC;
    color: #B91C1C !important;
    border-color: #FCA5A5;
}

/* Paginación */
.dt24-stitch-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding: 10px 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: 34px;
    height: 34px;
    padding: 0 10px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    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: #F05423;
    border-color: #F05423;
    color: #FFFFFF !important;
}

.dt24-stitch-empty-orders {
    background: #FFFFFF;
    border: 1px solid #F1F5F9;
    border-radius: 16px;
    padding: 50px 24px;
    text-align: center;
    color: #64748B;
}

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

.dt24-stitch-empty-orders p {
    font-size: 14px;
    margin: 0;
}

@media (max-width: 768px) {
    .dt24-stitch-orders-table th:nth-child(2),
    .dt24-stitch-orders-table td:nth-child(2) {
        display: none;
    }
    .dt24-stitch-pagination {
        flex-direction: column;
        align-items: center;
    }
}

