﻿.resumen-orden-container {
    max-width: 750px;
    margin: 2.7rem auto 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.resumen-orden-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(90deg, #23428D 40%, #5478d4 100%);
    color: #fff;
    border-radius: 0.8rem;
    padding: 1.2rem 2rem 1rem 2rem;
    box-shadow: 0 4px 18px rgba(35,66,141,0.09);
    margin-bottom: 1.4rem;
}

.resumen-orden-titulo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff !important;
    letter-spacing: 0.01em;
    margin-bottom: 0.3rem;
}

.resumen-orden-fecha {
    font-size: 1rem;
    opacity: 0.96;
}

.resumen-orden-usercard {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    border-radius: 0.6rem;
    box-shadow: 0 2px 12px rgba(35,66,141,0.07);
    padding: 0.7rem 1.5rem;
    margin-bottom: 2.1rem;
    font-size: 1.08rem;
    font-weight: 500;
}

.resumen-orden-main {
    width: 100%;
    display: flex;
    gap: 2.2rem;
    justify-content: center;
}

.resumen-orden-productlist,
.resumen-orden-totalcard {
    min-width: 260px;
    max-width: 350px;
    flex: 1 1 320px;
}

.resumen-orden-productlist {
    margin-right: 0.5rem;
}

.resumen-orden-totalcard {
    margin-left: 0.5rem;
}

.resumen-orden-card-header {
    background: linear-gradient(90deg, #23428d 0%, #4766c4 100%);
    color: #fff;
    padding: 0.7rem 1.1rem;
    font-weight: 600;
    font-size: 1.04rem;
    border-top-left-radius: 0.6rem;
    border-top-right-radius: 0.6rem;
}

.resumen-orden-card-body {
    padding: 1.1rem 1rem;
}

.text-brand {
    color: #23428d !important;
}

/* Responsive */
@media (max-width: 900px) {
    .resumen-orden-container {
        max-width: 99vw;
        padding: 0 2vw;
    }

    .resumen-orden-main {
        flex-direction: column;
        align-items: stretch;
        gap: 1.2rem;
    }

    .resumen-orden-productlist,
    .resumen-orden-totalcard {
        margin: 0;
        width: 100%;
        max-width: 100%;
    }

    .resumen-orden-header, .resumen-orden-usercard {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* ===== Resumen de orden (adaptado del admin) ===== */
.resumen-orden-page {
    padding: 0 0.75rem;
}

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: linear-gradient(90deg,#23428D 0%, #376EB5 100%);
    color: #fff;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 6px 18px rgba(35,66,141,.12);
}

.header-block {
    display: flex;
    flex-direction: column;
    gap: 4px
}

.header-text {
    font-size: 1.25rem;
    font-weight: 700
}

.order-date {
    opacity: .95;
    font-size: .95rem
}

.status-pill-container {
    display: flex;
    align-items: center
}

.status-pill {
    min-width: 150px;
    text-align: center;
    font-weight: 700;
    padding: 8px 14px;
    border-radius: 10px;
    background: #ffd700;
    color: #111;
}

.pending-pill {
    background: #ffd700;
    color: #111
}

.approved-pill {
    background: #dcfce7;
    color: #16a34a
}

.rejected-pill {
    background: #fee2e2;
    color: #b91c1c
}

.card-container.general-info-card {
    background: #fff;
    border: 1px solid #e9edf5;
    border-top: 0;
    border-radius: 0 0 12px 12px;
    padding: 18px;
    box-shadow: 0 8px 24px rgba(41,58,111,.08);
    margin-bottom: 16px;
}

.order-general-info-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 14px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 4px
}

.info-label {
    font-size: .85rem;
    color: #6c7a96
}

.info-value {
    font-weight: 600;
    color: #1e2a48
}

.details-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 16px;
}

.product-list-card, .total-order-card {
    background: #fff;
    border: 1px solid #e9edf5;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(41,58,111,.06);
}

.card-title-header {
    background: linear-gradient(90deg,#23428D 0%, #376EB5 100%);
    color: #fff;
    font-weight: 600;
    padding: 12px 16px;
}

.product-list {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.product-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid #eef2fb;
}

    .product-item:last-child {
        border-bottom: 0;
    }

.item-info p {
    margin: 0;
    line-height: 1.35;
    font-size: .93rem;
    color: #1e2a48;
}

    .item-info p.sku {
        font-weight: 600;
        color: #5a6da0;
        text-transform: uppercase;
        letter-spacing: .3px;
    }

    .item-info p.name {
        font-weight: 600
    }

.item-price {
    font-weight: 700;
    color: #23428D;
    white-space: nowrap
}

.summary-details {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 1rem;
}

    .summary-row.subtotal {
        font-weight: 700;
    }

@media (max-width: 992px) {
    .order-general-info-grid {
        grid-template-columns: repeat(2,1fr);
    }

    .details-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .order-general-info-grid {
        grid-template-columns: 1fr;
    }
}
/* en tu futurohoy.css */
.btn.btn-primary i {
    font-size: 0.95rem;
}

/* Ancho mayor para el bloque */
.resumen-orden-container {
    max-width: 1200px; /* antes era más estrecho */
    margin-inline: auto;
}

/* Header: separar pills + botón */
.resumen-orden-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-radius: 12px 12px 0 0;
    background: linear-gradient(90deg,#23428D 0%, #3a6cd6 100%);
    color: #fff;
}

.resumen-orden-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Botón enviar (coherente con header/cart) */
.btn-send-order {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: #23428D;
    border: 1px solid rgba(35,66,141,.12);
    padding: 10px 14px;
    border-radius: 12px;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(16,24,40,.12);
    transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}

    .btn-send-order:hover {
        transform: translateY(-1px);
        box-shadow: 0 6px 18px rgba(16,24,40,.16);
    }

    .btn-send-order:disabled {
        opacity: .55;
        cursor: not-allowed;
        transform: none;
    }

/* Por si prefieres variante azul sólida:
.btn-send-order{ background:#23428D; color:#fff; border:0; }
.btn-send-order:hover{ background:#1f3a7a; }
*/
