.del-panel {
    min-width: 0;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 3px 14px rgba(29, 78, 216, .06);
}
.del-stack { display: grid; gap: 14px; }
.del-order { max-width: 850px; }
.del-top-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.del-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.del-panel form.del-actions + form.del-actions, .del-cancel { margin-top: 14px; }
.del-cancel summary { cursor: pointer; font-weight: 650; }
.del-cancel form { margin-top: 9px; }
.del-wide { grid-column: 1 / -1; }
.del-order textarea {
    display: block; width: 100%; margin-top: 5px; padding: 8px 9px; resize: vertical;
    font: inherit; color: var(--ink); border: 1px solid #cbd5e1; border-radius: 7px;
}
.del-line { min-width: 0; margin: 0 0 11px; border: 1px solid var(--line); border-radius: 8px; padding: 9px 10px; }
.del-line legend { padding: 0 5px; font-size: 13px; font-weight: 650; }
.del-line-grid { display: grid; grid-template-columns: minmax(0, 1fr) 95px; gap: 10px; }
.del-mods { margin-top: 7px; }
.del-estimate { display: block; padding-block: 12px; font-weight: 700; color: #1d4ed8; font-size: 16px; }
.del-order .field-grid + .del-actions { margin-top: 14px; }
.del-table { max-width: 100%; overflow: auto; }
.del-table td, .del-table th { white-space: normal; overflow-wrap: anywhere; }
.del-board { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.del-lane { background: #eff6ff; border: 1px solid #dbeafe; padding: 12px; border-radius: 12px; min-width: 0; }
.del-lane h2 { font-size: 18px; margin: 0 0 10px; }
.del-lane h3 { margin: 0; font-size: 16px; overflow-wrap: anywhere; }
.del-lane article + article { margin-top: 10px; }
.del-items { margin: 10px 0; padding: 0; list-style: none; }
.del-items > li { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 10px; padding: 5px 0; border-bottom: 1px solid var(--line); }
.del-item-total { margin-left: auto; }
.del-items small, .del-muted, .del-product small { color: var(--muted); font-size: 12.5px; }
.del-badge { display: inline-flex; align-items: center; border-radius: 999px; padding: 3px 10px; background: #e0f2fe; color: #0369a1; font-size: 12px; font-weight: 650; white-space: nowrap; }
.del-badge.cocina, .del-badge.vuelto { background: #fef3c7; color: #92400e; }
.del-badge.camino, .del-badge.app { background: #e0e7ff; color: #3730a3; }
.del-badge.entregado, .del-badge.ok { background: #dbeafe; color: #1d4ed8; }
.del-badge.cancelado, .del-badge.alerta { background: #fee2e2; color: #b91c1c; }
.del-wa { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; background: #e8eeff; color: #1d4ed8; font-size: 12px; font-weight: 650; text-decoration: none; border: 1px solid #bfdbfe; white-space: nowrap; }
.del-wa:hover { background: #dbeafe; }
.del-note { white-space: pre-wrap; overflow-wrap: anywhere; }
.del-facts { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 12px 0; }
.del-facts dt { font-size: 12px; color: var(--muted); }
.del-facts dd { margin: 2px 0 0; font-weight: 680; overflow-wrap: anywhere; }
.del-neto { display: grid; gap: 4px; color: #1d4ed8; }
.del-neto strong { font-size: 21px; }
.del-sr { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; }
.del-public { max-width: 930px; margin-inline: auto; padding: 14px; }
.del-hero {
    display: grid; grid-template-columns: 1fr minmax(0, .85fr); gap: 18px; align-items: center;
    margin-bottom: 18px; background: #e8eeff; border: 1px solid #bfdbfe; border-radius: 14px; overflow: hidden;
}
.del-hero > div { padding: 18px; }
.del-hero img { display: block; width: 100%; height: auto; }
.del-carta { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 10px; margin-bottom: 18px; }
.del-product { display: grid; align-content: space-between; gap: 6px; padding: 12px; border: 1px solid var(--line); background: white; border-radius: 10px; }
.del-product h2 { font-size: 16px; margin: 0; }
.del-product p { font-size: 13px; margin: 0; }
.del-product-at { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px; }
.del-carta-aviso { color: #1d4ed8; font-weight: 650; }
.del-promos { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.del-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 16px 0; }
.del-step { text-align: center; padding: 10px 6px; border-radius: 10px; background: #f1f5f9; color: #64748b; font-size: 12px; font-weight: 650; border: 1px solid #e2e8f0; }
.del-step.done { background: #dbeafe; color: #1d4ed8; border-color: #93c5fd; }
.del-step.current { background: #2563eb; color: #fff; border-color: #1d4ed8; }
.del-bar { width: 100%; max-width: 110px; height: 8px; border-radius: 999px; background: #e2e8f0; overflow: hidden; display: inline-block; vertical-align: middle; margin-right: 6px; }
.del-bar > span { display: block; height: 100%; background: #2563eb; border-radius: 999px; }
.del-print main { max-width: 380px; margin: 0 auto; padding: 16px; }
.del-ticket { border: 2px dashed #1d4ed8; border-radius: 10px; padding: 18px; background: #fff; font-size: 13.5px; }
.del-ticket h1 { margin: 0 0 6px; font-size: 20px; }
.del-print-nav { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.del-money-pos { color: #1d4ed8; font-weight: 700; }

@media (max-width: 670px) {
    .panel-title, .page-head { flex-wrap: wrap; }
    .del-board, .del-hero { grid-template-columns: 1fr; }
    .del-steps { grid-template-columns: 1fr; }
    .del-carta { grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); }
    .del-hero img { max-height: 205px; object-fit: cover; }
    .del-hero > div { padding: 12px; }
    .del-hero { gap: 0; }
    .del-line-grid { grid-template-columns: minmax(0, 1fr) 66px; }
    .del-cards table, .del-cards tbody { display: block; }
    .del-cards thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    .del-cards tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
    .del-cards td { display: block; padding: 0; border: 0; }
    .del-cards td[data-label]::before { content: attr(data-label); display: block; color: var(--muted); font-size: 12px; }
    .del-cell-title { grid-column: 1 / -1; font-weight: 700; }
}
@media print {
    body.del-print { background: #fff; color: #000; }
    .del-print-nav { display: none; }
}
