/* /Components/Pages/BestellTxt2.razor.rz.scp.css */
/* =========================================================
   Seite
   ========================================================= */

.orders-page[b-598ul0u9nc] {
    max-width: 1600px;
    margin: 0 auto;
    padding: 10px;
    height: calc(100vh - 120px);
    overflow-y: auto;
    overflow-x: hidden;
}


/* =========================================================
   Bestellung
   ========================================================= */

.order-card[b-598ul0u9nc] {
    display: block;
    width: 100%;
    height: auto;
    margin-bottom: 14px;
    border: 1px solid rgba(128, 128, 128, 0.25);
    border-radius: 6px;
    overflow: hidden;
    flex: none;
}


/* =========================================================
   Kopfbereich
   ========================================================= */

.order-header[b-598ul0u9nc] {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    padding: 9px 12px;
    background: rgba(128, 128, 128, 0.07);
    border-bottom: 1px solid rgba(128, 128, 128, 0.15);
}


/* Kunde = Hauptidentifikation */

.customer[b-598ul0u9nc] {
    min-width: 180px;
    font-size: 1.15rem;
    font-weight: 600;
    white-space: nowrap;
}


/* Projekt + Auslieferung */

.order-header-details[b-598ul0u9nc] {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.header-detail[b-598ul0u9nc] {
    display: grid;
    grid-template-columns: 85px auto;
    align-items: baseline;
    font-size: 0.9rem;
}

    .header-detail > span[b-598ul0u9nc] {
        font-size: 0.75rem;
        opacity: 0.55;
    }

    .header-detail > strong[b-598ul0u9nc] {
        font-weight: 600;
    }


/* =========================================================
   Farbe / Anwendung / Transport
   ========================================================= */

.order-properties[b-598ul0u9nc] {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    padding: 6px 12px;
    border-bottom: 1px solid rgba(128, 128, 128, 0.12);
}

    .order-properties > div[b-598ul0u9nc] {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 0.85rem;
    }

.label[b-598ul0u9nc] {
    font-size: 0.75rem;
    opacity: 0.55;
}


/* =========================================================
   Lieferadresse / Mitteilung
   ========================================================= */

.info-section[b-598ul0u9nc] {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    padding: 7px 12px;
    border-bottom: 1px solid rgba(128, 128, 128, 0.12);
    font-size: 0.85rem;
}

.info-label[b-598ul0u9nc] {
    padding-top: 1px;
    font-size: 0.75rem;
    font-weight: 600;
    opacity: 0.55;
}


/* =========================================================
   Lieferadresse
   ========================================================= */

.address[b-598ul0u9nc] {
    line-height: 1.4;
}

    .address > div[b-598ul0u9nc] {
        min-height: 1.2em;
    }

.address-main[b-598ul0u9nc] {
    font-weight: 600;
}


/* =========================================================
   Mitteilung
   ========================================================= */

.message-section[b-598ul0u9nc] {
    background: rgba(128, 128, 128, 0.025);
}

.message[b-598ul0u9nc] {
    white-space: pre-wrap;
    overflow-wrap: break-word;
    line-height: 1.45;
}


/* =========================================================
   Profile / Material
   ========================================================= */

.position-section[b-598ul0u9nc] {
    display: block;
    width: 100%;
    height: auto;
    min-height: 0;
    border-top: 1px solid rgba(128, 128, 128, 0.15);
    flex: none;
}

.position-title[b-598ul0u9nc] {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    font-size: 0.85rem;
    font-weight: 600;
    background: rgba(128, 128, 128, 0.04);
}

    .position-title > span[b-598ul0u9nc] {
        font-size: 0.75rem;
        font-weight: normal;
        opacity: 0.55;
    }


/* =========================================================
   DevExpress Grid
   ========================================================= */

[b-598ul0u9nc] .compact-grid {
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
    font-size: 0.85rem;
    flex: none !important;
}


    /* Grid-Zellen kompakter */

    [b-598ul0u9nc] .compact-grid .dxbl-grid-table > tbody > tr > td {
        padding-top: 4px;
        padding-bottom: 4px;
    }

    [b-598ul0u9nc] .compact-grid .dxbl-grid-table > thead > tr > th {
        padding-top: 5px;
        padding-bottom: 5px;
    }


/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 900px) {

    .order-header[b-598ul0u9nc] {
        gap: 20px;
    }

    .customer[b-598ul0u9nc] {
        min-width: 150px;
    }

    .order-properties[b-598ul0u9nc] {
        gap: 15px;
    }

    .info-section[b-598ul0u9nc] {
        grid-template-columns: 100px minmax(0, 1fr);
    }
}


@media (max-width: 600px) {

    .orders-page[b-598ul0u9nc] {
        padding: 5px;
    }

    .order-header[b-598ul0u9nc] {
        flex-direction: column;
        gap: 6px;
        padding: 8px 10px;
    }

    .customer[b-598ul0u9nc] {
        min-width: 0;
        white-space: normal;
    }

    .order-header-details[b-598ul0u9nc] {
        width: 100%;
    }

    .header-detail[b-598ul0u9nc] {
        grid-template-columns: 85px minmax(0, 1fr);
    }

    .order-properties[b-598ul0u9nc] {
        gap: 8px 18px;
        padding-left: 10px;
        padding-right: 10px;
    }

    .info-section[b-598ul0u9nc] {
        grid-template-columns: 1fr;
        gap: 3px;
        padding-left: 10px;
        padding-right: 10px;
    }

    .info-label[b-598ul0u9nc] {
        margin-bottom: 2px;
    }

    .position-title[b-598ul0u9nc] {
        padding-left: 10px;
        padding-right: 10px;
    }
}

.loading-overlay[b-598ul0u9nc] {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.15);
    z-index: 9999;
}

.loading-box[b-598ul0u9nc] {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 22px;
    border-radius: 8px;
    background: var(--bs-body-bg, white);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.page-title[b-598ul0u9nc] {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 12px;
}

    .page-title h3[b-598ul0u9nc] {
        margin: 0;
    }
