.referencia-pedido { display: flex; align-items: stretch; gap: .5rem; }
.referencia-pedido #clientName { min-width: 0; }
#tableNumber { width: 6.25rem; flex: 0 0 auto; }
#orderForm [data-delivery-mode][aria-pressed="true"] { box-shadow: inset 0 0 0 2px #3b82f6; }
.text-order-line { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem .75rem; }
.text-order-line #textOrderStatus { font-size: .8rem; color: #475569; }
.text-order-button, #textOrderClose {
    min-height: 40px;
    padding: .35rem .7rem;
    border: 1px solid #94a3b8;
    border-radius: .5rem;
    font-size: .875rem;
    font-weight: 650;
}
#textOrderDialog {
    box-sizing: border-box;
    width: min(31rem, calc(100% - 1.5rem));
    max-height: calc(100dvh - 1.5rem);
    margin: auto;
    padding: 1rem;
    background: #fff;
    color: #0f172a;
    border: 1px solid #cbd5e1;
    border-radius: 1rem;
    box-shadow: 0 12px 32px #0f172a55;
    overflow: auto;
}
#textOrderDialog::backdrop { background-color: #0f172a80; }
.text-order-heading, .text-order-actions { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.text-order-heading { margin-bottom: .4rem; }
.text-order-heading h2 { font-size: 1.125rem; font-weight: 750; }
#textOrderClose { min-width: 40px; font-size: 1.25rem; }
#textOrderDialog label { font-size: .875rem; }
#textOrderInput { display: block; width: 100%; margin-top: .4rem; padding: .6rem; border: 1px solid #94a3b8; border-radius: .5rem; resize: vertical; }
#textOrderPreview { list-style: disc inside; max-height: 8rem; overflow: auto; font-size: .875rem; }
#textOrderPreview:not(:empty), #textOrderNotice:not(:empty) { margin-top: .5rem; overflow-wrap: anywhere; }
#textOrderNotice { color: #92400e; font-size: .875rem; }
.text-order-actions { justify-content: flex-end; margin-top: .75rem; }
#textOrderApply { background: #1d4ed8; color: #fff; border-color: transparent; }
.text-order-button:disabled { opacity: .5; cursor: default; }
:root[data-theme="dark"] #textOrderDialog { background: #142034; color: #f1f5f9; }
:root[data-theme="dark"] #textOrderNotice { color: #fcd34d; }
:root[data-theme="dark"] .text-order-line #textOrderStatus { color: #cbd5e1; }
