.etica-orders { gap: 16px; }
#eticaOrdersMessage:empty { display:none; }
.etica-toolbar { display:flex; align-items:end; gap:20px; flex-wrap:wrap; padding:18px; border:1px solid var(--line); border-radius:10px; background:var(--surface); }
.etica-search { display:grid; gap:6px; flex:1; min-width:200px; font-size:12px; color:var(--muted); }
.etica-orders input:not([type=checkbox]) { width:100%; min-height:40px; border:1px solid var(--line); border-radius:6px; padding:9px 10px; color:var(--ink); background:var(--surface); }
.etica-check { display:flex; align-items:center; gap:8px; min-height:40px; font-size:13px; }
.etica-workspace { display:grid; grid-template-columns:minmax(0,1fr) 300px; gap:18px; align-items:start; }
.etica-list,.etica-receipt-panel,.etica-history { min-width:0; background:var(--surface); border:1px solid var(--line); border-radius:10px; overflow:hidden; }
.etica-orders .panel-heading { padding:16px 18px; margin:0; }
.etica-orders h2 { margin:0; font-size:17px; }
.etica-orders .panel-heading>span { color:var(--muted); font-size:12px; }
.etica-list .data-table-wrap { max-height:540px; }
.etica-orders td small { display:block; margin-top:5px; color:var(--muted); max-width:260px; white-space:normal; }
.etica-orders .etica-selected td { background:var(--surface-soft); }
.etica-orders .etica-selected td:first-child { box-shadow:inset 3px 0 var(--green); }
.etica-orders .etica-pending { font-weight:700; }
.etica-pagination { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:12px 18px; font-size:12px; border-top:1px solid var(--line); }
.etica-receipt-panel { padding:20px; border-top:3px solid var(--green); }
.etica-receipt-panel .settings-help { line-height:1.5; overflow-wrap:anywhere; }
.etica-totals { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; padding:16px 0; margin-bottom:12px; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.etica-totals span { font-size:11px; color:var(--muted); }
.etica-totals strong { display:block; color:var(--ink); margin-top:6px; font-size:18px; overflow-wrap:anywhere; }
.etica-orders fieldset { display:grid; gap:15px; border:0; padding:0; margin:0; min-width:0; }
.etica-orders fieldset label { display:grid; gap:6px; font-size:12px; font-weight:600; }
.etica-orders fieldset:disabled { opacity:.55; }
.etica-orders .data-message { white-space:normal; line-height:1.5; }
.etica-history { margin-top:18px; }
.etica-history .data-table-wrap { max-height:300px; }
.record-dialog.etica-delete-dialog { width:min(520px,calc(100vw - 32px)); height:fit-content; max-height:calc(100dvh - 32px); border-radius:12px; }
.etica-delete-dialog form { height:auto; }
.etica-delete-heading { display:flex; align-items:center; gap:14px; }
.etica-delete-icon { display:grid; place-items:center; flex:0 0 42px; height:42px; border-radius:12px; background:#fbece9; color:var(--danger); font-size:24px; font-weight:700; }
.etica-delete-dialog h2 { font-size:22px; }
.etica-delete-dialog .dialog-body>p:first-child { margin-top:0; color:var(--muted); line-height:1.5; }
.etica-delete-details { display:grid; grid-template-columns:1fr 1fr; gap:20px; padding:18px; border:1px solid var(--line); border-radius:8px; background:var(--canvas); }
.etica-delete-details dt { color:var(--muted); font-size:12px; margin-bottom:6px; }
.etica-delete-details dd { margin:0; font-weight:600; overflow-wrap:anywhere; }
.etica-delete-invoice { grid-column:1/-1; }
.etica-delete-warning { padding:12px 14px; margin-bottom:0; border-left:3px solid var(--danger); background:#fff5f2; color:#85433d; font-size:13px; line-height:1.6; }
.etica-delete-dialog footer { justify-content:flex-end; }
.etica-delete-dialog footer .danger-button { background:var(--danger); color:white; border-color:var(--danger); }
.etica-delete-dialog footer .danger-button:hover { background:#9e3e39; }
@media(max-width:420px) { .etica-delete-dialog footer { flex-wrap:wrap; } .etica-delete-dialog footer button { flex:1 1 auto; } }
@media(max-width:1150px) { .etica-workspace { grid-template-columns:minmax(0,1fr); } .etica-receipt-panel fieldset { grid-template-columns:repeat(3,minmax(0,1fr)); } .etica-receipt-panel fieldset button { grid-column:1/-1; } }
@media(max-width:600px) { .etica-receipt-panel fieldset { grid-template-columns:1fr; } .etica-toolbar { align-items:stretch; flex-direction:column; gap:12px; } .etica-history .panel-heading { align-items:start; flex-direction:column; gap:8px; } }

#eticaQuantityLabel[hidden], #eticaBatchSummary[hidden], #eticaClearSelection[hidden] { display:none; }
#eticaBatchSummary { max-height:240px; overflow:auto; font-size:12px; line-height:1.5; margin-bottom:16px; }
#eticaClearSelection { margin-bottom:16px; }
#eticaOrdersTable input[type=checkbox] { width:18px; height:18px; accent-color:var(--green); cursor:pointer; }
