:root{--primary:#0f9d93;--primary-dark:#087c75;--primary-soft:#e7f7f5;--accent:#ff7657;--success:#19a86b;--danger:#df4d57;--info:#3a86e8;--text:#20333b;--muted:#71838b;--border:#e4ebed;--background:#f4f7f8;--card:#fff;--sidebar:#123e43;--shadow:0 10px 30px #16343a14;--radius:16px}.roles-page .role-name-card,.roles-page .permission-card{padding:24px}.roles-page .permission-card-head,.roles-page .permission-module-head{flex-wrap:wrap;align-items:center;gap:14px;display:flex}.roles-page .permission-card-head{border-bottom:1px solid var(--border);justify-content:space-between;padding-bottom:18px}.roles-page .permission-card-head h2{margin:0 0 4px}.roles-page .permission-card-head p{color:var(--muted);margin:0}.permission-card-counter{color:var(--primary-dark);font-size:18px}.permission-card-toolbar{flex-wrap:wrap;align-items:end;gap:12px;padding:18px 0;display:flex}.permission-search-label{width:100%;font-weight:700}.permission-card-toolbar>.input{flex:280px}.permission-card-actions,.permission-module-actions{flex-wrap:wrap;gap:8px;display:flex}.permission-card-layout{grid-template-columns:220px minmax(0,1fr);gap:22px;display:grid}.permission-module-nav{flex-direction:column;gap:7px;display:flex}.permission-module-button{border:1px solid var(--border);color:var(--text);text-align:right;cursor:pointer;background:#fff;border-radius:10px;justify-content:space-between;gap:8px;padding:11px 13px;display:flex}.permission-module-button small{color:var(--muted);white-space:nowrap}.permission-module-button.is-active{border-color:var(--primary);background:var(--primary-soft);color:var(--primary-dark)}.permission-module-panes{min-width:0}.permission-module-pane{display:none}.permission-module-pane.is-active{display:block}.permission-module-head{justify-content:space-between;margin-bottom:16px}.permission-module-head h3{margin:0}.permission-module-head>span{color:var(--muted)}.permission-tiles{grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px;display:grid}.permission-tile{border:1px solid var(--border);cursor:pointer;border-radius:12px;align-items:center;gap:10px;min-height:72px;padding:13px;transition:all .15s;display:flex}.permission-tile input{opacity:0;pointer-events:none;position:absolute}.permission-tile-check{color:#0000;border:2px solid #b8c8cb;border-radius:6px;flex:none;place-items:center;width:22px;height:22px;display:grid}.permission-tile.is-selected{border-color:var(--primary);background:var(--primary-soft)}.permission-tile.is-selected .permission-tile-check{background:var(--primary);border-color:var(--primary);color:#fff}.permission-tile:focus-within{outline-offset:2px;outline:3px solid #0f9d9340}.permission-tile strong,.permission-tile small{display:block}.permission-tile small{color:var(--muted);text-align:right;direction:ltr;margin-top:3px}.permission-empty{color:var(--muted);text-align:center;padding:18px 0}.role-form-save{z-index:5;background:#f4f7f8f2;margin-top:18px;padding:14px 0;position:sticky;bottom:0}@media (width<=800px){.permission-card-layout{grid-template-columns:1fr}.permission-module-nav{flex-direction:row;padding-bottom:4px;overflow-x:auto}.permission-module-button{min-width:max-content}.permission-module-actions{width:100%}}*{box-sizing:border-box}html{scroll-behavior:smooth}body{background:var(--background);color:var(--text);margin:0;font-family:Cairo,sans-serif;font-size:14px}button,input,select,textarea{font:inherit}button{cursor:pointer}.app{min-height:100vh}.sidebar{color:#fff;z-index:1000;background:linear-gradient(#123e43,#0c3035);width:255px;transition:all .25s;position:fixed;top:0;bottom:0;right:0;overflow-y:auto}.brand{border-bottom:1px solid #ffffff17;align-items:center;gap:12px;height:82px;padding:0 22px;display:flex}.brand-logo{background:linear-gradient(135deg,#21c5b7,#ff8266);border-radius:14px;place-items:center;width:44px;height:44px;font-size:22px;display:grid;box-shadow:0 8px 20px #00000026}.brand h2{margin:0;font-size:16px}.brand small{opacity:.7}.nav{padding:16px 12px}.nav-title{opacity:.5;padding:5px 13px 10px;font-size:11px}.nav-item{color:#d8eaeb;text-align:right;background:0 0;border:0;border-radius:11px;align-items:center;gap:11px;width:100%;margin:2px 0;padding:11px 13px;text-decoration:none;transition:all .2s;display:flex}.nav-item:hover,.nav-item.active{color:#fff;background:#24c8bb2e}.nav-item.active{box-shadow:inset -3px 0 #30cabc}.nav-group{margin-top:2px}.nav-group-toggle{cursor:pointer;list-style:none}.nav-group-toggle::-webkit-details-marker{display:none}.nav-group-label{flex:1}.nav-group-chevron{color:#d8eaeba6;font-size:14px;line-height:1;transition:transform .2s}.nav-group[open] .nav-group-chevron{transform:rotate(180deg)}.nav-subnav{gap:2px;margin:1px 0 5px;padding-right:34px;display:grid}.nav-subitem{color:#b9d6d8;border-radius:8px;align-items:center;gap:8px;min-height:35px;padding:7px 10px;font-size:12px;text-decoration:none;transition:all .2s;display:flex}.nav-subitem:hover,.nav-subitem.active{color:#fff;background:#24c8bb29}.nav-subitem.active{font-weight:700}.nav-subitem-marker{color:#30cabc;font-size:16px;line-height:1}.nav-icon{text-align:center;width:23px;font-size:17px}.main{min-height:100vh;margin-right:255px}.topbar{border-bottom:1px solid var(--border);z-index:900;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);background:#fffffff2;justify-content:space-between;align-items:center;height:72px;padding:0 26px;display:flex;position:sticky;top:0}.topbar-start,.top-actions{align-items:center;gap:11px;display:flex}.top-title h1{margin:0;font-size:19px}.top-title span{color:var(--muted);font-size:12px}.icon-btn{border:1px solid var(--border);background:#fff;border-radius:12px;width:42px;height:42px;position:relative}.user{align-items:center;gap:10px;padding-right:9px;display:flex}.avatar{background:var(--primary-soft);width:40px;height:40px;color:var(--primary);border-radius:50%;place-items:center;font-weight:800;display:grid}.user strong{font-size:13px;display:block}.user small{color:var(--muted)}.menu-toggle{display:none}.content{max-width:1600px;margin:auto;padding:24px}.page-head{justify-content:space-between;align-items:center;gap:15px;margin-bottom:20px;display:flex}.page-head h2{margin:0;font-size:22px}.page-head p{color:var(--muted);margin:4px 0 0}.stats{grid-template-columns:repeat(5,1fr);gap:14px;margin-bottom:20px;display:grid}.stat{background:var(--card);border-radius:var(--radius);box-shadow:var(--shadow);border:1px solid #e4ebedcc;padding:17px}.stat-top{justify-content:space-between;align-items:center;display:flex}.stat-icon{background:var(--primary-soft);border-radius:12px;place-items:center;width:40px;height:40px;font-size:18px;display:grid}.stat-label{color:var(--muted);font-size:12px}.stat-value{margin:9px 0 1px;font-size:23px;font-weight:800}.stat-note{color:var(--success);font-size:10px}.grid-2{grid-template-columns:1.4fr 1fr;gap:18px;margin-bottom:18px;display:grid}.card{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);margin-bottom:18px;overflow:hidden}.card-head{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;padding:17px 19px;display:flex}.card-head h3{margin:0;font-size:15px}.table-wrap{overflow:auto}.table{border-collapse:collapse;white-space:nowrap;width:100%}.table th{color:var(--muted);text-align:right;border-bottom:1px solid var(--border);background:#f7f9fa;padding:12px;font-size:11px}.table td{border-bottom:1px solid #edf1f2;padding:12px;font-size:12px}.table tr:last-child td{border-bottom:0}.table tbody tr:hover{background:#fbfdfd}.badge{border-radius:20px;padding:4px 9px;font-size:10px;font-weight:800;display:inline-flex}.info{color:var(--info);background:#e9f2ff}.empty{text-align:center;color:var(--muted);padding:30px!important}.danger-text{color:var(--danger);font-weight:700}.footer{text-align:center;color:var(--muted);padding:18px 24px;font-size:12px}.toast-inline{border-radius:12px;margin-bottom:16px;padding:12px 15px}.toast-inline.success{color:#147c50;background:#e7f7ef}.toast-inline.error{color:#b73440;background:#fdebee}.toast-inline ul{margin:0;padding-right:18px}.actions{flex-wrap:wrap;gap:8px;display:flex}.btn{border:0;border-radius:10px;justify-content:center;align-items:center;gap:7px;padding:10px 16px;font-weight:700;text-decoration:none;transition:all .2s;display:inline-flex}.btn:hover{transform:translateY(-1px)}.btn:disabled{cursor:wait;opacity:.65;transform:none}.btn-primary{background:var(--primary);color:#fff}.btn-primary:hover{background:var(--primary-dark)}.btn-light{border:1px solid var(--border);color:var(--text);background:#fff}.btn-sm{padding:7px 10px;font-size:12px}.filters{border:1px solid var(--border);background:#fff;border-radius:14px;grid-template-columns:2fr 1fr auto;gap:10px;margin-bottom:16px;padding:14px;display:grid}.input,.select,.textarea{width:100%;color:var(--text);background:#fff;border:1px solid #dce5e7;border-radius:10px;outline:none;padding:10px 12px}.input:focus,.select:focus,.textarea:focus{border-color:var(--primary);box-shadow:0 0 0 3px var(--primary-soft)}.active-badge{color:var(--success);background:#e7f7ef}.inactive{color:var(--danger);background:#fdebee}@media (width<=1200px){.stats{grid-template-columns:repeat(3,1fr)}}@media (width<=850px){.sidebar{transform:translate(100%)}.sidebar.open{transform:translate(0)}.main{margin-right:0}.menu-toggle{display:block}.topbar{padding:0 14px}.content{padding:15px}.user div:last-child{display:none}.mobile-overlay.show{z-index:950;background:#0006;display:block;position:fixed;inset:0}}@media (width<=560px){.stats{grid-template-columns:1fr 1fr;gap:9px}.stat{padding:13px}.stat-value{font-size:19px}.page-head{flex-direction:column;align-items:flex-start}.top-title span{display:none}.content{padding:12px}}@media (width<=700px){.details-shell-modal{border-radius:0;width:100%;max-height:100dvh}.details-shell-grid,.details-shell-summary{grid-template-columns:1fr 1fr}.details-shell-body{max-height:none}}@media (width<=430px){.details-shell-grid,.details-shell-summary{grid-template-columns:1fr}}.orders-filters{grid-template-columns:2fr repeat(3,1fr) repeat(2,minmax(130px,1fr)) auto}.orders-table-card .table-wrap{overflow:visible}.orders-table-card table.dataTable{white-space:normal;min-width:0;width:100%!important}.orders-table-card table.dataTable tbody td{vertical-align:middle}.orders-table-card .orders-details-control-header,.orders-table-card td.orders-details-control{text-align:center;width:38px;min-width:38px;padding-inline:5px}.orders-table-card td.orders-details-control{cursor:pointer}.orders-table-card td.orders-details-control:before{background:var(--primary)!important}.orders-table-card .order-customer-cell{overflow-wrap:anywhere;min-width:0}.orders-table-card .datatable-actions{flex-wrap:wrap;gap:6px;min-width:0;display:flex}.order-amount{white-space:nowrap}.order-amount-paid{color:var(--success)}.order-amount-remaining{color:var(--danger)}.order-status-badge,.payment-status-badge{white-space:nowrap}.orders-table-card table.dataTable tbody tr.child{background:var(--summary-bg,#f8fafb)}.orders-table-card table.dataTable tbody tr.child td.child{text-align:start;padding:10px 14px}.orders-table-card table.dataTable tbody tr.child .dtr-details{gap:6px;margin:0;padding:0;display:grid}.orders-table-card table.dataTable tbody tr.child .dtr-title{color:var(--muted);font-weight:700}.orders-table-card table.dataTable tbody tr.child .dtr-data{color:var(--text)}@media (width<=1200px){.orders-filters{grid-template-columns:2fr repeat(3,1fr) repeat(2,minmax(120px,1fr))}.orders-filters .filter-reset{grid-column:1/-1}}@media (width<=850px){.orders-filters{grid-template-columns:1fr 1fr}.orders-filters .filter-reset{grid-column:1/-1}}@media (width<=560px){.orders-filters{grid-template-columns:1fr}.orders-filters .filter-reset{grid-column:auto}.orders-table-card .datatable-actions .btn{min-height:40px}}.settings-tabs{flex-wrap:wrap;gap:8px;margin-bottom:20px;display:flex}.settings-tab{border:1px solid var(--border);min-height:42px;color:var(--text);background:#fff;border-radius:10px;justify-content:center;align-items:center;padding:9px 16px;font-weight:700;text-decoration:none;display:inline-flex}.settings-tab.active{background:var(--primary);border-color:var(--primary);color:#fff}.settings-tab.disabled{color:var(--muted);cursor:not-allowed;background:#f7f9fa}.settings-placeholder-body{color:var(--muted);padding:24px}.settings-placeholder-body p{margin-top:0}.settings-section-intro{margin:4px 0 18px}.settings-section-intro h3{margin:0;font-size:18px}.settings-section-intro p{color:var(--muted);margin:5px 0;font-size:12px}.receiving-accounts-filters{grid-template-columns:2fr 1fr 1fr auto}.receiving-account-cell{min-width:190px}.receiving-accounts-table-card .table-entity-description{max-width:280px}.receiving-account-modal .modal-body{max-height:calc(90vh - 150px)}@media (width<=850px){.settings-tabs{flex-wrap:nowrap;overflow-x:auto}.settings-tab{white-space:nowrap}.receiving-accounts-filters{grid-template-columns:1fr 1fr}.receiving-accounts-filters .filter-reset{grid-column:1/-1}}@media (width<=560px){.settings-tabs{margin-inline:-3px;padding-bottom:3px}.settings-tab{flex:1;padding-inline:10px;font-size:12px}.receiving-accounts-filters{grid-template-columns:1fr}.receiving-accounts-filters .filter-reset{grid-column:auto}.receiving-account-modal .modal-body{max-height:calc(100vh - 170px)}.receiving-account-cell{min-width:145px}.receiving-accounts-table-card .table-entity-description{max-width:180px}}.settings-actions{justify-content:flex-start;margin-bottom:18px;display:flex}@media print{.sidebar,.topbar,.btn,.menu-toggle{display:none!important}.main{margin:0}.content{padding:0}.card{box-shadow:none}}.sr-only{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.filter-field{min-width:0}.filter-field label{color:var(--muted);margin-bottom:6px;font-size:12px;font-weight:700;display:block}.filter-reset{align-self:end;min-height:42px}.table-entity{white-space:normal;align-items:center;gap:11px;min-width:190px;display:flex}.table-entity-icon{background:var(--primary-soft);width:38px;height:38px;color:var(--primary);border-radius:11px;flex:0 0 38px;place-items:center;font-size:17px;display:grid}.table-entity-content{min-width:0}.table-entity-title,.table-entity-description{overflow-wrap:anywhere;display:block}.table-entity-description{color:var(--muted);-webkit-line-clamp:2;-webkit-box-orient:vertical;margin-top:2px;font-size:11px;display:-webkit-box;overflow:hidden}.datatable-actions{flex-wrap:wrap;align-items:center;gap:7px;display:flex}.datatable-actions form{margin:0}.btn-danger-outline{color:var(--danger);background:#fff;border:1px solid #f0b6bc}.btn-success-outline{border:1px solid color-mix(in srgb, var(--success) 45%, var(--border));color:var(--success);background:#fff}.category-feedback{border-radius:10px;min-height:24px;padding:0 12px;font-size:12px}.category-feedback.success,.category-feedback.error{margin-bottom:16px;padding:10px 12px}.category-feedback.success{color:#147c50;background:#e7f7ef}.category-feedback.error{color:#b73440;background:#fdebee}.categories-table-card .dataTables_wrapper{padding:0}.categories-table-card .dataTables_info{color:var(--muted);padding:14px 18px;font-size:12px}.categories-table-card .dataTables_paginate{padding:10px 18px}.categories-table-card .dataTables_paginate .paginate_button{margin:0 3px;border:1px solid var(--border)!important;color:var(--text)!important;background:#fff!important;border-radius:9px!important;padding:6px 11px!important}.categories-table-card .dataTables_paginate .paginate_button.current{background:var(--primary)!important;color:#fff!important;border-color:var(--primary)!important}.categories-table-card .dataTables_processing{background:var(--primary-soft);border:1px solid var(--primary);color:var(--primary-dark);z-index:2;border-radius:10px;padding:10px 18px}.categories-table-card table.dataTable{border-collapse:collapse!important;margin:0!important}.categories-table-card table.dataTable thead th{border-bottom:1px solid var(--border)}.categories-table-card table.dataTable tbody td{border-bottom:1px solid #edf1f2}.categories-table-card table.dataTable tbody tr.child ul.dtr-details{width:100%;padding:0;display:block}.categories-table-card table.dataTable tbody tr.child ul.dtr-details li{border-bottom:1px solid var(--border);padding:8px 0}.categories-table-card table.dataTable tbody tr.child span.dtr-title{color:var(--muted);min-width:145px}.categories-table-card table.dataTable tbody td.dtr-control{cursor:pointer}.categories-table-card table.dataTable tbody td.dtr-control:before{background:var(--primary)!important}.categories-table-card table.dataTable tbody td.category-count{white-space:nowrap}@media (width<=850px){.datatable-filters{grid-template-columns:1fr 1fr;display:grid}.filter-reset{grid-column:1/-1;width:100%}.category-created{display:none}.table-entity{min-width:145px}.datatable-actions{max-width:150px}.datatable-actions .btn{min-height:40px}.categories-table-card .table-wrap{overflow:visible}.categories-table-card table.dataTable{width:100%!important}}@media (width<=560px){.datatable-filters{grid-template-columns:1fr}.filter-reset{grid-column:auto}.table-entity-description{max-width:180px}.datatable-actions{flex-direction:column;align-items:stretch;max-width:100px}.datatable-actions .btn{width:100%;padding:7px 8px}.categories-table-card .dataTables_info,.categories-table-card .dataTables_paginate{float:none;text-align:center;padding-left:8px;padding-right:8px}.categories-table-card .dataTables_paginate .paginate_button{margin:0 1px;padding:7px 9px!important}}.modal-overlay{z-index:var(--modal-overlay-z,2000);background:#081a1e94;justify-content:center;align-items:center;padding:18px;display:none;position:fixed;inset:0;overflow:hidden}.modal-overlay.show{display:flex}.modal-overlay[aria-hidden=true]{pointer-events:none}.modal-overlay[aria-hidden=false]{pointer-events:auto}.modal-overlay-nested{z-index:calc(var(--modal-overlay-z,2000) + 100)}.details-shell-modal{width:min(1100px,100% - 32px);max-height:calc(100dvh - 32px)}.details-shell-body{min-height:0}.details-shell-view{gap:16px;display:grid}.details-shell-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;display:grid}.details-shell-item{border:1px solid var(--border);background:var(--surface-muted,#f8fafb);border-radius:10px;flex-direction:column;gap:4px;min-width:0;padding:11px;display:flex}.details-shell-item span{color:var(--muted);font-size:11px}.details-shell-item strong{overflow-wrap:anywhere}.details-shell-section{gap:10px;display:grid}.details-shell-section h4{margin:0;font-size:14px}.details-shell-summary{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;display:grid}.details-shell-table-wrap{overflow-x:auto}.details-shell-table{border-collapse:collapse;width:100%;min-width:850px}.details-shell-table th,.details-shell-table td{border-bottom:1px solid var(--border);text-align:right;vertical-align:middle;padding:9px 8px}.details-shell-table th{color:var(--muted);background:var(--surface-muted,#f8fafb);font-size:11px}.details-shell-table tr.is-reversed{background:#fff8e6}.details-shell-reversed-label{color:var(--danger,#b42318);margin-top:4px;font-weight:700;display:block}.details-shell-warning{color:#795400;background:#fff8e6;border-radius:9px;margin:0;padding:10px 12px;font-size:12px;font-weight:700}.details-shell-list{gap:7px;display:grid}.details-shell-list-row{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;gap:12px;padding:10px 12px;display:flex}.details-shell-link{color:var(--primary-dark);font:inherit;cursor:pointer;background:0 0;border:0;padding:0;font-weight:800}.details-shell-note{background:var(--surface-muted,#f8fafb);white-space:pre-wrap;overflow-wrap:anywhere;border-radius:10px;margin:0;padding:12px}.details-shell-state{text-align:center;padding:28px}.details-shell-error{color:var(--danger);background:#fff0f0;border-radius:10px}.category-modal,.item-modal,.receiving-account-modal{width:min(100%,680px);max-height:90vh}.order-modal{width:min(1200px,100% - 32px);max-height:calc(100dvh - 32px)}.quick-customer-modal{width:min(560px,100% - 32px)}.order-modal-body{max-height:calc(94vh - 150px)}.order-section{border:1px solid var(--border);background:#fff;border-radius:14px;margin-bottom:14px;padding:16px}.order-section h4{margin:0 0 13px;font-size:14px}.summary-row{border-bottom:1px solid var(--border);justify-content:space-between;padding:10px 0;display:flex}.summary-row.total{color:var(--primary-dark);font-size:17px}.order-pricing-summary{background:var(--summary-bg,#eef8f5);border-color:var(--summary-border,#cce9df);padding:18px 20px}.order-pricing-summary-head h4{margin-bottom:16px}.order-pricing-summary-grid{grid-template-columns:repeat(3,minmax(0,1fr));align-items:end;gap:16px;display:grid}.pricing-summary-item{flex-direction:column;justify-content:center;gap:7px;min-height:58px;display:flex}.pricing-summary-label{color:var(--muted);font-size:12px;font-weight:700}.pricing-summary-item>strong{font-size:18px}.pricing-summary-total{border-inline-start:1px solid var(--summary-border,#cce9df);padding-inline-start:16px}.order-pricing-total-value{color:var(--success,#087f5b);font-weight:700;font-size:1.2rem!important}.order-payment-grid{grid-template-columns:repeat(2,minmax(0,1fr));align-items:end;gap:14px;display:grid}.order-remaining-row{align-items:center;min-height:42px}.order-lines{gap:8px;display:grid}.order-line{border:1px solid var(--border);border-radius:10px;grid-template-columns:2fr .8fr 100px 90px 90px auto;align-items:center;gap:8px;padding:10px;display:grid}.order-line small{color:var(--muted)}.order-search-results{gap:5px;max-height:180px;margin-top:6px;display:grid;overflow:auto}.order-result{border:1px solid var(--border);text-align:right;color:var(--text);background:#fff;border-radius:9px;padding:9px}.order-result:hover{border-color:var(--primary);background:var(--primary-soft)}.selected-customer{background:var(--primary-soft);color:var(--primary-dark);border-radius:8px;margin-top:7px;padding:8px;font-size:12px}.is-hidden{display:none!important}.order-edit-financial-notice{color:#795400;background:#fff8e6;border:1px solid #f1d58a;border-radius:9px;margin-top:14px;padding:10px 12px;font-size:12px}.order-edit-surplus-section{background:#fffdf5;border-color:#e8c36a}.order-edit-surplus-options{flex-wrap:wrap;gap:10px;display:flex}.order-edit-surplus-option{border:1px solid var(--border);cursor:pointer;background:#fff;border-radius:9px;align-items:center;gap:8px;padding:10px 12px;font-weight:700;display:flex}.order-edit-surplus-option:has(input:checked){border-color:var(--primary);background:var(--primary-soft)}.order-edit-refund-fields{border-top:1px solid #eedda9;margin-top:14px;padding-top:14px}.modal-head{border-bottom:1px solid var(--border);justify-content:space-between;align-items:flex-start;gap:16px;padding:22px 24px;display:flex}.modal-head h3{margin:0;font-size:18px}.modal-head p{color:var(--muted);margin:5px 0 0;font-size:12px}.modal-close{border:1px solid var(--border);width:38px;height:38px;color:var(--muted);background:#fff;border-radius:10px;flex:0 0 38px;font-size:24px;line-height:1}.modal-close:hover,.modal-close:focus{color:var(--text);border-color:var(--primary)}.modal-body{max-height:calc(90vh - 150px);padding:22px 24px;overflow-y:auto}.modal-footer{border-top:1px solid var(--border);justify-content:flex-start;gap:10px;padding:16px 24px;display:flex}.admin-modal{background:var(--card,#fff);width:min(680px,100% - 32px);min-height:0;max-height:calc(100dvh - 36px);color:var(--text,#20333b);border:1px solid var(--border,#e3eaec);opacity:1;visibility:visible;isolation:isolate;border-radius:18px;flex-direction:column;display:flex;overflow:hidden;box-shadow:0 24px 80px #0000003d}.admin-modal>form,.admin-modal .modal-form{flex-direction:column;flex:1;min-height:0;display:flex;overflow:hidden}.admin-modal .modal-head{background:var(--card,#fff);flex-shrink:0}.admin-modal .modal-body{overscroll-behavior:contain;background:var(--card,#fff);flex:1;min-height:0;overflow-y:auto}.admin-modal .modal-footer{background:var(--card,#fff);flex-shrink:0;justify-content:flex-end;align-items:center}.admin-modal .modal-close{flex:none}.admin-modal.order-modal{width:min(1200px,100% - 32px);max-height:calc(100dvh - 32px)}.admin-modal.quick-customer-modal{width:min(560px,100% - 32px)}.order-customer-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;display:grid}.customer-search-field{position:relative}.customer-search-field label{color:var(--muted);margin-bottom:6px;font-size:12px;font-weight:700;display:block}.customer-search-results{z-index:5;border:1px solid var(--border);max-height:220px;box-shadow:var(--shadow);background:#fff;border-radius:10px;position:absolute;top:100%;left:0;right:0;overflow-y:auto}.customer-search-results:empty{display:none}.customer-search-results .order-result{border:0;border-bottom:1px solid var(--border);background:#fff;border-radius:0;width:100%;padding:10px;display:block}.customer-search-results .order-result:last-child{border-bottom:0}.customer-state{background:var(--primary-soft);color:var(--primary-dark);border-radius:9px;margin-top:12px;padding:8px 10px;font-size:12px}.customer-register-option{align-items:center;gap:8px;margin-top:10px;font-size:12px;font-weight:700;display:flex}.customer-register-option.is-required{color:var(--danger)}.customer-required-warning{color:var(--danger);margin-top:8px;font-size:12px;font-weight:700}.customer-phone-input{text-align:right;direction:ltr}.customer-search-result{border:0;border-bottom:1px solid var(--border);text-align:right;width:100%;color:var(--text);cursor:pointer;background:#fff;flex-direction:column;gap:3px;padding:10px;display:flex}.customer-search-result:last-child{border-bottom:0}.customer-search-result:hover,.customer-search-result.is-highlighted{background:var(--primary-soft)}.customer-search-result-primary{color:var(--primary-dark);font-weight:800}.customer-search-result-secondary{color:var(--muted);font-size:12px}.customer-empty-result{color:var(--muted);padding:10px;font-size:12px;line-height:1.8}.customer-empty-result small{font-size:11px}.order-item-search-wrap{position:relative}.item-search-result{padding:8px 10px}.item-search-result .customer-search-result-primary{justify-content:space-between;display:flex}.item-search-result .customer-search-result-secondary{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.quantity-control{align-items:center;gap:4px;display:flex}.quantity-control .input{text-align:center;min-width:0}.quantity-control .btn{min-width:32px;padding-inline:8px}.quantity-control .btn:disabled{cursor:not-allowed;opacity:.55}.order-quantity-control{align-items:stretch;max-width:100%;display:inline-flex}.order-quantity-control .btn{flex:0 0 32px}.order-quantity-input{text-align:center;flex:0 0 64px;width:64px;min-width:64px;padding-inline:6px}.order-quantity-input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.order-quantity-input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.order-quantity-input{appearance:textfield}.customer-name-field label{color:var(--muted);margin-bottom:6px;font-size:12px;font-weight:700;display:block}.order-financial-row{background:var(--summary-bg,#eef8f5);border-color:var(--summary-border,#cce9df);padding:18px 20px}.order-financial-row h4{margin-bottom:16px}.order-financial-grid{grid-template-columns:repeat(3,minmax(0,1fr));align-items:end;gap:14px;display:grid}.financial-field{flex-direction:column;justify-content:center;gap:7px;min-width:0;min-height:58px;display:flex}.financial-field>span,.financial-field>label{color:var(--muted);font-size:12px;font-weight:700}.financial-field>strong{font-size:18px}.financial-total>strong{color:var(--success,#087f5b);font-size:1.2rem;font-weight:700}.financial-remaining>strong{font-size:1.15rem;font-weight:700}.financial-account .select.is-required{border-color:var(--danger)}.payment-method-hint{min-height:16px;color:var(--primary-dark);font-size:11px;font-weight:700}.order-financial-row .field-error{font-size:11px}.order-section-heading{justify-content:space-between;align-items:baseline;gap:12px;display:flex}.order-settlement-section{background:var(--summary-bg,#eef8f5);border-color:var(--summary-border,#cce9df)}.input-action-row{align-items:stretch;gap:7px;display:flex}.input-action-row .input{min-width:0}.input-action-row .btn{white-space:nowrap}.settlement-summary{border:1px solid var(--summary-border,#cce9df);background:#fff;border-radius:10px;margin-top:16px;padding:13px 15px}.settlement-summary h5{margin:0 0 9px;font-size:13px}.settlement-summary dl{grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin:0;display:grid}.settlement-summary dl div{flex-direction:column;gap:4px;display:flex}.settlement-summary dt{color:var(--muted);font-size:11px;font-weight:700}.settlement-summary dd{margin:0;font-weight:700}.settlement-summary .settlement-paid{color:var(--success,#087f5b)}.settlement-summary .settlement-due{color:var(--danger,#c92a2a)}.settlement-summary .field-error{margin:9px 0 0}.order-items-table-wrap{overflow-x:auto}.order-items-table{border-collapse:collapse;table-layout:fixed;width:100%}.order-items-table th{color:var(--muted);text-align:right;border-bottom:1px solid var(--border);background:#f7f9fa;padding:10px 8px;font-size:11px}.order-items-table td{vertical-align:middle;border-bottom:1px solid #edf1f2;padding:8px}.order-items-table th:first-child{width:27%}.order-items-table th:nth-child(2),.order-items-table th:nth-child(3),.order-items-table th:nth-child(4){width:12%}.order-items-table th:nth-child(5){width:23%}.order-items-table th:nth-child(6){width:14%}.order-item-entry-row{background:var(--primary-soft)}.order-item-entry-row .input{min-width:0}.order-item-selected{color:var(--primary-dark);margin-top:5px;font-size:11px}.order-items-empty td{text-align:center;color:var(--muted);padding:22px}.order-item-row strong,.order-item-row small{display:block}.order-item-row small{color:var(--muted);margin-top:3px;font-size:11px}.order-item-row .input{min-width:0}.order-item-entry-row .order-search-results{z-index:3;position:relative}.form-group{margin-bottom:18px}.form-group:last-child{margin-bottom:0}.form-group label{margin-bottom:7px;font-size:12px;font-weight:700;display:block}.required-marker{color:var(--danger)}.form-help{color:var(--muted);margin-top:6px;font-size:11px;display:block}.field-error{min-height:0;color:var(--danger);margin-top:5px;font-size:11px;font-weight:700;display:block}.order-validation-summary{border:1px solid var(--danger-border,#f1aeb5);background:var(--danger-bg,#fff1f2);color:var(--danger,#b42318);border-radius:12px;margin-bottom:16px;padding:12px 16px}.order-validation-summary[hidden]{display:none}.order-validation-summary strong{margin-bottom:6px;display:block}.order-validation-summary ul{margin:0;padding-inline-start:20px}.field-hint{min-height:0;color:var(--muted);margin:6px 0 0;font-size:12px}.input.is-invalid,.select.is-invalid,.textarea.is-invalid{border-color:var(--danger);box-shadow:0 0 0 3px #df4d571a}.category-modal .input,.category-modal .select,.category-modal .textarea,.item-modal .input,.item-modal .select,.item-modal .textarea,.receiving-account-modal .input,.receiving-account-modal .select,.receiving-account-modal .textarea{min-height:44px}.category-modal .textarea,.item-modal .textarea,.receiving-account-modal .textarea{resize:vertical}@media (width<=560px){.modal-overlay{padding:12px}.category-modal,.item-modal,.receiving-account-modal{border-radius:16px;width:100%;max-height:calc(100vh - 24px)}.modal-head{padding:17px 16px}.modal-body{max-height:calc(100vh - 170px);padding:18px 16px}.modal-footer{flex-direction:column-reverse;padding:14px 16px}.category-modal .modal-footer .btn,.item-modal .modal-footer .btn,.receiving-account-modal .modal-footer .btn{width:100%;min-height:44px}}@media (width<=700px){.modal-overlay:has(.order-modal){align-items:stretch;padding:0}.order-modal{border:0;border-radius:0;width:100%;height:100dvh;max-height:100dvh}.order-modal-body{max-height:none;padding:14px}.order-pricing-summary-grid,.order-payment-grid{grid-template-columns:1fr}.order-financial-grid,.settlement-summary dl{grid-template-columns:repeat(2,minmax(0,1fr))}.order-line{grid-template-columns:1fr 1fr}.order-line .line-quantity{width:100%}.order-modal .modal-footer{z-index:2;background:#fff;position:sticky;bottom:0}}@media (width<=430px){.order-financial-grid{grid-template-columns:1fr}}@media (width<=700px){.order-items-table-wrap{overflow:visible}.order-items-table,.order-items-table thead,.order-items-table tbody,.order-items-table tr,.order-items-table th,.order-items-table td{width:100%;display:block}.order-items-table thead{display:none}.order-item-entry-row{border:1px solid var(--border);border-radius:12px;margin-bottom:12px;padding:12px}.order-item-entry-row td{border:0;padding:5px;display:block}.order-item-entry-row td:before{color:var(--muted);margin-bottom:4px;font-size:11px;font-weight:700;display:block}.order-item-entry-row td:first-child:before{content:"الصنف"}.order-item-entry-row td:nth-child(2):before{content:"الكمية"}.order-item-entry-row td:nth-child(3):before{content:"سعر الوحدة"}.order-item-entry-row td:nth-child(4):before{content:"الإجمالي"}.order-item-entry-row td:nth-child(5):before{content:"الملاحظات"}.order-item-entry-row td:nth-child(6):before{content:""}.order-item-entry-row .btn{width:100%;min-height:42px}.order-item-row{border:1px solid var(--border);box-shadow:var(--shadow);background:#fff;border-radius:12px;grid-template-columns:1fr 1fr;gap:5px;margin-bottom:10px;padding:12px;display:grid!important}.order-item-row td{border:0;flex-direction:column;padding:5px;display:flex}.order-item-row td:before{content:attr(data-label);color:var(--muted);margin-bottom:4px;font-size:11px;font-weight:700}.order-item-row td:first-child{grid-column:1/-1}.order-item-row td:last-child{grid-column:1/-1;align-items:stretch}.order-item-row .btn{width:100%;min-height:40px}.order-items-empty{box-shadow:none;margin:0;display:block!important}.order-items-empty td{display:block!important}.order-customer-grid{grid-template-columns:1fr}.customer-search-results{max-height:180px;position:relative;top:auto;left:auto;right:auto}.customer-search-results .order-result{min-height:44px}.customer-register-option{width:100%;padding:10px 0}}.form-grid-2{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;display:grid}.item-type-badge.partial{color:#a96800;background:#fff1db}.price-cell{white-space:nowrap;font-weight:700}.items-table-card .table-entity{min-width:210px}.items-table-card .table-entity-description{max-width:250px}.items-page .items-table-card .table-wrap{overflow:visible}.items-page .items-data-table{white-space:normal;width:100%;min-width:0}.items-page .items-data-table .table-entity{min-width:0}.items-page .items-data-table th:first-child,.items-page .items-data-table td:first-child{width:38px;min-width:38px;padding-inline:5px}.items-page .items-data-table .dtr-control{cursor:pointer;text-align:center}.items-page .items-data-table .dtr-control:focus-visible{outline:2px solid var(--primary);outline-offset:-2px}.items-page .items-data-table .price-cell{white-space:nowrap}.items-page .items-data-table td:nth-child(3),.items-page .items-data-table td:nth-child(4),.items-page .items-data-table td:nth-child(5),.items-page .items-data-table td:nth-child(8){overflow-wrap:anywhere}.items-page .items-data-table tbody tr.child{background:var(--summary-bg,#f8fafb)}.items-page .items-data-table tbody tr.child td.child{text-align:start;padding:10px 14px}.items-page .items-data-table tbody tr.child .dtr-details{gap:6px;margin:0;padding:0;display:grid}.items-page .items-data-table tbody tr.child .dtr-title{color:var(--muted);font-weight:700}.items-page .items-data-table tbody tr.child .dtr-data{color:var(--text)}.items-filters{grid-template-columns:2fr repeat(3,1fr) auto}.item-modal .modal-body{max-height:calc(90vh - 150px)}@media (width<=850px){.items-filters{grid-template-columns:1fr 1fr}.items-filters .filter-reset{grid-column:1/-1}.items-table-card .table-entity{min-width:145px}}@media (width<=560px){.form-grid-2,.items-filters{grid-template-columns:1fr}.items-filters .filter-reset{grid-column:auto}.item-modal .modal-body{max-height:calc(100vh - 170px)}.items-table-card .table-entity-description{max-width:180px}}.order-show-modal{width:min(1100px,100vw - 32px);max-height:calc(100vh - 32px)}.order-show-body{max-height:calc(100vh - 190px);overflow-y:auto}.order-show-head{align-items:flex-start}.order-show-head p,.order-show-section h4{margin:4px 0 0}.order-show-header-grid,.order-show-customer-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:18px;display:grid}.order-show-header-grid>div,.order-show-customer-grid>div{border:1px solid var(--border);background:var(--surface-muted,#f8fafb);border-radius:10px;flex-direction:column;gap:5px;min-width:0;padding:12px;display:flex}.order-show-header-grid span,.order-show-customer-grid span,.order-show-item-card span,.order-show-payment-card span{color:var(--muted);font-size:11px}.order-show-header-grid strong,.order-show-customer-grid strong{overflow-wrap:anywhere}.order-show-status-badge{color:var(--text)}.order-show-status-badge.is-success{color:var(--success)}.order-show-status-badge.is-warning{color:var(--warning,#a15c00)}.order-show-status-badge.is-danger{color:var(--danger)}.order-show-section{margin-top:18px}.order-show-items-table-wrap{margin-top:10px;overflow-x:auto}.order-show-items-table{border-collapse:collapse;width:100%;min-width:680px}.order-show-items-table th,.order-show-items-table td{border-bottom:1px solid var(--border);text-align:right;padding:10px}.order-show-items-table th{color:var(--muted);font-size:12px}.order-show-item-cards{display:none}.order-show-financial-summary{grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin-top:10px;display:grid}.order-show-financial-line{background:var(--summary-bg,#f8fafb);border-radius:10px;flex-direction:column;gap:5px;padding:12px;display:flex}.order-show-financial-line span,.order-show-financial-note{color:var(--muted);font-size:12px}.order-show-financial-line.is-total{border:1px solid var(--success)}.order-show-financial-line.is-warning{border:1px solid var(--warning,#e1a94b)}.order-show-financial-note{grid-column:1/-1;margin:0}.order-show-financial-note.is-warning{color:var(--warning,#a15c00)}.order-show-financial-note.is-success{color:var(--success)}.order-show-payments{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:10px;display:grid}.order-show-payment-card{border:1px solid var(--border);border-radius:10px;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 14px;padding:14px;display:grid}.order-show-payment-card>strong{grid-column:1/-1}.order-show-payment-card div{flex-direction:column;gap:3px;min-width:0;display:flex}.order-show-payment-card strong{overflow-wrap:anywhere}.order-show-empty,.order-show-loading,.order-show-error{background:var(--surface-muted,#f8fafb);border-radius:10px;padding:16px}.order-show-error{color:var(--danger);background:var(--danger-bg,#fff1f2)}.order-show-notes{white-space:pre-wrap;overflow-wrap:anywhere}.order-show-metadata{color:var(--muted);flex-wrap:wrap;gap:16px;font-size:12px;display:flex}@media (width<=700px){.order-show-modal{width:100%;max-height:100vh}.order-show-body{max-height:calc(100vh - 170px);padding:14px}.order-show-header-grid,.order-show-customer-grid,.order-show-financial-summary,.order-show-payments{grid-template-columns:1fr 1fr}.order-show-items-table-wrap{display:none}.order-show-item-cards{gap:10px;margin-top:10px;display:grid}.order-show-item-card{border:1px solid var(--border);border-radius:10px;grid-template-columns:1fr 1fr;gap:7px 12px;padding:12px;display:grid}.order-show-item-card>strong,.order-show-item-card>small{grid-column:1/-1}.order-show-item-card>div,.order-show-item-card>small{overflow-wrap:anywhere}.order-show-payment-card{grid-template-columns:1fr}}.order-cancel-modal{width:min(620px,100vw - 32px);max-height:calc(100vh - 32px)}.order-cancel-body{max-height:calc(100vh - 190px);overflow-y:auto}.order-cancel-loading,.order-cancel-error{border-radius:10px;padding:18px}.order-cancel-loading{color:var(--muted)}.order-cancel-error{color:var(--danger);background:var(--danger-bg,#fff1f2)}.order-cancel-warning{border:1px solid var(--warning,#e1a94b);color:var(--warning,#a15c00);background:color-mix(in srgb, var(--warning,#e1a94b) 10%, transparent);border-radius:10px;margin-bottom:16px;padding:12px 14px}.order-cancel-summary{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:18px;display:grid}.order-cancel-summary>div,.order-cancel-refund-summary{background:var(--summary-bg,#f8fafb);border-radius:10px;flex-direction:column;gap:5px;padding:12px;display:flex}.order-cancel-summary span,.order-cancel-refund-summary span{color:var(--muted);font-size:12px}.order-cancel-summary strong{font-size:16px}.order-cancel-refund-section{border:1px solid var(--border);border-radius:10px;margin-bottom:18px;padding:14px}.order-cancel-refund-section h4{margin:0 0 12px}.order-cancel-modal section{margin-bottom:18px}.order-cancel-modal section>h4{margin:0 0 10px}.order-cancel-help{color:var(--muted);margin:0 0 10px}.order-cancel-dispositions{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;display:grid}.order-cancel-disposition{border:1px solid var(--border);cursor:pointer;border-radius:10px;align-items:flex-start;gap:10px;padding:13px;display:flex}.order-cancel-disposition:has(input:checked){border-color:var(--primary,#2563eb);background:color-mix(in srgb, var(--primary,#2563eb) 7%, transparent)}.order-cancel-disposition input{margin-top:4px}.order-cancel-disposition span{gap:5px;display:grid}.order-cancel-disposition small,.order-cancel-disposition em{color:var(--muted);font-size:12px;font-style:normal}.order-cancel-preview{border:1px solid var(--border);border-radius:10px;padding:14px}.order-cancel-preview-line,.order-show-cancellation>div>div{border-bottom:1px solid var(--border);justify-content:space-between;gap:12px;padding:8px 0;display:flex}.order-cancel-preview-line:last-child,.order-show-cancellation>div>div:last-child{border-bottom:0}.order-cancel-refund-summary{border:1px solid var(--danger);margin-bottom:14px}.order-cancel-refund-summary strong{color:var(--danger);font-size:20px}.order-cancel-confirmation{align-items:flex-start;gap:8px;margin-top:12px;font-weight:700;display:flex}.order-cancel-confirmation input{margin-top:3px}.order-cancel-danger-note{color:var(--danger)}.order-payment-modal{width:min(620px,100vw - 32px);max-height:calc(100vh - 32px)}.order-payment-body{max-height:calc(100vh - 190px);overflow-y:auto}.order-payment-summary{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:18px;display:grid}.order-payment-summary-item{border:1px solid var(--border);background:var(--summary-bg,#f8fafb);border-radius:10px;flex-direction:column;gap:5px;min-width:0;padding:13px;display:flex}.order-payment-summary-item span{color:var(--muted);font-size:12px}.order-payment-summary-item strong{overflow-wrap:anywhere;font-size:17px}.order-payment-remaining{border-color:var(--success);background:var(--primary-soft,#eef8f5)}.order-payment-remaining strong{color:var(--success);font-size:20px}.order-payment-amount-actions{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;display:flex}.order-payment-full-button{color:var(--primary-dark);cursor:pointer;background:0 0;border:0;padding:0;font-size:12px;font-weight:700}.order-payment-full-button:hover{text-decoration:underline}.order-payment-account-state{min-height:18px;color:var(--muted);margin:5px 0 0;font-size:12px}.order-payment-modal .field-error{min-height:18px}.order-payment-credit-summary{border-color:var(--summary-border,#cce9df);background:var(--primary-soft,#eef8f5)}.order-payment-credit-summary strong{color:var(--primary-dark);font-size:20px}.order-payment-credit-summary small,.order-payment-source-hint{color:var(--muted);font-size:11px;line-height:1.6}.order-payment-sources>h4{margin:0 0 12px}.order-payment-source-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.order-payment-source{border:1px solid var(--border);background:#fff;border-radius:12px;gap:10px;min-width:0;padding:14px;display:grid}.order-payment-source h5{margin:0;font-size:14px}.order-payment-source p{margin:0}.order-payment-credit-source{border-color:var(--summary-border,#cce9df);background:var(--summary-bg,#f8fafb)}.order-payment-new-source{border-color:#d9dfe3}.order-payment-source .financial-field{min-height:auto}.order-payment-source .btn{justify-self:start}.field-optional{color:var(--muted);font-size:11px;font-weight:400}.debt-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-bottom:18px;display:grid}.supplier-dues-summary-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.supplier-dues-filters{grid-template-columns:minmax(220px,1.5fr) repeat(2,minmax(160px,1fr)) auto;align-items:end}.supplier-dues-money-input{direction:ltr;align-items:stretch;display:flex}.supplier-dues-money-input .input{border-radius:0 8px 8px 0;min-width:0}.supplier-dues-money-input span{border:1px solid var(--border);min-width:48px;color:var(--muted);background:var(--summary-bg,#f8fafb);border-inline-start:0;border-radius:8px 0 0 8px;place-items:center;padding:0 8px;font-size:12px;display:grid}.supplier-dues-filter-actions{gap:8px;display:flex}.supplier-dues-filter-error{min-height:18px;color:var(--danger,#b42318);grid-column:1/-1;margin:0;font-size:12px;font-weight:700}.supplier-dues-supplier{gap:3px;min-width:130px;display:grid}.supplier-dues-supplier small,.supplier-dues-age{color:var(--muted);font-size:11px}.supplier-dues-detail-head{border-bottom:1px solid var(--border);gap:6px;margin-bottom:18px;padding-bottom:14px;display:grid}.supplier-dues-detail-head h4,.supplier-dues-purchases-section h4,.supplier-dues-details-modal section>h4{color:var(--text);margin:0 0 10px;font-size:14px}.supplier-dues-detail-head span{color:var(--muted)}.supplier-dues-summary-cards{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:22px;display:grid}.supplier-dues-summary-cards>div{border:1px solid var(--border);background:var(--card);border-radius:10px;gap:7px;min-width:0;padding:12px;display:grid}.supplier-dues-summary-cards span,.supplier-dues-summary-cards small{color:var(--muted);font-size:11px}.supplier-dues-summary-cards b{color:var(--primary-dark);font-size:20px}.supplier-dues-summary-cards .supplier-dues-summary-due{border-color:var(--primary);background:var(--primary-soft)}.supplier-dues-summary-due b{font-size:23px}.supplier-dues-purchases-section{min-width:0}.supplier-dues-details-modal .table-wrap{overflow-x:auto}.supplier-dues-details-modal table{min-width:760px}.supplier-due-amount{color:var(--primary-dark);font-weight:800}.debt-summary-card{align-items:center;gap:13px;padding:18px;display:flex}.debt-summary-card-icon{width:42px;height:42px;color:var(--primary-dark);background:var(--primary-soft);border-radius:12px;place-items:center;font-size:20px;font-weight:800;display:grid}.debt-summary-card-value,.debt-summary-card-label{display:block}.debt-summary-card-value{color:var(--primary-dark);font-size:24px;line-height:1.1}.debt-summary-card-label{color:var(--muted);margin-top:5px;font-size:12px;font-weight:700}.debt-customer-cell{align-items:center;gap:9px;min-width:160px;display:flex}.debt-customer-cell>div{gap:3px;display:grid}.debt-customer-cell small{color:var(--muted);font-size:11px}.debt-customer-avatar{width:34px;height:34px;color:var(--primary-dark);background:var(--primary-soft);border-radius:50%;flex:0 0 34px;place-items:center;font-weight:800;display:grid}.debt-amount{color:var(--primary-dark);white-space:nowrap}.debt-amount small{color:var(--muted);font-size:10px}.debt-actions{flex-wrap:wrap;gap:6px;min-width:150px;display:flex}.debts-page .debts-table-card .table-wrap{overflow:visible}.debts-page .debts-data-table{white-space:normal;width:100%;min-width:0}.debts-page .debts-data-table .debt-customer-cell,.debts-page .debts-data-table .debt-actions{min-width:0}.debts-page .debts-data-table th:first-child,.debts-page .debts-data-table td:first-child{width:38px;min-width:38px;padding-inline:5px}.debts-page .debts-data-table .dtr-control{cursor:pointer;text-align:center}.debts-page .debts-data-table .dtr-control:focus-visible{outline:2px solid var(--primary);outline-offset:-2px}.debts-page .debts-data-table td:nth-child(2),.debts-page .debts-data-table td:nth-child(8){overflow-wrap:anywhere}.debts-page .debts-data-table td:nth-child(3),.debts-page .debts-data-table td:nth-child(4),.debts-page .debts-data-table td:nth-child(5),.debts-page .debts-data-table td:nth-child(6),.debts-page .debts-data-table td:nth-child(7){white-space:nowrap}.debts-page .debts-data-table .debts-due-duration{overflow-wrap:anywhere}.debts-page .debts-data-table tbody tr.child{background:var(--summary-bg,#f8fafb)}.debts-page .debts-data-table tbody tr.child td.child{text-align:start;padding:10px 14px}.debts-page .debts-data-table tbody tr.child .dtr-details{gap:6px;margin:0;padding:0;display:grid}.debts-page .debts-data-table tbody tr.child .dtr-title{color:var(--muted);font-weight:700}.debts-page .debts-data-table tbody tr.child .dtr-data{color:var(--text)}.customer-debt-payment-modal{width:min(620px,100vw - 32px);max-height:calc(100vh - 32px)}.customer-debt-payment-body{max-height:calc(100vh - 190px);overflow-y:auto}.customer-debt-payment-summary{margin-bottom:18px}.customer-debt-payment-summary>div{border:1px solid var(--success);background:var(--primary-soft);border-radius:10px;flex-direction:column;gap:5px;padding:16px;display:flex}.customer-debt-payment-summary span{color:var(--muted);font-size:12px}.customer-debt-payment-summary strong{color:var(--success);font-size:24px}.customer-debt-payment-info{border:1px solid var(--border);color:var(--primary-dark);background:var(--summary-bg,#f8fafb);border-radius:10px;margin-bottom:18px;padding:12px 14px;font-size:12px}.customer-debt-payment-amount-actions{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;display:flex}.customer-debt-payment-amount-actions .field-hint{margin:5px 0 0}.customer-debt-payment-modal .field-error{min-height:18px}.debt-details-body{max-height:calc(100vh - 190px);overflow-y:auto}.debt-details-state{color:var(--muted);text-align:center;padding:18px}.debt-details-error{color:var(--danger);background:var(--danger-bg,#fff1f2);border-radius:10px}.debt-details-customer{align-items:center;gap:9px;margin-top:8px;display:flex}.debt-details-customer>div{gap:2px;display:grid}.debt-details-customer-avatar{width:34px;height:34px;color:var(--primary-dark);background:var(--primary-soft);border-radius:50%;place-items:center;font-weight:800;display:grid}.debt-details-customer-name{font-size:14px}.debt-details-customer-phone{color:var(--muted);font-size:11px}.debt-details-loading{justify-content:center;align-items:center;gap:10px;display:flex}.debt-details-skeleton{border:2px solid var(--border);border-top-color:var(--primary);border-radius:50%;width:16px;height:16px;animation:.8s linear infinite debt-details-spin;display:inline-block}@keyframes debt-details-spin{to{transform:rotate(360deg)}}.debt-details-summary{grid-template-columns:1fr 1fr;gap:10px;margin-bottom:18px;display:grid}.debt-details-summary>div{background:var(--summary-bg,#f8fafb);border-radius:10px;flex-direction:column;gap:5px;padding:14px;display:flex}.debt-details-summary span{color:var(--muted);font-size:12px}.debt-details-summary strong{color:var(--primary-dark);font-size:21px}.debt-details-remaining{color:var(--primary-dark);font-size:17px;font-weight:800}.debt-order-status{white-space:nowrap;border-radius:999px;padding:4px 9px;font-size:11px;font-weight:700;display:inline-flex}.debt-order-status-unpaid{color:var(--muted);background:#f1f3f5}.debt-order-status-partial{color:var(--primary-dark);background:var(--primary-soft)}.payment-account-state{min-height:18px;color:var(--muted);margin:5px 0 0;font-size:12px}@media (width<=900px){.supplier-dues-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.supplier-dues-search-field,.supplier-dues-filter-actions,.supplier-dues-filter-error{grid-column:1/-1}.supplier-dues-summary-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=700px){.debt-summary-grid,.supplier-dues-summary-grid,.supplier-dues-filters{grid-template-columns:1fr}.supplier-dues-filter-actions{grid-template-columns:1fr 1fr;display:grid}.supplier-dues-summary-cards{grid-template-columns:1fr 1fr}.customer-debt-payment-modal,.debt-details-modal,.supplier-dues-details-modal{width:100%;max-height:100vh}.customer-debt-payment-body,.debt-details-body{max-height:calc(100vh - 170px);padding:14px}.debt-details-summary{grid-template-columns:1fr}.debt-actions{min-width:0}.debt-actions .btn{flex:100%}}@media (width>=701px){.debt-customer-cell small{display:none}}.debt-details-modal{width:min(1000px,100vw - 32px);max-height:calc(100vh - 40px)}.debt-details-header{border-bottom:1px solid var(--border);background:var(--card,#fff);flex-shrink:0;justify-content:space-between;align-items:center;gap:18px;padding:20px 24px;display:flex}.debt-details-heading{align-items:center;gap:12px;min-width:0;display:flex}.debt-details-heading-icon{width:42px;height:42px;color:var(--primary-dark);background:var(--primary-soft);border-radius:12px;flex:0 0 42px;place-items:center;font-size:21px;font-weight:800;display:grid}.debt-details-heading h2{margin:0;font-size:19px}.debt-details-heading p{color:var(--muted);margin:4px 0 0;font-size:12px}.debt-details-close{border:1px solid var(--border);width:36px;height:36px;color:var(--muted);background:var(--card);cursor:pointer;border-radius:10px;flex:0 0 36px;place-items:center;font-size:24px;line-height:1;display:grid}.debt-details-close:hover,.debt-details-close:focus{color:var(--primary-dark);border-color:var(--primary);outline:none}.debt-details-body{padding:22px 24px}.debt-details-customer-card{border:1px solid var(--border);background:var(--summary-bg,#f8fafb);border-radius:14px;align-items:center;gap:12px;margin-bottom:18px;padding:14px 16px;display:flex}.debt-details-avatar{width:46px;height:46px;color:var(--primary-dark);background:var(--primary-soft);border-radius:50%;flex:0 0 46px;place-items:center;font-size:20px;font-weight:800;display:grid}.debt-details-customer-info{gap:3px;min-width:0;display:grid}.debt-details-customer-label,.debt-details-customer-info>span:last-child{color:var(--muted);font-size:11px}.debt-details-customer-info>strong{overflow-wrap:anywhere;font-size:15px}.debt-details-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.debt-details-summary-card{border:1px solid var(--border);background:var(--card);border-radius:14px;min-width:0;padding:17px 18px}.debt-details-summary-card>span,.debt-details-summary-card>small{color:var(--muted);font-size:12px;display:block}.debt-details-summary-card>strong{color:var(--primary-dark);white-space:nowrap;margin:7px 0 2px;font-size:25px;line-height:1.15;display:block}.debt-details-total-card{border-color:var(--summary-border,#cce9df);background:var(--primary-soft)}.debt-details-total-card>strong{color:var(--success);font-size:28px}.debt-details-section-heading{justify-content:space-between;align-items:end;gap:12px;margin:26px 0 12px;display:flex}.debt-details-section-heading h3{margin:0;font-size:16px}.debt-details-section-heading p{color:var(--muted);margin:4px 0 0;font-size:11px}.debt-details-section-heading>span{color:var(--primary-dark);background:var(--primary-soft);white-space:nowrap;border-radius:999px;padding:5px 10px;font-size:11px;font-weight:700}.debt-details-table-wrapper{border:1px solid var(--border);border-radius:12px;overflow-x:auto}.debt-details-table{border-collapse:collapse;width:100%;min-width:760px}.debt-details-table th{color:var(--muted);background:var(--summary-bg,#f8fafb);text-align:right;font-size:11px;font-weight:700}.debt-details-table th,.debt-details-table td{border-bottom:1px solid var(--border);white-space:nowrap;padding:12px 13px}.debt-details-table tbody tr:last-child td{border-bottom:0}.debt-details-table tbody tr:hover{background:#fbfdfd}.debt-details-order-number{color:var(--primary-dark);font-weight:800}.debt-details-amount,.debt-details-paid-amount,.debt-details-remaining-amount{font-variant-numeric:tabular-nums}.debt-details-paid-amount{color:var(--success)}.debt-details-remaining-amount{color:var(--primary-dark);font-size:15px;font-weight:800}.debt-order-view-button{white-space:nowrap}.debt-details-order-card-footer{border-top:1px solid var(--border);margin-top:12px;padding-top:12px;display:flex}.debt-details-mobile-orders{display:none}.debt-details-state{padding:34px 18px}.debt-details-loading{align-items:center;min-height:180px}.debt-details-loading>div{text-align:right;gap:5px;display:grid}.debt-details-loading strong{color:var(--text);font-size:14px}.debt-details-loading div span{color:var(--muted);font-size:11px}.debt-details-spinner{border:3px solid var(--border);border-top-color:var(--primary);border-radius:50%;width:26px;height:26px;animation:.8s linear infinite debt-details-spin;display:block}.debt-details-empty{align-content:center;justify-items:center;gap:8px;min-height:220px;display:grid}.debt-details-state-icon{width:42px;height:42px;color:var(--success);background:var(--primary-soft);border-radius:50%;place-items:center;font-size:20px;font-weight:800;display:grid}.debt-details-empty strong{color:var(--text)}.debt-details-empty p{color:var(--muted);margin:0;font-size:12px}.debt-details-error{justify-items:center;gap:9px;display:grid}.debt-details-error strong{color:var(--danger)}.debt-details-error span{color:var(--muted);font-size:12px}.debt-details-footer{border-top:1px solid var(--border);background:var(--card,#fff);flex-shrink:0;justify-content:flex-start;padding:14px 24px;display:flex}@media (width<=767px){.debt-details-modal{border:0;border-radius:0;width:100%;max-height:100vh}.debt-details-header{padding:16px}.debt-details-heading-icon{flex-basis:36px;width:36px;height:36px}.debt-details-heading h2{font-size:16px}.debt-details-body{padding:16px}.debt-details-summary{grid-template-columns:1fr}.debt-details-table-wrapper{display:none}.debt-details-mobile-orders{gap:10px;display:grid}.debt-details-order-card{border:1px solid var(--border);background:var(--card);border-radius:13px;padding:14px}.debt-details-order-card-header{border-bottom:1px solid var(--border);justify-content:space-between;align-items:flex-start;gap:10px;padding-bottom:12px;display:flex}.debt-details-order-card-header>div{gap:4px;min-width:0;display:grid}.debt-details-order-card-header strong{overflow-wrap:anywhere;color:var(--primary-dark)}.debt-details-order-card-header span:not(.debt-order-status){color:var(--muted);font-size:11px}.debt-details-order-card-values{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding-top:12px;display:grid}.debt-details-order-card-values>div{gap:5px;min-width:0;display:grid}.debt-details-order-card-values span{color:var(--muted);font-size:10px}.debt-details-order-card-values strong{overflow-wrap:normal;color:var(--text);white-space:nowrap;font-size:13px}.debt-details-order-card-remaining{background:var(--primary-soft);border-radius:9px;padding:9px}.debt-details-order-card-remaining strong{color:var(--primary-dark)!important;font-size:16px!important}.debt-details-order-card-footer .btn{width:100%}.debt-details-footer{padding:12px 16px}.debt-details-footer .btn{width:100%}}@media (width<=700px){.order-payment-modal{width:100%;max-height:100vh}.order-payment-body{max-height:calc(100vh - 170px);padding:14px}.order-payment-summary,.order-payment-source-grid{grid-template-columns:1fr}.order-cancel-modal{width:100%;max-height:100vh}.order-cancel-body{max-height:calc(100vh - 170px);padding:14px}.order-cancel-summary,.order-cancel-dispositions{grid-template-columns:1fr}}.order-edit-modal{width:min(1200px,100% - 32px);max-height:calc(100dvh - 32px)}.order-edit-body{max-height:calc(100dvh - 190px)}.order-edit-item-search-section,.order-edit-items-section,.order-edit-notes-section{margin-top:18px}.order-edit-item-search-wrap{position:relative}.order-edit-item-search-wrap label,.order-edit-notes-section label{color:var(--muted);margin-bottom:6px;font-size:12px;font-weight:700;display:block}.order-edit-item-search-wrap .order-search-results{z-index:5;position:absolute;left:0;right:0}.order-edit-items-table th:first-child{width:27%}.order-edit-items-table th:nth-child(2),.order-edit-items-table th:nth-child(3),.order-edit-items-table th:nth-child(4){width:12%}.order-edit-items-table th:nth-child(5){width:23%}.order-edit-items-table th:nth-child(6){width:14%}.order-edit-item-row .order-edit-price-cell{white-space:nowrap}.order-edit-item-row .line-quantity{width:100%;min-width:0}.order-edit-item-row .input{min-width:0}.order-edit-error-summary{color:var(--danger);background:var(--danger-bg,#fff1f2);border-radius:10px;margin-bottom:14px;padding:12px}.order-edit-loading{color:var(--muted);padding:18px}@media (width<=700px){.order-edit-body{max-height:none}.order-edit-items-table-wrap{overflow:visible}.order-edit-items-table,.order-edit-items-table thead,.order-edit-items-table tbody,.order-edit-items-table tr,.order-edit-items-table th,.order-edit-items-table td{width:100%;display:block}.order-edit-items-table thead{display:none}.order-edit-item-row{border:1px solid var(--border);box-shadow:var(--shadow);background:#fff;border-radius:12px;grid-template-columns:1fr 1fr;gap:5px;margin-bottom:10px;padding:12px;display:grid!important}.order-edit-item-row td{border:0;flex-direction:column;padding:5px;display:flex}.order-edit-item-row td:before{content:attr(data-label);color:var(--muted);margin-bottom:4px;font-size:11px;font-weight:700}.order-edit-item-row td:first-child,.order-edit-item-row td:last-child{grid-column:1/-1}.order-edit-item-row .btn{width:100%;min-height:40px}.order-edit-items-table .order-items-empty{box-shadow:none;margin:0;display:block!important}.order-edit-items-table .order-items-empty td{display:block!important}}.collection-method-section{background:var(--surface,#fff)}.collection-header-meta{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:10px;display:flex}.collection-credit-badge{border:1px solid var(--summary-border,#cce9df);background:var(--primary-soft,#eef8f5);color:var(--primary-dark);white-space:nowrap;border-radius:999px;padding:6px 10px;font-size:12px;font-weight:700}.collection-credit-badge strong{font-size:13px}.collection-method-options{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0 0 14px;display:grid}.collection-mode-option{border:1px solid var(--border);color:var(--muted);background:var(--summary-bg,#f8fafb);cursor:pointer;border-radius:10px;align-items:flex-start;gap:9px;padding:12px 14px;font-size:13px;font-weight:700;transition:all .15s;display:flex}.collection-mode-option.is-active{border-color:var(--primary);color:var(--primary-dark);background:var(--primary-soft,#eef8f5);box-shadow:0 0 0 2px color-mix(in srgb,var(--primary) 12%,transparent)}.collection-mode-option:has(input:checked){border-color:var(--primary);color:var(--primary-dark);background:var(--primary-soft,#eef8f5);box-shadow:0 0 0 2px color-mix(in srgb,var(--primary) 12%,transparent)}.collection-mode-option input{accent-color:var(--primary);margin-top:3px}.collection-mode-option span{flex-direction:column;gap:3px;display:flex}.collection-mode-option small{color:var(--muted);font-size:11px;font-weight:500}.collection-fields,.collection-payment-details{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:12px;display:grid}.collection-info{color:var(--muted);background:var(--summary-bg,#f8fafb);border-radius:8px;margin:0;padding:10px 12px;font-size:12px}.order-summary-notes{border-top:1px solid var(--border);margin-top:18px;padding-top:16px}.order-summary-notes h5{margin:0 0 10px;font-size:13px}.collection-result{border:1px solid var(--summary-border,#cce9df);background:var(--summary-bg,#f8fafb);border-radius:10px;margin-top:14px;padding:12px 14px}.collection-result h5{margin:0 0 9px;font-size:13px}.collection-result dl{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0;display:grid}.collection-result dl div{flex-direction:column;gap:4px;display:flex}.collection-result dt{color:var(--muted);font-size:11px;font-weight:700}.collection-result dd{margin:0;font-weight:700}.collection-result .settlement-paid{color:var(--success,#087f5b)}.collection-result .settlement-due{color:var(--danger,#c92a2a)}.collection-result .field-error{margin:9px 0 0}@media (width<=700px){.collection-fields,.collection-payment-details,.collection-result dl{grid-template-columns:repeat(2,minmax(0,1fr))}}.combined-payment-layout.is-combined{grid-template-columns:repeat(12,minmax(0,1fr));gap:14px;margin-top:12px;display:grid}.combined-payment-layout.is-combined>.collection-fields,.combined-payment-layout.is-combined>.collection-payment-details{display:contents}.combined-payment-layout.is-combined .combined-available,.combined-payment-layout.is-combined .combined-credit,.combined-payment-layout.is-combined .combined-credit-action,.combined-payment-layout.is-combined .combined-old-credit{grid-column:span 3}.combined-payment-layout.is-combined .combined-after-credit,.combined-payment-layout.is-combined .combined-new-money,.combined-payment-layout.is-combined .combined-account,.combined-payment-layout.is-combined .combined-reference{grid-column:span 4}.combined-payment-layout.is-combined .combined-notes{grid-column:span 8}.combined-payment-layout.is-combined #orderNewMoneyAmountError{grid-column:1/-1}.combined-payment-layout.is-combined .combined-credit-action{align-self:end}.combined-payment-layout.is-combined .combined-credit-action .btn{width:100%;min-height:38px}.combined-payment-layout.is-combined .collection-payment-details,.combined-payment-layout.is-combined .combined-account,.combined-payment-layout.is-combined .combined-reference,.combined-payment-layout.is-combined .combined-notes{margin-top:0}@media (width<=900px){.combined-payment-layout.is-combined .combined-available,.combined-payment-layout.is-combined .combined-credit,.combined-payment-layout.is-combined .combined-credit-action,.combined-payment-layout.is-combined .combined-old-credit,.combined-payment-layout.is-combined .combined-after-credit,.combined-payment-layout.is-combined .combined-new-money,.combined-payment-layout.is-combined .combined-account,.combined-payment-layout.is-combined .combined-reference,.combined-payment-layout.is-combined .combined-notes{grid-column:span 6}}.combined-payment-layout.is-combined>[hidden]{display:none!important}.collection-result{background:0 0;border:0;margin-top:10px;padding:0}@media (width<=560px){.combined-payment-layout.is-combined{grid-template-columns:1fr;gap:10px;display:grid}.combined-payment-layout.is-combined .combined-available,.combined-payment-layout.is-combined .combined-credit,.combined-payment-layout.is-combined .combined-credit-action,.combined-payment-layout.is-combined .combined-old-credit,.combined-payment-layout.is-combined .combined-after-credit,.combined-payment-layout.is-combined .combined-new-money,.combined-payment-layout.is-combined .combined-account,.combined-payment-layout.is-combined .combined-reference,.combined-payment-layout.is-combined .combined-notes{grid-column:1}.combined-payment-layout.is-combined .combined-credit-action{align-self:stretch}}
