.nx-barcode-box{display:flex;align-items:center;gap:6px;min-width:min(430px,36vw);background:#fff1;border:1px solid #ffffff2e;border-radius:10px;padding:5px 7px}.nx-barcode-box input{background:#fff;color:#0f172a;padding:7px 9px;min-width:180px}.nx-barcode-box button{background:#e2e8f0;color:#0f172a;padding:7px 10px}.nx-export-bar{display:flex;align-items:center;gap:6px;flex-wrap:wrap;padding:8px 0;margin:2px 0 6px}.nx-export-bar span{font-size:11px;color:#64748b;font-weight:700}.nx-export-bar button{padding:6px 9px;background:#eef4ff;color:#1e3a5f;border:1px solid #dbeafe;font-size:11px}.nx-modal-overlay{display:none;position:fixed;inset:0;background:#0f172acc;z-index:99999;padding:24px;overflow:auto}.nx-modal-overlay.show{display:block}.nx-modal{max-width:1150px;margin:auto;background:#fff;border-radius:18px;box-shadow:0 24px 70px #0006;overflow:hidden}.nx-modal-head,.nx-modal-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 18px;background:#f8fafc;border-bottom:1px solid #e2e8f0}.nx-modal-foot{border-top:1px solid #e2e8f0;border-bottom:0;justify-content:flex-start}.nx-modal-head b{font-size:18px}.nx-modal-head small{display:block;color:#64748b}.nx-modal-head>button{font-size:22px;background:#eef2f7}.nx-modal-body{padding:18px}.nx-modal .table input{min-width:95px;padding:7px}.nx-edit-totals{display:flex;gap:20px;justify-content:flex-end;padding:12px;background:#f8fbff;border-radius:10px}.nx-edit-totals span{font-size:13px}.nx-edit-totals b{font-size:16px;color:#0f172a}@media(max-width:900px){.nx-barcode-box{min-width:0;max-width:46vw}.nx-barcode-box span,.nx-barcode-box button{display:none}.nx-modal-overlay{padding:8px}}

/* Production-wide date controls: deterministic direction across Arabic Windows/browser locales. */
input[type="date"],input[type="datetime-local"],input[type="time"]{direction:ltr!important;text-align:right!important;font-variant-numeric:tabular-nums}
.nx-map-grid select{width:100%;min-height:38px;border:1px solid #d9dee8;border-radius:9px;background:#fff;padding:6px 8px}

/* Production totals: last row of reports/statements */
.nx-grand-total-row th{font-weight:900;background:#f3f4f6;border-top:2px solid #111827!important;color:#111827}
.nx-grand-total-label{white-space:nowrap}.nx-grand-total-value{font-variant-numeric:tabular-nums}


/* PROD5: financial statements are independent report screens */
#analytics-financial .financial-single-screen,
#analytics-balance .financial-single-screen,
#analytics-income .financial-single-screen{max-width:100%;}
#analytics-balance .panel-title-row .muted{max-width:760px;}
