.order-detail-view{max-width:100%;min-width:0}
.order-detail-panel{min-width:0}
.order-detail-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.75rem;padding:.8rem;border:1px solid var(--bs-border-color,#dce3ec);border-radius:14px;background:var(--bs-body-bg,#fff)}
.order-detail-filters label{display:grid;gap:.4rem;min-width:0;padding:.65rem .75rem;border:1px solid var(--bs-border-color,#dce3ec);border-radius:10px;background:var(--bs-tertiary-bg,#f8fafc);color:#263e59;font-size:.78rem;font-weight:700}
.order-detail-filters :is(input,select){width:100%;min-height:44px;padding:.5rem .7rem;border:1px solid #cbd6e2;border-radius:8px;background:var(--bs-body-bg,#fff);color:var(--bs-body-color,#172b43);font-size:1rem;font-weight:600}
.order-detail-filters :is(input,select):focus-visible,.order-detail-action button:focus-visible{outline:3px solid #2473ad;outline-offset:2px}
.order-detail-action{display:flex;justify-content:space-between;align-items:center;gap:1rem;min-height:3.7rem}.order-detail-status{margin:0;color:var(--bs-secondary-color,#53677b)}
.order-detail-action button{min-height:42px;font-weight:700}
.order-detail-print-head{display:none}
.order-detail-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.75rem;margin:0 0 .75rem}
.order-detail-summary>div{display:grid;gap:.2rem;padding:.9rem 1rem;border:1px solid var(--bs-border-color,#dce3ec);border-radius:12px;background:var(--bs-body-bg,#fff);box-shadow:0 3px 12px rgba(20,46,76,.04)}
.order-detail-summary>div:last-child{border-top:3px solid #235a89}.order-detail-summary span{color:var(--bs-secondary-color,#53677b);font-size:.78rem;font-weight:650}.order-detail-summary strong{color:var(--bs-body-color,#172b43);font-size:1.2rem;font-variant-numeric:tabular-nums}
.order-detail-source{margin:0 0 .75rem;padding:.7rem .9rem;border-left:3px solid #236499;border-radius:6px;background:#eef5fa;color:#405a73;font-size:.82rem}
.order-detail-results{max-width:100%;overflow-x:auto;border:1px solid var(--bs-border-color,#dce3ec);border-radius:12px;background:var(--bs-body-bg,#fff)}
.order-detail-table{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums}.order-detail-table caption{padding:.8rem 1rem;color:var(--bs-secondary-color,#53677b);font-size:.8rem;text-align:left;caption-side:top}
.order-detail-table th,.order-detail-table td{text-align:center;padding:.65rem .55rem}.order-detail-table th{background:#1b304f;color:#fff;font-size:.76rem;letter-spacing:.02em}.order-detail-table td{border-bottom:1px solid #dce4ec;font-size:.86rem}.order-detail-table tr:nth-child(odd) td{background:#f3f7fa}.order-detail-table td:nth-child(2){font-weight:600}
@media(max-width:800px){.order-detail-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.order-detail-filters label:last-child{grid-column:1/-1}}
@media(max-width:600px){.order-detail-filters{grid-template-columns:1fr}.order-detail-filters label:last-child{grid-column:auto}.order-detail-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.order-detail-summary>div:last-child{grid-column:1/-1}.order-detail-results{overflow:visible;border:0;background:transparent}.order-detail-table,.order-detail-table tbody{display:block}.order-detail-table thead{display:none}.order-detail-table tbody tr{display:block;margin:0 0 .6rem;padding:.55rem .8rem;border:1px solid var(--bs-border-color,#dce3ec);border-radius:10px;background:var(--bs-body-bg,#fff)}.order-detail-table tbody td{display:grid;grid-template-columns:6rem 1fr;gap:.5rem;padding:.35rem 0;border:0;background:transparent!important;text-align:left}.order-detail-table tbody td::before{content:attr(data-label);color:var(--bs-secondary-color,#53677b);font-size:.75rem;font-weight:700}}
@page{size:A4 portrait;margin:11mm}
@media print{
  html.order-detail-print-active #app-sidebar,html.order-detail-print-active #sidebar-toggle,html.order-detail-print-active #sidebar-backdrop,html.order-detail-print-active .app-header,html.order-detail-print-active #viewer-panel>.app-view:not(#agenti-dettaglio-ordinato-view),html.order-detail-print-active #message{display:none!important}
  html.order-detail-print-active #app-main,html.order-detail-print-active #viewer-panel,html.order-detail-print-active #agenti-dettaglio-ordinato-view{display:block!important;width:100%!important;max-width:none!important;margin:0!important;padding:0!important;overflow:visible!important}
  html.order-detail-print-active .order-detail-view>.page-title-card,html.order-detail-print-active .order-detail-filters,html.order-detail-print-active .order-detail-action,html.order-detail-print-active .order-detail-source{display:none!important}
  html.order-detail-print-active .order-detail-print-head{display:flex;justify-content:space-between;align-items:flex-start;gap:8mm;min-height:35mm;margin:0 0 3mm;padding:7mm 8mm;background:#192f50!important;color:#fff!important;print-color-adjust:exact;-webkit-print-color-adjust:exact;break-after:avoid}
  html.order-detail-print-active .order-detail-print-title{flex:1;min-width:0}html.order-detail-print-active .order-detail-print-title span{display:block;margin-bottom:4mm;color:#addbd4;font-size:7pt;font-weight:700;letter-spacing:.09em;text-transform:uppercase}html.order-detail-print-active .order-detail-print-title h2{margin:0;color:#fff;font-size:20pt}html.order-detail-print-active .order-detail-print-title strong{display:block;margin-top:2mm;color:#fff;font-size:10pt}
  html.order-detail-print-active .order-detail-print-tenant{display:flex;flex-direction:row-reverse;align-items:flex-start;gap:3mm;max-width:52%;text-align:right;font-size:7pt;line-height:1.25}html.order-detail-print-active .order-detail-print-tenant img{width:14mm;height:14mm;object-fit:contain;padding:1mm;background:#fff}html.order-detail-print-active .order-detail-print-tenant strong,html.order-detail-print-active .order-detail-print-tenant span{display:block;color:#fff}
  html.order-detail-print-active .order-detail-summary{display:flex;justify-content:space-between;gap:3mm;margin:0 8mm 4mm;padding:4mm 5mm;border-radius:2mm;background:#2a5984!important;print-color-adjust:exact;-webkit-print-color-adjust:exact;break-after:avoid}html.order-detail-print-active .order-detail-summary>div{display:grid;gap:1mm;padding:0;border:0;background:none;box-shadow:none}html.order-detail-print-active .order-detail-summary span{color:#e0eaf4;font-size:7pt}html.order-detail-print-active .order-detail-summary strong{color:#fff;font-size:10pt}html.order-detail-print-active .order-detail-summary>div:last-child strong{font-size:15pt}
  html.order-detail-print-active .order-detail-results{margin:0 8mm;overflow:visible;border:0;border-radius:0}html.order-detail-print-active .order-detail-table{display:table;table-layout:fixed;width:100%;border-collapse:collapse}html.order-detail-print-active .order-detail-table caption{padding:0 0 2mm;font-size:7pt}html.order-detail-print-active .order-detail-table thead{display:table-header-group}html.order-detail-print-active .order-detail-table tbody{display:table-row-group}html.order-detail-print-active .order-detail-table tr{display:table-row;break-inside:avoid}html.order-detail-print-active .order-detail-table th{padding:2.2mm 1.4mm;background:#245a89!important;color:#fff;font-size:7pt;text-transform:uppercase;print-color-adjust:exact;-webkit-print-color-adjust:exact}html.order-detail-print-active .order-detail-table td{display:table-cell;padding:1.8mm 1.4mm;border-bottom:1px solid #d9e2eb;color:#192f50;font-size:7.3pt;line-height:1.2;font-weight:400;text-align:center}html.order-detail-print-active .order-detail-table td::before{display:none}html.order-detail-print-active .order-detail-table tr:nth-child(odd) td{background:#f0f5f9!important;print-color-adjust:exact;-webkit-print-color-adjust:exact}
  html.order-detail-print-active .order-detail-table th:nth-child(1),html.order-detail-print-active .order-detail-table td:nth-child(1){width:15%}html.order-detail-print-active .order-detail-table th:nth-child(2),html.order-detail-print-active .order-detail-table td:nth-child(2){width:57%}html.order-detail-print-active .order-detail-table th:nth-child(3),html.order-detail-print-active .order-detail-table td:nth-child(3){width:14%}html.order-detail-print-active .order-detail-table th:nth-child(4),html.order-detail-print-active .order-detail-table td:nth-child(4){width:14%}
}
