/* Inherits the existing Elbatal design tokens and button/modal styles. */
#editInvoiceModal .modal-content{max-width:900px;width:95vw;max-height:92vh;overflow-y:auto}
.commerce-modal{z-index:1200}
.commerce-box{border:1px solid var(--border-color,#ddd);border-radius:10px;padding:14px;margin:14px 0;background:var(--card-bg,#fff)}
.commerce-note{font-size:9pt;line-height:1.8;color:var(--text-muted,#64748b);padding:10px;border-radius:8px;background:var(--input-bg,#f8fafc);margin:8px 0}
.commerce-warning{border-right:3px solid #f59e0b;color:#9a6700}
.commerce-line{border-bottom:1px solid var(--border-color,#eee);padding:12px 0}
.commerce-line:last-child{border-bottom:0}
.commerce-line-head{display:flex;gap:8px;align-items:center;margin-bottom:10px}
.commerce-line-head select{flex:1;min-width:0}
.commerce-line-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:10px}
.commerce-line label{font-size:9pt;display:block;margin-bottom:5px}
.commerce-line input,.commerce-line select,.commerce-controls input,.commerce-controls select,.commerce-controls textarea{width:100%;padding:8px;border:1px solid var(--border-color,#ddd);border-radius:6px;background:var(--input-bg,#fff);color:var(--text-main,#222);font:inherit;box-sizing:border-box}
.commerce-line-foot{display:flex;gap:10px;justify-content:space-between;flex-wrap:wrap;margin-top:9px;font-size:9pt;color:var(--text-muted,#64748b)}
.commerce-controls{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px;margin:12px 0}
.commerce-header{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:12px}
.commerce-table-wrap{overflow:auto;max-height:55vh}
.commerce-table{width:100%;border-collapse:collapse;font-size:9pt;text-align:right}
.commerce-table th,.commerce-table td{padding:10px;border-bottom:1px solid var(--border-color,#ddd);vertical-align:middle}
.commerce-table th{background:var(--input-bg,#f8fafc);position:sticky;top:0;z-index:1;white-space:nowrap}
.commerce-badge{display:inline-block;font-size:8pt;padding:3px 7px;border-radius:5px;background:#eef2ff;color:#4f46e5}
.commerce-badge.warning{background:#fff7ed;color:#b45309}.commerce-badge.danger{background:#fff1f2;color:#be123c}
.commerce-badge.success{background:#ecfdf5;color:#047857}
.commerce-modal .modal-content{width:95vw;max-width:1120px;max-height:92vh;overflow:auto}
.commerce-modal input[type=checkbox],#editInvoiceModal input[type=checkbox]{width:auto}
.commerce-order-filters{margin-bottom:16px}
.commerce-order-filters summary{cursor:pointer;color:var(--primary,#4f46e5);font-size:10pt;font-weight:700}
.commerce-small{font-size:8pt;color:var(--text-muted,#64748b);line-height:1.7}
.commerce-line.unresolved{border-right:3px solid #f59e0b;padding-right:10px}
.commerce-preview-note{white-space:pre-wrap;padding:5px;margin-top:6px;background:#fffbeb;color:#92400e;font-size:8pt}
.commerce-print-lines{width:100%;border-collapse:collapse;margin-top:4px;font-size:10pt}
.commerce-print-lines th,.commerce-print-lines td{border-bottom:1px solid #ddd;padding:5px;text-align:right}
.commerce-print-note{margin-top:7px;padding-top:5px;border-top:1px dashed #999;white-space:pre-wrap;font-size:10pt;line-height:1.5}
@media(max-width:600px){.commerce-line-fields{grid-template-columns:1fr 1fr}.commerce-controls{grid-template-columns:1fr 1fr}.commerce-header .btn{font-size:9pt}.commerce-line-head{flex-wrap:wrap}.commerce-table th,.commerce-table td{padding:7px}}
@media print{.commerce-print-lines th,.commerce-print-lines td{font-size:9pt;color:#000!important}.commerce-print-lines tr{break-inside:avoid}.invoice-card.commerce-long{break-inside:auto!important;page-break-inside:auto!important}.commerce-print-note{break-inside:avoid}.commerce-print-lines thead{display:table-header-group}}
