.mx-orders-page {
    background: #f6f9fc;
    color: #0f172a;
}

.mx-orders-container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.mx-orders-hero {
    padding: 90px 0 70px;
    background:
        linear-gradient(135deg, rgba(0, 113, 174, 0.96), rgba(75, 201, 233, 0.88)),
        #0071ae;
    color: #ffffff;
}

.mx-orders-eyebrow {
    display: inline-flex;
    margin-bottom: 16px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
}

.mx-orders-hero h1 {
    margin: 0 0 18px;
    color: #ffffff;
    font-size: clamp(36px, 6vw, 64px);
    line-height: 1;
    font-weight: 800;
}

.mx-orders-hero p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.94);
    font-size: 18px;
    line-height: 1.7;
}

.mx-orders-section {
    padding: 60px 0;
}

.mx-orders-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 32px;
}

.mx-orders-toolbar h2 {
    margin: 0 0 8px;
    color: #0f172a;
    font-size: 32px;
    line-height: 1.2;
    font-weight: 800;
}

.mx-orders-toolbar p {
    margin: 0;
    color: #64748b;
    font-size: 16px;
    line-height: 1.6;
}

.mx-orders-search {
    flex: 0 0 380px;
}

.mx-orders-search input {
    width: 100%;
    min-height: 52px;
    padding: 15px 18px;
    border: 1px solid #dbe4ee;
    border-radius: 16px;
    background: #ffffff;
    color: #0f172a;
    outline: none;
    font-size: 15px;
    transition: 0.25s ease;
}

.mx-orders-search input::placeholder {
    color: #94a3b8;
}

.mx-orders-search input:focus {
    border-color: #0071ae;
    box-shadow: 0 0 0 4px rgba(0, 113, 174, 0.12);
}

.mx-orders-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.mx-order-card {
    padding: 26px;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
    transition: 0.25s ease;
}

.mx-order-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 55px rgba(15, 23, 42, 0.11);
}

.mx-order-card__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.mx-order-card__badge {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(0, 113, 174, 0.1);
    color: #0071ae;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
}

.mx-order-card__date {
    flex: 0 0 auto;
    color: #64748b;
    font-size: 14px;
    font-weight: 600;
}

.mx-order-card h3 {
    margin: 0 0 12px;
    color: #0f172a;
    font-size: 22px;
    line-height: 1.25;
    font-weight: 800;
}

.mx-order-card p {
    margin: 0 0 24px;
    color: #475569;
    font-size: 16px;
    line-height: 1.7;
}

.mx-order-card__actions {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.mx-order-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-height: 46px;
    padding: 12px 18px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: 0.25s ease;
    white-space: nowrap;
}

.mx-order-btn--primary {
    border: 1px solid #0071ae;
    background: #0071ae;
    color: #ffffff;
}

.mx-order-btn--primary:hover {
    border-color: #005f94;
    background: #005f94;
    color: #ffffff;
}

.mx-order-btn--secondary {
    border: 1px solid #dbe4ee;
    background: #ffffff;
    color: #0f172a;
}

.mx-order-btn--secondary:hover {
    border-color: #0071ae;
    background: #ffffff;
    color: #0071ae;
}

.mx-order-btn--danger {
    border: 1px solid #4bc9e9;
    background: #eefbff;
    color: #0071ae;
}

.mx-order-btn--danger:hover {
    border-color: #4bc9e9;
    background: #4bc9e9;
    color: #ffffff;
}

.mx-orders-empty {
    display: none;
    margin-top: 24px;
    padding: 20px;
    border: 1px dashed #cbd5e1;
    border-radius: 16px;
    background: #ffffff;
    color: #64748b;
    text-align: center;
    font-size: 16px;
}

.mx-pdf-viewer-section {
    display: none;
    padding: 0 0 70px;
}

.mx-pdf-viewer-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    margin-bottom: 18px;
    padding: 24px;
    border: 1px solid #e2e8f0;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.06);
}

.mx-pdf-viewer-header span {
    display: inline-block;
    margin-bottom: 6px;
    color: #0071ae;
    font-size: 14px;
    font-weight: 800;
}

.mx-pdf-viewer-header h2 {
    margin: 0;
    color: #0f172a;
    font-size: 24px;
    line-height: 1.25;
    font-weight: 800;
}

.mx-pdf-viewer-actions {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.mx-pdf-viewer {
    height: 78vh;
    min-height: 520px;
    overflow: hidden;
    border: 1px solid #dbe4ee;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.mx-pdf-viewer iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: #ffffff;
}

@media (max-width: 900px) {
    .mx-orders-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .mx-orders-search {
        flex: 1 1 auto;
        width: 100%;
    }

    .mx-orders-grid {
        grid-template-columns: 1fr;
    }

    .mx-pdf-viewer-header {
        flex-direction: column;
        align-items: stretch;
    }

    .mx-pdf-viewer-actions {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .mx-pdf-viewer {
        height: 70vh;
        min-height: 420px;
    }
}

@media (max-width: 520px) {
    .mx-orders-container {
        width: min(100% - 22px, 1180px);
    }

    .mx-orders-hero {
        padding: 70px 0 50px;
    }

    .mx-orders-hero p {
        font-size: 16px;
    }

    .mx-orders-section {
        padding: 42px 0;
    }

    .mx-orders-toolbar h2 {
        font-size: 28px;
    }

    .mx-order-card {
        padding: 20px;
        border-radius: 20px;
    }

    .mx-order-card__top {
        flex-direction: column;
        align-items: flex-start;
    }

    .mx-order-card__actions {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .mx-pdf-viewer-header {
        padding: 18px;
        border-radius: 18px;
    }

    .mx-pdf-viewer-header h2 {
        font-size: 20px;
    }

    .mx-pdf-viewer-actions {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-start;
        gap: 10px;
    }

    .mx-order-btn {
        width: auto;
        min-height: 44px;
        padding: 11px 14px;
        font-size: 14px;
    }

    .mx-pdf-viewer {
        height: 65vh;
        min-height: 360px;
        border-radius: 18px;
    }
}