body{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;margin:0}code{font-family:source-code-pro,Menlo,Monaco,Consolas,Courier New,monospace}.adminhome-container{background:linear-gradient(135deg,#e0e7ff,#f8fafc);display:flex;min-height:100vh}.adminhome-sidebar{background:linear-gradient(135deg,#1e40af,#3b82f6);box-shadow:2px 0 8px 0 #1f268714;color:#fff;display:flex;flex-direction:column;height:100vh;left:0;min-width:220px;overflow-x:hidden;overflow-y:auto;padding:32px 0;position:-webkit-sticky;position:sticky;top:0;transition:all .3s;width:220px;z-index:100}.adminhome-sidebar::-webkit-scrollbar{width:6px}.adminhome-sidebar::-webkit-scrollbar-track{background:#0000001a;border-radius:3px}.adminhome-sidebar::-webkit-scrollbar-thumb{background:#fff3;border-radius:3px;-webkit-transition:background .2s;transition:background .2s}.adminhome-sidebar::-webkit-scrollbar-thumb:hover{background:#ffffff4d}.adminhome-sidebar{scrollbar-color:#fff3 #0000001a;scrollbar-width:thin}.adminhome-main{align-items:center;display:flex;flex:1 1;flex-direction:column;justify-content:center;min-width:0;padding:20px}@media (max-width:900px){.adminhome-main{padding:12px 4vw}}@media (max-width:600px){.adminhome-sidebar{font-size:15px;min-width:120px;padding:12px 0;width:160px}.adminhome-main{padding:8px 2vw}.tally-config-card{border-radius:10px!important;max-width:100vw!important;min-width:0!important;padding:16px 4vw!important;width:100%!important}.tally-config-card h2{font-size:20px!important}.tally-config-card input{font-size:14px!important;padding:10px 12px!important}.tally-config-card button{font-size:13px!important;padding:10px 16px!important}.tally-logo{height:60px!important;width:60px!important}}.tally-logo{align-items:center;display:flex;height:120px;justify-content:center;margin:0 auto;max-width:100%;object-fit:contain;width:120px}.tally-config-card{background:#fff;border:1px solid #3b82f61a;border-radius:20px;box-shadow:0 20px 60px 0 #1f268726;margin:0 auto;max-width:600px;min-width:500px;padding:48px 64px;position:relative;text-align:center;transition:all .3s}.tally-config-card button,.tally-config-card input{box-sizing:border-box;width:100%}.tally-config-btn-group{align-items:center;display:flex;flex-direction:row;flex-wrap:nowrap;gap:16px;justify-content:center;margin-bottom:0;margin-top:0}.receivables-page{box-sizing:border-box;margin:0 auto;max-width:1400px;min-height:100vh;overflow-x:hidden;padding:2rem;width:100%}.back-button{align-items:center;background:none;border:none;color:#3182ce;cursor:pointer;display:inline-flex;font-size:1rem;gap:.5rem;margin-bottom:1rem;padding:.5rem 0;transition:color .2s}.back-button:hover{color:#2c5aa0;text-decoration:underline}.page-header{flex-shrink:0;gap:1.5rem;justify-content:space-between;margin-bottom:2rem}.page-header,.page-header-left{align-items:center;display:flex}.page-header-left{flex-wrap:wrap;gap:1rem}.page-header-titles{display:flex;flex-direction:column}.page-header-actions{align-items:center;display:flex;flex-shrink:0;gap:.75rem}.receivables-content{box-sizing:border-box;display:flex;flex-direction:column;overflow-x:hidden;width:100%}.page-header h1{color:#1a202c;font-size:2.5rem;font-weight:700;margin-bottom:.5rem}.subtitle{color:#718096;font-size:1.1rem;font-weight:600}.refresh-button{align-items:center;background:linear-gradient(135deg,#2563eb,#1d4ed8);border:none;border-radius:999px;box-shadow:0 12px 20px #2563eb40;cursor:pointer;display:inline-flex;font-size:.95rem;font-weight:600;gap:.5rem;padding:.65rem 1.25rem;transition:transform .2s,box-shadow .2s,background .2s}.refresh-button .material-icons{font-size:20px}.refresh-button:hover{background:linear-gradient(135deg,#1d4ed8,#1e40af);box-shadow:0 16px 24px #2563eb40;transform:translateY(-1px)}.refresh-button:active{box-shadow:0 8px 14px #2563eb33;transform:translateY(0)}.receivables-summary-layout{grid-gap:1.5rem;align-items:stretch;display:grid;gap:1.5rem;grid-template-columns:260px 1fr;margin-bottom:2rem}.summary-charts-wrapper{grid-gap:1.5rem;display:grid;gap:1.5rem;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));width:100%}.summary-chart-card{background:#fff;border:1px solid #e2e8f0;border-radius:.75rem;box-shadow:0 1px 3px #00000014;display:flex;flex-direction:column;gap:1rem;padding:1rem .75rem;transition:all .2s ease}.summary-chart-card:hover{box-shadow:0 4px 6px #0000001a}.summary-chart-card-header{align-items:center;display:flex;gap:1rem;justify-content:space-between}.summary-chart-card-header h2{color:#1a202c;font-size:1.25rem;font-weight:600;margin:0}.aging-chart-card .compact-aging-chart{height:220px}.compact-salesperson-chart{height:220px;position:relative;width:100%}.treemap-tooltip{background:#111827eb;border:1px solid #ffffff14;border-radius:.5rem;box-shadow:0 10px 25px -15px #0f172a99;color:#f8fafc;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI Variable,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;font-size:.8rem;min-width:180px;padding:.6rem .9rem}.treemap-tooltip__title{font-size:.95rem;font-weight:600;margin-bottom:.25rem}.treemap-tooltip__line{margin-bottom:.125rem;opacity:.85}.treemap-tooltip--floating{pointer-events:none;position:absolute;transform:translate(-50%,-100%);z-index:20}.summary-cards-single{display:flex;flex-direction:column;gap:1rem}.summary-tile{background:#fff;border:1px solid #e2e8f0;border-radius:.75rem;box-shadow:0 1px 3px #00000014;padding:1.5rem;transition:all .2s ease}.summary-tile:hover{box-shadow:0 4px 6px #0000001a;transform:translateY(-2px)}.summary-tile h3{color:#4a5568;font-size:.9rem;letter-spacing:.05em;margin-bottom:.5rem;text-transform:uppercase}.summary-tile .summary-value{color:#1a202c;font-size:1.75rem;font-weight:700}.summary-subtext{color:#4a5568;display:flex;flex-direction:column;font-size:.75rem;font-weight:500;gap:.2rem;margin-top:.5rem}.compact-aging-chart{height:220px;width:100%}.summary-overdue-percent-tile{color:#2d3748;font-size:1.5rem;font-weight:600;line-height:1.1;margin-top:.75rem}.summary-overdue-percent-label{color:#2d3748cc;display:block;font-size:.7rem;letter-spacing:.05em;margin-top:.25rem;text-transform:uppercase}.salesperson-config-button{background-color:#3182ce;border:none;border-radius:.5rem;color:#fff;cursor:pointer;font-size:.875rem;font-weight:500;padding:.5rem 1rem;transition:background-color .2s}.salesperson-config-button:hover{background-color:#2c5aa0}.customer-treemap-section{background:#fff;border:1px solid #e2e8f0;border-radius:.75rem;box-shadow:0 1px 3px #00000014;padding:1.5rem}.customer-treemap-section h2{color:#1a202c;font-size:1.5rem;font-weight:600;margin:0 0 1.5rem}.empty-state,.error-container,.loading-container{align-items:center;display:flex;flex-direction:column;justify-content:center;min-height:400px;text-align:center}.loading-spinner{animation:spin 1s linear infinite;border:4px solid #e2e8f0;border-radius:50%;border-top-color:#3182ce;height:50px;margin-bottom:1rem;width:50px}@keyframes spin{to{transform:rotate(1turn)}}.error-container h2{color:#e53e3e;margin-bottom:.5rem}.error-container p{color:#718096;margin-bottom:1rem}.retry-button{background-color:#3182ce;border:none;border-radius:.5rem;color:#fff;cursor:pointer;font-size:1rem;font-weight:500;padding:.75rem 1.5rem;transition:background-color .2s}.retry-button:hover{background-color:#2c5aa0}.empty-state{color:#718096;font-size:1.1rem}.charts-row{grid-gap:2rem;display:grid;flex-shrink:0;gap:2rem;grid-template-columns:1fr 1fr;margin-bottom:2rem}.chart-wrapper{display:flex;flex-direction:column}.chart-container{flex:1 1;flex-direction:column;padding:1.5rem}.chart-container,.chart-filters-indicator{background:#fff;border:1px solid #e2e8f0;border-radius:.75rem;box-shadow:0 1px 3px 0 #0000001a,0 1px 2px 0 #0000000f;display:flex}.chart-filters-indicator{align-items:center;flex-shrink:0;flex-wrap:wrap;gap:1rem;justify-content:space-between;margin-bottom:1rem;padding:1rem 1.5rem;transition:all .2s ease}.active-filters{align-items:center;display:flex;flex-wrap:wrap;gap:.75rem}.filter-badge{background-color:#e0f2fe;border-radius:.5rem;display:inline-flex;font-size:.875rem;font-weight:500;gap:.5rem;padding:.5rem .75rem}.filter-badge,.filter-remove{align-items:center;color:#0891b2}.filter-remove{background:none;border:none;cursor:pointer;display:flex;font-size:1.25rem;height:20px;justify-content:center;line-height:1;margin-left:.25rem;padding:0;transition:color .2s;width:20px}.filter-remove:hover{background-color:#0891b21a;border-radius:50%;color:#0e7490}.clear-filters-button{background-color:#3182ce}.clear-filters-button:hover{background-color:#2c5aa0}.chart-title{color:#1a202c;font-size:1.5rem;margin-bottom:1.5rem;text-align:center}.chart-tooltip{background:#fff;border:1px solid #e2e8f0;border-radius:.5rem;box-shadow:0 4px 6px -1px #0000001a;padding:.75rem}.tooltip-label{color:#2d3748;font-size:.875rem;font-weight:600;margin-bottom:.25rem}.tooltip-value{color:#4a5568;font-size:.875rem}.table-view-controls{align-items:center;display:flex;flex-shrink:0;flex-wrap:wrap;gap:1rem;margin-bottom:1rem;padding-top:.75rem}.view-controls-left{align-items:center;display:flex;gap:.75rem}.group-by-label{color:#4a5568}.group-by-label,.group-by-select{font-size:.875rem;font-weight:500}.group-by-select{background:#fff;border:1px solid #e2e8f0;border-radius:.5rem;color:#2d3748;min-width:150px;padding:.5rem 1rem;transition:all .2s}.group-by-select:hover{border-color:#3182ce}.group-by-select:focus{border-color:#3182ce;box-shadow:0 0 0 3px #3182ce1a}.view-controls-right{align-items:center;display:flex;flex-wrap:wrap;gap:1rem;justify-content:flex-start}.clear-filters-button{align-items:center;background-color:#e53e3e;border-radius:.5rem;display:flex;font-size:.875rem;font-weight:500;margin-right:.5rem;padding:.5rem 1rem}.clear-filters-button:hover{background-color:#c53030}.export-button{background-color:#2f855a;border:none;border-radius:.5rem;color:#fff;cursor:pointer;font-size:.875rem;font-weight:500;padding:.5rem 1rem;transition:background-color .2s}.export-button:hover{background-color:#276749}.view-toggle{background:#fff;border:1px solid #e2e8f0;border-radius:.5rem;color:#4a5568;cursor:pointer;font-size:.875rem;font-weight:500;padding:.5rem 1rem;transition:all .2s}.view-toggle:hover{border-color:#3182ce;color:#3182ce}.view-toggle.active{background:#3182ce;border-color:#3182ce;color:#fff}.table-container{background:#fff;border:1px solid #e2e8f0;border-radius:.75rem;box-shadow:0 1px 3px 0 #0000001a,0 1px 2px 0 #0000000f;box-sizing:border-box;max-height:calc(100vh - 225px);min-height:770px;overflow:auto;position:relative;scroll-behavior:smooth;transition:all .2s ease;width:100%}.customer-summary-row{background-color:#f7fafc;cursor:pointer;font-weight:600}.customer-summary-row:hover{background-color:#edf2f7}.expand-icon{color:#4a5568;font-size:.75rem;min-width:48px;text-align:center;-webkit-user-select:none;user-select:none;width:48px}.currency-value,.customer-name{color:#1a202c;font-weight:600}.details-container{-webkit-overflow-scrolling:touch;background-color:#fff;max-height:400px;overflow-x:auto;overflow-y:auto;padding:0!important;width:100%}.nested-details-table{background-color:#fff;border-collapse:collapse;min-width:600px;width:100%}.nested-details-table thead{background-color:#f7fafc;position:-webkit-sticky;position:sticky;top:0;z-index:10}.nested-details-table th{border-bottom:1px solid #e2e8f0;color:#2d3748;font-size:.875rem;font-weight:600;letter-spacing:.05em;padding:.5rem;text-align:left;text-transform:uppercase;vertical-align:top}.nested-details-table td{border-bottom:1px solid #e2e8f0;color:#4a5568;font-size:.875rem;padding:.75rem}@media (max-width:768px){.nested-details-table{font-size:.7rem!important;min-width:650px!important}.nested-details-table th{font-size:.625rem!important;letter-spacing:.02em!important;padding:.5rem .375rem!important}.nested-details-table td{font-size:.7rem!important;line-height:1.3!important;padding:.625rem .375rem!important}}.nested-details-table .text-right{text-align:right}.nested-details-table tbody tr:hover{background-color:#f7fafc}.receivables-table{border-collapse:collapse;display:table;table-layout:fixed;width:100%}.receivables-table thead{background-color:#f7fafc;display:table-header-group;position:-webkit-sticky;position:sticky;top:0;z-index:10}.receivables-table thead tr{display:table-row}.receivables-table tbody{display:table-row-group}.receivables-table tbody tr{display:table-row}.receivables-table th{border-bottom:2px solid #e2e8f0;color:#2d3748;display:table-cell;font-size:.875rem;font-weight:600;letter-spacing:.05em;min-width:0;overflow:visible;padding:.5rem;text-align:left;text-transform:uppercase;vertical-align:bottom}.receivables-table th.text-right{text-align:right}.receivables-table tbody td.text-right,.receivables-table thead th.text-right{padding-left:.5rem;padding-right:1rem;text-align:right}.receivables-table td:first-child,.receivables-table th:first-child{max-width:50px;min-width:50px;width:50px}.receivables-table td:nth-child(2),.receivables-table th:nth-child(2){min-width:150px;width:18%}.receivables-table td:nth-child(3),.receivables-table th:nth-child(3){min-width:120px;width:12%}.receivables-table td:nth-child(4),.receivables-table td:nth-child(5),.receivables-table th:nth-child(4),.receivables-table th:nth-child(5){min-width:100px;width:10%}.receivables-table td:nth-child(6),.receivables-table th:nth-child(6){min-width:140px;width:15%}.receivables-table td:last-child,.receivables-table th:last-child{min-width:120px;white-space:nowrap;width:15%}.sortable-header{position:relative}.header-content{align-items:center;display:flex;gap:.5rem;justify-content:space-between;line-height:1.2;margin-bottom:.5rem;min-width:0;width:100%}.header-content span{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sortable-header.text-right .header-content{justify-content:flex-end}.sort-button{align-items:center;background:none;border:none;color:#a0aec0;cursor:pointer;display:flex;padding:.25rem;transition:color .2s}.sort-button.active,.sort-button:hover{color:#3182ce}.sort-icons{display:flex;flex-direction:column;font-size:.625rem;line-height:.8}.sort-icons span{opacity:.3;transition:opacity .2s}.sort-icons span.active{opacity:1}.column-filter-wrapper{align-items:center;display:flex;min-width:0;position:relative;width:100%}.column-filter{background:#fff;border:1px solid #e2e8f0;border-radius:.25rem;box-sizing:border-box;font-size:.75rem;min-width:0;padding:.375rem 1.75rem .375rem .5rem;transition:border-color .2s;width:100%}.column-filter:focus{border-color:#3182ce;box-shadow:0 0 0 2px #3182ce1a;outline:none}.column-filter::placeholder{color:#a0aec0}.filter-clear-icon{align-items:center;border-radius:50%;color:#718096;cursor:pointer;display:flex;font-size:1.25rem;height:1.25rem;justify-content:center;line-height:1;padding:.125rem;position:absolute;right:.5rem;transition:all .2s;width:1.25rem;z-index:1}.filter-clear-icon:hover{background-color:#e2e8f0;color:#2d3748}.searchable-dropdown-container,.searchable-dropdown-input{box-sizing:border-box;min-width:0;position:relative;width:100%}.searchable-dropdown-input{align-items:center;background:#fff;border:1px solid #e2e8f0;border-radius:.25rem;cursor:pointer;display:flex;transition:border-color .2s}.searchable-dropdown-input .filter-clear-icon{align-items:center;border-radius:50%;color:#718096;cursor:pointer;display:flex;font-size:1.25rem;height:1.25rem;justify-content:center;line-height:1;padding:.125rem;position:absolute;right:1.75rem;transition:all .2s;width:1.25rem;z-index:2}.searchable-dropdown-input .filter-clear-icon:hover{background-color:#e2e8f0;color:#2d3748}.searchable-dropdown-input:hover{border-color:#3182ce}.searchable-dropdown-input:focus-within{border-color:#3182ce;box-shadow:0 0 0 2px #3182ce1a}.dropdown-search-input{background:#0000;border:none;border-radius:.25rem;box-sizing:border-box;font-size:.75rem;min-width:0;outline:none;padding:.375rem 2.5rem .375rem .5rem;width:100%}.dropdown-arrow{color:#a0aec0;font-size:.625rem;pointer-events:none;position:absolute;right:.5rem;-webkit-user-select:none;user-select:none}.dropdown-options{background:#fff;border:1px solid #e2e8f0;border-radius:.25rem;box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -1px #0000000f;left:0;margin-top:.25rem;max-height:200px;min-width:200px;overflow-y:auto;position:absolute;right:0;top:100%;z-index:10000}.dropdown-option{color:#4a5568;cursor:pointer;font-size:.75rem;padding:.5rem .75rem;transition:background-color .15s}.dropdown-option:hover{background-color:#f7fafc}.dropdown-option.selected{background-color:#e6f2ff;color:#3182ce;font-weight:500}.dropdown-options::-webkit-scrollbar{width:6px}.dropdown-options::-webkit-scrollbar-track{background:#f1f1f1;border-radius:.25rem}.dropdown-options::-webkit-scrollbar-thumb{background:#cbd5e0;border-radius:.25rem}.dropdown-options::-webkit-scrollbar-thumb:hover{background:#a0aec0}.receivables-table td{border-bottom:1px solid #e2e8f0;color:#4a5568;padding:1rem}.receivables-table td.text-right{white-space:nowrap}.receivables-table tbody tr:hover{background-color:#f7fafc}.receivables-table tbody tr:last-child td{border-bottom:none}.table-totals-row{background-color:#f7fafc;bottom:0;position:-webkit-sticky;position:sticky;z-index:5}.table-totals-row td{border-bottom:none;border-top:2px solid #e2e8f0;font-weight:600;padding:1rem .5rem}.table-pagination{align-items:center;background-color:#f8fafc;border-top:1px solid #e2e8f0;display:flex;gap:1rem;justify-content:space-between;padding:.75rem 1rem}.pagination-info{color:#4a5568;font-size:.875rem}.pagination-controls{align-items:center;display:flex;flex-wrap:wrap;gap:.5rem}.pagination-controls.top{margin-left:0}.pagination-controls.disabled .pagination-button,.pagination-controls.disabled .pagination-select{cursor:not-allowed;opacity:.4}.pagination-controls.disabled .pagination-button:hover{background:#fff}.pagination-button{background:#fff;border:1px solid #cbd5f5;border-radius:.5rem;color:#2b6cb0;font-size:.85rem;font-weight:500;padding:.35rem .75rem;transition:all .15s ease}.pagination-button:hover:not(:disabled){background:#ebf8ff}.pagination-button.active{background:#3182ce;border-color:#3182ce;color:#fff}.pagination-select{background-color:#fff;border:1px solid #cbd5f5;border-radius:.5rem;color:#2d3748;cursor:pointer;font-size:.85rem;padding:.35rem .75rem}.pagination-select:focus{box-shadow:0 0 0 2px #3182ce4d;outline:none}.pagination-ellipsis{color:#718096;font-size:.85rem;padding:0 .35rem}@media (max-width:768px){.receivables-page{box-sizing:border-box!important;margin:0!important;max-width:100vw!important;overflow-x:hidden!important;padding:.5rem!important;width:100vw!important}.page-header{align-items:flex-start!important;gap:.75rem!important;margin-bottom:.75rem!important;padding:0!important}.page-header,.page-header-left{flex-direction:column!important;width:100%!important}.page-header-left{display:flex!important;gap:.5rem!important}.page-header-titles{width:100%!important}.page-header-actions{flex-direction:column!important;gap:.5rem!important;margin-top:.5rem!important;width:100%!important}.page-header h1{font-size:1.25rem!important;font-weight:700!important;line-height:1.3!important;margin-bottom:.25rem!important}.subtitle{font-size:.85rem!important;line-height:1.2!important}.back-button{font-size:13px!important;margin-bottom:.5rem!important;padding:.375rem 0!important}.receivables-summary-layout{gap:.75rem!important;margin-bottom:1rem!important}.receivables-summary-layout,.summary-charts-wrapper{box-sizing:border-box!important;grid-template-columns:1fr!important;width:100%!important}.summary-charts-wrapper{gap:1rem!important}.summary-cards-single{box-sizing:border-box!important;gap:.75rem}.summary-tile{border-radius:.625rem!important;margin-bottom:0!important;padding:.875rem!important}.summary-tile h3{font-size:.8rem;margin-bottom:.375rem!important}.summary-tile .summary-value{font-size:1.4rem!important;line-height:1.2!important;word-break:break-word!important}.summary-subtext{font-size:.7rem!important;gap:.25rem!important;margin-top:.375rem!important}.summary-overdue-percent-tile{font-size:1.25rem!important;margin-top:.5rem!important}.summary-overdue-percent-label{font-size:.65rem!important;margin-top:.2rem!important}.summary-chart-card{border-radius:.625rem!important;margin-bottom:0!important;padding:.875rem!important}.summary-chart-card-header{flex-wrap:wrap!important;gap:.5rem!important;margin-bottom:.75rem!important}.summary-chart-card-header h2{font-size:1rem!important;line-height:1.3!important}.aging-chart-card .compact-aging-chart,.compact-salesperson-chart{height:200px!important}.chart-filters-indicator{border-radius:.625rem!important;box-sizing:border-box!important;flex-direction:column!important;gap:.75rem!important;margin-bottom:.75rem!important;padding:.75rem!important;width:100%!important}.active-filters{width:100%}.filter-badge{font-size:12px!important;padding:6px 10px!important}.clear-filters-button{font-size:13px!important;padding:8px 12px!important;width:100%!important}.charts-row{gap:1rem!important;grid-template-columns:1fr!important}.chart-container{padding:1rem!important}.chart-title{font-size:1.1rem!important}.chart-container .recharts-wrapper{font-size:.7rem!important}.table-view-controls{align-items:stretch!important;border-radius:.5rem!important;box-sizing:border-box!important;margin-bottom:.5rem!important;padding:.5rem!important}.table-view-controls,.view-controls-left,.view-controls-right{flex-direction:column!important;gap:.5rem!important;width:100%!important}.group-by-select{background:#fff!important;border:1px solid #d1d5db!important;border-radius:.5rem!important;min-width:100%!important}.group-by-select,.view-toggle{font-size:.875rem!important;padding:.75rem .875rem!important;width:100%!important}.view-toggle{text-align:center!important}.clear-filters-button,.export-button,.view-toggle{border-radius:.5rem!important;font-weight:500!important}.clear-filters-button,.export-button{font-size:.875rem!important;padding:.75rem .875rem!important;width:100%!important}.table-container{-webkit-overflow-scrolling:touch!important;border:1px solid #e2e8f0!important;border-radius:.5rem!important;box-shadow:0 1px 3px #0000001a!important;margin:0!important;max-height:calc(100vh - 200px)!important;min-height:250px!important;overflow-x:auto!important;width:100%!important}.receivables-table{font-size:.7rem!important;min-width:650px!important;width:100%!important}.receivables-table th{font-size:.625rem!important;letter-spacing:.02em!important;padding:.5rem .375rem!important;white-space:nowrap!important}.receivables-table td{font-size:.7rem!important;line-height:1.3!important;padding:.625rem .375rem!important}.receivables-table td:first-child,.receivables-table th:first-child{max-width:40px!important;min-width:40px!important;width:40px!important}.receivables-table td:nth-child(2),.receivables-table th:nth-child(2){min-width:100px!important;width:15%!important}.receivables-table td:nth-child(3),.receivables-table th:nth-child(3){min-width:90px!important;width:12%!important}.receivables-table td:nth-child(4),.receivables-table td:nth-child(5),.receivables-table th:nth-child(4),.receivables-table th:nth-child(5){min-width:80px!important;width:9%!important}.receivables-table td:nth-child(6),.receivables-table th:nth-child(6){min-width:100px!important;width:12%!important}.receivables-table td:last-child,.receivables-table th:last-child{min-width:90px!important;width:12%!important}.table-pagination{background:#f8fafc!important;flex-direction:column!important;gap:.5rem!important;padding:.75rem .5rem!important}.pagination-controls{flex-wrap:wrap!important;gap:.375rem!important;justify-content:center!important;width:100%!important}.pagination-button{min-width:40px!important}.pagination-button,.pagination-select{border-radius:.375rem!important;font-size:.8125rem!important;padding:.5rem .75rem!important}.pagination-select{min-width:100px!important}.refresh-button,.settings-button{border-radius:8px!important;font-size:14px!important;font-weight:500!important;justify-content:center!important;padding:.75rem 1rem!important;width:100%!important}.refresh-button{background:linear-gradient(135deg,#2563eb,#1d4ed8)!important;border:none!important;color:#fff!important}.salesperson-config-button{border-radius:.5rem!important;font-size:.875rem!important;font-weight:500!important;margin-top:0!important;padding:.75rem!important;width:100%!important}.summary-cards-single{display:flex!important;flex-direction:column!important;gap:.75rem!important;width:100%!important}.compact-aging-chart svg,.compact-salesperson-chart svg{height:auto!important;max-width:100%!important}.nested-details-table td.text-right,.receivables-table td.text-right{overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}.table-container:after{background:#3b82f6e6!important;border-radius:9999px!important;bottom:10px!important;color:#fff!important;content:"← Scroll →"!important;font-size:.6875rem!important;font-weight:500!important;left:50%!important;opacity:0!important;padding:.375rem .75rem!important;pointer-events:none!important;position:-webkit-sticky!important;position:sticky!important;transform:translateX(-50%)!important;transition:opacity .3s!important;z-index:10!important}.table-container:hover:after{opacity:1!important}.drilldown-modal-overlay{align-items:flex-start!important;padding:1rem .5rem .5rem!important}.drilldown-modal{border-radius:.75rem!important;margin:auto!important;max-height:95vh!important;max-width:95%!important;width:95%!important}.drilldown-modal-header{border-radius:.75rem .75rem 0 0!important;padding:.875rem!important}.drilldown-modal-header h2{font-size:1.1rem!important;line-height:1.3!important}.drilldown-close-btn{font-size:1.5rem!important;height:28px!important;width:28px!important}.drilldown-modal-body{-webkit-overflow-scrolling:touch!important;max-height:calc(95vh - 120px)!important;overflow-y:auto!important;padding:.875rem!important}.drilldown-info{border-radius:.5rem!important;margin-bottom:1rem!important;padding:.75rem!important}.drilldown-info p{font-size:.8rem!important;line-height:1.4!important;margin:.375rem 0!important}.drilldown-table-container{-webkit-overflow-scrolling:touch!important;border-radius:.5rem!important;overflow-x:auto!important}.drilldown-table{font-size:.8rem!important;min-width:500px!important}.drilldown-table th{font-size:.75rem!important;padding:.5rem!important}.drilldown-table td{font-size:.8rem!important;padding:.5rem!important}.drilldown-loading-container{min-height:200px!important;padding:2rem 1rem!important}.drilldown-loading-spinner{height:50px!important;margin-bottom:1rem!important;width:50px!important}.drilldown-loading-text{font-size:.9rem!important}.voucher-details-modal{max-width:95%!important;padding:0!important;width:95%!important}.voucher-info-card{border-radius:.5rem!important;margin-bottom:1rem!important;padding:.75rem!important}.voucher-info-row{flex-direction:column!important;gap:.5rem!important;margin-bottom:.375rem!important}.voucher-info-item{font-size:.8rem!important}.voucher-section{margin-bottom:1.5rem!important}.voucher-section-title{font-size:.9rem!important;margin-bottom:.75rem!important;padding-bottom:.375rem!important}.voucher-table-container{-webkit-overflow-scrolling:touch!important;border-radius:.5rem!important;overflow-x:auto!important}.voucher-table{font-size:.8rem!important;min-width:500px!important}.voucher-table th{font-size:.75rem!important;padding:.5rem!important}.voucher-table td{font-size:.8rem!important;padding:.5rem!important}.inventory-table{font-size:.75rem!important}.inventory-table th{font-size:.7rem!important;padding:.375rem!important}.inventory-table td{font-size:.75rem!important;padding:.375rem!important}.config-panel-content{gap:.375rem!important;max-height:250px!important}.config-checkbox-label span{font-size:.8rem!important}.config-info{font-size:.75rem!important}.salesperson-config-panel{border-radius:.625rem!important;margin-bottom:1rem!important;padding:1rem!important}.config-panel-header{margin-bottom:.75rem!important;padding-bottom:.75rem!important}.config-panel-header h3{font-size:1rem!important}.config-checkbox-label{font-size:.8rem!important;padding:.375rem!important}.error-container{border-radius:.625rem!important;margin:1rem!important;padding:1rem!important}.error-container h2{font-size:1rem!important;margin-bottom:.5rem!important}.error-container p{font-size:.85rem!important;margin-bottom:.75rem!important}.empty-state{min-height:300px!important;padding:2rem 1rem!important}.empty-state p{font-size:.95rem!important}.loading-container{min-height:300px!important;padding:2rem 1rem!important}.loading-spinner{border-width:3px!important;height:40px!important;margin-bottom:.75rem!important;width:40px!important}.loading-container p{font-size:.9rem!important}.drilldown-modal[style*="max-width: 95%"]{max-width:95%!important;width:95%!important}.drilldown-modal-header[style*="background-color: #2563eb"]{padding:.875rem!important}.drilldown-modal-header[style*="background-color: #2563eb"] h2{font-size:1.1rem!important}.drilldown-modal-header[style*="background-color: #2563eb"] div[style*="marginTop: 0.5rem"]{font-size:.8rem!important;margin-top:.375rem!important}.drilldown-modal-body[style*="padding: 1rem"]{max-height:calc(95vh - 180px)!important;padding:.875rem!important}.customer-treemap-section{border-radius:.625rem!important;padding:1rem!important}.customer-treemap-section h2{font-size:1.25rem!important;margin-bottom:1rem!important}.table-view-controls{background:#f8fafc!important;border-radius:.625rem!important;margin-bottom:.75rem!important;padding:.75rem!important}.pagination-info{color:#6b7280!important;font-size:.75rem!important;text-align:center!important;width:100%!important}.column-filter,.dropdown-search-input{font-size:.75rem!important;min-height:36px!important;padding:.5rem .625rem!important;touch-action:manipulation!important}.dropdown-options{font-size:.75rem!important;max-height:180px!important}.dropdown-option{align-items:center!important;display:flex!important;font-size:.75rem!important;min-height:40px!important;padding:.625rem .75rem!important}.row-options-cell{padding:.375rem!important;width:40px!important}.row-options-icon{align-items:center!important;display:flex!important;height:32px!important;justify-content:center!important;width:32px!important}.row-options-menu{left:auto!important;max-width:90vw!important;min-width:200px!important;right:0!important}.row-options-menu-item{align-items:center!important;display:flex!important;font-size:.875rem!important;min-height:44px!important;padding:.875rem 1rem!important}.filter-clear-icon,.sort-button{min-height:28px!important;min-width:28px!important;touch-action:manipulation!important}.filter-clear-icon{font-size:1.125rem!important}.expand-icon{font-size:.875rem!important;padding:.5rem!important}.customer-summary-row{min-height:44px!important}.currency-value,.customer-name{font-size:.8125rem!important}.details-container{border-left:3px solid #3b82f6!important;max-height:350px!important}.view-toggle{touch-action:manipulation!important;transition:all .2s ease!important}.view-toggle:active{transform:scale(.98)!important}}.salesperson-config-panel{background:#fff;border:1px solid #e2e8f0;border-radius:.75rem;box-shadow:0 1px 3px 0 #0000001a,0 1px 2px 0 #0000000f;margin-bottom:1.5rem;padding:1.5rem;transition:all .2s ease}.config-panel-header{align-items:center;border-bottom:1px solid #e2e8f0;display:flex;justify-content:space-between;margin-bottom:1rem;padding-bottom:1rem}.config-panel-header h3{color:#1a202c;font-size:1.125rem;font-weight:600;margin:0}.config-panel-actions{display:flex;gap:.5rem}.config-action-button{background-color:#f7fafc;border:1px solid #e2e8f0;border-radius:.375rem;color:#2d3748;cursor:pointer;font-size:.875rem;font-weight:500;padding:.375rem .75rem;transition:all .2s}.config-action-button:hover:not(:disabled){background-color:#edf2f7;border-color:#cbd5e0}.config-action-button:disabled{cursor:not-allowed;opacity:.5}.config-panel-content{display:flex;flex-direction:column;gap:.5rem;margin-bottom:1rem;max-height:300px;overflow-y:auto}.config-checkbox-label{border-radius:.375rem;gap:.75rem;padding:.5rem;transition:background-color .2s}.config-checkbox-label:hover{background-color:#f7fafc}.config-checkbox{accent-color:#3182ce;cursor:pointer;height:18px;width:18px}.config-checkbox-label span{color:#2d3748;font-size:.875rem;-webkit-user-select:none;user-select:none}.config-panel-footer{border-top:1px solid #e2e8f0;padding-top:1rem}.config-info{color:#718096;font-size:.875rem;font-style:italic}.bill-row-clickable{transition:background-color .2s}.bill-row-clickable:hover{background-color:#e6f3ff!important}.drilldown-modal-overlay{-webkit-overflow-scrolling:touch;align-items:center;background-color:#00000080;bottom:0;display:flex;justify-content:center;left:0;overflow-y:auto;overscroll-behavior:contain;padding:2rem;position:fixed;right:0;top:0;z-index:2000}.drilldown-modal{background:#fff;border-radius:.75rem;box-shadow:0 20px 25px -5px #0000001a,0 10px 10px -5px #0000000a;display:flex;flex-direction:column;max-height:90vh;max-width:70vw;overflow:hidden;width:100%}.drilldown-modal-header{align-items:center;border-bottom:1px solid #e2e8f0;display:flex;justify-content:space-between;padding:1.5rem}.drilldown-modal-header h2{color:#1a202c;font-size:1.5rem;font-weight:600;margin:0}.drilldown-close-btn{align-items:center;background:none;border:none;border-radius:.25rem;color:#718096;cursor:pointer;display:flex;font-size:2rem;height:32px;justify-content:center;padding:0;transition:all .2s;width:32px}.drilldown-close-btn:hover{background-color:#f7fafc;color:#2d3748}.drilldown-modal-body{flex:1 1;overflow-y:auto;padding:1.5rem}.drilldown-info{background:#f7fafc;border:1px solid #e2e8f0;border-radius:.5rem;margin-bottom:1.5rem;padding:1rem;transition:all .2s ease}.drilldown-info p{color:#4a5568;font-size:.875rem;margin:.5rem 0}.drilldown-info p:first-child{margin-top:0}.drilldown-info p:last-child{margin-bottom:0}.drilldown-info strong{color:#2d3748;font-weight:600}.customer-balance-display{margin:.5rem 0}.customer-balance-display strong{color:#2d3748;font-weight:600}.balance-amount{color:#dc2626;font-weight:600}.drilldown-table-container{border:1px solid #e2e8f0;border-radius:.5rem;overflow-x:auto}.drilldown-table{background:#fff;border-collapse:collapse;width:100%}.drilldown-table thead{background-color:#f7fafc;position:-webkit-sticky;position:sticky;top:0}.drilldown-table th{border-bottom:2px solid #e2e8f0;color:#2d3748;font-weight:600;letter-spacing:.05em;text-align:left;text-transform:uppercase}.drilldown-table td,.drilldown-table th{font-size:.875rem;padding:.5rem .75rem;white-space:nowrap}.drilldown-table td{border-bottom:1px solid #e2e8f0;color:#4a5568}.drilldown-table tbody tr:hover{background-color:#f7fafc}.drilldown-table tbody tr:last-child td{border-bottom:none}.drilldown-table tbody tr.clickable-row{cursor:pointer;transition:background-color .2s}.drilldown-table tbody tr.clickable-row:hover{background-color:#edf2f7}.voucher-details-modal{max-width:80vw}.voucher-info-card{background:#f7fafc;border:1px solid #e2e8f0;border-radius:.5rem;margin-bottom:1.5rem;padding:1rem;transition:all .2s ease}.voucher-info-row{display:flex;gap:2rem;margin-bottom:.5rem}.voucher-info-row:last-child{margin-bottom:0}.voucher-info-item{color:#4a5568;font-size:.875rem}.voucher-info-item strong{color:#2d3748;font-weight:600;margin-right:.5rem}.voucher-section{margin-bottom:2rem}.voucher-section:last-child{margin-bottom:0}.voucher-section-title{align-items:center;border-bottom:2px solid #e2e8f0;color:#2d3748;display:flex;font-size:1rem;font-weight:600;margin-bottom:1rem;padding-bottom:.5rem}.voucher-table-container{-webkit-overflow-scrolling:touch;border:1px solid #e2e8f0;border-radius:.5rem;overflow-x:auto;transition:all .2s ease}.voucher-table{background:#fff;border-collapse:collapse;width:100%}.voucher-table thead{background-color:#f7fafc}.voucher-table th{border-bottom:2px solid #e2e8f0;color:#2d3748;font-weight:600;letter-spacing:.05em;text-align:left;text-transform:uppercase}.voucher-table td,.voucher-table th{font-size:.875rem;padding:.5rem .75rem;white-space:nowrap}.voucher-table td{border-bottom:1px solid #e2e8f0;color:#4a5568}.voucher-table tbody tr:last-child td{border-bottom:none}.sub-entry-row{background-color:#f9fafb}.sub-entry-row td{padding-bottom:.75rem;padding-top:.75rem}.sub-entry-label{color:#2d3748;font-size:.875rem;font-weight:600;margin-bottom:.5rem}.sub-entry-item{color:#4a5568;font-size:.875rem;padding:.25rem 0}.inventory-table{background:#fff;border-collapse:collapse;margin-top:.5rem;width:100%}.inventory-table thead{background-color:#edf2f7}.inventory-table th{color:#2d3748;font-weight:600;text-align:left}.inventory-table td,.inventory-table th{border-bottom:1px solid #e2e8f0;font-size:.8125rem;padding:.375rem .5rem;white-space:nowrap}.inventory-table td{color:#4a5568}.inventory-table tbody tr:last-child td{border-bottom:none}.row-options-cell{-webkit-tap-highlight-color:transparent;cursor:pointer;padding:.5rem!important;position:relative;text-align:center;-webkit-user-select:none;user-select:none;width:48px}.row-options-icon{align-items:center;border-radius:999px;color:#718096;display:inline-flex;height:28px;justify-content:center;transition:color .2s,background-color .2s;width:28px}.row-options-icon:hover{background-color:#e6f3ff;color:#3182ce}.row-options-menu{background:#fff;border:1px solid #e2e8f0;border-radius:.5rem;box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -1px #0000000f;left:0;margin-top:.25rem;min-width:180px;overflow:hidden;position:absolute;top:100%;z-index:1000}.row-options-menu-item{border-bottom:1px solid #f7fafc;color:#4a5568;cursor:pointer;font-size:.875rem;padding:.75rem 1rem;transition:background-color .15s}.row-options-menu-item:last-child{border-bottom:none}.row-options-menu-item:hover{background-color:#f7fafc;color:#2d3748}.drilldown-table td.text-right,.drilldown-table th.text-right{text-align:right}.drilldown-loading-container{align-items:center;display:flex;flex-direction:column;justify-content:center;min-height:200px;padding:4rem 2rem}.drilldown-loading-spinner{height:60px;margin-bottom:1.5rem;position:relative;width:60px}.spinner-ring{animation:spin 1s linear infinite;border:4px solid #0000;border-radius:50%;border-top-color:#3182ce;height:100%;position:absolute;width:100%}.spinner-ring:first-child{animation-delay:0s;border-top-color:#3182ce}.spinner-ring:nth-child(2){animation-delay:.2s;border-top-color:#60a5fa;height:80%;left:10%;top:10%;width:80%}.spinner-ring:nth-child(3){animation-delay:.4s;border-top-color:#93c5fd;height:60%;left:20%;top:20%;width:60%}.drilldown-loading-text{animation:pulse 1.5s ease-in-out infinite;color:#4a5568;font-size:1rem;font-weight:500;margin:0}@keyframes pulse{0%,to{opacity:1}50%{opacity:.5}}@media (max-width:375px){.receivables-page{padding:.375rem!important}.page-header h1{font-size:1.125rem!important}.subtitle{font-size:.8125rem!important}.summary-tile{padding:.75rem!important}.summary-tile .summary-value{font-size:1.25rem!important}.receivables-table{font-size:.6875rem!important;min-width:600px!important}.nested-details-table th,.receivables-table th{font-size:.5625rem!important;padding:.375rem .25rem!important}.nested-details-table td,.receivables-table td{font-size:.6875rem!important;padding:.5rem .25rem!important}.pagination-button,.pagination-select{font-size:.75rem!important;padding:.375rem .5rem!important}.filter-badge{font-size:.6875rem!important;padding:.375rem .5rem!important}}.receipt-list-container{background:#0000;box-sizing:border-box;min-height:100vh;width:100%}.receipt-list-content{box-sizing:border-box;font-family:Segoe UI,Roboto,Arial,sans-serif;margin:0 auto;max-width:1200px;overflow-x:hidden;padding:24px;width:100%}.receipt-header-section{border-bottom:2px solid #e5e7eb;margin-bottom:32px;padding-bottom:24px}.receipt-main-title{align-items:center;color:#1e293b;display:flex;flex-wrap:wrap;font-size:28px;font-weight:700;gap:12px;margin:0}.receipt-subtitle{color:#64748b;font-size:16px;margin-bottom:16px;margin-left:44px;margin-top:8px}.receipt-header-actions{align-items:center;display:flex;flex-wrap:wrap;gap:12px;margin-top:16px}.header-action-button{align-items:center;background-color:#fff;border:1px solid #e2e8f0;border-radius:8px;box-shadow:0 1px 2px #0000000d;color:#475569;cursor:pointer;display:flex;font-size:14px;font-weight:500;gap:6px;padding:8px 16px;transition:all .2s}.header-action-button:hover{background-color:#f8fafc;border-color:#cbd5e1;color:#334155}.date-filter-section{background-color:#fff;border:1px solid #e2e8f0;border-radius:12px;box-shadow:0 1px 3px #0000001a;margin-bottom:24px;padding:24px}.date-inputs{align-items:flex-end;display:flex;flex-wrap:wrap;gap:16px;width:100%}.date-input-group{display:flex;flex-direction:column;gap:8px}.date-label{color:#333;font-size:14px;font-weight:600}.date-input{border:1px solid #ddd;border-radius:6px;font-size:16px;min-width:180px;padding:10px 12px}.date-input:focus{border-color:#007aff;outline:none}.date-input:disabled{background-color:#f5f5f5;cursor:not-allowed}.search-button{background-color:#007aff;border:none;border-radius:6px;color:#fff;cursor:pointer;font-size:16px;font-weight:600;height:-webkit-fit-content;height:fit-content;padding:10px 24px;transition:background-color .2s}.search-button:hover:not(:disabled){background-color:#0056b3}.search-button:disabled{cursor:not-allowed;opacity:.6}.load-cache-button{align-items:center;background-color:#6f42c1;border:none;border-radius:6px;color:#fff;cursor:pointer;display:inline-flex;font-size:14px;font-weight:600;gap:8px;padding:10px 20px;transition:background-color .2s;white-space:nowrap}.load-cache-button:hover{background-color:#5a32a3}.clear-cache-button{align-items:center;background-color:#dc3545;border:none;border-radius:6px;color:#fff;cursor:pointer;display:inline-flex;font-size:14px;font-weight:600;gap:8px;padding:10px 20px;transition:background-color .2s;white-space:nowrap}.clear-cache-button:hover{background-color:#c82333}.modal-overlay{align-items:center;background-color:#00000080}.modal-content{background-color:#fff;border-radius:8px;box-shadow:0 4px 20px #0000004d;display:flex;flex-direction:column;max-height:80vh;max-width:600px;width:90%}.modal-header{align-items:center;border-bottom:1px solid #dee2e6;display:flex;justify-content:space-between;padding:20px}.modal-header h2{color:#333;font-size:20px;margin:0}.modal-close-button{align-items:center;background:none;border:none;border-radius:4px;color:#666;cursor:pointer;display:flex;font-size:24px;height:30px;justify-content:center;padding:0;transition:background-color .2s;width:30px}.modal-close-button:hover{background-color:#f0f0f0}.modal-body{flex:1 1;overflow-y:auto;padding:20px}.modal-footer{border-top:1px solid #dee2e6;display:flex;gap:12px;justify-content:flex-end;padding:20px}.excluded-strings-input-section{display:flex;gap:8px;margin-bottom:20px}.excluded-string-input{border:1px solid #ddd;border-radius:4px;flex:1 1;font-size:14px;padding:10px}.excluded-string-input:focus{border-color:#007bff;outline:none}.add-excluded-button{background-color:#28a745;border:none;border-radius:4px;color:#fff;cursor:pointer;font-size:14px;font-weight:600;padding:10px 20px;transition:background-color .2s}.add-excluded-button:hover:not(:disabled){background-color:#218838}.add-excluded-button:disabled{cursor:not-allowed;opacity:.6}.excluded-strings-list{background-color:#f8f9fa;border:1px solid #ddd;border-radius:4px;max-height:400px;overflow-y:auto;padding:12px}.excluded-string-item{align-items:center;background-color:#fff;border:1px solid #e0e0e0;border-radius:4px;display:flex;justify-content:space-between;margin-bottom:8px;padding:10px}.excluded-string-item:last-child{margin-bottom:0}.excluded-string-text{color:#333;flex:1 1;font-size:14px;word-break:break-word}.remove-excluded-button{align-items:center;background-color:#dc3545;border:none;border-radius:4px;color:#fff;cursor:pointer;display:flex;flex-shrink:0;font-size:16px;height:28px;justify-content:center;margin-left:12px;transition:background-color .2s;width:28px}.remove-excluded-button:hover{background-color:#c82333}.reset-excluded-button{background-color:#ffc107;border:none;border-radius:4px;color:#333;cursor:pointer;font-size:14px;font-weight:600;padding:10px 20px;transition:background-color .2s}.reset-excluded-button:hover{background-color:#e0a800}.close-modal-button{background-color:#007bff;color:#fff;font-size:14px;font-weight:600;padding:10px 20px}.close-modal-button:hover{background-color:#0056b3}.loading-progress{border-top:1px solid #eee;margin-top:20px;padding-top:20px}.loading-progress p{color:#666;font-size:14px;margin:0 0 12px}.progress-bar{background-color:#e9ecef;border-radius:4px;height:8px;overflow:hidden;width:100%}.progress-fill{background-color:#007aff;height:100%;transition:width .3s ease}.error-message{background-color:#f8d7da;border:1px solid #f5c6cb;border-radius:6px;color:#721c24;margin-bottom:24px;padding:16px}.error-message p{margin:0}.empty-state{color:#666;padding:40px;text-align:center}.empty-state,.receipts-summary{background-color:#fff;border:1px solid #e2e8f0;border-radius:12px;box-shadow:0 1px 3px #0000001a}.receipts-summary{margin-bottom:16px;padding:16px}.download-button{align-items:center;background-color:#17a2b8;border:none;border-radius:6px;color:#fff;cursor:pointer;display:inline-flex;font-size:14px;font-weight:600;gap:8px;padding:10px 20px;transition:background-color .2s;white-space:nowrap}.download-button:hover:not(:disabled){background-color:#138496}.download-button:disabled{cursor:not-allowed;opacity:.6}.find-all-button{background-color:#28a745;border:none;border-radius:6px;color:#fff;cursor:pointer;font-size:14px;font-weight:600;padding:10px 20px;transition:background-color .2s;white-space:nowrap}.find-all-button:hover:not(:disabled){background-color:#218838}.find-all-button:disabled{cursor:not-allowed;opacity:.6}.clear-find-all-button{background-color:#6c757d;border:none;border-radius:6px;color:#fff;cursor:pointer;font-size:14px;font-weight:600;padding:10px 20px;transition:background-color .2s;white-space:nowrap}.clear-find-all-button:hover{background-color:#5a6268}.filters-section{box-shadow:0 1px 3px #0000001a;margin-bottom:16px}.clear-filters-button{white-space:nowrap}.no-results{background-color:#fff;border:1px solid #e2e8f0;border-radius:12px;box-shadow:0 1px 3px #0000001a;color:#666;padding:40px;text-align:center}.receipts-summary p{color:#666;font-size:14px;margin:0}.receipts-table-container{-webkit-overflow-scrolling:touch;background-color:#fff;border:1px solid #e2e8f0;border-radius:12px;box-shadow:0 1px 3px #0000001a;overflow:hidden;overflow-x:auto;scroll-behavior:smooth}.receipts-table{border-collapse:collapse;width:100%}.receipts-table thead{background-color:#f8f9fa}.receipts-table th{border-bottom:2px solid #dee2e6;color:#333;font-weight:600;padding:12px 16px;text-align:left;white-space:nowrap}.receipts-table td{border-bottom:1px solid #dee2e6;color:#666;padding:12px 16px}.receipts-table tbody tr:hover{background-color:#f8f9fa}.receipts-table tbody tr.ledger-receipt-row{background-color:#fff9e6}.receipts-table tbody tr.ledger-receipt-row:hover{background-color:#ffeaa7}.receipts-table tbody tr:last-child td{border-bottom:none}.amount-cell{color:#333;font-weight:600;text-align:right}.narration-cell,.narration-wrap{word-wrap:break-word;max-width:400px;white-space:normal;word-break:break-word}.narration-wrap{line-height:1.5}.actions-cell{text-align:center;white-space:nowrap}.find-matches-button{background-color:#28a745;border:none;border-radius:4px;color:#fff;cursor:pointer;font-size:12px;font-weight:600;padding:6px 12px;transition:background-color .2s}.find-matches-button:hover{background-color:#218838}.matches-container{background-color:#f8f9fa;border-top:2px solid #dee2e6;padding:0!important}.matches-header{background-color:#e9ecef;border-bottom:1px solid #dee2e6;color:#495057;padding:12px 16px}.matches-table-wrapper{max-height:400px;overflow-y:auto;padding:16px}.matches-table{background-color:#fff;border-collapse:collapse;border-radius:4px;overflow:hidden;width:100%}.matches-table thead{background-color:#e9ecef}.matches-table th{border-bottom:1px solid #dee2e6;color:#495057;font-size:13px;font-weight:600;padding:8px 12px;text-align:left}.matches-table td{border-bottom:1px solid #f0f0f0;color:#666;font-size:13px;padding:8px 12px}.matches-table tbody tr:hover{background-color:#f8f9fa}.matches-table tbody tr:last-child td{border-bottom:none}.no-matches{color:#6c757d;font-style:italic;padding:20px;text-align:center}.no-matches p{margin:0}.highlighted-word{background-color:#ffeb3b;border-radius:3px;color:#000;font-weight:600;padding:2px 4px}.clickable-highlight{border-bottom:1px dashed #ff9800;cursor:pointer;transition:all .2s}.clickable-highlight:hover{background-color:#ff9800;box-shadow:0 2px 4px #0003;color:#fff;transform:scale(1.05)}.pagination{align-items:center;background-color:#fff;border:1px solid #e2e8f0;border-radius:12px;box-shadow:0 1px 3px #0000001a;display:flex;gap:16px;justify-content:center;margin-top:24px;padding:16px}.pagination-button{background-color:#007aff;border:none;border-radius:6px;color:#fff;cursor:pointer;font-size:14px;font-weight:600;padding:8px 16px;transition:background-color .2s}.pagination-button:hover:not(:disabled){background-color:#0056b3}.pagination-button:disabled{cursor:not-allowed;opacity:.5}.pagination-info{color:#666;font-size:14px;font-weight:600}@media (max-width:768px){.receipt-list-container{max-width:100vw;overflow-x:hidden;width:100vw}.receipt-header-section{margin-bottom:24px!important;padding-bottom:16px!important}.receipt-main-title{font-size:22px!important;gap:8px!important}.receipt-subtitle{font-size:14px!important;margin-left:0!important;margin-top:8px!important}.receipt-header-actions{gap:8px!important;margin-top:12px!important}.header-action-button{flex:1 1 auto!important;font-size:13px!important;min-width:0!important;padding:10px 12px!important}.receipt-list-content{box-sizing:border-box!important;max-width:100%!important;overflow-x:hidden!important;padding:16px 12px!important;width:100%!important}.date-filter-section{border-radius:12px!important;margin-bottom:16px!important;padding:16px!important}.date-filter-section h3{font-size:14px!important;margin-bottom:12px!important}.date-inputs{align-items:stretch!important;flex-direction:column!important;gap:12px!important}.date-input-group{width:100%!important}.date-label{font-size:13px!important;margin-bottom:4px!important}.date-input{box-sizing:border-box!important;font-size:16px!important;min-width:0!important;padding:10px 12px!important;width:100%!important}.clear-cache-button,.download-button,.load-cache-button,.search-button{font-size:14px!important;justify-content:center!important;padding:12px 16px!important;width:100%!important}.cache-info{font-size:12px!important;line-height:1.5!important;padding:12px!important}.receipts-summary{margin-bottom:12px!important;padding:12px!important}.receipts-summary>div{flex-direction:column!important;gap:12px!important}.receipts-summary p{font-size:13px!important;line-height:1.4!important}.clear-find-all-button,.find-all-button{font-size:14px!important;padding:10px 16px!important;width:100%!important}.filters-section{margin-bottom:12px!important;padding:16px!important}.filter-row{flex-direction:column!important;gap:12px!important}.filter-group{min-width:0!important;width:100%!important}.filter-label{font-size:12px!important;margin-bottom:4px!important}.filter-input,.filter-select{box-sizing:border-box!important;font-size:14px!important;min-width:0!important;padding:10px 12px!important;width:100%!important}.clear-filters-button{font-size:14px!important;padding:10px 16px!important;width:100%!important}.receipts-table-container{-webkit-overflow-scrolling:touch!important;border-radius:8px!important;overflow-x:auto!important}.receipts-table{font-size:13px!important;min-width:700px!important}.receipts-table th{font-size:11px!important;padding:10px 8px!important;white-space:nowrap!important}.receipts-table td{padding:10px 8px!important}.amount-cell,.receipts-table td{font-size:12px!important}.narration-cell{font-size:11px!important;line-height:1.4!important;max-width:200px!important}.find-matches-button{font-size:11px!important;min-width:70px!important;padding:8px 12px!important;white-space:nowrap!important}.matches-container{padding:0!important}.matches-header{font-size:13px!important;padding:10px 12px!important}.matches-table-wrapper{-webkit-overflow-scrolling:touch!important;max-height:300px!important;overflow-x:auto!important;padding:12px!important}.matches-table{font-size:12px!important;min-width:600px!important}.matches-table th{font-size:10px!important;padding:8px 6px!important}.matches-table td{font-size:11px!important;padding:8px 6px!important}.matches-table .narration-cell{font-size:10px!important;max-width:150px!important}.pagination{flex-direction:column!important;gap:12px!important;padding:12px!important}.pagination-button{font-size:14px!important;padding:10px 16px!important;width:100%!important}.pagination-info{font-size:13px!important;text-align:center!important}.modal-overlay{-webkit-overflow-scrolling:touch!important;align-items:flex-start!important;overflow-y:auto!important;padding:0!important}.modal-content{border-radius:0!important;margin:0!important;max-height:100vh!important;max-width:100%!important;width:100%!important}.modal-header{background:#fff!important;border-bottom:1px solid #dee2e6!important;padding:16px!important;position:-webkit-sticky!important;position:sticky!important;top:0!important;z-index:10!important}.modal-header h2{font-size:18px!important}.modal-close-button{font-size:20px!important;height:36px!important;width:36px!important}.modal-body{max-height:calc(100vh - 120px)!important;overflow-y:auto!important;padding:16px!important}.modal-footer{background:#fff!important;border-top:1px solid #dee2e6!important;bottom:0!important;flex-direction:column!important;gap:8px!important;padding:16px!important;position:-webkit-sticky!important;position:sticky!important}.close-modal-button,.reset-excluded-button{font-size:14px!important;padding:12px 16px!important;width:100%!important}.excluded-strings-input-section{flex-direction:column!important;gap:8px!important}.excluded-string-input{padding:10px 12px!important}.add-excluded-button,.excluded-string-input{font-size:14px!important;width:100%!important}.add-excluded-button{padding:10px 16px!important}.excluded-strings-list{max-height:300px!important;padding:10px!important}.excluded-string-item{align-items:flex-start!important;flex-direction:column!important;gap:8px!important;padding:12px!important}.excluded-string-text{font-size:13px!important;width:100%!important}.remove-excluded-button{align-self:flex-end!important;height:32px!important;margin-left:0!important;width:32px!important}.loading-progress{margin-top:12px!important;padding:12px!important}.loading-progress p{font-size:13px!important}.progress-bar{height:6px!important}.error-message{font-size:13px!important;margin-bottom:16px!important;padding:12px!important}.empty-state,.no-results{font-size:14px!important;padding:24px 16px!important}.no-matches{font-size:13px!important;padding:16px!important}.highlighted-word{font-size:11px!important;padding:2px 3px!important}.clickable-highlight{display:inline-block!important;min-height:24px!important}.find-matches-button,.pagination-button,button{-webkit-tap-highlight-color:transparent!important;min-height:44px!important;touch-action:manipulation!important}.date-filter-section>div{font-size:12px!important;margin-top:10px!important}.cache-info br{display:block!important;margin:4px 0!important}}@media (max-width:375px){.receipt-list-content{padding:8px!important}.date-filter-section{padding:12px!important}.date-filter-section h3{font-size:13px!important}.receipts-table{font-size:12px!important;min-width:650px!important}.receipts-table th{font-size:10px!important;padding:8px 6px!important}.receipts-table td{font-size:11px!important;padding:8px 6px!important}.find-matches-button{font-size:10px!important;min-width:60px!important;padding:6px 10px!important}.matches-table{font-size:11px!important;min-width:550px!important}}.company-orders-container{box-sizing:border-box;margin:0;max-width:100%;min-height:100vh;overflow-x:hidden;padding:24px 32px 24px 56px;width:100%}.company-orders-header{align-items:center;background:#fff;border:1px solid #e2e8f0;border-radius:12px;box-shadow:0 1px 3px #0000000d;display:flex;gap:16px;justify-content:space-between;margin-bottom:20px;padding:16px 20px}.company-orders-header .header-info{flex:1 1}.header-title{font-size:24px;font-weight:600;margin:0}.header-subtitle{color:#4a5568;margin:4px 0 0}.header-actions{gap:12px}.header-actions,.view-controls{align-items:center;display:flex}.view-controls{gap:8px}.toggle-button{background-color:#e2e8f0;border:1px solid #cbd5e1;border-radius:6px;color:#1f2937;cursor:pointer;font-size:14px;font-weight:500;padding:8px 16px;transition:all .2s}.toggle-button:hover{background-color:#cbd5e1}.toggle-button.active{background-color:#6366f1;border-color:#6366f1;color:#fff}.group-by-select{background-color:#fff;border:1px solid #cbd5e1;border-radius:6px;color:#1f2937;cursor:pointer;font-size:14px;padding:8px 12px;transition:border-color .2s}.group-by-select:hover{border-color:#6366f1}.group-by-select:focus{border-color:#6366f1;box-shadow:0 0 0 3px #6366f11a;outline:none}.config-button{background-color:#6366f1;border:none;border-radius:6px;color:#fff;cursor:pointer;font-size:14px;font-weight:500;padding:8px 16px;transition:background-color .2s}.config-button:hover{background-color:#4f46e5}.config-button:disabled{background-color:#9ca3af;cursor:not-allowed}.company-orders-summary{grid-gap:12px;display:grid;gap:12px;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));margin-bottom:16px}.summary-card{background:#f8fafc;border-radius:10px;box-shadow:0 1px 3px #0f172a14;padding:14px}.summary-label{color:#64748b;font-size:12px;margin:0;text-transform:uppercase}.summary-value{color:#1f2937;font-size:20px;font-weight:600;margin:4px 0 0}.summary-cards-section{grid-gap:16px;box-sizing:border-box;display:grid;gap:16px;grid-template-columns:repeat(auto-fit,minmax(350px,1fr));margin-bottom:20px;width:100%}.summary-table-card{background:#fff;border:1px solid #e2e8f0;border-radius:12px;box-shadow:0 2px 8px #0f172a14;overflow:hidden;padding:20px;transition:box-shadow .2s ease,transform .2s ease}.summary-table-card:hover{box-shadow:0 4px 12px #0f172a1f;transform:translateY(-2px)}.summary-table{border-collapse:collapse;table-layout:auto;width:100%}.summary-table td,.summary-table th{border-bottom:1px solid #e2e8f0;padding:12px;text-align:right;white-space:nowrap}.summary-table td:first-child,.summary-table th:first-child{text-align:left}.summary-table th{background:#f8fafc;color:#334155;font-size:14px;font-weight:600}.summary-table tbody tr{transition:background-color .2s ease}.summary-table tbody tr:hover{background-color:#f8fafc}.summary-table tbody tr:last-child td{border-bottom:none}.summary-table td{color:#1f2937;font-size:14px}.ageing-chart-card{background:#fff;border:1px solid #e2e8f0;border-radius:12px;box-shadow:0 2px 8px #0f172a14;display:flex;flex-direction:column;min-height:320px;overflow:visible;padding:20px;transition:box-shadow .2s ease,transform .2s ease}.ageing-chart-card:hover{box-shadow:0 4px 12px #0f172a1f;transform:translateY(-2px)}.chart-title{border-bottom:2px solid #f1f5f9;color:#1f2937;flex-shrink:0;font-size:16px;font-weight:600;margin:0 0 16px;padding-bottom:12px}.ageing-chart-wrapper{height:260px;min-height:260px;overflow:visible;position:relative;width:100%}.ageing-chart-wrapper .recharts-legend-wrapper{height:auto!important;margin-top:8px;max-width:100%;position:relative!important;width:100%!important}.ageing-chart-wrapper .recharts-default-legend{display:flex!important;flex-wrap:wrap!important;gap:12px!important;justify-content:center!important;max-width:100%;padding:8px 0!important;width:100%}.ageing-chart-wrapper .recharts-wrapper{height:100%!important;max-width:100%!important;width:100%!important}.ageing-chart-wrapper .recharts-surface{max-width:100%!important;overflow:visible!important;width:100%!important}.ageing-chart-wrapper .recharts-cartesian-axis{font-size:11px}.ageing-chart-wrapper .recharts-bar{overflow:visible}.chart-tooltip{background-color:#0f172a;border-radius:6px;box-shadow:0 8px 20px #0f172a59;color:#fff;display:flex;flex-direction:column;font-size:12px;gap:4px;padding:8px 10px}.chart-tooltip span{color:#e2e8f0;font-size:12px}.chart-value-label{font-size:11px;font-weight:600}.chart-bucket-label{font-size:11px;font-weight:500}.orders-toolbar{background:#fff;border:1px solid #e2e8f0;border-radius:12px;box-shadow:0 2px 8px #0f172a14;justify-content:space-between;margin-bottom:16px;padding:16px 20px}.orders-toolbar,.toolbar-left{align-items:center;display:flex;gap:12px}.toolbar-left{flex-wrap:wrap}.delivery-date-group{align-items:center;display:flex;gap:8px}.delivery-date-label{color:#333;font-size:14px;font-weight:600}.delivery-date-input{border:1px solid #cbd5e0;border-radius:6px;font-size:14px;padding:8px 12px;transition:border-color .2s}.delivery-date-input:focus{border-color:#007aff;outline:none}.delivery-date-input:disabled{background-color:#f1f5f9;cursor:not-allowed}.save-delivery-button{background-color:#28a745;border:none;border-radius:8px;color:#fff;cursor:pointer;font-size:16px;font-weight:600;padding:10px 20px;transition:background-color .2s}.save-delivery-button:hover:not(:disabled){background-color:#218838}.save-delivery-button:disabled{cursor:not-allowed;opacity:.6}.save-error-message{align-items:flex-start;background:linear-gradient(135deg,#fee2e2,#fef2f2);border:1px solid #fca5a5;border-radius:10px;box-shadow:0 2px 4px #dc26261a;display:flex;gap:12px;justify-content:space-between;margin-bottom:16px;padding:14px 16px}.save-error-message p{color:#c00;flex:1 1;font-size:14px;margin:0;white-space:pre-line}.close-error-button{align-items:center;background:none;border:none;color:#c00;cursor:pointer;display:flex;flex-shrink:0;font-size:18px;height:24px;justify-content:center;padding:0;width:24px}.close-error-button:hover{background-color:#cc00001a;border-radius:4px}.orders-count{color:#4b5563;font-size:13px;font-weight:600}.filters-section{background-color:#fff;border:1px solid #e2e8f0;border-radius:12px;box-shadow:0 2px 8px #0f172a14;margin-bottom:20px;padding:20px}.filters-section:hover{box-shadow:0 4px 12px #0f172a1f}.filter-row{align-items:flex-end;display:flex;flex-wrap:wrap;gap:16px}.filter-group{display:flex;flex:1 1;flex-direction:column;gap:6px;min-width:150px}.filter-label{color:#333;font-size:13px;font-weight:600}.filter-input{border:1px solid #ddd;border-radius:6px;font-size:14px;padding:8px 12px;transition:border-color .2s}.filter-input:focus{border-color:#007aff;outline:none}.filter-input::placeholder{color:#999}.filter-select{background-color:#fff;border:1px solid #ddd;border-radius:6px;cursor:pointer;font-size:14px;min-width:200px;padding:8px 12px;transition:border-color .2s}.filter-select:focus{border-color:#007aff;outline:none}.filter-select option{padding:8px}.clear-filters-button{align-self:flex-end;background-color:#6c757d;border:none;border-radius:6px;color:#fff;cursor:pointer;font-size:14px;font-weight:600;height:-webkit-fit-content;height:fit-content;padding:8px 16px;transition:background-color .2s}.clear-filters-button:hover{background-color:#5a6268}.clear-filters-button:disabled{background-color:#cbd5e0;box-shadow:none;color:#f8fafc;cursor:not-allowed}.cell-subtext{color:#64748b;font-size:12px;margin-top:2px}.orders-table-wrapper{background:#fff;border:1px solid #e2e8f0;border-radius:12px;box-shadow:0 2px 8px #0f172a14;margin-bottom:20px;max-width:100%;overflow-x:auto;overflow-y:visible}.orders-table{border-collapse:collapse;min-width:1100px;table-layout:auto;width:100%}.orders-table td,.orders-table th{border-bottom:1px solid #f1f5f9;font-size:14px;padding:12px;text-align:left;text-align:right}.orders-table.detailed-view td:nth-child(4),.orders-table.detailed-view th:nth-child(4){word-wrap:break-word;max-width:180px;min-width:180px;overflow-wrap:break-word;text-align:left;white-space:normal;width:180px;word-break:break-word}.orders-table.summary-view td:first-child,.orders-table.summary-view th:first-child{max-width:140px;min-width:140px;text-align:left;width:140px}.summary-clickable-row{cursor:pointer;transition:background-color .15s ease}.summary-clickable-row:hover{background-color:#f1f5f9}.order-row-clickable{cursor:pointer;transition:background-color .15s ease}.order-row-clickable:hover{background-color:#f1f5f9}.order-row-expanded{background-color:#e0f2fe;cursor:pointer;transition:background-color .15s ease}.order-row-expanded:hover{background-color:#bae6fd}.orders-table.detailed-view td:nth-child(3),.orders-table.detailed-view th:nth-child(3){word-wrap:break-word;max-width:100px;min-width:100px;text-align:left;white-space:normal;width:100px;word-break:break-word}.orders-table.detailed-view td:nth-child(5),.orders-table.detailed-view th:nth-child(5){word-wrap:break-word;max-width:180px;min-width:180px;text-align:left;white-space:normal;width:180px;word-break:break-word}.orders-table.detailed-view td:nth-child(8),.orders-table.detailed-view th:nth-child(8){max-width:70px;min-width:70px;text-align:right;width:70px}.orders-table.detailed-view td:nth-child(9),.orders-table.detailed-view th:nth-child(9){max-width:110px;min-width:110px;text-align:right;width:110px}.orders-table td .quantity-number{display:block;line-height:1.4;text-align:right}.orders-table td .quantity-unit{color:#64748b;display:block;font-size:11px;line-height:1.2;margin-top:2px;text-align:right}.orders-table.detailed-view td:nth-child(6),.orders-table.detailed-view td:nth-child(7),.orders-table.detailed-view th:nth-child(6),.orders-table.detailed-view th:nth-child(7){max-width:100px;min-width:100px;text-align:right;width:100px}.orders-table.detailed-view td:first-child,.orders-table.detailed-view td:nth-child(10),.orders-table.detailed-view th:first-child,.orders-table.detailed-view th:nth-child(10){white-space:nowrap}.orders-table th{background:#f8fafc;color:#334155;font-weight:600}.sortable-header{align-items:flex-end;background:none;border:none;color:inherit;cursor:pointer;display:flex;flex-direction:column;font:inherit;gap:2px;margin:0;padding:0;text-align:right;width:100%}.orders-table.detailed-view th:nth-child(4) .sortable-header,.orders-table.detailed-view th:nth-child(5) .sortable-header,.orders-table.summary-view th:first-child .sortable-header{align-items:flex-start;text-align:left}.sortable-header .sort-indicator{color:#94a3b8;font-size:11px}.sortable-header.asc .sort-indicator,.sortable-header.desc .sort-indicator{color:#111827}.orders-table tfoot{border-top:2px solid #cbd5e0}.orders-table .table-total-row td{background-color:#f8fafc;border-top:2px solid #cbd5e0;font-weight:600;padding:12px;text-align:right}.orders-table .table-total-row td:first-child{padding-right:16px;text-align:right}.orders-table tbody tr:nth-child(2n){background:#fff}.orders-table tbody tr:hover{background:#f1f5f9}.delivery-qty-input{border:1px solid #cbd5e0;border-radius:4px;font-size:14px;min-width:80px;padding:6px 8px;text-align:right;transition:border-color .2s;width:100%}.delivery-qty-input:focus{border-color:#007aff;box-shadow:0 0 0 3px #007aff1a;outline:none}.delivery-qty-input::placeholder{color:#a0aec0}.customer-select-group{align-items:center;display:flex;gap:8px}.customer-select-label{color:#333;font-size:14px;font-weight:600}.customer-select{background-color:#fff;border:1px solid #cbd5e0;border-radius:6px;cursor:pointer;font-size:14px;min-width:200px;padding:8px 12px;transition:border-color .2s}.customer-select:focus{border-color:#007aff;outline:none}.delivery-button-top{align-items:center;background-color:#007aff;border:none;border-radius:8px;color:#fff;cursor:pointer;display:inline-flex;font-size:16px;font-weight:600;justify-content:center;min-width:160px;padding:10px 20px;text-align:center;transition:background-color .2s}.delivery-button-top:hover:not(:disabled){background-color:#0056b3}.delivery-button-top:disabled{background-color:#9ca3af;cursor:not-allowed;opacity:.5}.modal-overlay{align-items:flex-start;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);background-color:#0f172a99;bottom:0;box-sizing:border-box;display:flex;justify-content:center;left:0;overflow-y:hidden;padding:120px 20px 40px;position:fixed;right:0;top:0;z-index:1000}.delivery-modal-overlay-content{background-color:#fff;border-radius:16px;box-shadow:0 20px 60px #0f172a4d,0 0 0 1px #0000000d;display:flex;flex-direction:column;height:calc(100vh - 160px);max-height:calc(100vh - 160px);max-width:1400px;padding:24px;width:min(calc(100vw - 40px),1400px)}.delivery-modal-header{align-items:center;border-bottom:2px solid #f1f5f9;display:flex;justify-content:space-between;margin-bottom:20px;padding-bottom:16px}.delivery-header-actions{align-items:center;display:flex;gap:12px}.zero-availability-toggle{background-color:#f8fafc;border:1px solid #cbd5e1;border-radius:6px;color:#1f2937;cursor:pointer;font-size:13px;font-weight:500;padding:6px 14px;transition:all .2s ease}.zero-availability-toggle:hover{border-color:#6366f1;color:#111827}.zero-availability-toggle.active{background-color:#6366f1;border-color:#6366f1;color:#fff}.delivery-modal-header h2{color:#333;font-size:20px;margin:0}.close-modal-button{background:none;border:none;border-radius:4px;color:#666;cursor:pointer;font-size:20px;padding:4px 8px;transition:background-color .2s}.close-modal-button:hover{background-color:#f1f5f9;color:#333}.delivery-modal-body{display:flex;flex:1 1;flex-direction:column;gap:20px;min-height:0;overflow-x:hidden;overflow-y:hidden}.delivery-info{grid-gap:12px;background:linear-gradient(135deg,#f8fafc,#fff);border:1px solid #e2e8f0;border-radius:10px;box-shadow:0 1px 3px #0f172a14;display:grid;gap:12px;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));padding:16px}.delivery-info p{color:#555;font-size:14px;margin:0}.delivery-info strong{color:#333;margin-right:8px}.delivery-date-label-modal{color:#333;font-size:13px;font-weight:600;white-space:nowrap}.delivery-items-table-wrapper{background:#fff;border:1px solid #e2e8f0;border-radius:10px;box-shadow:0 1px 3px #0f172a14;flex:1 1;margin-bottom:20px;min-height:0;overflow:auto}.batch-error-message{background:linear-gradient(135deg,#fee2e2,#fef2f2);border:1px solid #fca5a5;border-radius:8px;box-shadow:0 1px 3px #dc26261a;color:#b91c1c;padding:10px 14px}.batch-loading-message{background:linear-gradient(135deg,#eef2ff,#f5f7ff);border:1px solid #c7d2fe;border-radius:8px;box-shadow:0 1px 3px #6366f11a;color:#4338ca;font-size:13px;padding:10px 14px}.batch-info-wrapper{margin-top:4px}.batch-info-list{display:flex;flex-direction:column;gap:2px;margin-top:4px}.batch-info-row{color:#475569;display:flex;flex-wrap:wrap;font-size:11px;gap:6px}.batch-godown,.batch-qty{font-weight:600}.batch-qty{color:#0f172a}.batch-delivery-qty-input{background-color:#fff;border:1px solid #cbd5e0;border-radius:4px;font-size:11px;padding:2px 6px;text-align:right;transition:border-color .2s;width:70px}.batch-delivery-qty-input:focus{border-color:#007aff;box-shadow:0 0 0 2px #007aff1a;outline:none}.batch-delivery-qty-input:disabled{background-color:#f1f5f9;cursor:not-allowed}.batch-delivery-qty-input::placeholder{color:#a0aec0;font-size:10px}.batch-qty-button{background-color:#fff;border:1px solid #cbd5e0;border-radius:6px;color:#333;cursor:pointer;font-size:13px;font-weight:500;padding:6px 12px;transition:all .2s;white-space:nowrap}.batch-qty-button:hover:not(:disabled){background-color:#f1f5f9;border-color:#007aff}.batch-qty-button:disabled{background-color:#f1f5f9;cursor:not-allowed;opacity:.6}.batch-divider{color:#cbd5e1}.batch-empty{color:#94a3b8;font-style:italic}.batch-loading-inline{color:#475569;font-style:italic}.delivery-items-table{background-color:#fff;border-collapse:initial;border-spacing:0;position:relative;table-layout:fixed;width:100%}.delivery-items-table thead th{background-color:#f8fafc;box-shadow:0 2px 4px #0000000d;position:-webkit-sticky;position:sticky;top:0;z-index:10}.delivery-items-table th:first-child{width:9%}.delivery-items-table th:nth-child(2){width:11%}.delivery-items-table th:nth-child(3){width:17%}.delivery-items-table th:nth-child(4),.delivery-items-table th:nth-child(5),.delivery-items-table th:nth-child(6){width:8%}.delivery-items-table th:nth-child(7),.delivery-items-table th:nth-child(8){width:10%}.delivery-items-table th:nth-child(9){width:9%}.delivery-items-table th:nth-child(10){width:10%}.delivery-items-table td,.delivery-items-table th{border-bottom:1px solid #f1f5f9;font-size:13px;overflow:hidden;padding:8px 10px;text-align:left;text-overflow:ellipsis;white-space:nowrap}.delivery-items-table td:first-child,.delivery-items-table th:first-child{text-align:right;white-space:nowrap}.delivery-items-table td:nth-child(10),.delivery-items-table td:nth-child(4),.delivery-items-table td:nth-child(5),.delivery-items-table td:nth-child(6),.delivery-items-table td:nth-child(7),.delivery-items-table td:nth-child(8),.delivery-items-table td:nth-child(9),.delivery-items-table th:nth-child(10),.delivery-items-table th:nth-child(4),.delivery-items-table th:nth-child(5),.delivery-items-table th:nth-child(6),.delivery-items-table th:nth-child(7),.delivery-items-table th:nth-child(8),.delivery-items-table th:nth-child(9){text-align:right}.delivery-items-table th{background:#f8fafc;color:#334155;font-weight:600;position:-webkit-sticky;position:sticky;top:0;z-index:10}.delivery-items-table tbody tr:hover{background:#f1f5f9}.delivery-modal-total-row,.delivery-modal-total-row td{background:#f8fafc;border-top:2px solid #cbd5e1}.delivery-modal-total-row td{font-weight:600;padding:12px 10px}.delivery-date-input-modal{font-size:14px;padding:10px 12px}.delivery-date-input-modal,.delivery-qty-input-modal{border:1px solid #cbd5e0;border-radius:6px;transition:border-color .2s}.delivery-qty-input-modal{font-size:13px;max-width:80px;padding:6px 8px;text-align:right;width:100%}.delivery-date-input-modal:focus,.delivery-qty-input-modal:focus{border-color:#007aff;box-shadow:0 0 0 3px #007aff1a;outline:none}.delivery-date-input-modal:disabled,.delivery-qty-input-modal:disabled{background-color:#f1f5f9;cursor:not-allowed}.delivery-qty-input-modal::placeholder{color:#a0aec0}.available-qty-zero{color:#dc2626;font-weight:600}.delivery-detail-section,.delivery-summary-section{margin-bottom:24px}.delivery-summary-section{display:flex;flex:1 1;flex-direction:column;gap:12px;margin-top:16px;min-height:0}.delivery-orders-expanded{background:linear-gradient(135deg,#f8fafc,#fff);border:1px solid #e2e8f0;border-radius:10px;box-shadow:0 1px 3px #0f172a14;margin:8px 0;padding:16px 16px 8px}.delivery-orders-expanded-header{margin-bottom:12px}.delivery-orders-expanded-header h4{color:#475569;font-size:14px;font-weight:600;margin:0}.delivery-summary-header{align-items:center;display:flex;gap:12px;justify-content:space-between;margin-bottom:12px}.delivery-summary-table-wrapper{border:1px solid #e2e8f0;border-radius:10px;display:flex;flex:1 1;flex-direction:column;max-height:calc(100vh - 320px);min-height:0;overflow-x:auto;overflow-y:auto;position:relative}.delivery-summary-table-content{background:#fff;box-shadow:0 1px 3px #0f172a14;flex:1 1;min-height:0;overflow-x:hidden;overflow-y:auto}.delivery-summary-table{background-color:#fff;border-collapse:collapse;width:100%}.delivery-summary-table td,.delivery-summary-table th{border-bottom:1px solid #f1f5f9;padding:12px 16px}.delivery-summary-table th{background-color:#f8fafc;color:#475569;font-weight:600;position:-webkit-sticky;position:sticky;text-align:left;top:0;z-index:2}.delivery-summary-totals{background:#fff;border-top:1px solid #e2e8f0;bottom:0;position:-webkit-sticky;position:sticky;z-index:10}.delivery-summary-totals tr{background:#fff}.delivery-summary-totals td{background:#fff;box-shadow:0 -2px 4px #0000000d;font-size:14px;font-weight:600}.delivery-summary-table td.text-right,.delivery-summary-table th.text-right{text-align:right}.delivery-summary-table td.text-left,.delivery-summary-table th.text-left{text-align:left}.delivery-summary-table td.text-center,.delivery-summary-table th.text-center{text-align:center}.delivery-summary-row{cursor:pointer;transition:background-color .2s}.delivery-summary-row:hover{background-color:#f8fafc}.delivery-summary-row.selected{background-color:#eef2ff}.summary-item-name{color:#1f2937;font-weight:600}.summary-select-button{background-color:#eef2ff;border:1px solid #a5b4fc;border-radius:6px;color:#4338ca;cursor:pointer;font-size:12px;font-weight:500;padding:6px 12px;transition:background-color .2s,color .2s}.summary-select-button:disabled{background-color:#c7d2fe;color:#312e81;cursor:default}.delivery-detail-empty,.delivery-summary-empty{background:linear-gradient(135deg,#f8fafc,#fff);border:2px dashed #cbd5e1;border-radius:10px;box-shadow:0 1px 3px #0f172a0d;color:#475569;padding:32px 24px;text-align:center}.text-right{text-align:right}.message-dialog{background-color:#fff;border-radius:16px;box-shadow:0 20px 60px #0f172a4d,0 0 0 1px #0000000d;max-width:360px;padding:28px 32px;text-align:center;width:90%}.message-dialog h3{color:#0f172a;font-size:20px;margin:0 0 12px}.message-dialog p{color:#475569;font-size:15px;margin:0}.message-dialog-actions{display:flex;justify-content:center;margin-top:20px}.delivery-modal-actions{align-items:center;background-color:#fff;border-top:1px solid #e2e8f0;display:flex;flex-shrink:0;gap:12px;justify-content:flex-end;margin-top:auto;padding-top:12px}.save-timer{color:#475569;font-size:14px;min-width:90px;text-align:right}.delivery-date-group-modal{align-items:center;display:flex;gap:8px;margin:0}.cancel-button{background-color:#6c757d;border:none;border-radius:6px;color:#fff;cursor:pointer;font-size:16px;font-weight:600;padding:10px 24px;transition:background-color .2s}.cancel-button:hover:not(:disabled){background-color:#5a6268}.cancel-button:disabled{cursor:not-allowed;opacity:.6}.save-order-button{background-color:#28a745;border:none;border-radius:6px;color:#fff;cursor:pointer;font-size:16px;font-weight:600;padding:10px 24px;transition:background-color .2s}.save-order-button:hover:not(:disabled){background-color:#218838}.save-order-button:disabled{cursor:not-allowed;opacity:.6}.section-title{background:linear-gradient(135deg,#f8fafc,#fff);border:1px solid #e2e8f0;border-left:4px solid #6366f1;border-radius:8px;box-shadow:0 1px 3px #0f172a14;color:#1f2937;font-size:18px;font-weight:600;margin:32px 0 16px;padding:14px 20px}.cleared-orders-section,.negative-pending-section{margin-top:32px}.config-modal-content{background-color:#fff;border-radius:16px;box-shadow:0 20px 60px #0f172a4d,0 0 0 1px #0000000d;display:flex;flex-direction:column;max-height:90vh;max-width:500px;overflow:hidden;width:90vw}.config-modal-header{align-items:center;border-bottom:1px solid #e2e8f0;display:flex;justify-content:space-between;padding:20px 24px}.config-modal-header h2{color:#1f2937;font-size:20px;font-weight:600;margin:0}.config-modal-body{flex:1 1;overflow-y:auto;padding:24px}.config-tabs{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:20px}.config-tab{background-color:#fff;border:1px solid #cbd5f5;border-radius:999px;color:#1e3a8a;cursor:pointer;font-size:14px;font-weight:600;padding:8px 18px;transition:all .2s ease}.config-tab.active{background-color:#1e3a8a;border-color:#1e3a8a;box-shadow:0 4px 10px #1e3a8a33;color:#fff}.config-option{margin-bottom:16px}.config-checkbox-label{align-items:center;color:#374151;cursor:pointer;display:flex;font-size:15px;gap:12px;-webkit-user-select:none;user-select:none}.config-checkbox-label input[type=checkbox]{accent-color:#6366f1;cursor:pointer;height:18px;width:18px}.config-checkbox-label span{flex:1 1}.config-hint{color:#6b7280;display:block;font-size:12px;font-style:italic;margin-left:4px;margin-top:4px}.config-label{color:#334155;display:block;font-size:14px;font-weight:500;margin-bottom:8px}.config-input{border:1px solid #cbd5e1;border-radius:6px;box-sizing:border-box;font-size:14px;margin-top:4px;padding:8px 12px;width:100%}.config-input:focus{border-color:#6366f1;box-shadow:0 0 0 3px #6366f11a;outline:none}.config-radio-group{display:flex;flex-direction:column;gap:12px;margin-top:8px}.config-radio-group-inline{flex-direction:row;flex-wrap:wrap}.config-radio-label{align-items:center;border-radius:6px;color:#374151;cursor:pointer;display:flex;font-size:14px;gap:10px;padding:8px;transition:background-color .2s;-webkit-user-select:none;user-select:none}.config-radio-label:hover{background-color:#f8fafc}.config-radio-label input[type=radio]{accent-color:#6366f1;cursor:pointer;height:18px;width:18px}.config-radio-label span{flex:1 1}.config-modal-actions{border-top:1px solid #e2e8f0;display:flex;gap:12px;justify-content:flex-end;padding:16px 24px}.cancel-config-button{background-color:#f3f4f6;border:1px solid #d1d5db;border-radius:6px;color:#374151;cursor:pointer;font-size:14px;font-weight:500;padding:10px 20px;transition:background-color .2s}.cancel-config-button:hover{background-color:#e5e7eb}.save-config-button{background-color:#6366f1;border:none;border-radius:6px;color:#fff;cursor:pointer;font-size:14px;font-weight:500;padding:10px 20px;transition:background-color .2s}.save-config-button:hover{background-color:#4f46e5}.orders-empty,.orders-error,.orders-loading{background:#fff;border:1px solid #e2e8f0;border-radius:12px;box-shadow:0 2px 8px #0f172a14;margin:20px 0;padding:48px 32px;text-align:center}.orders-error{background:linear-gradient(135deg,#fee2e2,#fef2f2);border-color:#fca5a5}.orders-error p{color:#b91c1c;font-weight:500;margin-bottom:16px}.orders-empty{background:linear-gradient(135deg,#f8fafc,#fff);border:2px dashed #cbd5e1}.back-button,.refresh-button{border:1px solid #0000;border-radius:8px;cursor:pointer;font-weight:600;padding:8px 16px}.back-button{background:#e2e8f0;color:#1f2937}.back-button:hover{background:#cbd5f5}.refresh-button{background:#047857;color:#fff}.refresh-button:disabled{cursor:not-allowed;opacity:.6}.batch-selection-modal{background-color:#fff;border-radius:16px;box-shadow:0 20px 60px #0f172a4d,0 0 0 1px #0000000d;display:flex;flex-direction:column;margin:auto;max-height:90vh;max-width:800px;overflow:hidden;width:90vw}.batch-selection-modal-header{align-items:center;border-bottom:1px solid #e2e8f0;display:flex;justify-content:space-between;padding:12px 16px}.batch-header-content{flex:1 1}.batch-header-actions{align-items:center;display:flex;gap:12px}.clear-batch-button{background-color:#ef4444;border:none;border-radius:6px;color:#fff;cursor:pointer;font-size:14px;font-weight:600;padding:8px 20px;transition:background-color .2s}.clear-batch-button:hover{background-color:#dc2626}.clear-batch-button:disabled{background-color:#9ca3af;cursor:not-allowed}.save-batch-button{background-color:#10b981;border:none;border-radius:6px;color:#fff;cursor:pointer;font-size:14px;font-weight:600;padding:8px 20px;transition:background-color .2s}.save-batch-button:hover{background-color:#059669}.save-batch-button:disabled{background-color:#9ca3af;cursor:not-allowed}.batch-selection-modal-header h2{color:#1f2937;font-size:18px;font-weight:600;margin:0 0 6px}.batch-order-info-compact{align-items:center;color:#64748b;display:flex;font-size:13px;gap:8px}.batch-order-info-compact span{white-space:nowrap}.batch-order-info-compact .separator{color:#cbd5e1}.batch-selection-modal-body{flex:1 1;min-height:0;overflow-x:hidden;overflow-y:auto;padding:12px 16px 16px}.batch-selection-order-info{background:linear-gradient(135deg,#f8fafc,#fff);border:1px solid #e2e8f0;border-radius:10px;box-shadow:0 1px 3px #0f172a14;margin-bottom:20px;padding:16px}.batch-selection-order-info p{color:#374151;font-size:14px;margin:8px 0}.batch-selection-order-info strong{color:#1f2937;margin-right:8px}.batch-selection-empty,.batch-selection-error,.batch-selection-loading{color:#6b7280;padding:40px;text-align:center}.batch-selection-loading{align-items:center;display:flex;flex-direction:column;gap:16px}.batch-selection-error{background:linear-gradient(135deg,#fee2e2,#fef2f2);border:1px solid #fca5a5;border-radius:10px;box-shadow:0 2px 4px #dc26261a;color:#b91c1c}.batch-selection-empty{background:linear-gradient(135deg,#f8fafc,#fff);border:1px dashed #cbd5e1;border-radius:10px;color:#6b7280;font-style:italic;padding:40px}.batch-selection-table-wrapper{background-color:#fff;border:1px solid #e2e8f0;border-radius:10px;box-shadow:0 1px 3px #0f172a14;max-height:calc(90vh - 200px);overflow-x:hidden;overflow-y:auto;position:relative;width:100%}.batch-selection-table{background-color:#fff;border-collapse:initial;border-spacing:0;position:relative;table-layout:fixed;width:100%}.batch-selection-table tfoot tr td:first-child:after{background:#fff;bottom:-100px;content:"";left:-100%;position:absolute;right:-100%;top:-2px;z-index:-2}.batch-selection-table th{background-color:#f8fafc;border-bottom:2px solid #e2e8f0;color:#334155;font-size:12px;font-weight:600;padding:8px 6px;position:-webkit-sticky;position:sticky;text-align:left;top:0;z-index:10}.batch-selection-table td{border-bottom:1px solid #f1f5f9;color:#374151;font-size:13px;padding:8px 6px}.batch-select-column{min-width:40px;text-align:center;width:40px}.batch-selection-table td:first-child,.batch-selection-table th:first-child{max-width:50px;min-width:50px;width:50px}.batch-selection-table td:nth-child(2),.batch-selection-table th:nth-child(2){max-width:80px;min-width:80px;width:80px}.batch-selection-table td:nth-child(3),.batch-selection-table th:nth-child(3){word-wrap:break-word;max-width:220px;min-width:180px;overflow-wrap:break-word;width:180px}.batch-selection-table td:nth-child(4),.batch-selection-table th:nth-child(4){max-width:120px;min-width:120px;white-space:nowrap;width:120px}.batch-selection-table td:nth-child(5),.batch-selection-table th:nth-child(5){max-width:110px;min-width:110px;width:110px}.batch-selection-table td:nth-child(6),.batch-selection-table th:nth-child(6){max-width:120px;min-width:120px;white-space:nowrap;width:120px}.batch-select-cell{text-align:center;vertical-align:middle}.batch-select-checkbox{height:16px;width:16px}.batch-selection-table tbody tr:hover{background-color:#f8fafc}.batch-selection-table .text-right{text-align:right}.batch-selection-table tfoot{background:#fff;bottom:0;position:-webkit-sticky;position:sticky;z-index:100}.batch-selection-table tfoot:before{background:#fff;bottom:0;content:"";left:0;position:absolute;right:0;top:0;z-index:-1}.batch-selection-total-row{background:#fff!important;border-top:2px solid #cbd5e1;position:relative}.batch-selection-total-row:before{background:#fff;bottom:-10px;content:"";left:-10px;position:absolute;right:-10px;top:0;z-index:-1}.batch-selection-total-row td{background:#fff!important;border-bottom:none!important;color:#1f2937;font-size:14px;font-weight:600;padding:12px 8px;position:relative;z-index:1}.batch-delivery-qty-input-modal{border:1px solid #cbd5e0;border-radius:6px;box-sizing:border-box;font-size:14px;padding:6px 8px;text-align:right;transition:border-color .2s;width:80px}.batch-delivery-qty-input-modal:focus{border-color:#6366f1;border-color:#007aff;box-shadow:0 0 0 3px #6366f11a;box-shadow:0 0 0 3px #007aff1a;outline:none}.batch-delivery-qty-input-modal:disabled{background-color:#f1f5f9;cursor:not-allowed}.batch-delivery-qty-input-modal::placeholder{color:#a0aec0}@media (max-width:768px){.company-orders-container{box-sizing:border-box;max-width:100vw;overflow-x:hidden;padding:12px;width:100%}.company-orders-header{align-items:flex-start;border-radius:10px;box-sizing:border-box;flex-direction:column;gap:14px;margin:0 0 16px;max-width:100%;padding:16px;width:100%}.header-title{font-size:20px;margin:0}.header-subtitle{font-size:13px;margin-top:4px}.header-info{width:100%}.header-actions{flex-direction:row;gap:0;justify-content:flex-start;width:100%}.back-button{font-size:14px;padding:6px 12px}.refresh-button{border-radius:8px;font-size:15px;padding:10px 16px;width:100%}.summary-cards-section{grid-gap:16px;display:grid;gap:16px;grid-template-columns:1fr;margin:0 0 16px}.summary-cards-section,.summary-table-card{box-sizing:border-box;max-width:100%;width:100%}.summary-table-card{-webkit-overflow-scrolling:touch;border-radius:10px;margin:0;overflow-x:auto;padding:18px}.ageing-chart-card{border-radius:10px;box-sizing:border-box;margin:0;max-width:100%;min-height:300px;overflow:visible;padding:16px 12px;width:100%}.ageing-chart-card .chart-title{margin-bottom:12px;padding-bottom:10px}.ageing-chart-card:hover,.summary-table-card:hover{box-shadow:0 2px 8px #0f172a14;transform:none}.chart-title{border-bottom:2px solid #f1f5f9;font-size:15px;margin-bottom:14px;padding-bottom:10px}.summary-table{min-width:100%;width:100%}.summary-table td,.summary-table th{font-size:13px;padding:10px 8px}.summary-value{font-size:18px}.ageing-chart-wrapper{height:240px;margin:0;max-width:100%;min-height:240px;overflow:visible;padding:0;position:relative;width:100%}.ageing-chart-wrapper .recharts-wrapper{height:100%!important;min-height:240px!important;width:100%!important}.ageing-chart-wrapper .recharts-surface{height:100%!important;overflow:visible!important;width:100%!important}.ageing-chart-wrapper .recharts-cartesian-axis,.ageing-chart-wrapper .recharts-cartesian-axis-tick-value{font-size:10px!important}.ageing-chart-wrapper .recharts-bar-rectangle{overflow:visible!important}.ageing-chart-wrapper .recharts-legend-wrapper{margin-top:12px!important;padding:0!important}.ageing-chart-wrapper .recharts-default-legend{font-size:11px!important;gap:10px!important}.ageing-chart-wrapper .recharts-responsive-container{height:100%!important;min-height:240px!important;width:100%!important}.ageing-chart-card .recharts-responsive-container{height:100%!important;width:100%!important}.chart-tooltip{font-size:11px;padding:6px 8px}.chart-bucket-label,.chart-value-label{font-size:9px}.ageing-chart-card .recharts-legend-wrapper{margin-top:10px;position:relative!important;width:100%!important}.ageing-chart-card .recharts-default-legend{display:flex!important;flex-wrap:wrap;gap:8px;justify-content:center;width:100%}.ageing-chart-card .recharts-surface,.ageing-chart-card .recharts-wrapper{height:100%!important;width:100%!important}.ageing-chart-card .recharts-surface{overflow:visible!important}.ageing-chart-card .recharts-bar,.ageing-chart-card .recharts-cartesian-grid{width:100%!important}.ageing-chart-card .recharts-cartesian-axis{font-size:10px!important}.ageing-chart-card .recharts-cartesian-axis-ticks{font-size:9px!important}.ageing-chart-card .recharts-yAxis{width:50px!important}.ageing-chart-card .recharts-cartesian-axis-tick-value{font-size:9px!important;transform:scale(.9)}.ageing-chart-card .recharts-bar-rectangle{rx:4;ry:4}.ageing-chart-card .recharts-label{font-size:9px!important}.orders-toolbar{align-items:stretch;border-radius:10px;box-sizing:border-box;margin:0 0 16px;padding:16px}.orders-toolbar,.toolbar-left{flex-direction:column;gap:14px;max-width:100%;width:100%}.customer-select-group{flex-direction:column;gap:8px;width:100%}.customer-select-label{font-size:13px;font-weight:600}.customer-select{border-radius:8px;box-sizing:border-box;font-size:15px;min-width:0;min-width:auto;padding:10px 12px;width:100%}.view-controls{display:flex;flex-direction:row;flex-wrap:wrap;gap:10px;width:100%}.toggle-button{min-width:120px;padding:10px 16px}.group-by-select,.toggle-button{border-radius:8px;flex:1 1;font-size:14px}.group-by-select{min-width:150px;padding:10px 12px}.config-button,.delivery-button-top{border-radius:8px;font-size:15px;font-weight:600;padding:12px 20px;width:100%}.orders-count{font-size:13px;font-weight:500;padding:10px 0;text-align:center;width:100%}.filters-section{box-sizing:border-box;margin:0 0 16px;max-width:100%;padding:16px;width:100%}.filters-section:hover{transform:none}.filter-row{flex-direction:column;gap:12px}.filter-group{min-width:0;min-width:auto;width:100%}.filter-label{font-size:12px;margin-bottom:6px}.filter-input,.filter-select{box-sizing:border-box;font-size:14px;padding:8px 12px;width:100%}.filter-select{min-width:0;min-width:auto}.clear-filters-button{align-self:stretch;font-size:14px;margin-top:4px;padding:8px 16px;width:100%}.orders-table-wrapper{-webkit-overflow-scrolling:touch;border-radius:12px;box-sizing:border-box;margin:0 0 20px;max-width:100%;overflow-x:auto;width:100%}.orders-table{font-size:12px;min-width:800px}.orders-table td,.orders-table th{font-size:12px;padding:8px 6px;white-space:nowrap}.orders-table .table-total-row td{font-size:12px;padding:10px 6px}.section-title{box-sizing:border-box;font-size:16px;margin:16px 0 12px;max-width:100%;padding:10px 12px;width:100%}.orders-empty,.orders-error,.orders-loading{font-size:14px;margin:16px 0;padding:32px 20px}.orders-loading .spinner{height:32px;width:32px}.orders-error .refresh-button{font-size:15px;margin-top:16px;padding:12px 16px;width:100%}.modal-overlay{align-items:center;background-color:#0f172ab3;padding:10px}.delivery-modal-overlay-content{border-radius:12px;box-sizing:border-box;height:calc(100vh - 20px);max-height:calc(100vh - 20px);max-width:100%;padding:16px;width:calc(100vw - 20px)}.delivery-modal-header{align-items:flex-start;flex-direction:column;gap:12px;margin-bottom:12px;padding-bottom:12px}.delivery-modal-header h2{font-size:18px;margin:0;width:100%}.delivery-header-actions{flex-direction:row;flex-wrap:wrap;gap:8px;width:100%}.zero-availability-toggle{flex:1 1;font-size:13px;min-width:140px;padding:8px 12px}.close-modal-button{flex-shrink:0;font-size:16px;padding:8px 16px}.delivery-modal-body{gap:16px;padding:12px 0}.delivery-info{gap:8px;grid-template-columns:1fr;padding:12px}.delivery-info p{font-size:13px;word-break:break-word}.delivery-date-group-modal{flex-direction:column;gap:6px;width:100%}.delivery-date-label-modal{font-size:13px;font-weight:600}.delivery-date-input-modal{box-sizing:border-box;font-size:14px;padding:10px 12px;width:100%}.save-error-message{flex-direction:column;font-size:13px;gap:8px;padding:10px 12px}.batch-error-message,.batch-loading-message{font-size:13px;padding:8px 12px}.delivery-items-table-wrapper{-webkit-overflow-scrolling:touch;overflow-x:auto}.delivery-items-table{font-size:12px;min-width:800px}.delivery-items-table td,.delivery-items-table th{font-size:12px;padding:6px 4px}.delivery-summary-table-wrapper{-webkit-overflow-scrolling:touch;overflow-x:auto}.delivery-summary-table{font-size:12px;min-width:600px}.delivery-summary-table td,.delivery-summary-table th{font-size:12px;padding:8px 10px}.delivery-modal-actions{flex-direction:column-reverse;gap:8px;padding-top:12px}.delivery-modal-actions .cancel-button,.delivery-modal-actions .save-order-button{font-size:15px;font-weight:600;padding:12px 20px;width:100%}.save-timer{font-size:13px;order:-1;text-align:center;width:100%}.config-modal-content{max-height:calc(100vh - 20px);max-width:100%;width:100%}.config-modal-header{padding:16px}.config-modal-header h2{font-size:18px;margin:0}.config-modal-body{padding:16px}.config-checkbox-label{font-size:14px;padding:12px}.config-checkbox-label input[type=checkbox]{height:20px;width:20px}.config-modal-actions{flex-direction:column-reverse;gap:8px;padding:16px}.cancel-config-button,.save-config-button{font-size:15px;padding:12px 20px;width:100%}.batch-selection-modal{max-height:calc(100vh - 20px);max-width:100%;width:100%}.batch-selection-modal-header{padding:16px}.batch-selection-modal-header h2{font-size:18px;margin:0}.batch-selection-modal-body{padding:16px}.batch-selection-order-info{padding:12px}.batch-selection-order-info p{font-size:13px;margin:6px 0;word-break:break-word}.batch-selection-table-wrapper{-webkit-overflow-scrolling:touch;overflow-x:auto}.batch-selection-table{font-size:12px;min-width:600px}.batch-selection-table td,.batch-selection-table th{font-size:12px;padding:8px 10px}.batch-selection-modal-actions{flex-direction:column-reverse;gap:8px;padding:16px}.batch-selection-modal-actions .cancel-button,.batch-selection-modal-actions .save-order-button{font-size:15px;padding:12px 20px;width:100%}.batch-info-row{font-size:11px;gap:4px}.batch-delivery-qty-input{font-size:12px;padding:4px 6px;width:70px}.batch-qty-button{font-size:12px;padding:6px 10px}.message-dialog{max-width:90%;padding:20px;width:90%}.message-dialog h3{font-size:18px;margin-bottom:12px}.message-dialog p{font-size:14px}.message-dialog-actions{flex-direction:column;gap:10px;margin-top:20px}.message-dialog-actions button{font-size:15px;padding:12px 20px;width:100%}.delivery-qty-input,.delivery-qty-input-modal{font-size:13px;min-width:70px;padding:8px}.cell-subtext{font-size:11px}.sortable-header{font-size:12px}.sortable-header .sort-indicator{font-size:10px}.summary-clickable-row{cursor:pointer;transition:background-color .2s}.config-checkbox-label,.config-input,.config-radio-label{font-size:14px}.config-input{box-sizing:border-box;padding:10px 12px}.config-label{font-size:13px}.config-hint{font-size:11px}.delivery-detail-empty,.delivery-summary-empty{font-size:14px;padding:20px}.summary-item-name{font-size:13px}.summary-select-button{font-size:12px;padding:6px 10px}.company-orders-container{-webkit-overflow-scrolling:touch}button,input,select{min-height:44px}.batch-delivery-qty-input,.delivery-qty-input,.delivery-qty-input-modal{min-height:40px}.company-orders-container *{box-sizing:border-box;max-width:100%}.company-orders-summary{gap:10px;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));width:100%}.summary-card{padding:12px;width:100%}.company-orders-container>*{box-sizing:border-box;max-width:100%;width:100%}}@media (max-width:400px){.company-orders-container{padding:10px;width:100%}.company-orders-header,.filters-section,.orders-toolbar{border-radius:8px;margin-left:0;margin-right:0;max-width:100%;padding:14px;width:100%}.ageing-chart-card,.summary-cards-section,.summary-table-card{margin-left:0;margin-right:0;max-width:100%;width:100%}.ageing-chart-card,.summary-table-card{border-radius:8px;padding:16px}.header-title{font-size:18px}.header-subtitle{font-size:12px}.company-orders-summary{grid-template-columns:1fr}.view-controls{flex-direction:column;gap:10px}.group-by-select,.toggle-button{font-size:14px;padding:10px 14px;width:100%}.filter-label,.orders-count{font-size:12px}.filter-input,.filter-select{font-size:14px;padding:10px}.ageing-chart-wrapper{height:220px;max-width:100%;min-height:220px;overflow:visible;width:100%}.ageing-chart-wrapper .recharts-wrapper{height:100%!important;min-height:220px!important;width:100%!important}.ageing-chart-card{min-height:280px;overflow:visible}.orders-table-wrapper{max-width:100%;width:100%}}