*,:before,:after{box-sizing:border-box}*{margin:0}html{min-width:320px}:root{--app-bg:#f8fafc;--app-surface:#fff;--app-surface-soft:#f8fafc;--app-surface-muted:#f1f5f9;--app-text:#0f172a;--app-text-soft:#334155;--app-muted:#64748b;--app-border:#e2e8f0;--app-border-strong:#cbd5e1;--app-shadow:#0f172a14;--app-focus:#2563eb24}html[data-theme=dark]{--app-bg:#101114;--app-surface:#181b22;--app-surface-soft:#20242d;--app-surface-muted:#2a303b;--app-text:#eef2f8;--app-text-soft:#d5dce6;--app-muted:#aeb7c4;--app-border:#343946;--app-border-strong:#4b5565;--app-shadow:#0000004d;--app-focus:#f8717133;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}body{background:var(--app-bg);min-height:100vh;color:var(--app-text);font-family:Inter,system-ui,Arial,sans-serif;font-size:15px;line-height:1.5}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed}a{color:inherit;text-decoration:none}#root{min-height:100vh}.page{flex-direction:column;gap:20px;display:flex}.page-header{justify-content:space-between;align-items:flex-start;gap:16px;display:flex}.page-actions{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:10px;padding-top:10px;display:flex}.page-title{letter-spacing:0;font-size:24px;font-weight:700}.page-subtitle{color:#64748b;margin-top:4px}.card{background:#fff;border:1px solid #e2e8f0;border-radius:8px;min-width:0;padding:18px;box-shadow:0 1px 3px #0f172a14}.grid{gap:16px;display:grid}.grid>*{min-width:0}.grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}.form{flex-direction:column;gap:16px;display:flex}.form-row{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;display:grid}.table-wrapper{width:100%;max-height:calc(100vh - 220px);overflow:auto}.badge{white-space:nowrap;border-radius:999px;align-items:center;gap:6px;min-height:26px;padding:4px 10px;font-size:12px;font-weight:700;display:inline-flex}.badge-neutral{color:#334155;background:#f1f5f9}.badge-success{color:#166534;background:#dcfce7}.badge-danger{color:#991b1b;background:#fee2e2}.badge-warning{color:#92400e;background:#fef3c7}.badge-info{color:#1e40af;background:#dbeafe}.error-text{color:#dc2626;font-size:13px}.success-text{color:#16a34a;font-size:13px}.app-error-page{background:#f8fafc;justify-content:center;align-items:center;min-height:100vh;padding:24px;display:flex}.app-error-card{background:#fff;border:1px solid #fecaca;border-radius:8px;gap:14px;width:100%;max-width:680px;padding:22px;display:grid;box-shadow:0 12px 30px #0f172a1f}.app-error-card h1{color:#991b1b;letter-spacing:0;font-size:22px}.app-error-card p{color:#475569}.app-error-card pre{color:#7f1d1d;white-space:pre-wrap;background:#fef2f2;border:1px solid #fecaca;border-radius:6px;padding:12px;font-family:Consolas,Monaco,monospace;font-size:13px;overflow-x:auto}.text-link{color:#2563eb;font-weight:700}.text-link:hover{color:#1d4ed8}.toolbar{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;display:flex}.mode-toggle{background:#f1f5f9;border:1px solid #e2e8f0;border-radius:8px;align-items:center;gap:4px;padding:4px;display:inline-flex}.mode-toggle-button{color:#475569;white-space:nowrap;background:0 0;border:0;border-radius:6px;justify-content:center;align-items:center;gap:7px;min-height:34px;padding:6px 10px;font-size:13px;font-weight:800;display:inline-flex}.mode-toggle-button-active{color:#1d4ed8;background:#fff;box-shadow:0 1px 2px #0f172a14}.page-tabs{border-bottom:1px solid #e2e8f0;align-items:center;gap:6px;padding-bottom:0;display:flex;overflow-x:auto}.page-tab{color:#475569;white-space:nowrap;background:0 0;border:0;border-bottom:3px solid #0000;justify-content:center;align-items:center;min-height:42px;padding:9px 14px;font-size:14px;font-weight:800;display:inline-flex}.page-tab:hover{color:#1d4ed8}.page-tab-active{color:#1d4ed8;background:#eff6ff;border-bottom-color:#2563eb}.sale-tab-panel.sale-tab-panel-hidden{display:none}.service-stepper{gap:8px;padding:4px 0 8px;display:flex;overflow-x:auto}.service-step{color:#64748b;white-space:nowrap;border:1px solid #e2e8f0;border-radius:8px;flex:none;align-items:center;gap:8px;min-height:38px;padding:7px 10px;font-size:12px;font-weight:800;display:inline-flex}.service-step-index{color:#475569;background:#f1f5f9;border-radius:999px;justify-content:center;align-items:center;width:22px;height:22px;font-size:11px;display:inline-flex}.service-step-done{color:#166534;background:#f0fdf4;border-color:#bbf7d0}.service-step-done .service-step-index{color:#fff;background:#22c55e}.service-step-active{color:#1d4ed8;background:#eff6ff;border-color:#93c5fd}.service-step-active .service-step-index{color:#fff;background:#2563eb}.payment-basis-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;display:grid}.service-notification-stack{z-index:80;gap:10px;width:420px;max-width:min(420px,100vw - 28px);display:grid;position:fixed;top:82px;right:18px}.service-notification{background:#fff;border:1px solid #dbeafe;border-left:4px solid #2563eb;border-radius:8px;grid-template-columns:auto minmax(0,1fr) auto;align-items:flex-start;gap:10px;padding:12px;display:grid;box-shadow:0 18px 40px #0f172a29}.service-notification-icon{color:#1d4ed8;background:#eff6ff;border-radius:999px;justify-content:center;align-items:center;width:34px;height:34px;display:inline-flex}.service-notification-body{gap:3px;min-width:0;display:grid}.service-notification-body strong{color:#0f172a;font-size:.92rem}.service-notification-body a,.service-notification-body span,.service-notification-body small{font-size:.82rem;line-height:1.35}.service-notification-body span,.service-notification-body small{color:#64748b}.service-notification-close{width:30px;height:30px}html[data-theme=dark] .service-notification{box-shadow:0 18px 40px #00000052;background:var(--app-surface)!important;border-color:var(--app-border)!important;border-left-color:#60a5fa!important}html[data-theme=dark] .service-notification-icon{color:#bfdbfe!important;background:#60a5fa29!important}html[data-theme=dark] .service-notification-body strong{color:var(--app-text)!important}html[data-theme=dark] .service-notification-body span,html[data-theme=dark] .service-notification-body small{color:var(--app-text-muted)!important}.payment-basis-grid div{background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;gap:4px;padding:12px;display:grid}.payment-basis-grid span{color:#64748b;text-transform:uppercase;font-size:12px;font-weight:800}.payment-basis-grid strong{color:#0f172a;font-size:16px}.permission-editor{border-top:1px solid #e2e8f0;gap:14px;padding-top:14px;display:grid}.permission-groups{gap:14px;display:grid}.permission-group{border:1px solid #e2e8f0;border-radius:8px;margin:0;padding:12px}.permission-group legend{color:#334155;padding:0 6px;font-size:13px;font-weight:900}html[data-theme=dark] .permission-group legend{color:red}.permission-grid{grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:8px 12px;display:grid}.column-permission-editor{border-top:1px solid #e2e8f0;gap:14px;padding-top:14px;display:grid}.column-permission-list{gap:10px;display:grid}.column-permission-table{border:1px solid #e2e8f0;border-radius:8px;overflow:hidden}.column-permission-table summary{cursor:pointer;background:#f8fafc;justify-content:space-between;align-items:center;gap:12px;min-height:48px;padding:10px 12px;list-style:none;display:flex}.column-permission-table summary::-webkit-details-marker{display:none}.column-permission-table-title{gap:2px;min-width:0;display:grid}.column-permission-table-title strong{color:#0f172a;font-size:14px}.column-permission-table-title small{color:#64748b;font-size:12px;font-weight:700}.column-permission-table-body{gap:10px;padding:12px;display:grid}.column-permission-table-actions{justify-content:flex-end;display:flex}.column-permission-grid{grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:8px 12px;display:grid}.active-job-warning{color:#92400e;background:#fffbeb;border:1px solid #fde68a;border-radius:8px;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;padding:12px;display:flex}.active-job-warning p{margin:4px 0 0}@media (width<=720px){.payment-basis-grid{grid-template-columns:1fr}}.filters{flex-wrap:wrap;flex:1;align-items:center;gap:10px;min-width:0;display:flex}.select,.input,.textarea{color:#0f172a;font:inherit;background:#fff;border:1px solid #cbd5e1;border-radius:8px;outline:none;width:100%;min-height:44px;padding:10px 12px;transition:background-color .16s,border-color .16s,box-shadow .16s;box-shadow:0 1px 2px #0f172a0a}.select{appearance:none;cursor:pointer;background-image:linear-gradient(45deg,#0000 50%,#64748b 50%),linear-gradient(135deg,#64748b 50%,#0000 50%);background-position:calc(100% - 18px),calc(100% - 13px);background-repeat:no-repeat;background-size:5px 5px,5px 5px;padding-right:38px}.textarea{resize:vertical;min-height:96px}.plate-input{font-variant-numeric:tabular-nums;text-align:left;direction:ltr}.plate-text{direction:ltr;unicode-bidi:isolate;max-width:100%;display:inline-block}.input::placeholder,.textarea::placeholder{color:#94a3b8}.select:hover,.input:hover,.textarea:hover{background-color:#f8fafc;border-color:#94a3b8}.select:focus,.input:focus,.textarea:focus{background-color:#fff;border-color:#2563eb;box-shadow:0 0 0 3px #2563eb24,0 1px 2px #0f172a0d}.select:disabled,.input:disabled,.textarea:disabled{color:#94a3b8;cursor:not-allowed;background-color:#f1f5f9}.muted{color:#64748b}.actions{align-items:center;gap:8px;display:flex}.btn{white-space:nowrap;border:1px solid #0000;border-radius:8px;justify-content:center;align-items:center;gap:8px;min-height:40px;padding:8px 14px;font-weight:700;transition:background-color .12s,border-color .12s,color .12s;display:inline-flex}.btn-primary{color:#fff;background:#2563eb}.btn-primary:hover:not(:disabled){background:#1d4ed8}.btn-secondary{color:#0f172a;background:#fff;border-color:#cbd5e1}.btn-secondary:hover:not(:disabled){background:#f8fafc}.btn-danger{color:#fff;background:#dc2626}.btn-danger:hover:not(:disabled){background:#b91c1c}.btn-success{color:#fff;background:#16a34a}.btn-success:hover:not(:disabled){background:#15803d}.btn:disabled{opacity:.6}.btn-small{min-height:34px;padding:6px 10px;font-size:13px}.form-field{flex-direction:column;gap:7px;display:flex}.form-field>span{color:#334155;font-size:13px;font-weight:700}.inspection-media-list{gap:8px;display:grid}.inspection-media-file{background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;justify-content:space-between;align-items:center;gap:12px;min-height:52px;padding:10px 12px;display:flex}.inspection-media-file strong,.inspection-media-file span{display:block}.inspection-media-file strong{color:#0f172a;overflow-wrap:anywhere;font-size:.92rem}.inspection-media-file span{color:#64748b;margin-top:3px;font-size:.82rem}.audit-log-toolbar{align-items:flex-start}.audit-log-filters{align-items:end;margin-bottom:20px}.audit-log-date-filter{min-width:150px}.audit-log-date-filter>span{font-size:11px;line-height:1}.audit-log-user{gap:3px;min-width:180px;display:grid}.audit-log-user strong,.audit-log-user small{display:block}.audit-log-user small{color:#64748b;font-size:12px;font-weight:700}.audit-log-details{min-width:220px}.audit-log-details summary{color:#dc2626;cursor:pointer;font-size:13px;font-weight:800;list-style-position:inside}.audit-log-details[open] summary{margin-bottom:8px}.audit-log-detail{background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;gap:12px;padding:12px;display:grid}.audit-log-detail span{color:#64748b;text-transform:uppercase;margin-bottom:5px;font-size:12px;font-weight:800;display:block}.audit-log-detail strong{overflow-wrap:anywhere;display:block}.audit-log-metadata{color:#e2e8f0;white-space:pre-wrap;background:#0f172a;border-radius:8px;max-height:320px;margin:0;padding:12px;font-family:SFMono-Regular,Consolas,Liberation Mono,monospace;font-size:12px;line-height:1.55;overflow:auto}.supplier-legacy-search-card{gap:14px}.supplier-legacy-search-card .section-header{align-items:center;gap:12px}.supplier-legacy-search-card .section-title-with-icon{min-width:0}.supplier-legacy-search-card .section-title-with-icon h2{overflow-wrap:anywhere;min-width:0;line-height:1.2}.supplier-legacy-search-filters{width:100%;margin-bottom:10px}.supplier-legacy-search-filters .search-input{width:100%;max-width:720px}.supplier-legacy-search-hint{margin:0}.legacy-search-match-list{flex-wrap:wrap;gap:6px;min-width:220px;display:flex}.legacy-search-preview{overflow-wrap:anywhere;max-width:520px;display:block}.legacy-grid-row-highlight th,.legacy-grid-row-highlight td{box-shadow:inset 0 0 0 999px #fb923c14;background:#fff7ed!important}@media (width<=720px){.supplier-legacy-search-card .section-header{grid-template-columns:1fr;align-items:stretch;display:grid}.supplier-legacy-search-card .section-title-with-icon{justify-content:space-between;align-items:center;width:100%}.supplier-legacy-search-card .section-title-with-icon h2{max-width:min(260px,100% - 34px);font-size:18px}.supplier-legacy-search-card .filter-select{width:100%}.supplier-legacy-search-card .table-wrapper{max-height:none;overflow-x:auto}.supplier-legacy-search-filters .search-input{max-width:none}.legacy-search-match-list{min-width:180px}.legacy-search-preview{max-width:360px}.legacy-sheet-search-row{grid-template-columns:1fr;align-items:stretch}}.spinner{place-items:center;width:28px;height:28px;display:inline-grid}.spinner span{border:3px solid #cbd5e1;border-top-color:#2563eb;border-radius:50%;width:24px;height:24px;animation:.7s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.empty-state,.table-state{color:#64748b;text-align:center;justify-content:center;align-items:center;min-height:140px;display:flex}.data-table{border-collapse:collapse;width:100%;min-width:780px}.data-table th,.data-table td{text-align:left;vertical-align:middle;border-bottom:1px solid #e2e8f0;padding:12px}.data-table th{color:#475569;letter-spacing:0;text-transform:uppercase;z-index:9;background:#fff;font-size:12px;font-weight:800;position:sticky;top:0}.data-table tbody tr:hover{background:#f8fafc}.data-table-detail-row td{padding:7px}.data-table-clickable-row{cursor:pointer}.data-table-clickable-row:focus{outline-offset:-2px;outline:2px solid #2563eb}.return-detail-list{gap:6px;display:grid}.return-detail-row{background:#f8fafc;border:1px solid #e2e8f0;border-radius:6px;grid-template-columns:minmax(180px,1fr) minmax(120px,auto) minmax(120px,auto);align-items:center;gap:8px;padding:8px 10px;display:grid}.return-detail-row span,.return-detail-row strong{min-width:0}.products-data-table{border-collapse:separate;border-spacing:0 8px;min-width:1080px}.products-data-table th,.products-data-table td{border-bottom:0}.products-data-table tbody tr:hover{background:0 0}.products-data-table .data-table-main-row td{background:#fff;border-top:1px solid #cbd5e1}.products-data-table .data-table-main-row:not(.data-table-row-with-detail) td{border-bottom:1px solid #cbd5e1}.products-data-table .data-table-main-row td:first-child{border-left:1px solid #cbd5e1;border-top-left-radius:8px}.products-data-table .data-table-main-row td:last-child{border-right:1px solid #cbd5e1;border-top-right-radius:8px}.products-data-table .data-table-main-row:not(.data-table-row-with-detail) td:first-child{border-bottom-left-radius:8px}.products-data-table .data-table-main-row:not(.data-table-row-with-detail) td:last-child{border-bottom-right-radius:8px}.products-data-table .data-table-detail-row td{background:#fff;border-bottom:1px solid #cbd5e1;border-left:1px solid #cbd5e1;border-right:1px solid #cbd5e1;border-bottom-right-radius:8px;border-bottom-left-radius:8px;padding:0 12px 12px}.products-data-table .product-row-expanded td{background:#f8fafc}.product-name-expand{align-items:center;gap:8px;min-width:0;display:inline-flex}.product-row-chevron{color:#64748b;flex:none;justify-content:center;align-items:center;width:18px;display:inline-flex}.product-table-description{color:#475569;background:#f8fafc;border:1px solid #e2e8f0;border-left:3px solid #94a3b8;border-radius:6px;padding:10px 12px}.product-table-description p{overflow-wrap:anywhere;white-space:pre-line;margin:0;line-height:1.5}.product-source-detail{gap:10px;display:grid}.product-source-panel{background:#f8fafc;border:1px solid #dbe3ee;border-radius:6px;overflow:hidden}.product-source-header{border-bottom:1px solid #e2e8f0;justify-content:space-between;align-items:center;gap:12px;padding:12px 14px;display:flex}.product-source-header h3{margin:0;font-size:.95rem}.product-source-header p{color:#64748b;margin:3px 0 0;font-size:.82rem}.product-source-state,.product-source-empty{color:#64748b;padding:14px}.product-source-empty{flex-direction:column;gap:4px;display:flex}.product-source-empty strong{color:#334155}.product-source-error{margin:12px 14px}.product-source-table-wrapper{max-height:min(60vh,520px);overflow:auto}.product-source-table{border-collapse:collapse;width:100%;min-width:940px}.product-source-table th,.product-source-table td{text-align:start;border-bottom:1px solid #e2e8f0;padding:10px 12px}.product-source-table th{color:#475569;text-transform:uppercase;z-index:8;background:#eef4f8;font-size:.76rem;position:sticky;top:0}.product-source-table tr:last-child td{border-bottom:0}.supplier-products-header{align-items:flex-start}.supplier-products-data-table{min-width:1240px}.product-cell{align-items:flex-start;gap:9px;min-width:0;display:flex}.product-cell svg{color:#64748b;flex:none;margin-top:2px}.product-cell div{flex-direction:column;gap:2px;min-width:0;display:flex}.product-cell span{color:#64748b;overflow-wrap:anywhere;font-size:12px}.supplier-product-invoices{background:#f8fafc;border:1px solid #e2e8f0;border-radius:6px;padding:10px 12px}.supplier-product-invoices-title{color:#475569;text-transform:uppercase;margin-bottom:8px;font-size:12px;font-weight:800}.supplier-product-invoice-grid{grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:8px;display:grid}.supplier-product-invoice{background:#fff;border:1px solid #e2e8f0;border-radius:6px;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:5px;padding:8px 10px;display:grid}.supplier-product-invoice span{color:#64748b;font-size:12px}.supplier-product-invoice-list{flex-wrap:wrap;gap:6px 10px;min-width:260px;display:flex}.supplier-product-invoice-list .text-link{white-space:nowrap}.visually-hidden{clip:rect(0 0 0 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.legacy-archive-card{gap:14px;display:grid}.legacy-workbook-loading{border-top:1px solid #e2e8f0;min-height:110px;margin-top:4px}.legacy-workbook-viewer{border:1px solid #e2e8f0;border-radius:8px;gap:12px;display:grid;overflow:hidden}.legacy-workbook-toolbar{background:#f8fafc;border-bottom:1px solid #e2e8f0;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;padding:12px;display:flex}.legacy-sheet-tabs{flex-wrap:wrap;justify-content:flex-end;gap:8px;display:flex}.legacy-sheet-tab{color:#334155;background:#fff;border:1px solid #cbd5e1;border-radius:8px;min-height:34px;padding:6px 10px;font-size:13px;font-weight:800}.legacy-sheet-tab-active{color:#1d4ed8;background:#eff6ff;border-color:#93c5fd}.legacy-sheet-search-row{grid-template-columns:minmax(220px,420px) auto auto;align-items:center;gap:10px;padding:0 12px;display:grid}.legacy-sheet-search-row .search-input{width:100%;min-width:0}.legacy-grid-wrapper{max-height:560px;overflow:auto}.legacy-grid-table{border-collapse:separate;border-spacing:0;min-width:100%;font-size:13px}.legacy-grid-table th,.legacy-grid-table td{text-align:left;vertical-align:top;white-space:pre-wrap;background:#fff;border-bottom:1px solid #e2e8f0;border-right:1px solid #e2e8f0;min-width:120px;padding:8px 10px}.legacy-grid-table thead th{color:#475569;z-index:2;background:#f1f5f9;font-size:12px;font-weight:900;position:sticky;top:0}.legacy-grid-table .legacy-row-number{color:#64748b;text-align:right;z-index:3;width:58px;min-width:58px;position:sticky;left:0}.legacy-grid-table tbody .legacy-row-number{background:#f8fafc;font-weight:800}.legacy-grid-row-highlight:focus{outline-offset:-3px;outline:3px solid #f9731673}.modal-backdrop{z-index:50;background:#0f172a66;justify-content:center;align-items:center;padding:20px;display:flex;position:fixed;inset:0}.modal{background:#fff;border:1px solid #e2e8f0;border-radius:8px;width:100%;max-width:420px;padding:18px;box-shadow:0 20px 45px #0f172a33}.modal-header,.modal-title,.modal-actions{align-items:center;gap:10px;display:flex}.modal-header{justify-content:space-between}.modal-title h2{font-size:18px}.modal-title svg{color:#d97706}.modal-message{color:#475569;margin-top:12px}.modal-actions{justify-content:flex-end;margin-top:18px}.print-modal{max-width:860px}.print-modal-body{flex-direction:column;gap:16px;max-height:68vh;margin-top:12px;display:flex;overflow-y:auto}.print-preview-frame{background:#fff;border:1px solid #e2e8f0;border-radius:8px;width:100%;height:420px}.print-signature-grid{grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:14px;display:grid}.icon-button{color:#334155;background:#fff;border:1px solid #e2e8f0;border-radius:8px;justify-content:center;align-items:center;width:38px;height:38px;display:inline-flex}.icon-button:hover{background:#f8fafc}.stat-card{background:#fff;border:1px solid #e2e8f0;border-radius:8px;justify-content:space-between;align-items:center;gap:14px;min-height:118px;padding:18px;display:flex;box-shadow:0 1px 3px #0f172a14}.stat-card p{color:#64748b;font-weight:700}.stat-card strong{overflow-wrap:anywhere;margin-top:4px;font-size:26px;line-height:1.15;display:block}.stat-card small{color:#64748b;margin-top:7px;font-size:12px;font-weight:700;display:block}.stat-icon{border-radius:8px;justify-content:center;align-items:center;width:44px;height:44px;display:inline-flex}.stat-neutral{color:#334155;background:#f1f5f9}.stat-success{color:#166534;background:#dcfce7}.stat-danger{color:#991b1b;background:#fee2e2}.stat-warning{color:#92400e;background:#fef3c7}.stat-info{color:#1e40af;background:#dbeafe}.search-input{color:#64748b;background:#fff;border:1px solid #cbd5e1;border-radius:8px;flex:300px;align-items:center;gap:8px;min-width:min(100%,300px);min-height:44px;padding:0 12px;transition:background-color .16s,border-color .16s,box-shadow .16s;display:flex;box-shadow:0 1px 2px #0f172a0a}.search-input:hover{background:#f8fafc;border-color:#94a3b8}.search-input:focus-within{background:#fff;border-color:#2563eb;box-shadow:0 0 0 3px #2563eb24,0 1px 2px #0f172a0d}.search-input svg{color:#64748b;flex:none;transition:color .16s}.search-input:focus-within svg{color:#2563eb}.search-input input{color:#0f172a;font:inherit;background:0 0;border:0;outline:0;width:100%;min-width:0;min-height:42px;font-weight:700}.search-input input::placeholder{color:#94a3b8;font-weight:600}.partsouq-vin-search{flex-wrap:wrap;flex:0 auto;justify-content:flex-end;align-items:center;gap:10px;min-width:min(100%,360px);display:flex}.partsouq-vin-input{flex:220px;min-width:min(100%,220px)}.searchable-select{width:100%;position:relative}.searchable-select-control{position:relative}.searchable-select-control .input{padding-right:40px}.searchable-select-control:focus-within .searchable-select-icon{color:#2563eb}.searchable-select-icon{color:#64748b;background:0 0;border:0;justify-content:center;align-items:center;width:22px;height:100%;padding:0;display:inline-flex;position:absolute;top:0;right:12px}.searchable-select-menu{z-index:80;background:#fff;border:1px solid #cbd5e1;border-radius:8px;max-height:260px;padding:6px;position:absolute;top:calc(100% + 6px);left:0;right:0;overflow-y:auto;box-shadow:0 14px 30px #0f172a29}.searchable-select-option{color:#0f172a;text-align:left;background:0 0;border:0;border-radius:8px;gap:2px;width:100%;min-height:38px;padding:8px 10px;display:grid}.searchable-select-option:hover,.searchable-select-option:focus{background:#eff6ff;outline:none}.searchable-select-option strong,.searchable-select-option small{text-overflow:ellipsis;white-space:nowrap;min-width:0;display:block;overflow:hidden}.searchable-select-option strong{font-size:14px;font-weight:800}.searchable-select-option small{color:#64748b;font-size:12px;font-weight:700}.searchable-select-empty{color:#64748b;padding:10px;font-size:13px}.filter-searchable-select{flex:0 240px;min-width:min(100%,220px);max-width:260px}.language-toggle{color:#0f172a;white-space:nowrap;background:#fff;border:1px solid #cbd5e1;border-radius:8px;justify-content:center;align-items:center;gap:8px;min-height:40px;padding:8px 12px;font-weight:800;display:inline-flex}.language-toggle:hover{background:#f8fafc}.theme-toggle{flex:none}.theme-toggle-light{color:#1d4ed8}.theme-toggle-dark{color:#f59e0b}.login-language-toggle{z-index:3;position:fixed;inset-block-start:18px;inset-inline-end:18px}.login-controls{z-index:3;align-items:center;gap:10px;display:flex;position:fixed;inset-block-start:18px;inset-inline-end:18px}.dashboard-shell{min-height:100vh;display:flex}.sidebar{z-index:30;background:#fff;border-right:1px solid #e2e8f0;flex-direction:column;width:200px;height:100dvh;min-height:100vh;max-height:100dvh;display:flex;position:sticky;top:0;overflow:hidden}.sidebar-header{background:linear-gradient(135deg,#fff 0%,#f8fafc 60%,#fff1f2 100%);border-bottom:1px solid #e2e8f0;justify-content:space-between;align-items:center;gap:12px;min-height:72px;padding:8px 16px;display:flex}.sidebar-brand{align-items:center;gap:12px;min-width:0;display:flex}.sidebar-brand-mark{background:#fff;border:1px solid #fee2e2;border-radius:8px;flex:0 0 78px;justify-content:center;align-items:center;width:78px;height:52px;padding:7px;display:inline-flex;overflow:hidden;box-shadow:0 10px 24px #0f172a1a}.sidebar-brand-mark img{object-fit:contain;width:100%;height:100%;display:block}.sidebar-brand-copy{gap:2px;min-width:0;display:grid}.sidebar-brand-copy strong,.sidebar-brand-copy span{text-overflow:ellipsis;white-space:nowrap;min-width:0;line-height:1.15;display:block;overflow:hidden}.sidebar-brand-copy strong{color:#111827;letter-spacing:.08em;font-size:18px;font-weight:900}.sidebar-brand-copy span{color:#64748b;text-transform:uppercase;font-size:11px;font-weight:800}.brand-mark{color:#2563eb;background:#eff6ff;border:1px solid #bfdbfe;border-radius:8px;justify-content:center;align-items:center;width:42px;height:42px;display:inline-flex}.sidebar-close{margin-left:auto;display:none}.sidebar-nav{overscroll-behavior:contain;scrollbar-width:thin;flex-direction:column;flex:auto;gap:4px;min-height:0;padding:12px;display:flex;overflow-y:auto}.nav-link{color:#334155;border-radius:8px;align-items:center;gap:10px;min-height:42px;padding:10px 12px;display:flex}.nav-link:hover,.nav-link-active{color:#1d4ed8;background:#eff6ff}.dashboard-main{flex-direction:column;flex:1;min-width:0;display:flex}.topbar{z-index:20;background:#fff;border-bottom:1px solid #e2e8f0;justify-content:flex-end;align-items:center;gap:14px;min-height:72px;padding:14px 24px;display:flex;position:sticky;top:0}.menu-button{margin-right:auto;display:none}.topbar-user{text-align:right}.topbar-user span,.topbar-user small{display:block}.topbar-user small{color:#64748b;text-transform:capitalize}.topbar-actions{flex-wrap:nowrap;flex:none;align-items:center;gap:10px;min-width:0;display:flex}.content{flex:1;padding:24px}.sidebar-overlay{z-index:25;background:#0f172a59;border:0;position:fixed;inset:0}@media (width<=920px){.service-notification-stack{width:auto;top:72px;left:14px;right:14px}.sidebar{width:min(84vw,300px);height:100dvh;max-height:100dvh;transition:transform .12s;position:fixed;top:0;bottom:0;left:0;transform:translate(-100%)}.sidebar-open{transform:translate(0)}.sidebar-close,.menu-button{display:inline-flex}.topbar{justify-content:space-between;gap:10px;padding:12px 16px}.topbar-actions{margin-inline-start:auto}.content{padding:18px}}@media (width<=720px){.topbar-actions{gap:6px}.topbar-actions .language-toggle,.topbar-actions .theme-toggle,.topbar-actions .btn{flex:0 0 38px;width:38px;height:38px;min-height:38px;padding:0;position:relative}.topbar-actions .language-toggle span,.topbar-actions .partsouq-shortcut span,.topbar-actions .btn span{clip:rect(0 0 0 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}}@media (width<=520px){.language-toggle{gap:6px;min-height:38px;padding:7px 10px}.topbar{gap:8px;min-height:62px;padding:10px 12px}.topbar-actions .language-toggle{padding:0}.topbar-user{display:none}.content{padding:14px}.column-permission-table summary{flex-direction:column;align-items:flex-start}.column-permission-table summary .badge{align-self:flex-start}}.login-page{background-image:linear-gradient(90deg,#0d121cb8 0%,#0d121c61 34%,#0d121c14 70%),url(/assets/login-nLNNW14A.png);background-position:50%;background-size:cover;justify-content:flex-start;align-items:center;min-height:100vh;padding:32px 8%;display:flex}.login-card{-webkit-backdrop-filter:blur(14px)saturate(135%);backdrop-filter:blur(14px)saturate(135%);color:#fff;background:linear-gradient(145deg,#0f172adb,#1e293ba3),linear-gradient(135deg,#dc26262e,#ffffff0a);border:1px solid #ffffff2e;border-left:4px solid #ef4444f2;border-radius:8px;width:100%;max-width:430px;padding:32px;position:relative;box-shadow:0 24px 60px #00000057,inset 0 1px #ffffff29}.login-card h1{letter-spacing:.2em;color:#fff;font-size:28px;line-height:1.1}.login-card p{color:#cbd5e1;margin:8px 0 24px;font-weight:700}.login-icon{justify-content:center;align-items:center;width:80px;height:80px;display:inline-flex}.login-icon img{object-fit:contain;width:100%;height:100%;display:block}.login-card .form-field>span{color:#e2e8f0}.login-card .input{color:#fff;background:#0f172aad;border-color:#e2e8f03d}.login-card .input:focus{border-color:#f87171e6;box-shadow:0 0 0 3px #f871712e}.login-card .btn-primary{background:#dc2626;box-shadow:0 12px 24px #dc262642}.login-card .btn-primary:hover:not(:disabled){background:#b91c1c}.section-header{justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px;display:flex}.section-header h2{font-size:18px}.section-subtitle{color:#64748b;margin-top:4px;font-size:13px}.section-title-with-icon{align-items:center;gap:8px;min-width:0;display:inline-flex}.section-title-with-icon svg{color:#64748b;flex:none}.quick-actions{flex-direction:column;gap:12px;display:flex}.quick-actions .btn{justify-content:flex-start}.dashboard-page{gap:22px}.dashboard-header{color:#fff;background-image:linear-gradient(90deg,#0f172af0 0%,#0f172ad1 46%,#0f172a5c 100%),url(/assets/login-nLNNW14A.png);background-position:100%;background-size:cover;border:1px solid #94a3b83d;border-left:4px solid #dc2626;border-radius:8px;justify-content:space-between;align-items:center;gap:18px;min-height:190px;padding:28px;display:flex;position:relative;overflow:hidden;box-shadow:0 18px 42px #0f172a29,inset 0 1px #ffffff24}.dashboard-header:after{content:"";background:linear-gradient(90deg,#dc2626eb,#f8717138,#0000);height:3px;position:absolute;bottom:0;left:28px;right:28px}.dashboard-header .page-title{color:#fff;font-size:30px}.dashboard-header .page-subtitle{color:#cbd5e1;max-width:520px}.dashboard-eyebrow{color:#f87171;letter-spacing:.12em;text-transform:uppercase;font-size:13px;font-weight:900}.dashboard-date{-webkit-backdrop-filter:blur(10px)saturate(130%);backdrop-filter:blur(10px)saturate(130%);color:#fff;white-space:nowrap;background:#0f172a94;border:1px solid #fff3;border-radius:8px;align-items:center;gap:8px;min-height:44px;padding:10px 13px;font-weight:800;display:inline-flex}.dashboard-date svg{flex:none}.dashboard-date span{line-height:1}.dashboard-period-panel{background:#fff;border:1px solid #e2e8f0;border-radius:8px;grid-template-columns:minmax(180px,.35fr) minmax(0,1fr);align-items:center;gap:16px;padding:14px;display:grid;box-shadow:0 10px 26px #0f172a0f}.dashboard-period-summary{border-right:1px solid #e2e8f0;gap:4px;min-width:0;padding-right:16px;display:grid}.dashboard-period-summary span,.dashboard-period-summary small{color:#64748b;font-size:12px;font-weight:800;line-height:1.25;display:block}.dashboard-period-summary span{text-transform:uppercase}.dashboard-period-summary strong{color:#0f172a;font-size:19px;line-height:1.2;display:block}.dashboard-period-controls{grid-template-columns:minmax(280px,1fr) minmax(260px,.8fr);align-items:end;gap:12px;min-width:0;display:grid}.dashboard-period-presets{background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;grid-template-columns:repeat(5,minmax(0,1fr));align-items:center;gap:4px;min-height:42px;padding:4px;display:grid}.dashboard-period-button{color:#475569;overflow-wrap:anywhere;background:0 0;border:0;border-radius:6px;min-height:34px;padding:7px 9px;font-size:13px;font-weight:800}.dashboard-period-button:hover{color:#0f172a;background:#fff}.dashboard-period-button-active,.dashboard-period-button-active:hover{color:#fff;background:#dc2626;box-shadow:0 8px 18px #dc26262e}.dashboard-date-range-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;display:grid}.dashboard-date-field .input{min-height:38px}.dashboard-kpi-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;display:grid}.dashboard-kpi{background:linear-gradient(#fffffffa,#f8fafcfa),linear-gradient(135deg,#dc262614,#0000 42%);border:1px solid #e2e8f0;border-radius:8px;grid-template-rows:minmax(68px,auto) 56px auto;gap:12px;min-height:188px;padding:16px;display:grid;position:relative;box-shadow:0 12px 30px #0f172a14,inset 0 1px #ffffffbf}.dashboard-kpi:before{content:"";background:#dc2626;border-radius:999px;height:3px;position:absolute;top:0;left:16px;right:16px}.dashboard-kpi-main{justify-content:space-between;align-items:start;gap:12px;min-width:0;display:flex}.dashboard-kpi-main>div:first-child{gap:8px;min-width:0;display:grid}.dashboard-kpi span,.dashboard-kpi strong,.dashboard-kpi small{display:block}.dashboard-kpi span{color:#64748b;text-transform:uppercase;min-height:12px;font-size:12px;font-weight:800;line-height:1}.dashboard-kpi strong{overflow-wrap:anywhere;align-items:flex-start;min-height:56px;font-size:24px;line-height:1.15;display:flex}.dashboard-kpi small{color:#64748b;align-self:end;min-height:30px;font-size:12px;font-weight:700;line-height:1.25}.dashboard-kpi-icon{border-radius:8px;flex:0 0 40px;justify-content:center;align-items:center;width:40px;height:40px;display:inline-flex}.dashboard-kpi-success{border-top-color:#16a34a52}.dashboard-kpi-success:before{background:#16a34a}.dashboard-kpi-success .dashboard-kpi-icon{color:#166534;background:#dcfce7}.dashboard-kpi-info{border-top-color:#2563eb52}.dashboard-kpi-info:before{background:#2563eb}.dashboard-kpi-info .dashboard-kpi-icon{color:#1d4ed8;background:#dbeafe}.dashboard-kpi-warning{border-top-color:#d9770652}.dashboard-kpi-warning:before{background:#d97706}.dashboard-kpi-warning .dashboard-kpi-icon{color:#92400e;background:#fef3c7}.dashboard-kpi-danger{border-top-color:#dc262657}.dashboard-kpi-danger:before{background:#dc2626}.dashboard-kpi-danger .dashboard-kpi-icon{color:#991b1b;background:#fee2e2}.dashboard-kpi-neutral{border-top-color:#64748b52}.dashboard-kpi-neutral:before{background:#64748b}.dashboard-kpi-neutral .dashboard-kpi-icon{color:#334155;background:#f1f5f9}.dashboard-kpi-chart{align-self:center;width:100%}.line-chart{min-width:0;margin:0}.line-chart svg{shape-rendering:geometricprecision;width:100%;height:auto;display:block;overflow:visible}.line-chart-sparkline{color:#2563eb;height:56px;overflow:hidden}.line-chart-sparkline svg{height:100%}.line-chart-panel{gap:12px;display:grid}.line-chart-line{fill:none;filter:drop-shadow(0 1px 2px #0f172a24);stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:3.25px;vector-effect:non-scaling-stroke}.line-chart-area{fill:currentColor;opacity:.12}.line-chart-sparkline .line-chart-line{stroke-width:3px}.line-chart-panel .line-chart-line{stroke-width:2.75px}.line-chart-series-success,.line-chart-line-success,.line-chart-area-success,.line-chart-legend-success{color:#16a34a}.line-chart-series-info,.line-chart-line-info,.line-chart-area-info,.line-chart-legend-info{color:#2563eb}.line-chart-series-warning,.line-chart-line-warning,.line-chart-area-warning,.line-chart-legend-warning{color:#d97706}.line-chart-series-danger,.line-chart-line-danger,.line-chart-area-danger,.line-chart-legend-danger{color:#dc2626}.line-chart-series-neutral,.line-chart-line-neutral,.line-chart-area-neutral,.line-chart-legend-neutral{color:#64748b}.line-chart-grid{stroke:#e2e8f0;stroke-width:1px;opacity:.85;vector-effect:non-scaling-stroke}.line-chart-axis text{fill:#64748b;font-size:11px;font-weight:700}.line-chart-legend{flex-wrap:wrap;align-items:center;gap:10px 14px;display:flex}.line-chart-legend span{align-items:center;gap:7px;font-size:12px;font-weight:800;display:inline-flex}.line-chart-legend i{background:currentColor;border-radius:999px;width:8px;height:8px;display:inline-flex}.dashboard-main-grid{grid-template-columns:minmax(0,1.8fr) minmax(300px,.8fr);align-items:start;gap:18px;display:grid}.dashboard-panel{background:linear-gradient(#fffffffc,#f8fafcf5),linear-gradient(135deg,#dc26260d,#0000 40%);border-color:#e2e8f0;min-width:0;min-height:100%}.dashboard-panel .data-table{min-width:640px}.section-link{color:#dc2626;align-items:center;gap:6px;font-size:13px;font-weight:800;display:inline-flex}.section-link:hover{color:#b91c1c}.dashboard-stock-alert{border:1px solid #e2e8f0;border-radius:8px;grid-template-columns:42px minmax(0,1fr);align-items:center;gap:12px;min-height:74px;margin-bottom:14px;padding:14px;display:grid}.dashboard-stock-alert-icon{border-radius:8px;flex:0 0 42px;justify-content:center;align-items:center;width:42px;height:42px;display:inline-flex}.dashboard-stock-alert strong,.dashboard-stock-alert p{display:block}.dashboard-stock-alert strong{line-height:1.2}.dashboard-stock-alert p{color:#475569;margin-top:3px;line-height:1.35}.stock-alert-success{background:#f0fdf4;border-color:#bbf7d0}.stock-alert-success .dashboard-stock-alert-icon{color:#166534;background:#dcfce7}.stock-alert-warning{background:#fffbeb;border-color:#fde68a}.stock-alert-warning .dashboard-stock-alert-icon{color:#92400e;background:#fef3c7}.stock-alert-danger{background:#fef2f2;border-color:#fecaca}.stock-alert-danger .dashboard-stock-alert-icon{color:#991b1b;background:#fee2e2}.dashboard-record-list,.dashboard-action-list{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;display:grid}@media (width<=768px){.dashboard-record-list,.dashboard-action-list{grid-template-columns:repeat(1,minmax(0,1fr))}}.dashboard-side-column,.dashboard-action-list,.dashboard-record-list{gap:12px;display:grid}.dashboard-side-column{align-items:start}.dashboard-job-lookup{background:#f8fafce0;border:1px solid #e2e8f0;border-radius:8px;grid-column:1/-1;gap:8px;padding:12px;display:grid}.dashboard-job-lookup-main{grid-template-columns:minmax(180px,1fr) auto;align-items:end;gap:10px;display:grid}.dashboard-job-lookup-field .input{min-height:40px}.dashboard-job-lookup-button{justify-content:center;min-height:40px}.dashboard-job-lookup .error-text,.dashboard-job-lookup .success-text{margin:0}@media (width<=768px){.dashboard-job-lookup-main{grid-template-columns:1fr}.dashboard-job-lookup-button{width:100%}}.dashboard-chart-panel{gap:12px;min-width:0;display:grid}.dashboard-chart-range{color:#dc2626;white-space:nowrap;font-size:12px;font-weight:800}.dashboard-action-row,.dashboard-record-row{background:#ffffffbd;border:1px solid #e2e8f0;border-radius:8px;align-items:center;gap:12px;min-height:58px;padding:10px 12px;transition:background-color .12s,border-color .12s;display:grid}.dashboard-action-row{grid-template-columns:40px minmax(0,1fr) 18px}.dashboard-action-row:hover,.dashboard-record-row:hover{background:#fff;border-color:#fecaca;box-shadow:0 10px 24px #0f172a14}.dashboard-action-row strong,.dashboard-action-row small,.dashboard-record-row span,.dashboard-record-row strong{display:block}.dashboard-action-row>span:nth-child(2){gap:2px;min-width:0;display:grid}.dashboard-action-row strong{font-size:14px;line-height:1.2}.dashboard-action-row small{color:#64748b;font-size:12px;font-weight:700;line-height:1.2}.dashboard-action-row>svg{color:#64748b;justify-self:end}.dashboard-action-icon,.dashboard-record-icon{border-radius:8px;justify-content:center;align-items:center;width:40px;height:40px;display:inline-flex}.dashboard-action-sale .dashboard-action-icon{color:#166534;background:#dcfce7}.dashboard-action-purchase .dashboard-action-icon{color:#1d4ed8;background:#dbeafe}.dashboard-action-product .dashboard-action-icon{color:#92400e;background:#fef3c7}.dashboard-action-report .dashboard-action-icon{color:#991b1b;background:#fee2e2}.dashboard-record-row{grid-template-columns:40px minmax(0,1fr) minmax(36px,auto)}.dashboard-record-row span{color:#334155;min-width:0;font-weight:800;line-height:1.2;display:flex}html[data-theme=dark] .dashboard-record-row span{color:#fff}.dashboard-record-row strong{justify-self:end;font-size:18px;line-height:1}.invoice-header-card{gap:18px;display:grid}.invoice-title{align-items:center;gap:12px;display:flex}.invoice-title strong,.invoice-title span{display:block}.invoice-title strong{font-size:18px}.invoice-title span{color:#64748b}.invoice-meta-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;display:grid}.invoice-meta-grid div{background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;padding:12px}.invoice-meta-grid span,.invoice-meta-grid strong{display:block}.invoice-meta-grid span{color:#64748b;margin-bottom:4px;font-size:12px;font-weight:700}.invoice-signature-box{border:1px solid #cbd5e1;border-radius:8px;gap:8px;min-width:min(100%,320px);padding:12px;display:grid}.invoice-signature-box span,.invoice-signature-box small{color:#64748b;font-size:12px;font-weight:700}.invoice-signature-box strong{color:#0f172a;min-height:18px}.invoice-customer-signature{object-fit:contain;object-position:left center;background:#fff;width:100%;height:76px;display:block}.invoice-signature-line{border-bottom:1px solid #0f172a;height:62px}.inspection-media-grid{grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:12px;margin-top:16px;display:grid}.inspection-media-preview{color:#334155;border:1px solid #e2e8f0;border-radius:8px;text-decoration:none;display:block;overflow:hidden}.inspection-media-preview img,.inspection-media-preview video{aspect-ratio:16/10;object-fit:cover;background:#0f172a;width:100%;display:block}.inspection-media-preview span{text-overflow:ellipsis;white-space:nowrap;background:#fff;padding:9px 10px;font-size:.84rem;font-weight:700;display:block;overflow:hidden}.print-report{display:none}@media print{@page{margin:14mm}html,body,#root{background:#fff;min-height:auto}body{color:#111827;font-size:12px}.sidebar,.topbar,.sidebar-overlay,.no-print{display:none!important}.dashboard-shell,.dashboard-main,.content,.page,.invoice-print-page{width:100%;min-height:auto;margin:0;padding:0;display:block}.reports-printing>:not(.print-report-active){display:none!important}.reports-printing .print-report-active{color:#111827;width:100%;display:block!important}.print-report-header{border-bottom:2px solid #111827;justify-content:space-between;align-items:start;gap:18px;margin-bottom:14px;padding-bottom:12px;display:flex}.print-report-header span,.print-report-header strong{display:block}.print-report-header h1{margin-top:4px;font-size:22px;line-height:1.15}.print-report-header>div:first-child span{color:#475569;letter-spacing:.08em;text-transform:uppercase;font-size:11px;font-weight:800}.print-report-meta{color:#334155;text-align:right;font-size:11px}.print-report-meta strong{color:#111827;margin-bottom:4px;font-size:12px}.print-report-table{border-collapse:collapse;width:100%;font-size:10.5px}.print-report-table th,.print-report-table td{text-align:left;vertical-align:top;border:1px solid #cbd5e1;padding:6px}.print-report-table th{color:#111827;text-transform:uppercase;background:#f1f5f9;font-size:9.5px;font-weight:800}.print-report-buy-qty{font-size:13px;font-weight:900;text-align:center!important}.print-report-footer{color:#334155;border-top:1px solid #cbd5e1;justify-content:space-between;align-items:center;margin-top:18px;padding-top:10px;font-size:11px;display:flex}.page-header{border-bottom:2px solid #0f172a;margin-bottom:14px;padding-bottom:10px}.page-title{font-size:22px}.page-subtitle{color:#475569}.card{box-shadow:none;page-break-inside:avoid;border:0;border-radius:0;padding:0}.invoice-print-page .card+.card{margin-top:18px}.invoice-print-page .sale-tab-panel-hidden{display:block}.invoice-header-card{border-bottom:1px solid #cbd5e1;padding-bottom:14px}.brand-mark{color:#0f172a;background:#fff;border-color:#94a3b8}.invoice-meta-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}.invoice-meta-grid div{background:#fff;border-color:#cbd5e1;padding:8px}.invoice-signature-strip{margin-top:8px}.invoice-signature-box{border-color:#94a3b8;gap:5px;min-width:260px;padding:8px}.invoice-customer-signature{height:54px}.invoice-signature-line{height:42px}.table-wrapper{max-height:none;overflow:visible}.data-table{min-width:0;font-size:11px}.data-table th,.data-table td{border-color:#cbd5e1;padding:8px 6px}.data-table th{position:static}.data-table tbody tr:hover{background:0 0}.empty-state,.table-state{min-height:0;padding:10px 0}.muted{color:#334155}}.filter-select{min-width:170px;max-width:240px}.list-date-filter{min-width:190px}.compact-table-filters{flex-wrap:wrap;flex:560px;align-items:center;gap:10px;width:100%;max-width:none;display:flex}.compact-table-filters .search-input{flex:280px;min-width:0;max-width:none}.compact-table-filters .filter-select{flex:0 190px;min-width:150px;max-width:none}.compact-table-filters .products-page-size{margin-inline-start:auto}.products-page{--products-toolbar-top:70px}.products-table-card{padding-top:18px}.products-table-toolbar{margin-bottom:16px}.products-table-toolbar .filters{min-width:min(100%,620px)}.products-table-toolbar .search-input{flex:340px}.products-table-card .table-wrapper{max-height:calc(100vh - 260px);overflow:auto}.products-table-card .data-table th{z-index:11;top:0}.products-toolbar-actions{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:10px;display:flex}.products-page-size{color:#475569;white-space:nowrap;background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;align-items:center;gap:8px;min-height:44px;padding:4px 6px 4px 10px;font-size:13px;font-weight:800;display:inline-flex}.products-page-size .select{min-width:76px;min-height:36px;padding:6px 32px 6px 9px}.table-pagination{border-top:1px solid #e2e8f0;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;margin-top:14px;padding-top:14px;display:flex}.pagination-summary{color:#64748b;align-items:baseline;gap:6px;display:inline-flex}.pagination-summary strong{color:#0f172a}.pagination-controls{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:8px;display:flex}.pagination-page-input{color:#475569;align-items:center;gap:8px;font-size:13px;font-weight:800;display:inline-flex}.pagination-page-input .input{text-align:center;width:66px;min-height:34px;padding:6px 8px}.report-alert-card{padding-top:0}.report-alert-header{top:var(--products-toolbar-top);z-index:11;background:#fffffff5;border-bottom:1px solid #e2e8f0;border-radius:8px 8px 0 0;margin:0 -18px 16px;padding:14px 18px;position:sticky}.report-alert-actions{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:10px;display:flex}.reports-tabs{margin-bottom:18px}.backup-checksum{color:#475569;text-overflow:ellipsis;vertical-align:middle;background:#f8fafc;border:1px solid #e2e8f0;border-radius:6px;max-width:150px;padding:4px 6px;font-size:12px;display:inline-block;overflow:hidden}.table-error,.form-alert{margin-bottom:12px}.form-actions{justify-content:flex-end;gap:10px;display:flex}.payment-split{border:1px solid #e2e8f0;border-radius:8px;gap:12px;padding:12px;display:grid}.payment-split-header{justify-content:space-between;align-items:center;gap:12px;display:flex}.payment-split-summary{color:#475569;flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:8px 12px;font-size:13px;font-weight:800;display:flex}.payment-split-rows{gap:10px;display:grid}.payment-split-row{grid-template-columns:minmax(120px,.8fr) minmax(150px,1fr) minmax(160px,1fr) 40px;align-items:end;gap:10px;display:grid}.payment-split-row:has(.form-field:nth-of-type(4)){grid-template-columns:minmax(120px,.8fr) minmax(150px,1fr) minmax(160px,1fr) minmax(160px,1fr) 40px}.payment-split-remove{align-self:end}.payment-split-add{justify-self:start}.signature-pad{border:1px solid #e2e8f0;border-radius:8px;gap:12px;padding:12px;display:grid}.signature-pad-header{justify-content:space-between;align-items:flex-start;gap:12px;display:flex}.signature-pad-header>div{min-width:0}.signature-pad-header span{color:#0f172a;font-size:.95rem;font-weight:800;display:block}.signature-pad-header .muted-text{margin-top:3px}.signature-pad-canvas-wrap{background:linear-gradient(#fff,#fff) padding-box padding-box,repeating-linear-gradient(90deg,#e2e8f0 0 1px,#0000 1px 32px) border-box;border:1px dashed #94a3b8;border-radius:8px;min-width:0;overflow:hidden}.signature-pad-canvas{cursor:crosshair;touch-action:none;width:100%;height:190px;display:block}.signature-preview{object-fit:contain;background:#fff;border:1px solid #cbd5e1;border-radius:6px;width:150px;max-width:150px;height:44px;display:block}.delivery-balance-warning{color:#92400e;background:#fffbeb;border:1px solid #fcd34d;border-radius:8px;align-items:center;gap:10px;margin-top:14px;padding:10px 12px;font-size:13px;font-weight:700;display:flex}.attendance-date-actions{align-items:end}.attendance-date-field{min-width:180px}.attendance-scanner-card{gap:10px;display:grid}.attendance-scan-form{grid-template-columns:minmax(240px,420px) auto;align-items:end;gap:12px;display:grid}.attendance-employee-cell{gap:2px;min-width:150px;display:grid}.attendance-employee-cell strong,.attendance-employee-cell span{text-overflow:ellipsis;white-space:nowrap;min-width:0;display:block;overflow:hidden}.attendance-employee-cell span{color:#64748b;font-size:12px;font-weight:700}.attendance-status-cell{gap:7px;min-width:146px;display:grid}.attendance-select{min-width:132px}.attendance-time-field{color:#64748b;align-items:center;gap:8px;min-width:134px;display:flex}.attendance-time-field .input{min-width:104px}.attendance-notes-input{min-width:180px}.attendance-row-actions{align-items:center;gap:7px;display:flex}.attendance-row-actions .icon-button:first-child{color:#166534}.attendance-row-actions .icon-button:nth-child(2){color:#991b1b}.employee-attendance-filter-toolbar{align-items:end;margin-bottom:14px}.employee-attendance-filter-fields{grid-template-columns:repeat(2,minmax(160px,1fr));align-items:end;gap:12px;min-width:min(100%,420px);display:grid}.employee-attendance-filter-fields .form-field{min-width:160px}.employee-attendance-summary{margin-bottom:14px}.attendance-report-month{min-width:170px}.inventory-active-panel{grid-column:span 2}.inventory-scan-form{grid-template-columns:minmax(220px,1fr) 92px auto auto;align-items:end;gap:10px;display:grid}.inventory-scan-input{font-weight:800}.inventory-scan-quantity{min-width:84px}.inventory-session-actions{flex-wrap:wrap;gap:10px;margin-top:14px;display:flex}.inventory-readonly-panel{color:#475569;background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;align-items:center;gap:10px;padding:12px;font-size:13px;font-weight:800;display:flex}.inventory-readonly-panel svg{color:#b45309;flex:none}.inventory-table-filters{max-width:520px}.inventory-counted-input{min-width:94px;max-width:110px}.inventory-notes-input{min-width:170px}.inventory-conflict-card .section-title-with-icon{color:#b45309}.inventory-missing-product-card{border-color:#fde68a}.inventory-missing-product-card .section-title-with-icon{color:#b45309}.inventory-missing-product-summary{background:#fffbeb;border:1px solid #fde68a;border-radius:8px;flex-wrap:wrap;align-items:center;gap:8px 12px;padding:12px;display:flex}.inventory-missing-product-summary strong{font-size:15px}.inventory-missing-product-summary span:last-child{color:#92400e;font-size:13px;font-weight:700}.inventory-missing-product-numbers{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;display:grid}.whatsapp-message-field{margin-bottom:14px}.inline-form{grid-template-columns:minmax(220px,420px) auto;align-items:end;gap:12px;margin-bottom:16px;display:grid}.inline-form-actions{gap:10px;display:flex}.lookup-card{gap:16px;display:grid}.lookup-form{border-bottom:1px solid #e2e8f0;grid-template-columns:1fr;align-items:stretch;gap:14px;padding-bottom:16px;display:grid}.lookup-form-title{align-items:flex-start;gap:10px;min-width:0;display:flex}.lookup-form-title svg{color:#64748b;flex:none;margin-top:2px}.lookup-form-title h2{font-size:17px;line-height:1.2}.lookup-form-controls{grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:10px;min-width:0;display:grid}.lookup-form-controls .form-field{width:100%;min-width:0}.lookup-form-actions{align-self:end;align-items:center;gap:8px;display:flex}.lookup-toolbar{align-items:stretch;gap:10px;margin-bottom:0;display:grid}.lookup-search-field{gap:7px;min-width:0;display:grid}.lookup-search-field>span{color:#334155;font-size:13px;font-weight:700}.lookup-search-field .search-input{flex:none;width:100%;min-width:0}.lookup-card .data-table{min-width:520px}.lookup-card .data-table th:first-child,.lookup-card .data-table td:first-child{width:70%}.lookup-card .data-table td:first-child{overflow-wrap:anywhere;font-weight:800}.partner-form{border-bottom:1px solid #e2e8f0;margin-bottom:16px;padding-bottom:16px}.supplier-toolbar{margin-bottom:14px}.item-table{border:1px solid #e2e8f0;border-radius:8px;overflow:visible}.item-table-header{background:#f8fafc;border-bottom:1px solid #e2e8f0;justify-content:space-between;align-items:center;padding:12px;display:flex}.item-row{border-bottom:1px solid #e2e8f0;grid-template-columns:minmax(220px,2fr) 110px 130px 120px 40px;align-items:end;gap:12px;padding:12px;display:grid}.purchase-item{border-bottom:1px solid #e2e8f0}.purchase-item:last-child,.purchase-item>.item-row{border-bottom:0}.new-product-panel{background:#f8fafc;border-top:1px solid #e2e8f0;flex-direction:column;gap:14px;padding:14px;display:flex}.new-product-header{justify-content:space-between;align-items:center;gap:12px;display:flex}.sale-item-row{grid-template-columns:minmax(220px,2fr) 100px 130px 110px 120px 40px}.service-job-entry-row{grid-template-columns:minmax(240px,2fr) 100px 130px minmax(160px,1fr) minmax(82px,auto)}.service-job-entry-row .btn{align-self:end;min-width:82px}.item-row:last-child{border-bottom:0}.item-subtotal{flex-direction:column;gap:7px;min-height:42px;display:flex}.item-subtotal span{color:#334155;font-size:13px;font-weight:700}.item-subtotal strong{align-items:center;min-height:42px;display:flex}.total-row{background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;justify-content:flex-end;align-items:center;gap:16px;padding:14px;display:flex}.total-row strong{font-size:20px}@media (width<=720px){.inline-form{grid-template-columns:1fr;align-items:stretch}.inline-form-actions{flex-wrap:wrap}.lookup-form,.lookup-form-controls{grid-template-columns:1fr;align-items:stretch}.lookup-form-actions{flex-wrap:wrap}.lookup-form-actions .btn{flex:140px}.payment-split-header{flex-direction:column;align-items:flex-start}.payment-split-summary{justify-content:flex-start}:is(.payment-split-row,.payment-split-row:has(.form-field:nth-of-type(4))),.attendance-scan-form{grid-template-columns:1fr}.inventory-active-panel{grid-column:auto}.inventory-scan-form,.inventory-missing-product-numbers{grid-template-columns:1fr}.inventory-session-actions .btn,.inventory-scan-form .btn,.attendance-scan-form .btn{width:100%}.item-row,.invoice-meta-grid{grid-template-columns:1fr}.filter-select,.filter-searchable-select,.compact-table-filters .products-page-size{width:100%;max-width:none}.compact-table-filters .products-page-size{margin-inline-start:0}.item-table-header,.new-product-header,.total-row{flex-direction:column;align-items:stretch}}@media (width<=980px){.grid-3,.grid-4{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-main-grid{grid-template-columns:1fr}.dashboard-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-period-panel{grid-template-columns:1fr;align-items:stretch}.dashboard-period-summary{border-bottom:1px solid #e2e8f0;border-right:0;padding-bottom:12px;padding-right:0}.dashboard-period-controls{grid-template-columns:1fr}}@media (width<=720px){.dashboard-header,.page-header,.page-actions,.signature-pad-header,.supplier-settlement-header,.employee-attendance-filter-toolbar,.toolbar{flex-direction:column;align-items:stretch}.filters,.compact-table-filters,.search-input,.filter-searchable-select,.partsouq-vin-search{width:100%}.mode-toggle{grid-template-columns:1fr;width:100%;display:grid}.grid-2,.grid-3,.grid-4,.employee-attendance-filter-fields,.form-row{grid-template-columns:1fr}.employee-attendance-filter-fields{width:100%;min-width:0}.filters{flex-direction:column}.partsouq-vin-search{align-items:stretch}.partsouq-vin-search .btn{width:100%}.dashboard-kpi-grid{grid-template-columns:1fr}.dashboard-kpi,.stat-card{min-height:auto}.dashboard-header{background-position:right 18% center;min-height:210px;padding:22px}.dashboard-header:after{left:22px;right:22px}.dashboard-date{justify-content:center}.products-table-toolbar{flex-direction:column;align-items:stretch;margin-bottom:14px}.products-table-toolbar .filters{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;width:100%;min-width:0;display:grid}.products-table-toolbar .search-input{flex:initial;grid-column:1/-1;width:100%;min-width:0;min-height:40px}.products-table-toolbar .search-input input,.products-table-toolbar .searchable-select-control .input{min-height:38px;padding-top:8px;padding-bottom:8px}.products-table-toolbar .filter-searchable-select{width:100%;min-width:0;max-width:none}.products-page{--products-toolbar-top:76px}.products-table-card{padding-top:18px}.products-table-card .table-wrapper{max-height:calc(100vh - 260px);overflow:auto}.product-source-header{flex-direction:column;align-items:flex-start}.product-source-table-wrapper{max-height:none;margin:0 -12px;padding:0 12px;overflow-x:auto}.report-alert-header{flex-direction:column;align-items:stretch;margin-left:-18px;margin-right:-18px;top:76px}.products-toolbar-actions,.report-alert-actions,.table-pagination,.pagination-controls{flex-direction:column;align-items:stretch}.products-toolbar-actions{flex-direction:row;justify-content:flex-end;align-items:center;gap:8px}.products-toolbar-actions .btn,.report-alert-actions .btn,.pagination-controls .btn{width:100%}.products-toolbar-actions .btn{flex:150px;width:auto;min-height:40px;padding:7px 10px}.products-page-size,.pagination-page-input{justify-content:space-between;width:100%}.products-page-size{flex:none;width:auto;min-width:118px;min-height:40px}.products-page-size .select{min-height:32px}.pagination-page-input .input{flex:0 0 82px}.dashboard-period-presets{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (width<=520px){.search-input{flex:0}.dashboard-page{gap:14px}.dashboard-header{background-position:66%;gap:12px;min-height:220px;padding:18px}.dashboard-header:after{left:18px;right:18px}.dashboard-eyebrow{font-size:12px}.dashboard-page .page-title{font-size:22px}.dashboard-page .page-subtitle{font-size:13px;line-height:1.35}.dashboard-date{width:100%;min-height:38px;padding:8px 10px;font-size:13px}.dashboard-period-panel{gap:12px;padding:12px}.dashboard-period-summary strong{font-size:17px}.dashboard-period-presets,.dashboard-date-range-fields{grid-template-columns:1fr}.dashboard-period-button{min-height:36px}.dashboard-kpi-grid,.dashboard-action-list,.dashboard-record-list,.dashboard-main-grid,.dashboard-side-column{gap:10px}.dashboard-kpi{grid-template-rows:minmax(50px,auto) 44px auto;gap:10px;min-height:150px;padding:14px}.dashboard-kpi-main{align-items:center}.dashboard-kpi span{font-size:11px}.dashboard-kpi strong{min-height:0;font-size:20px}.dashboard-kpi small{min-height:0}.dashboard-kpi-icon{flex-basis:36px;width:36px;height:36px}.line-chart-sparkline{height:44px;max-height:none}.dashboard-panel{padding:14px}.dashboard-panel .section-header{flex-wrap:wrap;align-items:flex-start;gap:8px}.dashboard-chart-range{white-space:normal}.line-chart-legend{gap:8px 12px}.dashboard-stock-alert{grid-template-columns:36px minmax(0,1fr);align-items:start;min-height:0;padding:12px}.dashboard-stock-alert-icon{width:36px;height:36px}.dashboard-action-row,.dashboard-record-row{min-height:54px;padding:9px 10px}.dashboard-action-icon,.dashboard-record-icon{width:36px;height:36px}.dashboard-record-row strong{font-size:16px}.dashboard-panel .table-wrapper{width:calc(100% + 28px);margin:0 -14px;padding:0 14px}.dashboard-main-grid .dashboard-panel .data-table{min-width:100%;font-size:13px}.dashboard-main-grid .dashboard-panel .data-table th,.dashboard-main-grid .dashboard-panel .data-table td{overflow-wrap:anywhere;padding:10px 8px}.dashboard-main-grid .dashboard-panel .data-table th:nth-child(3),.dashboard-main-grid .dashboard-panel .data-table td:nth-child(3),.dashboard-main-grid .dashboard-panel .data-table th:nth-child(5),.dashboard-main-grid .dashboard-panel .data-table td:nth-child(5){display:none}}html[dir=rtl] body{font-family:Tahoma,Segoe UI,Arial,sans-serif}.checkbox-field{color:#334155;align-items:center;gap:8px;min-height:40px;font-size:.9rem;font-weight:700;display:inline-flex}.checkbox-field input{width:16px;height:16px}.nested-table-block{margin-top:18px}.table-actions{flex-wrap:wrap;gap:8px;display:flex}.muted-text{color:#64748b;font-size:.92rem;line-height:1.5}html[dir=rtl] .dashboard-shell,html[dir=rtl] .login-page,html[dir=rtl] .modal,html[dir=rtl] .print-report,html[dir=rtl] .invoice-print-page{direction:rtl}html[dir=rtl] .sidebar{border-left:1px solid #e2e8f0;border-right:0}html[dir=rtl] .sidebar-close{margin-left:0;margin-right:auto}html[dir=rtl] .menu-button{margin-left:auto;margin-right:0}html[dir=rtl] .topbar-user{text-align:left}html[dir=rtl] .data-table th,html[dir=rtl] .data-table td,html[dir=rtl] .legacy-grid-table th,html[dir=rtl] .legacy-grid-table td,html[dir=rtl] .searchable-select-option{text-align:right}html[dir=rtl] .legacy-grid-table .legacy-row-number{text-align:left;left:auto;right:0}html[dir=rtl] .searchable-select-control .input{padding-left:40px;padding-right:12px}html[dir=rtl] .searchable-select-icon{left:12px;right:auto}html[dir=rtl] .select{background-position:18px,13px;padding-left:38px;padding-right:12px}html[dir=rtl] .products-page-size .select{padding-left:32px;padding-right:9px}html[dir=rtl] .products-data-table .data-table-main-row td:first-child{border-left:0;border-right:1px solid #cbd5e1;border-top-left-radius:0;border-top-right-radius:8px}html[dir=rtl] .products-data-table .data-table-main-row td:last-child{border-left:1px solid #cbd5e1;border-right:0;border-top-left-radius:8px;border-top-right-radius:0}html[dir=rtl] .products-data-table .data-table-main-row:not(.data-table-row-with-detail) td:first-child{border-bottom-right-radius:8px;border-bottom-left-radius:0}html[dir=rtl] .products-data-table .data-table-main-row:not(.data-table-row-with-detail) td:last-child{border-bottom-right-radius:0;border-bottom-left-radius:8px}html[dir=rtl] .product-table-description{border-left:1px solid #e2e8f0;border-right:3px solid #94a3b8}html[dir=rtl] .dashboard-period-summary{border-left:1px solid #e2e8f0;border-right:0;padding-left:16px;padding-right:0}html[dir=rtl] .print-report-meta{text-align:left}html[dir=rtl] .print-report-table th,html[dir=rtl] .print-report-table td{text-align:right}@media (width<=920px){html[dir=rtl] .sidebar{left:auto;right:0;transform:translate(100%)}html[dir=rtl] .sidebar-open{transform:translate(0)}}@media (width<=980px){html[dir=rtl] .dashboard-period-summary{border-left:0;padding-left:0}}@media screen{html[data-theme=dark] body,html[data-theme=dark] .dashboard-main,html[data-theme=dark] .content,html[data-theme=dark] .app-error-page{background:var(--app-bg)!important;color:var(--app-text)!important}html[data-theme=dark] :is(.card,.topbar,.sidebar,.modal,.app-error-card,.stat-card,.dashboard-period-panel,.dashboard-kpi,.dashboard-panel,.searchable-select-menu,.legacy-workbook-viewer,.product-source-panel,.item-table,.payment-split,.signature-pad,.column-permission-table){background:var(--app-surface)!important;border-color:var(--app-border)!important;color:var(--app-text)!important;box-shadow:0 12px 28px var(--app-shadow)!important}html[data-theme=dark] :is(.sidebar-header,.report-alert-header,.legacy-workbook-toolbar,.item-table-header,.new-product-panel,.total-row,.invoice-meta-grid div,.payment-basis-grid div,.inspection-media-file,.audit-log-detail,.product-table-description,.supplier-product-invoices,.return-detail-row,.inventory-readonly-panel,.dashboard-period-presets,.dashboard-job-lookup,.mode-toggle,.products-page-size,.column-permission-table summary,.backup-checksum){background:var(--app-surface-soft)!important;border-color:var(--app-border)!important;color:var(--app-text-soft)!important}html[data-theme=dark] :is(.input,.select,.textarea,.search-input,.search-input input,.language-toggle,.icon-button,.btn-secondary,.legacy-sheet-tab){border-color:var(--app-border-strong)!important;color:var(--app-text)!important;background:#111318!important}html[data-theme=dark] :is(.input,.textarea,.search-input input)::placeholder{color:#7f8998!important}html[data-theme=dark] .select{background-image:linear-gradient(45deg, transparent 50%, var(--app-muted) 50%), linear-gradient(135deg, var(--app-muted) 50%, transparent 50%)!important}html[data-theme=dark] :is(.input,.select,.textarea,.search-input,.language-toggle,.icon-button,.btn-secondary,.legacy-sheet-tab):hover{background:var(--app-surface-soft)!important;border-color:#566172!important}html[data-theme=dark] :is(.input,.select,.textarea):focus,html[data-theme=dark] .search-input:focus-within{box-shadow:0 0 0 3px var(--app-focus), 0 1px 2px #0000003d!important;background:#111318!important;border-color:#f87171!important}html[data-theme=dark] :is(.page-subtitle,.section-subtitle,.muted,.muted-text,.empty-state,.table-state,.pagination-summary,.topbar-user small,.sidebar-brand-copy span,.invoice-title span,.invoice-meta-grid span,.invoice-signature-box span,.invoice-signature-box small,.searchable-select-option small,.column-permission-table-title small,.searchable-select-empty,.product-cell span,.product-source-empty,.product-source-state,.attendance-employee-cell span,.dashboard-kpi span,.dashboard-kpi small,.dashboard-period-summary span,.dashboard-period-summary small,.dashboard-action-row small,.stat-card p,.stat-card small){color:var(--app-muted)!important}html[data-theme=dark] :is(.page-title,.section-header h2,.topbar-user span,.sidebar-brand-copy strong,.form-field>span,.lookup-search-field>span,.checkbox-field,.column-permission-table-title strong,.searchable-select-option,.payment-basis-grid strong,.signature-pad-header span,.invoice-signature-box strong,.dashboard-period-summary strong,.dashboard-record-row strong,.pagination-summary strong,.product-source-empty strong){color:var(--app-text)!important}html[data-theme=dark] .searchable-select-menu{background:var(--app-surface)!important;border-color:var(--app-border-strong)!important;box-shadow:0 18px 40px #00000057!important}html[data-theme=dark] .searchable-select-option{color:var(--app-text)!important;background:0 0!important}html[data-theme=dark] .searchable-select-option:hover,html[data-theme=dark] .searchable-select-option:focus{color:#fff!important;background:#2a303b!important}html[data-theme=dark] .searchable-select-option:hover strong,html[data-theme=dark] .searchable-select-option:focus strong{color:#fff!important}html[data-theme=dark] .searchable-select-option:hover small,html[data-theme=dark] .searchable-select-option:focus small{color:#d5dce6!important}html[data-theme=dark] :is(.data-table th,.product-source-table th,.legacy-grid-table thead th){background:var(--app-surface-soft)!important;border-color:var(--app-border)!important;color:var(--app-text-soft)!important}html[data-theme=dark] :is(.data-table td,.product-source-table td,.legacy-grid-table td,.legacy-grid-table th,.permission-editor,.column-permission-editor,.column-permission-table,.permission-group,.page-tabs,.table-pagination,.lookup-form,.partner-form,.item-row,.purchase-item){border-color:var(--app-border)!important}html[data-theme=dark] :is(.data-table tbody tr:hover,.products-data-table .product-row-expanded td,.legacy-grid-table tbody .legacy-row-number){background:var(--app-surface-soft)!important}html[data-theme=dark] :is(.products-data-table .data-table-main-row td,.products-data-table .data-table-detail-row td,.legacy-grid-table td,.supplier-product-invoice,.inspection-media-preview span){background:var(--app-surface)!important;border-color:var(--app-border)!important}html[data-theme=dark] .sidebar-header{background:linear-gradient(135deg,#20242d 0%,#181b22 58%,#2a1f22 100%)!important}html[data-theme=dark] .sidebar-brand-mark{background:#101114!important;border-color:#f8717157!important}html[data-theme=dark] :is(.nav-link,.page-tab,.mode-toggle-button,.dashboard-period-button,.pagination-page-input,.payment-split-summary,.supplier-product-invoices-title){color:#c8d0da!important}html[data-theme=dark] :is(.nav-link:hover,.nav-link-active,.page-tab-active,.mode-toggle-button-active,.legacy-sheet-tab-active,.dashboard-period-button:hover){color:#fda4a4!important;background:#f8717121!important}html[data-theme=dark] :is(.search-input svg,.searchable-select-icon,.section-title-with-icon svg,.lookup-form-title svg,.product-cell svg,.product-row-chevron,.dashboard-action-row>svg){color:#9fa8b6!important}html[data-theme=dark] :is(.text-link,.section-link),html[data-theme=dark] :is(.search-input:focus-within svg,.searchable-select-control:focus-within .searchable-select-icon){color:#f87171!important}html[data-theme=dark] .modal-backdrop,html[data-theme=dark] .sidebar-overlay{background:#0000009e!important}html[data-theme=dark] :is(.badge-neutral,.stat-neutral){color:#d5dce6!important;background:#2a303b!important}html[data-theme=dark] :is(.badge-success,.stat-success,.dashboard-kpi-success .dashboard-kpi-icon,.dashboard-action-sale .dashboard-action-icon,.stock-alert-success .dashboard-stock-alert-icon){color:#86efac!important;background:#22c55e29!important}html[data-theme=dark] :is(.badge-danger,.stat-danger,.dashboard-kpi-danger .dashboard-kpi-icon,.dashboard-action-report .dashboard-action-icon,.stock-alert-danger .dashboard-stock-alert-icon){color:#fca5a5!important;background:#f8717129!important}html[data-theme=dark] :is(.badge-warning,.stat-warning,.dashboard-kpi-warning .dashboard-kpi-icon,.dashboard-action-product .dashboard-action-icon,.stock-alert-warning .dashboard-stock-alert-icon){color:#fde68a!important;background:#fbbf2429!important}html[data-theme=dark] :is(.badge-info,.stat-info,.dashboard-kpi-info .dashboard-kpi-icon,.dashboard-action-purchase .dashboard-action-icon){color:#bae6fd!important;background:#38bdf826!important}html[data-theme=dark] :is(.service-step,.dashboard-stock-alert,.dashboard-action-row,.dashboard-record-row,.invoice-signature-box,.inspection-media-preview,.signature-preview){border-color:var(--app-border)!important;color:var(--app-text)!important;background:#171a20!important}html[data-theme=dark] :is(.active-job-warning,.delivery-balance-warning,.inventory-missing-product-summary,.stock-alert-warning){color:#fde68a!important;background:#fbbf241c!important;border-color:#fde68a4d!important}html[data-theme=dark] .stock-alert-success{background:#22c55e1a!important;border-color:#86efac42!important}html[data-theme=dark] .stock-alert-danger{background:#f871711a!important;border-color:#fca5a54d!important}html[data-theme=dark] .legacy-grid-row-highlight th,html[data-theme=dark] .legacy-grid-row-highlight td{background:#fb923c24!important;box-shadow:inset 0 0 0 999px #fb923c0f!important}html[data-theme=dark] .signature-pad-canvas-wrap{background:linear-gradient(#111318,#111318) padding-box padding-box,repeating-linear-gradient(90deg,#343946 0 1px,#0000 1px 32px) border-box!important;border-color:#566172!important}html[data-theme=dark] :is(.signature-preview,.invoice-customer-signature){background:#fff!important}html[data-theme=dark] .login-controls :is(.language-toggle,.theme-toggle){-webkit-backdrop-filter:blur(10px)saturate(130%);backdrop-filter:blur(10px)saturate(130%);color:#fff!important;background:#181b22db!important;border-color:#ffffff38!important}}.scan-input{flex-direction:column;gap:10px;display:flex}.scan-input-row{flex-wrap:wrap;align-items:flex-end;gap:10px;display:flex}.scan-input-field{flex-direction:column;flex:1;gap:6px;min-width:220px;display:flex}.scan-input-field>span{font-size:.85rem;font-weight:600}.scan-input-control{letter-spacing:.06em;padding:12px 14px;font-family:Consolas,SF Mono,monospace;font-size:1.15rem}.scan-input-hint{font-size:.82rem}.scan-camera{border:1px solid #e2e8f0;border-radius:10px;max-width:420px;position:relative;overflow:hidden}.scan-camera-video{background:#0f172a;width:100%;height:auto;display:block}.scan-camera-reticle{color:#ffffffe6;pointer-events:none;justify-content:center;align-items:center;display:flex;position:absolute;inset:0}.scan-camera-reticle:after{content:"";border:2px solid #ffffffd9;border-radius:8px;width:65%;height:45%;position:absolute}.scan-qty-input{text-align:center;max-width:84px}.row-selected{background:#2563eb14}html[data-theme=dark] .scan-camera{border-color:#ffffff29}html[data-theme=dark] .row-selected{background:#60a5fa24}
