.inventory-command,.warehouse-command{
  display:flex;align-items:center;justify-content:space-between;gap:8px;
  min-height:34px;height:auto;margin:0 0 5px;padding:3px 7px;
  border:1px solid var(--ui-line);border-radius:8px;background:#fff;
}
.inventory-command :is(h1,h2),.warehouse-command :is(h1,h2){margin:0;font-size:calc(12px + var(--ui-font-step));white-space:nowrap}
.inventory-balance-tools,.inventory-balance-actions,.issue-history-actions{display:flex;align-items:center;gap:5px;min-width:0}
.inventory-balance-tools .screen-export-actions{margin:0}
.inventory-balance-tools button,.inventory-balance-tools summary{white-space:nowrap}
.inventory-movement-menu>summary.button{padding-inline:10px;border-color:var(--ui-blue);border-radius:6px;background:var(--ui-blue);color:#fff;min-height:var(--ui-control-h)}
.inventory-movement-menu>summary.button:is(:hover,[aria-expanded=true]){background:color-mix(in srgb,var(--ui-blue) 86%,#102c46)}
.inventory-movement-menu>summary::-webkit-details-marker{display:none}
.inventory-balance-toolbar,.issue-history-filter{
  display:grid;align-items:center;justify-content:start;gap:6px;margin:0 0 5px;padding:4px 7px;
  min-height:35px;border:1px solid var(--ui-line);border-radius:8px;background:#f8fbfd;
}
.inventory-balance-toolbar{grid-template-columns:minmax(205px,310px) minmax(175px,320px) auto}
.issue-history-filter{grid-template-columns:minmax(135px,235px) minmax(150px,220px) minmax(124px,175px) minmax(103px,137px) minmax(103px,137px) auto auto}
:is(.inventory-balance-toolbar,.issue-history-filter) .field{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:4px;min-width:0;margin:0}
:is(.inventory-balance-toolbar,.issue-history-filter) .field>span{white-space:nowrap}
:is(.inventory-balance-toolbar,.issue-history-filter) :is(input,select,.unified-search,.smart-select){width:100%;min-width:0}
.inventory-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(125px,100%),1fr));gap:6px;margin:0 0 5px}
.inventory-metrics>div{min-width:0;display:grid;align-content:center;gap:1px;min-height:49px;padding:4px 9px;border:1px solid var(--ui-line);border-radius:8px;background:#fff}
.inventory-metrics>div>span{color:var(--ui-muted);font-size:calc(9px + var(--ui-font-step))}
.inventory-metrics>div>strong{color:var(--ui-navy);font-size:calc(15px + var(--ui-font-step));font-variant-numeric:tabular-nums;line-height:1.25;overflow-wrap:anywhere}
.inventory-metrics>.inventory-metric-blocks{border-color:#c5d9ee;background:#eef6ff}
.inventory-metrics>.inventory-metric-empty{min-height:34px;color:var(--ui-muted)}
.inventory-register{min-width:0;margin:0 0 5px;border-radius:9px;overflow:hidden}
.inventory-register :is(.card-toolbar,.warehouse-table-toolbar){min-height:31px;padding:4px 8px;background:#f8fbfd;border-bottom:1px solid var(--ui-line)}
.inventory-register .card-toolbar h2{margin:0;font-size:calc(11px + var(--ui-font-step))}
.inventory-register .table-wrap{overflow:auto}
.inventory-register table{width:100%}
.inventory-register :is(td,th){padding:3px 7px;line-height:1.35}
.inventory-register thead th{background:#edf4fa}
.inventory-register td>small{display:block;color:var(--ui-muted);margin-block-start:1px;line-height:1.25}
.inventory-register .record-pager{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:6px;margin:0;padding:5px 8px;border-top:1px solid var(--ui-line)}
.inventory-register .record-pager>div{display:flex;gap:4px}
.inventory-balance-card table{min-width:780px}
.inventory-balance-card td{padding-block:2px}
.inventory-balance-card td:nth-child(2){min-width:155px;white-space:normal;overflow-wrap:anywhere}
.inventory-balance-card :is(td:nth-child(3),td:nth-child(5),td:nth-child(6),td:nth-child(7)){font-variant-numeric:tabular-nums;white-space:nowrap}
.inventory-balance-card td:nth-child(2)>strong{display:block}
.inventory-register .inventory-block-count{min-width:76px;text-align:center;font-variant-numeric:tabular-nums;background:#f0f6fc}
#inventory-work-view table,#issue-requests-view table{min-width:790px}
#issue-history-view .inventory-register table{min-width:950px}
#issue-history-view td>.order-number{white-space:nowrap;direction:ltr;display:inline-block}
#issue-history-view .issue-history-tabs{margin-block:0 5px}
.inventory-content-nav{margin-block:0 5px}
@media(max-width:760px){
  .inventory-command,.warehouse-command{min-height:33px;flex-wrap:wrap;padding-block:4px}
  #inventory-stock-view .inventory-command>div:first-child{display:none}
  .inventory-balance-tools,.inventory-balance-actions,.issue-history-actions{flex-wrap:wrap;justify-content:flex-end;margin-inline-start:auto}
  .inventory-balance-toolbar,.issue-history-filter{grid-template-columns:repeat(2,minmax(0,1fr))}
  .inventory-balance-toolbar .unified-search,.issue-history-filter .unified-search{grid-column:1/-1;grid-row:1}
  .inventory-balance-toolbar>button{justify-self:end}
  .inventory-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:4px}
  .inventory-metrics:has(>div:nth-child(3):last-child){grid-template-columns:repeat(3,minmax(0,1fr))}
  .inventory-metrics>div{min-height:43px;padding:3px 5px}
  .inventory-balance-card table{min-width:654px;table-layout:fixed}
  .inventory-balance-card :is(td,th){padding-inline:4px}
  .inventory-balance-card th:nth-child(1){width:59px}
  .inventory-balance-card th:nth-child(2){width:130px}
  .inventory-balance-card th:nth-child(3){width:64px}
  .inventory-balance-card th:nth-child(4){width:61px;white-space:normal}
  .inventory-balance-card th:nth-child(5){width:75px}
  .inventory-balance-card th:nth-child(6){width:113px}
  .inventory-balance-card th:nth-child(7){width:100px}
  .inventory-balance-card th:last-child{width:52px}
  .inventory-balance-card :is(th,td):last-child:not([colspan]){position:sticky;inset-inline-end:0;z-index:1;border-inline-start:1px solid var(--ui-line);background:#f8fbfd}
  .inventory-balance-card td:nth-child(2){min-width:0}
  .inventory-balance-card .inventory-block-count{min-width:0}
}
.inventory-dialog{max-height:calc(100dvh - 20px);border-radius:10px}
.inventory-dialog>.modal-header{min-height:39px;padding:6px 10px;background:#f5f9fd}
.inventory-dialog>.modal-header h2{line-height:1.35;white-space:normal;overflow-wrap:anywhere}
.inventory-dialog>.modal-header>small,.inventory-dialog>.modal-header small{color:var(--ui-muted)}
.inventory-dialog>form{display:flex;flex:1 1 auto;flex-direction:column;min-height:0;overflow:hidden}
.inventory-dialog .inventory-dialog-body{flex:1 1 auto;min-width:0;min-height:0;overflow:auto;overscroll-behavior:contain}
.inventory-dialog>.modal-actions,.inventory-dialog>form>.modal-actions{position:static;flex:0 0 auto;min-height:37px;flex-wrap:wrap;margin:0;padding:5px 9px}
.inventory-dialog>form>.form-message{flex:0 0 auto}
.inventory-dialog .field{min-width:0;margin:0;gap:3px}
.inventory-dialog .field :is(input:not([type=checkbox],[type=radio]),select,textarea,.smart-select){min-width:0;width:100%}
.inventory-dialog .table-wrap{min-width:0;max-width:100%;overflow:auto}
.inventory-dialog :is(.warehouse-receipt-entry-table,.warehouse-movement-entry-table,.issue-lines-wrap table) :is(th,td){padding:3px 5px}
@media(max-width:760px){
  .inventory-dialog{width:calc(100vw - 8px);max-height:calc(100dvh - 8px)}
  .inventory-dialog .field:has(>textarea){grid-column:1/-1}
}
.inventory-balance-print-card{display:flex;flex-direction:column;width:min(1180px,calc(100vw - 20px));height:min(820px,calc(100dvh - 20px));max-height:calc(100dvh - 20px);overflow:hidden}
.inventory-balance-print-card .modal-header,.inventory-balance-print-card .modal-actions{flex:0 0 auto;margin:0}
.inventory-balance-print-card .modal-actions{gap:6px;flex-wrap:wrap}
.inventory-print-zero{display:flex;align-items:center;gap:5px;font-size:12px;white-space:nowrap;margin:0}
.inventory-print-zero input{width:15px;height:15px;min-height:0;margin:0}
.inventory-stock-statement-card .inventory-statement-table-wrap table.inventory-summary-table{min-width:1120px;table-layout:fixed}
.inventory-summary-table th:first-child{width:100px}.inventory-summary-table th:nth-child(2){width:220px}.inventory-summary-table th:nth-child(3){width:40px}
.inventory-stock-statement-card .inventory-summary-table th{white-space:normal;line-height:1.35;padding:5px}
.inventory-balance-print-card .modal-actions>.button:last-child{margin-inline-start:auto}
.inventory-balance-print-content{flex:1 1 auto;min-height:0;overflow:hidden;padding:6px;background:#edf2f6}
#inventory-balance-print-frame{display:block;width:100%;height:100%;border:1px solid var(--ui-line);background:#fff}
@media(max-width:760px){.inventory-balance-print-card{width:calc(100vw - 8px);height:calc(100dvh - 8px);max-height:calc(100dvh - 8px)}.inventory-balance-print-card .modal-header h2{font-size:14px}.inventory-balance-print-content{padding:3px}}
.inventory-stock-statement-card{width:min(1180px,calc(100vw - 20px));height:min(780px,calc(100dvh - 20px));max-height:calc(100dvh - 20px)}
.inventory-stock-statement-card .modal-header,.inventory-stock-statement-card .modal-actions{flex:0 0 auto}
.inventory-stock-statement-card .inventory-statement-content{display:flex;flex:1 1 auto;flex-direction:column;gap:6px;min-height:0;overflow:auto;padding:6px 8px}
.inventory-stock-statement-card .inventory-stock-statement-filter{display:grid;grid-template-columns:minmax(190px,280px) minmax(160px,220px) 130px 130px minmax(max-content,1fr);align-items:end;gap:6px;flex:0 0 auto;padding:6px;border:1px solid var(--ui-line);border-radius:6px;background:#f8fbfd}
.inventory-stock-statement-card.warehouse-statement .inventory-stock-statement-filter{grid-template-columns:minmax(170px,240px) minmax(160px,210px) 120px 120px minmax(max-content,1fr)}
.inventory-stock-statement-card .inventory-stock-statement-filter>button{justify-self:end}
.inventory-stock-statement-card .field{min-width:0;gap:3px;margin:0}.inventory-stock-statement-card .field :is(input,select,.smart-select){width:100%;min-width:0}.inventory-stock-statement-card :is(input,.smart-select-input,.button){height:29px;min-height:29px}
.inventory-stock-statement-card .warehouse-balance-inline{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;flex:0 0 auto}
.inventory-stock-statement-card .warehouse-balance-inline>span{display:grid;gap:2px;padding:6px 8px;border:1px solid var(--ui-line);border-radius:6px;background:#f8fbfd;color:var(--ui-muted)}
.inventory-stock-statement-card .warehouse-balance-inline strong{color:var(--ui-text)}
.inventory-stock-statement-card .warehouse-balance-inline b{font-weight:500}.inventory-stock-statement-card .warehouse-balance-inline small{display:block}.inventory-stock-statement-card strong>small{display:inline-block;margin-inline-start:4px;font-weight:500}
.inventory-stock-statement-card .inventory-statement-meta{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;gap:8px;padding:6px 8px;border:1px solid var(--ui-line);border-radius:6px;background:#fff;flex:none}.inventory-stock-statement-card .inventory-statement-identity{display:grid;grid-template-columns:auto minmax(0,1fr);gap:2px 7px}.inventory-stock-statement-card .inventory-statement-identity>b{grid-column:2;direction:ltr;text-align:right;color:var(--ui-muted)}.inventory-stock-statement-card .inventory-statement-period{display:grid;gap:3px;font-size:calc(9px + var(--ui-font-step));color:var(--ui-muted)}
.inventory-stock-statement-card .inventory-statement-table-wrap{flex:1 0 auto;min-height:160px;border:1px solid var(--ui-line);border-radius:7px}
.inventory-stock-statement-card table{min-width:850px;width:100%}.inventory-stock-statement-card thead{position:sticky;top:0;z-index:1}
.inventory-stock-statement-card td small{display:block;color:var(--ui-muted)}
.inventory-stock-statement-card .statement-blocks{min-width:76px;text-align:center;font-variant-numeric:tabular-nums;background:#f4f9fc;font-weight:700}
.inventory-stock-statement-card .inventory-statement-source-link{padding:0;border:0;background:transparent;color:var(--ui-blue);font:inherit;font-weight:800;text-decoration:underline;text-underline-offset:3px;cursor:pointer}.inventory-stock-statement-card .inventory-statement-source-row{cursor:pointer}.inventory-stock-statement-card .inventory-statement-source-row:focus-visible{outline:1px solid #acd0ed;outline-offset:-1px}.inventory-stock-statement-card .statement-number{text-align:center;direction:ltr;white-space:nowrap}.inventory-stock-statement-card :is(.statement-date,.statement-source-number){white-space:nowrap}.inventory-stock-statement-card .statement-balance{background:#f2f7fb;font-weight:800}.inventory-stock-statement-card .modal-actions>#print-inventory-stock-statement{margin-right:auto}
.inventory-stock-statement-card .record-pager{flex:0 0 auto;margin:0}.inventory-stock-statement-card .modal-actions{margin-top:0;gap:8px;flex-wrap:wrap}
@media(max-width:1000px){.inventory-stock-statement-card .inventory-stock-statement-filter{grid-template-columns:minmax(160px,1.3fr) minmax(140px,1fr) 116px 116px auto}}
@media(max-width:760px){.inventory-stock-statement-card{width:calc(100vw - 8px);height:calc(100dvh - 8px);max-height:calc(100dvh - 8px)}.inventory-stock-statement-card .inventory-stock-statement-filter,.inventory-stock-statement-card.warehouse-statement .inventory-stock-statement-filter{grid-template-columns:repeat(2,minmax(0,1fr))}.inventory-stock-statement-card #inventory-statement-product-field{grid-column:1/-1}.inventory-stock-statement-card .inventory-stock-statement-filter button{justify-self:end;margin-inline-start:auto}.inventory-stock-statement-card .warehouse-balance-inline{grid-template-columns:repeat(2,minmax(0,1fr))}}
#warehouse-directory-root{display:flex;flex-direction:column;gap:4px;min-width:0}.warehouse-directory-heading{margin:0}.warehouse-directory-heading .warehouse-heading-actions{flex:none;margin-inline-start:auto}.warehouse-directory-card{min-width:0;margin:0;overflow:hidden}#warehouse-directory-view .warehouse-directory-table{width:100%;min-width:900px;table-layout:fixed}#warehouse-directory-view .warehouse-directory-table th:nth-child(1){width:43%}#warehouse-directory-view .warehouse-directory-table th:nth-child(2){width:23%}#warehouse-directory-view .warehouse-directory-table th:nth-child(3){width:18%}#warehouse-directory-view .warehouse-directory-table th:nth-child(4){width:9%}#warehouse-directory-view .warehouse-directory-table th:nth-child(5){width:7%}#warehouse-directory-view .warehouse-directory-table td>small{display:block;color:var(--ui-muted);font-size:11px}.warehouse-directory-modal-card{display:flex;flex-direction:column;width:min(900px,calc(100vw - 20px));max-width:calc(100vw - 20px);max-height:calc(100dvh - 20px);padding:0;overflow:hidden}#warehouse-directory-form{display:flex;flex-direction:column;min-height:0;overflow:hidden}#warehouse-directory-form .modal-form{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));flex:1;gap:8px;padding:9px;margin:0}#warehouse-directory-form .field{min-width:0;margin:0;gap:3px}#warehouse-directory-form :is(input,select,.smart-select){width:100%;min-width:0}#warehouse-directory-form .check-field{display:flex;align-items:center;gap:6px}#warehouse-directory-form .check-field input{width:16px;min-height:16px;margin:0}#warehouse-directory-form .modal-actions{flex:none;margin:0;padding:7px 10px;border-top:1px solid var(--ui-line)}#warehouse-directory-form .form-message:not(.hidden){flex:none;margin:4px 10px}
.warehouse-command-bar{display:grid;grid-template-columns:minmax(0,1fr);gap:5px;margin-block-end:5px}.warehouse-command-bar .warehouse-heading-actions{margin-inline-start:auto}
.warehouse-compact-header{min-width:0;margin:0}
.warehouse-command-bar .warehouse-module-tabs{min-height:29px;height:auto;flex-wrap:wrap;margin:0}
#warehouse-directory-view .warehouse-directory-tools{display:flex;align-items:center;gap:6px;min-height:34px;padding:4px 7px;border:1px solid var(--ui-line);border-radius:8px;background:#f8fbfd}#warehouse-directory-view .warehouse-directory-tools .unified-search{width:260px;flex:none}.warehouse-tree-actions{display:flex;align-items:center;gap:4px;margin-inline-start:auto}.warehouse-directory-heading .screen-export-actions{margin:0}
#issue-requests-view .unified-screen-filter{grid-template-columns:minmax(260px,340px) repeat(2,125px) auto auto;justify-content:start}
.warehouse-receipt-modal-card{width:min(1480px,calc(100vw - 20px));height:min(780px,calc(100vh - 20px))}.warehouse-receipt-modal-card #warehouse-receipt-form{display:flex;flex:1 1 auto;flex-direction:column;min-height:0;overflow:hidden}.warehouse-receipt-head{padding:8px;background:#f9fbfd}.warehouse-receipt-lines-wrap{min-width:0}.warehouse-receipt-entry-table{width:100%;table-layout:fixed}.warehouse-receipt-entry-table.has-block-measurements{min-width:1120px}.warehouse-receipt-entry-table.has-cost.has-block-measurements{min-width:1340px}.warehouse-receipt-entry-table.has-cost.quantity-only{min-width:910px}.warehouse-receipt-entry-table.has-cost.quantity-only.has-purchase-order{min-width:1140px}.warehouse-receipt-entry-table.opening-valuation.has-block-measurements{min-width:1290px}.warehouse-receipt-entry-table.quantity-only{min-width:700px}.warehouse-receipt-entry-table.opening-valuation.quantity-only{min-width:870px}.warehouse-receipt-entry-table.quantity-only.has-purchase-order{min-width:930px}.warehouse-receipt-entry-table .receipt-index-heading{width:42px}.warehouse-receipt-entry-table .receipt-product-heading{width:auto}.warehouse-receipt-entry-table.has-block-measurements .receipt-product-heading{width:245px}.warehouse-receipt-entry-table .receipt-order-heading{width:190px}.warehouse-receipt-entry-table .receipt-quantity-heading{width:125px}.warehouse-receipt-entry-table .receipt-uom-heading{width:175px}.warehouse-receipt-entry-table .receipt-dimension-heading{width:86px}.warehouse-receipt-entry-table .receipt-volume-heading{width:105px}.warehouse-receipt-entry-table .receipt-expiry-heading{width:115px}.warehouse-receipt-entry-table .receipt-action-heading{width:42px}.warehouse-receipt-entry-table .receipt-cost-heading{width:210px}.warehouse-receipt-entry-table .receipt-cost-cell{padding-inline:6px}.warehouse-receipt-entry-table .receipt-cost-cell input{direction:ltr;text-align:right;font-variant-numeric:tabular-nums}.warehouse-receipt-entry-table :is(input,select,.smart-select){width:100%;min-width:0}.warehouse-receipt-entry-table .receipt-dimension-cell{padding-inline:3px}.warehouse-receipt-entry-table.quantity-only :is(th,td){vertical-align:middle}.warehouse-receipt-lines-head,.purchasing-lines-head{display:flex;align-items:center;justify-content:space-between;gap:7px;min-height:34px;padding:4px 8px;border-block:1px solid var(--ui-line);background:#f8fbfd}.warehouse-receipt-notes{flex:0 0 auto;padding:5px 9px}.warehouse-receipt-modal-card .modal-actions{flex:0 0 auto}
.warehouse-modal-card{width:min(1480px,calc(100vw - 20px));max-height:calc(100vh - 20px)}#warehouse-product-modal .warehouse-modal-card{height:min(780px,calc(100vh - 20px))}
.warehouse-modal-card #warehouse-document-form{display:flex;flex:1 1 auto;flex-direction:column;min-height:0;overflow:hidden}
.warehouse-modal-card .warehouse-document-fields{grid-template-columns:repeat(3,minmax(0,1fr));align-content:start;gap:6px;padding:7px 9px}
.warehouse-modal-card .warehouse-movement-lines{grid-column:1/-1;min-width:0;margin:1px 0 2px;border:1px solid var(--ui-line);border-radius:7px;background:#fff;overflow:hidden}
.warehouse-modal-card .warehouse-movement-lines-head{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:35px;padding:4px 7px;border-bottom:1px solid var(--ui-line);background:#f7fafc}
.warehouse-modal-card .warehouse-movement-lines-head>div{display:grid;gap:1px}.warehouse-modal-card .warehouse-movement-lines-head strong{font-size:calc(10px + var(--ui-font-step))}.warehouse-modal-card .warehouse-movement-lines-head small{color:var(--ui-muted);font-size:calc(8px + var(--ui-font-step))}
.warehouse-modal-card .warehouse-movement-entry-table{width:100%;table-layout:fixed}.warehouse-modal-card .warehouse-movement-entry-table.has-block-measurements{min-width:1110px}.warehouse-modal-card .warehouse-movement-entry-table.quantity-only{min-width:720px}
.warehouse-modal-card .warehouse-movement-entry-table th:nth-child(1){width:36px}.warehouse-modal-card .warehouse-movement-entry-table th:nth-child(2){width:178px}.warehouse-modal-card .warehouse-movement-entry-table th:nth-child(3),.warehouse-modal-card .warehouse-movement-entry-table th:nth-child(4),.warehouse-modal-card .warehouse-movement-entry-table th:nth-child(5){width:82px}.warehouse-modal-card .warehouse-movement-entry-table th:nth-child(6){width:112px}.warehouse-modal-card .warehouse-movement-entry-table th:nth-child(7){width:98px}.warehouse-modal-card .warehouse-movement-entry-table th:nth-child(8){width:122px}.warehouse-modal-card .warehouse-movement-entry-table th:nth-child(9){width:105px}.warehouse-modal-card .warehouse-movement-entry-table th:nth-child(10){width:112px}.warehouse-modal-card .warehouse-movement-entry-table th:nth-child(11){width:115px}.warehouse-modal-card .warehouse-movement-entry-table th:nth-child(12){width:38px}
.warehouse-modal-card .warehouse-movement-entry-table.quantity-only th:nth-child(1){width:40px}.warehouse-modal-card .warehouse-movement-entry-table.quantity-only th:nth-child(2){width:auto}.warehouse-modal-card .warehouse-movement-entry-table.quantity-only th:nth-child(3){width:135px}.warehouse-modal-card .warehouse-movement-entry-table.quantity-only th:nth-child(4){width:190px}.warehouse-modal-card .warehouse-movement-entry-table.quantity-only th:nth-last-child(2){width:210px}.warehouse-modal-card .warehouse-movement-entry-table.quantity-only th:last-child{width:42px}
.warehouse-modal-card .warehouse-movement-entry-table :is(input,select,.smart-select){width:100%;min-width:0}.warehouse-modal-card .warehouse-dimension-cell{padding-inline:3px}.warehouse-modal-card .warehouse-stock-availability{display:grid;gap:2px}.warehouse-modal-card .warehouse-stock-availability small{color:var(--ui-muted);font-size:calc(7.5px + var(--ui-font-step))}.warehouse-modal-card .warehouse-line-number{display:block;text-align:center}.warehouse-modal-card .warehouse-not-applicable,.warehouse-modal-card .warehouse-stock-empty{color:var(--ui-muted)}
.warehouse-modal-card .modal-actions{margin-top:0}.warehouse-modal-card #warehouse-document-message{flex:0 0 auto;margin:0 8px 4px}
#warehouse-document-modal .warehouse-modal-card.warehouse-kind-pending{width:min(560px,calc(100vw - 20px));height:auto}#warehouse-document-modal .warehouse-kind-pending #warehouse-document-form{flex:0 0 auto}#warehouse-document-modal .warehouse-kind-pending .warehouse-document-fields{grid-template-columns:1fr;min-height:0;padding:10px 12px;overflow:visible}#warehouse-document-modal .warehouse-kind-pending .warehouse-kind-field{grid-column:1/-1}#warehouse-document-modal .warehouse-kind-pending .modal-actions{margin-top:0}
.issue-modal-card{width:min(1480px,calc(100vw - 20px));height:min(780px,calc(100vh - 20px))}.issue-modal-card form{display:flex;flex:1 1 auto;flex-direction:column;min-height:0;overflow:hidden}.issue-modal-card .issue-controls{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px;padding:7px 8px;background:#f8fbfd}.issue-modal-card .issue-lines-wrap{min-width:0}.issue-modal-card .issue-lines-wrap table{min-width:1240px;table-layout:fixed}.issue-modal-card .issue-lines-wrap th:nth-child(1){width:44px}.issue-modal-card .issue-lines-wrap th:nth-child(2){width:175px}.issue-modal-card .issue-lines-wrap th:nth-child(3){width:190px}.issue-modal-card .issue-lines-wrap th:nth-child(4){width:95px}.issue-modal-card .issue-lines-wrap th:nth-child(5),.issue-modal-card .issue-lines-wrap th:nth-child(6),.issue-modal-card .issue-lines-wrap th:nth-child(7){width:86px}.issue-modal-card .issue-lines-wrap th:nth-child(8){width:110px}.issue-modal-card .issue-lines-wrap th:nth-child(9){width:100px}.issue-modal-card .issue-lines-wrap th:nth-child(10){width:105px}.issue-modal-card .issue-guidance{flex:0 0 auto;margin:4px 8px;padding:5px 7px;border:1px solid #d9e5ec;border-radius:6px;background:#f7fafc;color:var(--ui-muted)}.issue-modal-card .modal-actions{flex:0 0 auto}.linked-dimension-cell{padding-inline:3px}.linked-dimension-cell label{display:grid;gap:2px}.linked-dimension-cell label>span{display:none}.linked-dimension-select{width:100%;min-width:0}.linked-dimension-loading,.linked-dimension-empty{color:var(--ui-muted);font-size:calc(8px + var(--ui-font-step))}.warehouse-volume-preview{display:inline-flex;align-items:center;justify-content:center;min-width:72px;height:28px;padding:0 6px;border:1px solid #b8d9c9;border-radius:6px;background:#f0faf5;color:var(--ui-success);font-weight:850;white-space:nowrap}
.product-catalog-modal-card{width:min(1180px,calc(100vw - 24px));height:min(760px,calc(100vh - 24px))}
.product-catalog-modal-card #product-catalog-form{display:flex;flex:1 1 auto;flex-direction:column;min-height:0}
.product-catalog-modal-card .catalog-form-section{margin:6px 8px;padding:0 8px 7px;border:1px solid var(--ui-line);border-radius:8px;overflow:hidden}
.product-catalog-modal-card .catalog-form-section>header{display:flex;align-items:center;justify-content:space-between;gap:7px;min-height:30px;margin:0 -8px 6px;padding:4px 8px;border-bottom:1px solid var(--ui-line);background:#f7fafc}
.product-catalog-modal-card .catalog-form-section>header strong{font-size:calc(10px + var(--ui-font-step))}.product-catalog-modal-card .catalog-form-section>header small{color:var(--ui-muted);font-size:calc(8px + var(--ui-font-step))}
.product-catalog-modal-card .product-catalog-form-grid{grid-template-columns:repeat(4,minmax(0,1fr));align-items:start;gap:7px}
.product-catalog-modal-card .catalog-active-field{display:flex;align-items:center;gap:6px;min-height:var(--ui-control-h);padding-top:18px;font-weight:800}.product-catalog-modal-card .catalog-active-field input{width:17px;height:17px;min-height:17px}
.product-catalog-modal-card .catalog-uom-add-button{width:100%;margin-top:3px}
.product-catalog-modal-card .catalog-warehouse-picker,.product-catalog-modal-card .catalog-capability-picker{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;max-height:126px;padding:4px;border:1px solid var(--ui-line);border-radius:6px;background:#fbfdff;overflow:auto}
.product-catalog-modal-card .catalog-warehouse-choice,.product-catalog-modal-card .catalog-capability-option{display:flex;align-items:center;gap:6px;min-width:0;min-height:31px;padding:4px 6px;border:1px solid #e2eaf0;border-radius:5px;background:#fff}
.product-catalog-modal-card :is(.catalog-warehouse-choice,.catalog-capability-option)>input{flex:0 0 auto;width:16px;height:16px;min-height:16px}.product-catalog-modal-card :is(.catalog-warehouse-choice,.catalog-capability-option)>span{display:grid;min-width:0}.product-catalog-modal-card :is(.catalog-warehouse-choice,.catalog-capability-option)>span>strong,.product-catalog-modal-card .catalog-warehouse-choice>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.product-catalog-modal-card .catalog-capability-option small{color:var(--ui-muted);font-size:calc(7.5px + var(--ui-font-step))}
.product-catalog-modal-card .catalog-uom-picker{display:grid;gap:4px;max-height:126px;overflow:auto}.product-catalog-modal-card .catalog-uom-option{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:7px;min-height:34px;padding:4px 6px;border:1px solid var(--ui-line);border-radius:6px;background:#fff}.product-catalog-modal-card .catalog-uom-option.storage-uom{border-color:#92bddb;background:#f0f8fe}.product-catalog-modal-card .catalog-uom-base-choice{display:flex;align-items:center;gap:4px;font-weight:850}.product-catalog-modal-card .catalog-uom-base-choice input{width:16px;height:16px;min-height:16px}.product-catalog-modal-card .catalog-uom-name{display:grid;min-width:0}.product-catalog-modal-card .catalog-uom-name small,.product-catalog-modal-card .catalog-uom-summary{color:var(--ui-muted);font-size:calc(8px + var(--ui-font-step))}.product-catalog-modal-card .catalog-uom-remove{height:23px;border:1px solid #dfb3b7;border-radius:5px;background:var(--ui-danger-soft);color:var(--ui-danger)}

@media(max-width:1000px){#issue-requests-view .unified-screen-filter{grid-template-columns:minmax(220px,340px) 115px 115px auto auto}.warehouse-modal-card .warehouse-document-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.warehouse-modal-card .warehouse-movement-lines{grid-column:1/-1}.issue-modal-card .issue-controls{grid-template-columns:repeat(3,minmax(0,1fr))}.product-catalog-modal-card .product-catalog-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.product-catalog-modal-card .catalog-name-field,.product-catalog-modal-card .catalog-warehouses-field,.product-catalog-modal-card .catalog-transaction-uoms-field,.product-catalog-modal-card .catalog-capabilities-field{grid-column:1/-1}}
@media(max-width:760px){
  .warehouse-directory-heading .warehouse-heading-actions,.warehouse-directory-heading .screen-export-actions{flex-wrap:wrap;justify-content:flex-end}
  #warehouse-directory-view .warehouse-directory-tools{flex-wrap:wrap}
  #warehouse-directory-view .warehouse-directory-tools .unified-search{width:100%;min-width:0}
  .warehouse-tree-actions{justify-content:flex-end;width:100%}
  .warehouse-directory-modal-card{max-width:calc(100vw - 8px);max-height:calc(100dvh - 8px)}
  #warehouse-directory-form .modal-form{grid-template-columns:minmax(0,1fr);padding:6px}
  #warehouse-directory-form .modal-form :is(.span-2,.span-3){grid-column:1/-1}
  #issue-requests-view .unified-screen-filter{grid-template-columns:1fr 1fr}
  #issue-requests-view .unified-screen-filter>:first-child{grid-column:1/-1}
  #warehouse-product-modal .warehouse-modal-card,.warehouse-receipt-modal-card,.issue-modal-card,.product-catalog-modal-card{height:calc(100dvh - 8px)}
  .warehouse-modal-card .warehouse-document-fields{grid-template-columns:1fr}
  .warehouse-modal-card .warehouse-document-fields>.span-2,.warehouse-modal-card .warehouse-document-fields>.span-3{grid-column:1/-1}
  .warehouse-modal-card .warehouse-movement-lines-head small{display:none}
  .issue-modal-card .issue-controls{grid-template-columns:1fr 1fr}
  .issue-modal-card .linked-document-picker{grid-column:1/-1}
  .product-catalog-modal-card .product-catalog-form-grid,.product-catalog-modal-card .catalog-warehouse-picker,.product-catalog-modal-card .catalog-capability-picker{grid-template-columns:1fr}
  .product-catalog-modal-card .catalog-form-section>header{flex-wrap:wrap}
}

#inventory-opening-view :is(.product-opening-workspace,.product-opening-history){min-width:0;overflow:hidden}
#inventory-opening-view .opening-command-bar{display:flex;align-items:center;gap:8px;min-height:31px;margin-bottom:4px;padding:2px 6px;border:1px solid var(--ui-line);border-radius:7px;background:#fbfdff}
#inventory-opening-view .opening-command-bar>.button{height:27px;min-height:27px;margin-inline-start:auto;padding-inline:9px}
#inventory-opening-view .opening-document-head{display:flex;align-items:center;gap:8px;min-height:39px;padding:4px 7px;border-bottom:1px solid var(--ui-line);background:#fbfdff}
#inventory-opening-view .opening-document-title{display:grid;grid-template-columns:auto minmax(0,1fr);grid-template-areas:"status title" "status subtitle";align-items:center;gap:0 6px;min-width:0}
#inventory-opening-view .opening-document-title>.status{grid-area:status;white-space:nowrap}
#inventory-opening-view .opening-document-title>strong{grid-area:title;overflow:hidden;color:#173f5c;font-size:calc(9.5px + var(--ui-font-step));text-overflow:ellipsis;white-space:nowrap}
#inventory-opening-view .opening-document-title>small{grid-area:subtitle;overflow:hidden;color:var(--ui-muted);font-size:calc(7px + var(--ui-font-step));text-overflow:ellipsis;white-space:nowrap}
#inventory-opening-view .opening-document-actions{display:flex;align-items:center;gap:4px;min-width:0;margin-right:auto}
#inventory-opening-view .opening-document-actions>.button{flex:0 0 auto;height:27px;min-height:27px;padding-inline:8px;white-space:nowrap}
#inventory-opening-view .product-opening-summary{display:flex;align-items:center;gap:3px}
#inventory-opening-view .product-opening-summary>span{display:grid;min-width:62px;height:27px;padding:2px 6px;border:1px solid #d2dee6;border-radius:5px;background:#fff;line-height:1}
#inventory-opening-view .product-opening-summary small{color:var(--ui-muted);font-size:calc(6.5px + var(--ui-font-step));font-weight:700}
#inventory-opening-view .product-opening-summary strong{color:#174f71;font-size:calc(8px + var(--ui-font-step));font-weight:900;white-space:nowrap}
#inventory-opening-view .opening-batch-controls{display:grid;grid-template-columns:minmax(230px,1fr) 145px minmax(260px,1.35fr);align-items:end;gap:6px;padding:6px 7px;border-bottom:1px solid var(--ui-line)}
#inventory-opening-view .opening-batch-controls label{display:grid;gap:2px;min-width:0;margin:0;color:#486377;font-size:calc(7.5px + var(--ui-font-step));font-weight:850}
#inventory-opening-view .opening-batch-controls label>span{white-space:nowrap}
#inventory-opening-view .opening-batch-controls :is(input,select,.smart-select-trigger){width:100%;height:29px;min-height:29px}
#inventory-opening-view .opening-entry-hint{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:27px;padding:3px 7px;border-bottom:1px solid var(--ui-line);background:#f5f9fc;color:#536f81;font-size:calc(7.5px + var(--ui-font-step));font-weight:750}
#inventory-opening-view .opening-entry-hint>*{min-width:0}
#inventory-opening-view .product-opening-grid-wrap{max-width:100%;overflow:auto;overscroll-behavior-inline:contain}
#inventory-opening-view .product-opening-grid{width:100%;min-width:760px;table-layout:fixed}
#inventory-opening-view .product-opening-grid.block-opening-grid{min-width:1120px}
#inventory-opening-view .product-opening-grid th:nth-child(1){width:42px}
#inventory-opening-view .product-opening-grid th:nth-child(2){width:33%}
#inventory-opening-view .product-opening-grid th:nth-child(3){width:18%}
#inventory-opening-view .product-opening-grid th:nth-child(4){width:90px}
#inventory-opening-view .product-opening-grid th:nth-last-child(2){width:120px}
#inventory-opening-view .product-opening-grid th:last-child{width:44px}
#inventory-opening-view .product-opening-grid.block-opening-grid th:nth-child(2){width:280px}
#inventory-opening-view .product-opening-grid.block-opening-grid th:nth-child(3){width:150px}
#inventory-opening-view .product-opening-grid.block-opening-grid th:nth-child(4){width:82px}
#inventory-opening-view .product-opening-grid.block-opening-grid th:nth-child(n+5):nth-child(-n+9){width:105px}
#inventory-opening-view .product-opening-grid :is(th,td){padding:3px 4px;vertical-align:middle}
#inventory-opening-view .product-opening-grid :is(input,select,.smart-select-trigger){width:100%;height:28px;min-height:28px}
#inventory-opening-view .product-opening-grid input[type="number"]{min-width:0;text-align:center}
#inventory-opening-view .opening-product-name strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#inventory-opening-view .fixed-uom-badge{display:inline-flex;align-items:center;justify-content:center;min-height:21px;padding-inline:6px;border:1px solid #c9d8e2;border-radius:10px;background:#f4f8fb;color:#375f78;font-size:calc(7px + var(--ui-font-step));font-weight:850;white-space:nowrap}
#inventory-opening-view .opening-line-incomplete>td{background:#fff8ec}
#inventory-opening-view .product-opening-history{margin-top:5px}
#inventory-opening-view .product-opening-history>summary{display:flex;align-items:center;gap:8px;min-height:34px;padding:4px 7px;cursor:pointer;border-bottom:1px solid var(--ui-line);background:#fbfdff;list-style:none}
#inventory-opening-view .product-opening-history>summary::-webkit-details-marker{display:none}
#inventory-opening-view .product-opening-history>summary>span{display:grid;line-height:1.15}
#inventory-opening-view .product-opening-history>summary b{color:#173f5c;font-size:calc(9px + var(--ui-font-step))}
#inventory-opening-view .product-opening-history>summary small{color:var(--ui-muted);font-size:calc(7px + var(--ui-font-step))}
#inventory-opening-view .product-opening-history>summary>i{display:grid;place-items:center;min-width:24px;height:21px;margin-right:auto;padding-inline:5px;border-radius:11px;background:#e8f2f8;color:#236185;font-size:calc(7px + var(--ui-font-step));font-style:normal;font-weight:900}
#inventory-opening-view .product-opening-history table{min-width:900px;table-layout:fixed}
#inventory-opening-view #opening-balances-body td:first-child>.order-number{display:block;direction:ltr;white-space:nowrap;text-align:right}
#inventory-opening-view #opening-balances-body td:nth-child(4)>strong,#inventory-opening-view #opening-balances-body td>small{display:block;line-height:1.45;overflow-wrap:anywhere}
#inventory-opening-view #opening-balances-body td>small{margin-top:2px;color:var(--ui-muted);font-size:calc(8px + var(--ui-font-step))}
@media(max-width:900px){#inventory-opening-view .opening-batch-controls{grid-template-columns:minmax(190px,1fr) 130px minmax(210px,1.2fr)}}
@media(max-width:760px){#inventory-opening-view .opening-document-head{align-items:stretch;flex-direction:column}#inventory-opening-view .opening-document-actions{width:100%;margin:0;overflow-x:auto}#inventory-opening-view .opening-document-title{grid-template-columns:auto minmax(0,1fr)}#inventory-opening-view .opening-batch-controls{grid-template-columns:1fr}#inventory-opening-view .opening-entry-hint{align-items:flex-start;flex-direction:column}}
