:root{color:#0f172a;font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;--navy:#0f172a;--navy-soft:#162033;--teal:#10b981;--blue:#2563eb;--yellow:#d97706;--red:#dc2626;--line:#e2e8f0;--muted:#64748b;--panel:#fff;--workspace:#f8fafc;background:#f8fafc;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}html,body,#root{min-height:100%;margin:0}body{background:var(--workspace)}button,input,textarea,select{font:inherit}button{cursor:pointer}.app-shell{background:var(--workspace);min-height:100vh;display:flex}.sidebar{z-index:30;background:var(--navy);color:#e2e8f0;flex-direction:column;width:240px;display:flex;position:fixed;inset:0 auto 0 0;transform:translate(0)}.sidebar-brand{border-bottom:1px solid #94a3b824;align-items:center;gap:12px;min-height:68px;padding:16px;display:flex}.brand-mark{background:#fff;border:1px solid #e2e8f0d1;border-radius:50%;flex:none;place-items:center;width:42px;height:42px;display:grid;overflow:hidden;box-shadow:0 8px 18px #0f172a24}.brand-mark img{object-fit:cover;width:100%;height:100%;display:block}.sidebar-brand strong{color:#fff;font-size:15px;display:block}.sidebar-brand span{color:#cbd5e1;margin-top:2px;font-size:11px;display:block}.sidebar-close{margin-left:auto;display:none}.sidebar-nav{flex:1;padding:12px 8px;overflow-y:auto}.nav-group{margin-bottom:2px}.nav-item,.nav-child{color:#f8fafc;text-align:left;background:0 0;border:0;border-radius:8px;width:100%;transition:background .16s,color .16s}.nav-item{align-items:center;gap:12px;padding:10px 12px;display:flex}.nav-item:hover,.nav-child:hover{background:#94a3b81f}.nav-active{color:#34d399;background:#10b98124}.nav-chevron{margin-left:auto;transition:transform .16s}.nav-chevron-open{transform:rotate(90deg)}.nav-children{gap:2px;margin:2px 0 6px 34px;display:grid}.nav-child{color:#cbd5e1;padding:8px 10px;font-size:13px}.nav-child-active{color:#34d399;background:#10b9811f}.sidebar-user{border-top:1px solid #94a3b824;padding:16px 24px 20px}.sidebar-user span,.sidebar-user small{color:#94a3b8;font-size:11px;display:block}.sidebar-user small{margin-top:4px}.logout-button{color:#cbd5e1;background:0 0;border:0;align-items:center;gap:10px;width:100%;margin-top:18px;padding:8px 0;display:flex}.workspace{width:100%;min-width:0;margin-left:240px;padding:24px}.page{width:100%;max-width:1280px;margin:0 auto}.page-header{justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:24px;display:flex}.page-header h1{color:#0f172a;margin:0;font-size:24px;line-height:32px}.page-header p{color:#475569;margin:4px 0 0;font-size:14px}.mobile-menu{z-index:10;color:#fff;background:#1f2937;margin-bottom:14px;display:none;position:sticky;top:12px;box-shadow:0 8px 18px #0f172a2e}.workspace-toolbar{justify-content:space-between;align-items:center;gap:12px;display:flex}.workspace-toolbar-active{margin-bottom:14px}.workspace-toolbar .mobile-menu{margin-bottom:0;position:static}.notification-wrap{margin-left:auto;position:relative}.notification-button{color:#2563eb;background:#fff;border:1px solid #dbeafe;border-radius:10px;place-items:center;width:42px;height:42px;display:inline-grid;position:relative;box-shadow:0 8px 20px #0f172a14}.notification-button:hover{background:#eff6ff}.notification-button span{color:#fff;background:#dc2626;border:2px solid #fff;border-radius:999px;place-items:center;min-width:21px;height:21px;padding:0 5px;font-size:10px;font-weight:800;display:grid;position:absolute;top:-7px;right:-7px}.notification-menu{z-index:25;background:#fff;border:1px solid #e2e8f0;border-radius:12px;width:min(380px,100vw - 32px);position:absolute;top:calc(100% + 10px);right:0;overflow:hidden;box-shadow:0 20px 55px #0f172a2e}.notification-head{border-bottom:1px solid #f1f5f9;justify-content:space-between;align-items:center;gap:12px;padding:14px 16px;display:flex}.notification-head div{gap:2px;display:grid}.notification-head strong{font-size:15px}.notification-head span,.notification-empty{color:#64748b;font-size:12px}.mark-read-button,.notification-read-button{color:#1d4ed8;white-space:nowrap;background:#eff6ff;border:0;border-radius:8px;font-size:11px;font-weight:800}.mark-read-button{padding:8px 10px}.mark-read-button:disabled{cursor:default;opacity:.45}.notification-list{max-height:420px;display:grid;overflow-y:auto}.notification-item{color:#0f172a;text-align:left;background:#fff;border:0;border-bottom:1px solid #f8fafc;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;width:100%;display:grid}.notification-item-unread{background:#f8fbff;box-shadow:inset 3px 0 #2563eb}.notification-item-read{opacity:.72}.notification-item:hover,.notification-main:hover{background:#f8fafc}.notification-main{width:100%;min-width:0;color:inherit;text-align:left;background:0 0;border:0;grid-template-columns:34px minmax(0,1fr);gap:10px;padding:12px 0 12px 14px;display:grid}.notification-icon{border-radius:8px;place-items:center;width:34px;height:34px;display:grid}.notification-pending{color:#d97706;background:#fffbeb}.notification-order{color:#047857;background:#ecfdf5}.notification-invoice{color:#2563eb;background:#eff6ff}.notification-copy{gap:2px;min-width:0;display:grid}.notification-copy strong,.notification-copy small,.notification-copy em{overflow-wrap:anywhere}.notification-copy strong{font-size:13px}.notification-copy small,.notification-copy em{color:#64748b;font-size:12px;font-style:normal}.notification-read-button{margin-right:14px;padding:7px 9px}.notification-read-button:hover,.mark-read-button:not(:disabled):hover{background:#dbeafe}.notification-read-text{color:#94a3b8;margin-right:14px;font-size:11px;font-weight:800}.notification-empty{margin:0;padding:18px 16px}.section-label{color:#94a3b8;letter-spacing:.04em;text-transform:uppercase;margin:14px 0 8px;font-size:12px;font-weight:700}.metric-grid{gap:12px;margin-bottom:18px;display:grid}.metric-grid.four{grid-template-columns:repeat(4,minmax(0,1fr))}.metric-card{border:1px solid;border-radius:12px;min-height:100px;padding:16px}.metric-head{justify-content:space-between;align-items:center;gap:12px;font-size:12px;font-weight:600;display:flex}.metric-card strong{margin-top:10px;font-size:22px;line-height:28px;display:block}.metric-card small{color:#64748b;margin-top:6px;font-size:12px;display:block}.metric-green{color:#047857;background:#ecfdf5;border-color:#a7f3d0}.metric-blue{color:#2563eb;background:#eff6ff;border-color:#bfdbfe}.metric-yellow{color:#d97706;background:#fffbeb;border-color:#fde68a}.metric-red{color:#dc2626;background:#fef2f2;border-color:#fecaca}.metric-gray{color:#64748b;background:#f8fafc;border-color:#e2e8f0}.dashboard-grid,.dashboard-list-grid{grid-template-columns:minmax(0,2fr) minmax(320px,1fr);gap:16px;margin-top:16px;display:grid}.dashboard-list-grid{grid-template-columns:repeat(2,minmax(0,1fr));margin-top:24px}.card,.table-card,.settings-card{background:var(--panel);border:1px solid #f1f5f9;border-radius:12px;width:100%;min-width:0;box-shadow:0 1px 2px #0f172a0d}.card-header{justify-content:space-between;align-items:center;gap:12px;padding:16px 16px 0;display:flex}.card-header h2{margin:0;font-size:16px;line-height:24px}.card-body{padding:16px}.summary-row{color:#475569;justify-content:space-between;align-items:center;gap:12px;padding:8px 0;display:flex}.summary-row strong{color:#0f172a}.summary-divider{background:#e2e8f0;height:1px;margin:8px 0}.text-green{color:#059669!important}.text-red{color:#dc2626!important}.list-line{justify-content:space-between;align-items:flex-start;gap:16px;padding-top:8px;display:flex}.list-line>div:first-child{min-width:0}.list-line strong,.list-line span{display:block}.list-line span{color:#475569;margin-top:2px;font-size:12px}.list-line-right{justify-items:end;gap:6px;display:grid}.link-button,.table-link{color:#059669;background:0 0;border:0;align-items:center;gap:4px;padding:0;display:inline-flex}.table-link{color:#0f172a;font-weight:700}.action-row,.filter-row,.date-row,.report-toolbar{flex-wrap:wrap;align-items:center;gap:10px;max-width:100%;display:flex}.primary-button,.secondary-button,.filter-button{border:1px solid #0000;border-radius:8px;justify-content:center;align-items:center;gap:8px;min-height:38px;padding:8px 12px;font-size:14px;font-weight:700;display:inline-flex}.primary-button{color:#fff;background:#059669}.primary-button:hover{background:#047857}.secondary-button,.filter-button{color:#334155;background:#fff;border-color:#cbd5e1}.filter-button{color:#475569}.filter-select{width:auto;min-width:150px}.danger-button{background:#dc2626}.danger-button:hover{background:#b91c1c}.danger-text{color:#dc2626}.wide{width:100%}.search-wrap{color:#94a3b8;background:#fff;border:1px solid #e2e8f0;border-radius:8px;align-items:center;gap:10px;width:min(360px,100%);margin-bottom:14px;padding:0 12px;display:flex}.search-wrap input{border:0;outline:none;width:100%;min-width:0;height:40px}.table-card{-webkit-overflow-scrolling:touch;width:100%;max-width:100%;overflow-x:auto}table{border-collapse:collapse;width:100%;min-width:760px}th,td{text-align:left;vertical-align:middle;white-space:nowrap;border-bottom:1px solid #f1f5f9;padding:14px 16px}th{color:#64748b;letter-spacing:.03em;background:#f8fafc;font-size:12px;font-weight:800}td{font-size:14px}td small{color:#64748b;margin-top:2px;display:block}.two-line-cell{gap:2px;min-width:0;display:grid}.two-line-cell strong,.two-line-cell small{overflow-wrap:anywhere;white-space:normal;min-width:0}.two-line-cell strong{color:#0f172a}.sales-table table{table-layout:fixed;min-width:0}.sales-table th,.sales-table td{padding:12px 10px}.sales-table td{white-space:normal}.sales-table .row-actions{min-width:74px}.sales-orders-table th:first-child,.sales-orders-table td:first-child,.invoices-table th:first-child,.invoices-table td:first-child{width:15%}.sales-orders-table th:nth-child(2),.sales-orders-table td:nth-child(2),.invoices-table th:nth-child(2),.invoices-table td:nth-child(2){width:22%}.sales-orders-table th:nth-child(3),.sales-orders-table td:nth-child(3),.invoices-table th:nth-child(3),.invoices-table td:nth-child(3){width:12%}.sales-orders-table th:nth-child(4),.sales-orders-table td:nth-child(4),.invoices-table th:nth-child(4),.invoices-table td:nth-child(4){width:10%}.sales-orders-table th:nth-child(5),.sales-orders-table td:nth-child(5),.invoices-table th:nth-child(5),.invoices-table td:nth-child(5){width:15%}.sales-orders-table th:nth-child(6),.sales-orders-table td:nth-child(6),.invoices-table th:nth-child(6),.invoices-table td:nth-child(6){width:12%}.sales-orders-table th:nth-child(7),.sales-orders-table td:nth-child(7),.invoices-table th:nth-child(7),.invoices-table td:nth-child(7){text-align:right;width:14%}tr:last-child td{border-bottom:0}.row-actions{justify-content:flex-end;align-items:center;gap:4px;min-width:84px;display:inline-flex}.row-action{color:#64748b;background:0 0;border:0;border-radius:6px;place-items:center;width:30px;height:30px;display:inline-grid}.row-action-gray:hover{color:#334155;background:#f1f5f9}.row-action-green:hover{color:#047857;background:#ecfdf5}.row-action-blue:hover{color:#2563eb;background:#eff6ff}.row-action-red:hover{color:#dc2626;background:#fef2f2}.empty-cell{color:#64748b;text-align:center;padding:36px 16px}.badge{border:1px solid;border-radius:999px;justify-content:center;align-items:center;min-height:24px;padding:2px 8px;font-size:12px;font-weight:700;display:inline-flex}.badge-green{color:#047857;background:#ecfdf5;border-color:#a7f3d0}.badge-blue{color:#2563eb;background:#eff6ff;border-color:#bfdbfe}.badge-yellow{color:#d97706;background:#fffbeb;border-color:#fde68a}.badge-red{color:#dc2626;background:#fef2f2;border-color:#fecaca}.badge-gray{color:#475569;background:#f8fafc;border-color:#e2e8f0}.badge-indigo{color:#4f46e5;background:#eef2ff;border-color:#c7d2fe}.mini-metrics{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:14px;display:grid}.mini-metric{background:#fff;border:1px solid #e2e8f0;border-radius:10px;padding:14px}.mini-metric span,.record-count,.muted{color:#64748b;font-size:13px}.mini-metric strong{margin-top:4px;font-size:18px;display:block}.tabs{flex-wrap:wrap;gap:8px;margin-bottom:14px;display:flex}.tabs button{color:#475569;background:#fff;border:1px solid #cbd5e1;border-radius:8px;padding:9px 12px;font-weight:700}.tabs .tab-active{color:#047857;background:#ecfdf5;border-color:#a7f3d0}.date-row,.report-toolbar{margin-bottom:14px}.mpo-report-sheet{background:#fff;border:1px solid #e2e8f0;border-radius:12px;width:100%;padding:22px;box-shadow:0 1px 2px #0f172a0d}.mpo-report-letterhead{color:#0f172a;border-bottom:2px solid #0f172a;grid-template-columns:76px minmax(0,1fr);align-items:center;gap:16px;margin-bottom:18px;padding-bottom:16px;display:grid}.mpo-report-letterhead img{object-fit:contain;width:68px;height:68px}.mpo-report-letterhead h1{color:#166534;margin:0;font-size:28px;line-height:34px}.mpo-report-letterhead p{margin:0 0 4px;font-weight:800}.mpo-report-letterhead span{color:#475569;font-size:12px;line-height:18px;display:block}.mpo-report-title{color:#0f172a;text-align:center;justify-items:center;gap:4px;margin-bottom:18px;display:grid}.mpo-report-title h2{margin:0;font-size:22px;line-height:30px}.mpo-report-title span{color:#475569;font-size:15px;font-weight:800}.mpo-report-table th,.mpo-report-table td{text-align:right}.mpo-report-table table{table-layout:fixed;min-width:640px}.mpo-report-table th:first-child,.mpo-report-table td:first-child{text-align:left}.mpo-report-table tfoot td{color:#0f172a;background:#f8fafc;border-top:1px solid #cbd5e1;font-weight:800}.mpo-report-table tfoot td:first-child{text-align:right}input,select,textarea{color:#0f172a;background:#fff;border:1px solid #cbd5e1;border-radius:8px;outline:none;width:100%;min-width:0}input,select{height:40px;padding:0 10px}textarea{resize:vertical;min-height:92px;padding:10px}.date-row input,.report-toolbar input,.report-toolbar select{width:auto;min-width:180px}.settings-card{padding:20px}.company-badge{align-items:center;gap:12px;margin-bottom:18px;display:flex}.company-badge .brand-mark{width:54px;height:54px}.company-badge h2{margin:0;font-size:18px}.company-badge span{color:#64748b;font-size:13px}.permissions-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:14px;display:grid}.check-row{background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;align-items:center;gap:8px;min-height:38px;padding:8px 10px;display:flex}.check-row input{width:16px;height:16px}.modal-layer{z-index:60;place-items:center;padding:20px;display:grid;position:fixed;inset:0}.modal-backdrop{background:#0f172a8c;border:0;position:absolute;inset:0}.modal-panel{background:#fff;border-radius:14px;width:min(560px,100%);max-height:min(820px,100dvh - 40px);position:relative;overflow:auto;box-shadow:0 24px 60px #0f172a47}.modal-wide{width:min(1040px,100%)}.modal-header{z-index:1;background:#fff;border-bottom:1px solid #e2e8f0;justify-content:space-between;align-items:center;gap:12px;padding:16px 18px;display:flex;position:sticky;top:0}.modal-header h2{margin:0;font-size:18px}.modal-panel form,.modal-panel .details-grid{padding:18px}.form-grid{gap:12px;display:grid}.form-grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.field{gap:6px;display:grid}.field span{color:#334155;font-size:13px;font-weight:700}.field-wide{grid-column:1/-1}.order-form{gap:14px;display:grid}.payment-policy-box{background:#f8fafc;border:1px solid #e2e8f0;border-radius:10px;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:12px;display:grid}.payment-policy-box .summary-row{padding:0}.line-items{border:1px solid #e2e8f0;border-radius:10px;margin-top:16px;padding:14px}.line-title{justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px;display:flex}.sales-lines{gap:12px;display:grid}.line-grid{grid-template-columns:2fr repeat(5,1fr);gap:10px;display:grid}.sales-line-grid{grid-template-columns:minmax(260px,2fr) repeat(5,minmax(82px,1fr)) 34px;align-items:end}.line-remove{margin-bottom:5px}.compact-button{min-height:32px;padding:6px 10px}.customer-due-box{background:#f8fafc;border:1px solid #e2e8f0;border-radius:10px;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding:12px;display:grid}.customer-due-box .detail-row{border-bottom:0;padding:0}.totals-box{background:#f8fafc;border-radius:8px;width:min(360px,100%);margin:14px 0 0 auto;padding:8px 12px}.live-totals{margin-top:0}.modal-actions{flex-wrap:wrap;justify-content:flex-end;gap:10px;margin-top:18px;display:flex}.modal-content,.confirm-box{padding:18px}.invoice-modal-body{background:#f8fafc;padding:16px}.invoice-toolbar{justify-content:flex-end;align-items:center;gap:10px;margin-bottom:14px;display:flex}.invoice-status{margin-left:auto}.invoice-print-sheet{color:#000;background:#fff;border:1px solid #e2e8f0;width:min(794px,100%);min-height:1122px;margin:0 auto;padding:34px 38px 42px;font-family:Arial,Helvetica,sans-serif;font-size:12px;line-height:1.35;box-shadow:0 14px 38px #0f172a1a}.receipt-modal-body{background:#f8fafc;padding:16px}.receipt-print-sheet{color:#0f172a;background:#fff;border:1px solid #e2e8f0;width:min(760px,100%);margin:0 auto;padding:32px 36px 38px;font-family:Arial,Helvetica,sans-serif;font-size:12px;line-height:1.35;box-shadow:0 14px 38px #0f172a1a}.receipt-head{border-bottom:2px solid #111827;justify-content:space-between;gap:24px;padding-bottom:18px;display:flex}.receipt-brand{gap:3px;display:grid}.receipt-brand h1{color:#166534;letter-spacing:0;margin:0;font-size:30px;line-height:1}.receipt-brand p{margin:0 0 8px;font-weight:800}.receipt-brand span{color:#475569;font-size:11px}.receipt-meta{text-align:right;justify-items:end;gap:6px;display:grid}.receipt-meta span{color:#64748b;text-transform:uppercase;font-size:12px;font-weight:800}.receipt-meta strong{font-size:23px}.receipt-meta small{color:#475569}.receipt-amount-band{background:#f0fdf4;border:1px solid #bbf7d0;gap:4px;margin:22px 0;padding:16px 18px;display:grid}.receipt-amount-band span{color:#166534;text-transform:uppercase;font-weight:800}.receipt-amount-band strong{color:#14532d;font-size:28px}.receipt-amount-band small{color:#334155;font-weight:700}.receipt-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;display:grid}.receipt-panel{background:#fff;border:1px solid #e2e8f0;padding:14px}.receipt-panel h2{letter-spacing:.08em;text-transform:uppercase;margin:0 0 10px;font-size:12px}.receipt-line{border-top:1px solid #f1f5f9;grid-template-columns:150px minmax(0,1fr);gap:10px;padding:6px 0;display:grid}.receipt-line:first-of-type{border-top:0}.receipt-line span{color:#64748b}.receipt-line strong{overflow-wrap:anywhere}.receipt-line-strong strong{color:#166534;font-size:14px}.receipt-summary,.receipt-notes{margin-top:14px}.receipt-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:0 18px;display:grid}.receipt-notes p{color:#334155;margin:0}.receipt-signature-row{grid-template-columns:repeat(3,minmax(0,1fr))}.invoice-letterhead{grid-template-columns:1fr 1.4fr 1fr;align-items:start;gap:18px;display:grid}.office-block{gap:2px;padding-top:20px;font-size:10px;line-height:1.15;display:grid}.office-block strong{font-size:11px}.office-block-right{text-align:right}.invoice-brand{text-align:center}.invoice-brand h1{letter-spacing:0;margin:0;font-size:31px;line-height:1.05}.invoice-brand p{margin:4px 0 0;font-size:11px;font-weight:700}.invoice-title{text-align:center;letter-spacing:6px;margin:18px 0 20px;font-size:19px;font-weight:800}.invoice-info-grid{grid-template-columns:1fr 1fr;gap:54px;margin-bottom:24px;display:grid}.invoice-info-column{gap:8px;display:grid}.invoice-info-line{grid-template-columns:96px minmax(0,1fr);align-items:start;gap:8px;display:grid}.invoice-info-line span{font-size:11px}.invoice-info-line strong{overflow-wrap:anywhere;font-size:11px;font-weight:700}.invoice-section-title{margin-bottom:8px;font-size:13px;font-style:italic;font-weight:800}.invoice-table-wrap{width:100%;overflow-x:auto}.invoice-product-table{border-collapse:collapse;table-layout:fixed;border:1px solid #9ca3af;width:100%;min-width:0}.invoice-product-table th,.invoice-product-table td{color:#000;text-align:center;white-space:normal;border:1px solid #9ca3af;padding:7px 6px;font-size:10px;line-height:1.25}.invoice-product-table th:first-child,.invoice-product-table td:first-child{text-align:left;width:25%}.invoice-product-table th{letter-spacing:0;background:#f8fafc;font-weight:800}.invoice-total-area{grid-template-columns:minmax(0,1fr) 230px;align-items:start;gap:24px;margin-top:14px;display:grid}.invoice-terms{gap:7px;display:grid}.invoice-terms p{margin:0;font-size:11px;font-weight:700}.invoice-total-lines{gap:4px;display:grid}.invoice-total-line{justify-content:space-between;gap:14px;padding:2px 0;font-size:11px;display:flex}.invoice-total-strong{border-top:1px solid #111827;padding-top:6px;font-weight:800}.account-summary-box{background:#fffbeb;border:2px solid #facc15;border-radius:14px;margin-top:42px;padding:24px}.account-summary-box h2{color:#8a3b0a;text-align:center;letter-spacing:0;margin:0 0 20px;font-size:22px;line-height:28px}.account-summary-grid{grid-template-columns:1fr 1fr;gap:12px;display:grid}.account-summary-item,.remaining-due-row{color:#243b5a;background:#ffffffdb;border-radius:8px;justify-content:space-between;align-items:center;gap:14px;min-height:52px;padding:12px 18px;font-size:18px;display:flex}.account-summary-item strong{color:#1d4ed8;font-size:20px;font-weight:500}.account-summary-item .summary-green{color:#059669}.remaining-due-row{color:#0f172a;min-height:72px;margin-top:12px;font-weight:800}.remaining-due-row strong{color:#ef4444;font-size:26px}.statement-date{color:#475569;text-align:right;margin-top:8px;font-size:16px}.signature-row{grid-template-columns:1fr 1fr;gap:72px;margin-top:58px;font-size:11px;display:grid}.signature-row div{text-align:left}.signature-row div:last-child{text-align:right}.signature-row span{background:#111827;width:100%;height:1px;margin-bottom:4px;display:block}.toast{z-index:80;color:#065f46;background:#ecfdf5;border:1px solid #a7f3d0;border-radius:8px;max-width:min(360px,100vw - 40px);padding:12px 14px;font-weight:700;position:fixed;bottom:20px;right:20px;box-shadow:0 12px 30px #0f172a29}.details-grid{gap:10px;display:grid}.detail-row{border-bottom:1px solid #f1f5f9;justify-content:space-between;gap:16px;padding:10px 0;display:flex}.detail-row span{color:#64748b}.icon-button{width:38px;height:38px;color:inherit;background:0 0;border:0;border-radius:8px;place-items:center;display:inline-grid}.icon-button:hover{background:#94a3b829}.icon-button.mobile-menu,.icon-button.sidebar-close{display:none}.login-page{background:linear-gradient(135deg,#10b9811f,#0000 34%),#f8fafc;place-items:center;min-height:100vh;padding:24px;display:grid}.login-card{background:#fff;border:1px solid #e2e8f0;border-radius:14px;width:min(420px,100%);padding:28px;box-shadow:0 18px 50px #0f172a1f}.login-card .brand-mark{border-width:2px;width:82px;height:82px;margin:0 auto 14px;box-shadow:0 12px 28px #0f172a29}.login-card h1{text-align:center;margin:0 0 4px}.login-card p{color:#64748b;text-align:center}.login-form{gap:12px;display:grid}.login-form label{color:#334155;gap:6px;font-size:13px;font-weight:700;display:grid}.login-form .remember-option{color:#475569;align-items:center;gap:9px;margin:2px 0 4px;font-size:13px;font-weight:700;display:flex}.remember-option input{accent-color:#059669;width:16px;height:16px}.login-note{text-align:center;margin:14px 0 0;font-size:13px}.mobile-backdrop{display:none}@media screen and (width<=1080px){.workspace{padding:18px}.metric-grid.four{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-grid,.dashboard-list-grid{grid-template-columns:1fr}.mini-metrics,.permissions-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.payment-policy-box{grid-template-columns:1fr}.customer-due-box,.line-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.sales-line-grid{grid-template-columns:repeat(2,minmax(160px,1fr))}.line-remove{width:100%;margin-bottom:0}}@media screen and (width<=760px){.sidebar{transition:transform .2s;transform:translate(-102%);box-shadow:14px 0 40px #0f172a40}.sidebar-open{transform:translate(0)}.icon-button.sidebar-close,.mobile-backdrop{display:inline-grid}.mobile-backdrop{z-index:20;background:#0f172a59;border:0;position:fixed;inset:0}.workspace{margin-left:0;padding:12px}.workspace-toolbar{z-index:15;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);background:#f8fafcf0;border-bottom:1px solid #e2e8f0;align-items:center;margin:-12px -12px 14px;padding:10px 12px;position:sticky;top:0}.workspace-toolbar-active{margin-bottom:14px}.icon-button.mobile-menu{display:inline-grid}.notification-button{width:40px;height:40px}.notification-menu{width:calc(100vw - 24px);max-height:calc(100dvh - 86px);right:0}.notification-list{max-height:calc(100dvh - 160px)}.page-header{gap:12px;margin-bottom:16px;display:grid}.page-header h1{font-size:21px;line-height:28px}.page-header .action-row,.page-header>.primary-button,.page-header>div+*{margin-top:0}.metric-grid.four,.mini-metrics,.permissions-grid,.customer-due-box,.form-grid.two,.line-grid,.sales-line-grid{grid-template-columns:1fr}.action-row,.filter-row,.date-row,.report-toolbar,.line-title{flex-direction:column;align-items:stretch}.action-row>*,.filter-row>*,.date-row>*,.report-toolbar>*,.line-title>*,.primary-button,.secondary-button,.filter-select,.search-wrap{width:100%}.metric-card{min-height:84px}.table-card{border-left:0;border-right:0;border-radius:0;width:calc(100% + 24px);margin-inline:-12px}table{min-width:680px}th,td{padding:12px}.sales-table table{min-width:760px}.mpo-report-letterhead{grid-template-columns:58px minmax(0,1fr);gap:12px}.mpo-report-letterhead img{width:52px;height:52px}.mpo-report-letterhead h1{font-size:22px;line-height:27px}.date-row input,.report-toolbar input,.report-toolbar select{width:100%}.modal-layer{place-items:end center;padding:10px}.modal-panel{border-radius:14px 14px 0 0;width:100%;max-height:calc(100dvh - 20px)}.modal-panel form,.modal-panel .details-grid,.modal-content,.confirm-box{padding:14px}.modal-actions{grid-template-columns:1fr;display:grid}.line-items{padding:12px}.line-remove{height:38px}.invoice-modal-body,.receipt-modal-body{padding:10px}.invoice-print-sheet{min-height:auto;padding:22px 16px 28px}.receipt-print-sheet{padding:22px 16px 28px}.receipt-head,.receipt-grid,.receipt-summary-grid,.receipt-signature-row{grid-template-columns:1fr}.receipt-head{display:grid}.receipt-meta{text-align:left;justify-items:start}.receipt-line{grid-template-columns:120px minmax(0,1fr)}.invoice-letterhead,.invoice-info-grid,.invoice-total-area,.account-summary-grid,.signature-row{grid-template-columns:1fr;gap:16px}.office-block,.office-block-right{text-align:center;padding-top:0}.invoice-brand h1{font-size:28px}.invoice-title{letter-spacing:5px}.invoice-info-line{grid-template-columns:110px minmax(0,1fr)}.invoice-product-table{min-width:720px}.account-summary-box{padding:18px}.account-summary-box h2{font-size:18px}.account-summary-item,.remaining-due-row{font-size:15px}.statement-date,.signature-row div,.signature-row div:last-child{text-align:left}}@media print{@page{size:A4;margin:6mm}html,body,#root{min-height:0;background:#fff!important}body{margin:0!important}.sidebar,.modal-backdrop,.modal-header,.no-print,.toast{display:none!important}.app-shell,.modal-layer{background:#fff!important;min-height:0!important;padding:0!important;display:block!important}body:has(.modal-layer) .workspace{display:none!important}body:has(.mpo-report-sheet) .workspace{background:#fff!important;margin-left:0!important;padding:0!important;display:block!important}body:has(.mpo-report-sheet) .page{max-width:none!important;margin:0!important}body:has(.mpo-report-sheet) .page>:not(.mpo-report-sheet){display:none!important}body:has(.mpo-report-sheet) .mpo-report-sheet{box-shadow:none!important;border:0!important;border-radius:0!important;margin:0!important;padding:7mm!important;display:block!important}body:has(.mpo-report-sheet) .mpo-report-letterhead{border-bottom:1.5px solid #111827!important;grid-template-columns:18mm minmax(0,1fr)!important;gap:4mm!important;margin-bottom:6mm!important;padding-bottom:4mm!important}body:has(.mpo-report-sheet) .mpo-report-letterhead img{width:16mm!important;height:16mm!important}body:has(.mpo-report-sheet) .mpo-report-letterhead h1{font-size:20px!important;line-height:24px!important}body:has(.mpo-report-sheet) .mpo-report-letterhead p{margin-bottom:2px!important;font-size:11px!important}body:has(.mpo-report-sheet) .mpo-report-letterhead span{font-size:9px!important;line-height:13px!important}body:has(.mpo-report-sheet) .mpo-report-title{margin-bottom:12px!important}body:has(.mpo-report-sheet) .mpo-report-title h2{font-size:18px!important;line-height:24px!important}body:has(.mpo-report-sheet) .mpo-report-title span{font-size:13px!important}body:has(.mpo-report-sheet) .table-card{width:100%!important;box-shadow:none!important;border:0!important;margin:0!important;overflow:visible!important}body:has(.mpo-report-sheet) table{table-layout:fixed!important;border-collapse:collapse!important;width:100%!important;min-width:0!important}:is(body:has(.mpo-report-sheet) th,body:has(.mpo-report-sheet) td){color:#000!important;border:1px solid #111827!important;padding:7px 8px!important;font-size:10px!important}body:has(.mpo-report-sheet) tfoot td{background:#f8fafc!important;font-weight:800!important}.modal-layer{position:static!important;inset:auto!important}.modal-panel{width:auto!important;max-height:none!important;box-shadow:none!important;border-radius:0!important;overflow:visible!important}.invoice-modal-body{background:#fff!important;padding:0!important}.invoice-print-sheet{width:100%!important;min-height:0!important;box-shadow:none!important;border:0!important;margin:0!important;padding:6mm 7mm 5mm!important;font-size:9.5px!important;line-height:1.2!important}.invoice-letterhead{grid-template-columns:1fr 1.4fr 1fr!important;gap:14px!important}.office-block{text-align:left!important;padding-top:14px!important;font-size:8.5px!important}.office-block-right{text-align:right!important}.office-block strong{font-size:9px!important}.invoice-brand h1{font-size:26px!important}.invoice-brand p{font-size:10px!important}.invoice-title{letter-spacing:6px!important;margin:13px 0 14px!important;font-size:16px!important}.invoice-info-grid{grid-template-columns:1fr 1fr!important;gap:38px!important;margin-bottom:16px!important}.invoice-info-column{gap:5px!important}.invoice-info-line{grid-template-columns:82px minmax(0,1fr)!important;gap:7px!important}.invoice-info-line span,.invoice-info-line strong{font-size:9px!important}.invoice-section-title{margin-bottom:6px!important;font-size:11px!important}.invoice-table-wrap{overflow:visible!important}.invoice-product-table{min-width:0!important}.invoice-product-table th,.invoice-product-table td{padding:4px!important;font-size:8px!important;line-height:1.15!important}.invoice-total-area{grid-template-columns:minmax(0,1fr) 190px!important;gap:18px!important;margin-top:9px!important}.invoice-terms{gap:4px!important}.invoice-terms p,.invoice-total-line{font-size:9px!important}.account-summary-box{break-inside:avoid;margin-top:22px!important;padding:14px 16px!important}.account-summary-box h2{margin-bottom:12px!important;font-size:16px!important;line-height:20px!important}.account-summary-grid{grid-template-columns:1fr 1fr!important;gap:8px!important}.account-summary-item,.remaining-due-row{min-height:36px!important;padding:8px 12px!important;font-size:12px!important}.account-summary-item strong{font-size:13px!important}.remaining-due-row{min-height:46px!important;margin-top:8px!important}.remaining-due-row strong{font-size:18px!important}.statement-date{text-align:right!important;margin-top:6px!important;font-size:11px!important}.signature-row{grid-template-columns:1fr 1fr!important;gap:64px!important;margin-top:34px!important;font-size:9px!important}.signature-row div{text-align:left!important}.signature-row div:last-child{text-align:right!important}.receipt-modal-body{background:#fff!important;padding:0!important}.receipt-print-sheet{width:100%!important;box-shadow:none!important;border:0!important;margin:0!important;padding:8mm 9mm!important;font-size:10px!important;line-height:1.25!important}.receipt-head{gap:20px!important;padding-bottom:12px!important}.receipt-brand h1{font-size:25px!important}.receipt-brand p,.receipt-meta span,.receipt-panel h2{font-size:10px!important}.receipt-meta strong{font-size:19px!important}.receipt-amount-band{break-inside:avoid;margin:16px 0!important;padding:12px 14px!important}.receipt-amount-band strong{font-size:23px!important}.receipt-grid,.receipt-summary-grid{grid-template-columns:1fr 1fr!important;gap:10px 14px!important}.receipt-panel{break-inside:avoid;padding:10px!important}.receipt-line{grid-template-columns:120px minmax(0,1fr)!important;gap:8px!important;padding:4px 0!important}.receipt-signature-row{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:34px!important}.receipt-signature-row div,.receipt-signature-row div:last-child{text-align:center!important}}
