/* Kitchen CORE — locais físicos e contagem de estoque. */
.inventory-backdrop{z-index:calc(var(--kc-admin-layer-recipe-sheet,50000) + 600)}
.inventory-modal{width:min(1180px,100%);height:min(860px,calc(100dvh - 28px))}
.inventory-modal .kc-modal__header{padding:var(--kc-space-6) var(--kc-space-7)}
.inventory-modal .kc-modal__body{padding:0;background:var(--kc-color-page-soft)}
.inventory-modal .kc-modal__footer{min-height:64px}
.inventory-head-copy{min-width:0}
.inventory-head-copy strong{display:block;margin-top:var(--kc-space-1);color:var(--kc-color-text-muted);font-size:var(--kc-font-size-sm)}
.inventory-close{flex:0 0 auto}
.inventory-tabs{margin:var(--kc-space-5) var(--kc-space-7) 0}
.inventory-workspace{display:grid;gap:var(--kc-space-5);padding:var(--kc-space-5) var(--kc-space-7) var(--kc-space-7)}
.inventory-toolbar{position:sticky;z-index:2;top:0}
.inventory-toolbar .kc-input{width:min(360px,100%)}
.inventory-actions{display:flex;align-items:center;flex-wrap:wrap;gap:var(--kc-space-3)}
.inventory-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--kc-space-4)}
.inventory-metric{min-height:86px;padding:var(--kc-space-5);border:1px solid var(--kc-color-border);border-radius:var(--kc-radius-lg);background:var(--kc-color-surface)}
.inventory-metric span{display:block;color:var(--kc-color-text-muted);font-size:var(--kc-font-size-xs);font-weight:var(--kc-font-weight-extrabold);letter-spacing:.04em;text-transform:uppercase}
.inventory-metric strong{display:block;margin-top:var(--kc-space-2);color:var(--kc-color-text);font-size:var(--kc-font-size-7xl);font-weight:var(--kc-font-weight-extrabold)}
.inventory-metric small{display:block;margin-top:var(--kc-space-1);color:var(--kc-color-text-muted);font-size:var(--kc-font-size-xs);font-weight:var(--kc-font-weight-semibold)}
.inventory-filter-row{display:flex;align-items:center;flex-wrap:wrap;gap:var(--kc-space-2)}
.inventory-filter-chip{min-height:32px;padding:0 var(--kc-space-4);border:1px solid var(--kc-color-border);border-radius:var(--kc-radius-pill);background:var(--kc-color-surface);color:var(--kc-color-text-secondary);font:var(--kc-font-weight-bold) var(--kc-font-size-sm)/1 var(--kc-font-family-sans);cursor:pointer}
.inventory-filter-chip.is-active{border-color:var(--kc-color-primary-300);background:var(--kc-color-primary-50);color:var(--kc-color-primary-700)}
.inventory-location-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--kc-space-4)}
.inventory-location-card{display:grid;gap:var(--kc-space-4);min-height:160px;padding:var(--kc-space-6);border:1px solid var(--kc-color-border);border-radius:var(--kc-radius-lg);background:var(--kc-color-surface);box-shadow:var(--kc-shadow-xs)}
.inventory-location-card.is-complete{border-color:var(--kc-color-success-300);background:linear-gradient(180deg,var(--kc-color-success-50),var(--kc-color-surface) 62%)}
.inventory-location-head{display:flex;align-items:flex-start;justify-content:space-between;gap:var(--kc-space-3)}
.inventory-location-head h3{margin:0;color:var(--kc-color-text);font-size:var(--kc-font-size-4xl);line-height:var(--kc-line-height-heading)}
.inventory-location-head p{margin:var(--kc-space-1) 0 0;color:var(--kc-color-text-muted);font-size:var(--kc-font-size-sm);font-weight:var(--kc-font-weight-semibold)}
.inventory-location-preview{display:grid;gap:var(--kc-space-1);margin:0;padding:0;list-style:none;color:var(--kc-color-text-secondary);font-size:var(--kc-font-size-sm);font-weight:var(--kc-font-weight-semibold)}
.inventory-location-preview li{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.inventory-location-preview .more{color:var(--kc-color-text-muted);font-style:italic}
.inventory-location-actions{display:flex;align-items:center;justify-content:space-between;gap:var(--kc-space-3);margin-top:auto}
.inventory-location-order{display:flex;gap:var(--kc-space-1)}
.inventory-progress{height:8px;overflow:hidden;border-radius:var(--kc-radius-pill);background:var(--kc-color-slate-200)}
.inventory-progress>span{display:block;height:100%;border-radius:inherit;background:var(--kc-color-primary);transition:width var(--kc-duration-normal) var(--kc-ease-standard)}
.inventory-progress-label{display:flex;justify-content:space-between;gap:var(--kc-space-3);color:var(--kc-color-text-muted);font-size:var(--kc-font-size-xs);font-weight:var(--kc-font-weight-bold)}
.inventory-active-count{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:var(--kc-space-6);padding:var(--kc-space-6);border:1px solid var(--kc-color-primary-200);border-radius:var(--kc-radius-lg);background:var(--kc-color-primary-50)}
.inventory-active-count h3{margin:0;color:var(--kc-color-primary-800);font-size:var(--kc-font-size-4xl)}
.inventory-active-count p{margin:var(--kc-space-1) 0 0;color:var(--kc-color-text-secondary);font-size:var(--kc-font-size-sm);font-weight:var(--kc-font-weight-semibold)}

.inventory-modal--location-editor .inventory-tabs,.inventory-modal--location-editor .kc-modal__footer{display:none}
.inventory-modal--location-editor .kc-modal__body{display:flex;overflow:auto;overscroll-behavior:contain}
.inventory-location-workspace{display:grid;position:relative;width:100%;height:auto;min-height:100%;flex:1 0 auto;grid-template-rows:auto auto minmax(320px,1fr) auto;gap:var(--kc-space-3);padding-top:var(--kc-space-3)}
.inventory-location-workspace .inventory-editor-panel{height:auto;min-height:320px}
.inventory-location-workspace .inventory-editor-head--section{display:none}
.inventory-location-workspace .inventory-editor-head{gap:var(--kc-space-3);padding:var(--kc-space-3)}
.inventory-location-editor-toolbar{display:grid;grid-template-columns:minmax(320px,1.45fr) minmax(300px,.75fr);align-items:end;gap:var(--kc-space-3);padding:var(--kc-space-3);border:1px solid var(--kc-color-primary-200);border-radius:var(--kc-radius-lg);background:color-mix(in srgb,var(--kc-color-surface) 94%,var(--kc-color-primary-50));box-shadow:var(--kc-shadow-xs)}
.inventory-location-name .kc-input{min-height:48px;background:var(--kc-color-surface)}
.inventory-location-summary{display:grid;grid-template-columns:repeat(2,minmax(120px,1fr));align-items:stretch;gap:var(--kc-space-2)}
.inventory-location-summary>span{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:var(--kc-space-2);min-height:48px;padding:var(--kc-space-3);border:1px solid var(--kc-color-border);border-radius:var(--kc-radius-md);background:var(--kc-color-surface);color:var(--kc-color-text-muted)}
.inventory-location-summary strong{color:var(--kc-color-text);font-size:var(--kc-font-size-xl);font-weight:var(--kc-font-weight-extrabold)}
.inventory-location-summary small{overflow:hidden;font-size:var(--kc-font-size-xs);font-weight:var(--kc-font-weight-semibold);text-overflow:ellipsis;white-space:nowrap}
.inventory-location-mode-switch{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--kc-space-1);padding:var(--kc-space-1);border:1px solid var(--kc-color-border);border-radius:var(--kc-radius-lg);background:var(--kc-color-slate-100)}
.inventory-location-mode{display:grid;min-width:0;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:var(--kc-space-3);min-height:52px;padding:var(--kc-space-2) var(--kc-space-4);border:1px solid transparent;border-radius:var(--kc-radius-md);background:transparent;color:var(--kc-color-text-secondary);font-family:var(--kc-font-family-sans);text-align:left;cursor:pointer}
.inventory-location-mode>span:last-child{display:grid;gap:2px;min-width:0}
.inventory-location-mode strong,.inventory-location-mode small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.inventory-location-mode strong{font-size:var(--kc-font-size-md)}
.inventory-location-mode small{color:var(--kc-color-text-muted);font-size:var(--kc-font-size-xs);font-weight:var(--kc-font-weight-semibold)}
.inventory-location-mode:hover{background:color-mix(in srgb,var(--kc-color-surface) 70%,transparent)}
.inventory-location-mode.is-active{border-color:var(--kc-color-primary-200);background:var(--kc-color-surface);box-shadow:var(--kc-shadow-sm);color:var(--kc-color-primary-700)}
.inventory-location-mode:focus-visible{outline:2px solid var(--kc-color-focus);outline-offset:2px}
.inventory-location-mode.is-active .inventory-editor-step{background:var(--kc-color-primary);color:var(--kc-color-white)}
.inventory-location-primary-actions{display:flex;align-items:center;justify-content:flex-end;gap:var(--kc-space-2)}
.inventory-editor-panel{display:flex;width:100%;height:clamp(500px,calc(100dvh - 400px),650px);min-height:0;flex-direction:column;border:1px solid var(--kc-color-border);border-radius:var(--kc-radius-lg);background:var(--kc-color-surface);overflow:hidden}
.inventory-editor-panel--assigned{border-color:var(--kc-color-primary-200)}
.inventory-editor-head{display:grid;gap:var(--kc-space-4);padding:var(--kc-space-5);border-bottom:1px solid var(--kc-color-border);background:var(--kc-color-slate-25)}
.inventory-editor-head--section{display:flex;align-items:center;justify-content:space-between;gap:var(--kc-space-3)}
.inventory-editor-heading{display:flex;align-items:center;gap:var(--kc-space-3);min-width:0}
.inventory-editor-heading p{margin:2px 0 0;color:var(--kc-color-text-muted);font-size:var(--kc-font-size-xs);font-weight:var(--kc-font-weight-semibold)}
.inventory-editor-step{display:grid;flex:0 0 auto;width:34px;height:34px;place-items:center;border-radius:var(--kc-radius-md);background:var(--kc-color-primary-100);color:var(--kc-color-primary-700);font-size:var(--kc-font-size-md);font-weight:var(--kc-font-weight-extrabold)}
.inventory-editor-head h3{margin:0;font-size:var(--kc-font-size-4xl)}
.inventory-editor-catalog-head{gap:var(--kc-space-3)}
.inventory-assigned-tools{display:grid;grid-template-columns:minmax(260px,1fr) auto;align-items:end;gap:var(--kc-space-4)}
.inventory-assigned-tools .kc-input{min-height:44px}
.inventory-order-presets{display:flex;align-items:center;gap:var(--kc-space-2)}
.inventory-order-presets>span{margin-right:var(--kc-space-1);color:var(--kc-color-text-muted);font-size:var(--kc-font-size-xs);font-weight:var(--kc-font-weight-bold)}
.inventory-order-presets .kc-button{min-height:44px;padding-inline:var(--kc-space-4)}
.inventory-editor-list{display:grid;flex:1;align-content:start;gap:var(--kc-space-2);min-height:0;overflow:auto;padding:var(--kc-space-4);scrollbar-gutter:stable}
.inventory-editor-list--catalog{grid-template-columns:repeat(2,minmax(0,1fr))}
.inventory-assigned-row,.inventory-catalog-row{display:grid;position:relative;align-items:center;gap:var(--kc-space-3);min-height:60px;padding:var(--kc-space-2) var(--kc-space-3);border:1px solid var(--kc-color-border);border-radius:var(--kc-radius-md);background:var(--kc-color-surface);transition:border-color var(--kc-duration-fast) var(--kc-ease-standard),background var(--kc-duration-fast) var(--kc-ease-standard),box-shadow var(--kc-duration-fast) var(--kc-ease-standard),opacity var(--kc-duration-fast) var(--kc-ease-standard)}
.inventory-assigned-row{grid-template-columns:38px 34px minmax(0,1fr) auto}
.inventory-catalog-row{grid-template-columns:auto minmax(0,1fr) 28px;cursor:pointer}
.inventory-catalog-row:hover,.inventory-catalog-row.is-selected{border-color:var(--kc-color-primary-300);background:var(--kc-color-primary-50)}
.inventory-catalog-row:focus-within{box-shadow:0 0 0 2px var(--kc-color-focus)}
.inventory-assigned-row:hover{border-color:var(--kc-color-primary-200);box-shadow:var(--kc-shadow-xs)}
.inventory-assigned-row.is-dragging{opacity:.42}
.inventory-assigned-row[data-drop-edge="before"]::before,.inventory-assigned-row[data-drop-edge="after"]::after{position:absolute;z-index:2;right:var(--kc-space-2);left:var(--kc-space-2);height:3px;border-radius:var(--kc-radius-pill);background:var(--kc-color-primary);box-shadow:0 0 0 2px var(--kc-color-primary-100);content:"";pointer-events:none}
.inventory-assigned-row[data-drop-edge="before"]::before{top:-6px}
.inventory-assigned-row[data-drop-edge="after"]::after{bottom:-6px}
.inventory-drag-handle{display:grid;width:36px;height:36px;padding:0;place-items:center;border:1px solid transparent;border-radius:var(--kc-radius-md);background:transparent;color:var(--kc-color-slate-500);font:var(--kc-font-weight-extrabold) var(--kc-font-size-xl)/1 var(--kc-font-family-sans);letter-spacing:-3px;cursor:grab}
.inventory-drag-handle:hover,.inventory-drag-handle:focus-visible{border-color:var(--kc-color-primary-200);background:var(--kc-color-primary-50);color:var(--kc-color-primary-700);outline:0}
.inventory-drag-handle:active{cursor:grabbing}
.inventory-drag-handle--sample{width:30px;height:30px;flex:0 0 auto;pointer-events:none}
.inventory-sequence-number{display:grid;width:32px;height:32px;place-items:center;border-radius:var(--kc-radius-round);background:var(--kc-color-slate-100);color:var(--kc-color-text-secondary);font-size:var(--kc-font-size-sm);font-weight:var(--kc-font-weight-extrabold)}
.inventory-row-copy{min-width:0}
.inventory-row-copy strong,.inventory-row-copy small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.inventory-row-copy strong{font-size:var(--kc-font-size-md)}
.inventory-row-copy small{margin-top:2px;color:var(--kc-color-text-muted);font-size:var(--kc-font-size-xs);font-weight:var(--kc-font-weight-semibold)}
.inventory-row-actions{display:flex;align-items:center;gap:var(--kc-space-2)}
.inventory-row-actions .kc-button--icon{width:36px;height:36px;min-height:36px;padding:0}
.inventory-move-assigned{min-height:36px;white-space:nowrap}
.inventory-row-remove{color:var(--kc-color-danger-700)}
.inventory-catalog-row>input{width:22px;height:22px;margin:0;accent-color:var(--kc-color-primary)}
.inventory-catalog-check{display:grid;width:24px;height:24px;place-items:center;border-radius:var(--kc-radius-round);background:var(--kc-color-primary-100);color:var(--kc-color-primary-700);font-size:var(--kc-font-size-sm);font-weight:var(--kc-font-weight-extrabold)}
.inventory-catalog-row:not(.is-selected) .inventory-catalog-check{background:transparent}
.inventory-editor-empty{display:grid;gap:var(--kc-space-2);grid-column:1/-1;padding:var(--kc-space-10);color:var(--kc-color-text-muted);font-size:var(--kc-font-size-md);font-weight:var(--kc-font-weight-semibold);text-align:center}
.inventory-editor-footer{display:flex;align-items:center;justify-content:space-between;gap:var(--kc-space-3);margin-top:auto;padding:var(--kc-space-4) var(--kc-space-5);border-top:1px solid var(--kc-color-border);background:var(--kc-color-slate-25)}
.inventory-editor-tip{justify-content:flex-start;color:var(--kc-color-text-muted);font-size:var(--kc-font-size-xs);font-weight:var(--kc-font-weight-semibold)}
.inventory-catalog-limit{margin:0;padding:var(--kc-space-3) var(--kc-space-5);border-top:1px solid var(--kc-color-border);background:var(--kc-color-slate-25);color:var(--kc-color-text-muted);font-size:var(--kc-font-size-xs);font-weight:var(--kc-font-weight-semibold)}
.inventory-catalog-filters{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(220px,.65fr);align-items:end;gap:var(--kc-space-4)}
.inventory-catalog-option{justify-self:start}
.inventory-catalog-selectionbar{display:flex;align-items:center;justify-content:space-between;gap:var(--kc-space-4);padding:var(--kc-space-3) var(--kc-space-5);border-bottom:1px solid var(--kc-color-border);background:var(--kc-color-surface)}
.inventory-catalog-selectionbar>div:first-child{display:flex;align-items:center;gap:var(--kc-space-2);min-width:0;color:var(--kc-color-text-muted);font-size:var(--kc-font-size-xs);font-weight:var(--kc-font-weight-semibold)}
.inventory-catalog-selectionbar>div:first-child strong{display:grid;min-width:30px;height:30px;padding:0 var(--kc-space-2);place-items:center;border-radius:var(--kc-radius-round);background:var(--kc-color-primary-100);color:var(--kc-color-primary-700);font-size:var(--kc-font-size-md);font-weight:var(--kc-font-weight-extrabold)}
.inventory-catalog-actions{display:flex;align-items:center;justify-content:flex-end;gap:var(--kc-space-2)}
.inventory-catalog-actions .kc-button--primary{min-width:180px}
.inventory-location-savebar{display:flex;position:static;align-items:center;justify-content:space-between;gap:var(--kc-space-4);padding:var(--kc-space-3) var(--kc-space-4);border:1px solid var(--kc-color-border);border-radius:var(--kc-radius-lg);background:var(--kc-color-surface);box-shadow:var(--kc-shadow-xs)}
.inventory-move-backdrop{display:grid;position:fixed;z-index:calc(var(--kc-admin-layer-recipe-sheet,50000) + 700);inset:0;padding:var(--kc-space-5);place-items:center;background:rgba(15,23,42,.52)}
.inventory-move-dialog{display:grid;width:min(720px,100%);max-height:min(760px,calc(100dvh - 40px));grid-template-rows:auto auto auto minmax(0,1fr) auto;gap:var(--kc-space-4);padding:var(--kc-space-5);overflow:hidden;border:1px solid var(--kc-color-border);border-radius:var(--kc-radius-xl);background:var(--kc-color-surface);box-shadow:var(--kc-shadow-xl)}
.inventory-move-dialog>header{display:flex;align-items:flex-start;justify-content:space-between;gap:var(--kc-space-4);padding-bottom:var(--kc-space-4);border-bottom:1px solid var(--kc-color-border)}
.inventory-move-dialog h3{margin:var(--kc-space-2) 0 0;font-size:var(--kc-font-size-4xl)}
.inventory-move-dialog p{margin:var(--kc-space-1) 0 0;color:var(--kc-color-text-muted);font-size:var(--kc-font-size-sm);font-weight:var(--kc-font-weight-semibold)}
.inventory-move-shortcuts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--kc-space-3)}
.inventory-move-targets{display:grid;align-content:start;gap:var(--kc-space-2);min-height:0;overflow:auto;scrollbar-gutter:stable}
.inventory-move-targets article{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:var(--kc-space-3);min-height:58px;padding:var(--kc-space-3);border:1px solid var(--kc-color-border);border-radius:var(--kc-radius-md);background:var(--kc-color-surface)}
.inventory-move-targets article>div:last-child{display:flex;gap:var(--kc-space-2)}
.inventory-move-dialog>footer{display:flex;justify-content:flex-end;padding-top:var(--kc-space-4);border-top:1px solid var(--kc-color-border)}
.inventory-audit-actions{display:flex;align-items:center;flex-wrap:wrap;gap:var(--kc-space-2);margin-top:var(--kc-space-3)}
.inventory-audit-list{display:grid;gap:var(--kc-space-2);max-height:340px;overflow:auto}
.inventory-audit-row{display:flex;align-items:center;justify-content:space-between;gap:var(--kc-space-4);min-height:48px;padding:var(--kc-space-3);border:1px solid var(--kc-color-border);border-radius:var(--kc-radius-md);background:var(--kc-color-surface)}
.inventory-section-heading h3,.inventory-section-heading p,.inventory-history-heading h3,.inventory-history-heading p{margin:0}
.inventory-section-heading h3,.inventory-history-heading h3{font-size:var(--kc-font-size-3xl)}
.inventory-section-heading p,.inventory-history-heading p{margin-top:var(--kc-space-1);color:var(--kc-color-text-muted);font-size:var(--kc-font-size-sm);font-weight:var(--kc-font-weight-semibold)}
.inventory-daily-actions{display:grid;gap:var(--kc-space-4)}
.inventory-daily-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--kc-space-4)}
.inventory-daily-card{display:flex;min-height:170px;flex-direction:column;justify-content:space-between;gap:var(--kc-space-4);padding:var(--kc-space-5);border:1px solid var(--kc-color-border);border-radius:var(--kc-radius-lg);background:var(--kc-color-surface)}
.inventory-daily-card.is-active{border-color:var(--kc-color-primary-300);background:var(--kc-color-primary-50)}
.inventory-daily-card h4{margin:var(--kc-space-2) 0 0;font-size:var(--kc-font-size-xl)}
.inventory-daily-card p{margin:var(--kc-space-2) 0 0;color:var(--kc-color-text-muted);font-size:var(--kc-font-size-sm);font-weight:var(--kc-font-weight-semibold)}
.inventory-daily-count{display:inline-grid;min-width:34px;height:34px;padding:0 var(--kc-space-2);place-items:center;border-radius:var(--kc-radius-pill);background:var(--kc-color-warning-100);color:var(--kc-color-warning-800);font-size:var(--kc-font-size-lg);font-weight:var(--kc-font-weight-extrabold)}
.inventory-daily-card__actions{display:flex;flex-wrap:wrap;gap:var(--kc-space-2)}
.inventory-diamond-card{overflow:hidden;border-color:var(--kc-color-primary-200);box-shadow:var(--kc-shadow-xs)}
.inventory-diamond-card__main{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:var(--kc-space-4);padding:var(--kc-space-5);background:linear-gradient(135deg,var(--kc-color-primary-50),var(--kc-color-surface) 68%)}
.inventory-diamond-icon{display:grid;width:48px;height:48px;place-items:center;border:1px solid var(--kc-color-primary-200);border-radius:var(--kc-radius-round);background:var(--kc-color-primary);box-shadow:var(--kc-shadow-xs);color:var(--kc-color-white);font-size:var(--kc-font-size-3xl);line-height:1}
.inventory-diamond-card__copy{display:grid;gap:var(--kc-space-1);min-width:0}
.inventory-diamond-card__title{display:flex;align-items:center;flex-wrap:wrap;gap:var(--kc-space-2)}
.inventory-diamond-card__status{display:flex;align-items:center;flex-wrap:wrap;gap:var(--kc-space-2);margin-top:var(--kc-space-1)}
.inventory-diamond-card__status>span:last-child{color:var(--kc-color-text-secondary);font-size:var(--kc-font-size-xs);font-weight:var(--kc-font-weight-semibold)}
.inventory-diamond-card__actions{display:flex;align-items:center;justify-content:flex-end}
.inventory-diamond-details{border-top:1px solid var(--kc-color-border)}
.inventory-diamond-details>summary{display:flex;min-height:44px;align-items:center;justify-content:space-between;gap:var(--kc-space-3);padding:var(--kc-space-3) var(--kc-space-5);background:var(--kc-color-slate-25);color:var(--kc-color-primary-700);font-size:var(--kc-font-size-sm);font-weight:var(--kc-font-weight-bold);cursor:pointer;list-style:none}
.inventory-diamond-details>summary::-webkit-details-marker{display:none}
.inventory-diamond-details>summary>span:last-child{font-size:var(--kc-font-size-xl);transition:transform var(--kc-duration-fast) var(--kc-ease-standard)}
.inventory-diamond-details[open]>summary>span:last-child{transform:rotate(180deg)}
.inventory-diamond-details>summary:focus-visible{outline:2px solid var(--kc-color-focus);outline-offset:-2px}
.inventory-diamond-details__body{display:grid;grid-template-columns:minmax(240px,.72fr) minmax(0,1.28fr);gap:var(--kc-space-4);padding:var(--kc-space-5);border-top:1px solid var(--kc-color-border);background:var(--kc-color-surface)}
.inventory-diamond-guide{display:grid;align-content:start;gap:var(--kc-space-3);padding:var(--kc-space-4);border:1px solid var(--kc-color-primary-200);border-radius:var(--kc-radius-md);background:var(--kc-color-primary-50)}
.inventory-diamond-guide>strong{font-size:var(--kc-font-size-lg)}
.inventory-diamond-guide ol{display:grid;gap:var(--kc-space-2);margin:0;padding-left:var(--kc-space-6);color:var(--kc-color-text-secondary);font-size:var(--kc-font-size-xs);font-weight:var(--kc-font-weight-semibold)}
.inventory-diamond-guide small{color:var(--kc-color-text-muted);font-size:var(--kc-font-size-2xs);font-weight:var(--kc-font-weight-semibold)}
.inventory-diamond-list{overflow:hidden;border:1px solid var(--kc-color-border);border-radius:var(--kc-radius-md);background:var(--kc-color-surface)}
.inventory-diamond-list>header{display:flex;align-items:flex-start;justify-content:space-between;gap:var(--kc-space-3);padding:var(--kc-space-4);border-bottom:1px solid var(--kc-color-border);background:var(--kc-color-slate-25)}
.inventory-diamond-list>header>div{display:grid;gap:2px;min-width:0}
.inventory-diamond-list>header strong{font-size:var(--kc-font-size-md)}
.inventory-diamond-list>header small{color:var(--kc-color-text-muted);font-size:var(--kc-font-size-2xs);font-weight:var(--kc-font-weight-semibold)}
.inventory-diamond-list__rows{max-height:330px;overflow:auto}
.inventory-diamond-product{display:grid;grid-template-columns:34px minmax(0,1fr) auto;align-items:center;gap:var(--kc-space-3);min-height:54px;padding:var(--kc-space-3) var(--kc-space-4);border-bottom:1px solid var(--kc-color-border)}
.inventory-diamond-product:last-child{border-bottom:0}
.inventory-diamond-product__rank{display:grid;width:30px;height:30px;place-items:center;border-radius:var(--kc-radius-round);background:var(--kc-color-primary-50);color:var(--kc-color-primary-700);font-size:var(--kc-font-size-sm);font-weight:var(--kc-font-weight-extrabold)}
.inventory-diamond-product.is-learning .inventory-diamond-product__rank{background:var(--kc-color-warning-50);color:var(--kc-color-warning-800)}
.inventory-diamond-product>div{min-width:0}
.inventory-diamond-product strong,.inventory-diamond-product small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.inventory-diamond-product strong{font-size:var(--kc-font-size-sm)}
.inventory-diamond-product small{margin-top:2px;color:var(--kc-color-text-muted);font-size:var(--kc-font-size-2xs);font-weight:var(--kc-font-weight-semibold)}
.inventory-diamond-list__note{margin:0;padding:var(--kc-space-3) var(--kc-space-4);border-top:1px solid var(--kc-color-border);background:var(--kc-color-warning-50);color:var(--kc-color-warning-800);font-size:var(--kc-font-size-xs);font-weight:var(--kc-font-weight-semibold)}
.inventory-diamond-details__footer{display:flex;align-items:center;justify-content:space-between;gap:var(--kc-space-3);padding:var(--kc-space-3) var(--kc-space-5);border-top:1px solid var(--kc-color-border);background:var(--kc-color-slate-25);color:var(--kc-color-text-muted);font-size:var(--kc-font-size-xs);font-weight:var(--kc-font-weight-semibold)}
.inventory-schedule-grid{display:grid;gap:var(--kc-space-3)}
.inventory-schedule-card{display:grid;grid-template-columns:minmax(0,1fr) 110px auto;align-items:center;gap:var(--kc-space-4);padding:var(--kc-space-4);border:1px solid var(--kc-color-border);border-radius:var(--kc-radius-lg);background:var(--kc-color-surface)}
.inventory-schedule-card.is-paused{background:var(--kc-color-slate-50);opacity:.78}
.inventory-schedule-card__main{display:grid;gap:var(--kc-space-2);min-width:0}
.inventory-schedule-card__title{display:flex;align-items:center;flex-wrap:wrap;gap:var(--kc-space-2)}
.inventory-schedule-card__title>strong{font-size:var(--kc-font-size-lg)}
.inventory-schedule-card__main p,.inventory-schedule-card__main small{overflow:hidden;margin:0;color:var(--kc-color-text-muted);font-size:var(--kc-font-size-xs);font-weight:var(--kc-font-weight-semibold);text-overflow:ellipsis;white-space:nowrap}
.inventory-schedule-days{display:flex;gap:var(--kc-space-1)}
.inventory-schedule-days span{display:grid;min-width:30px;height:26px;padding:0 var(--kc-space-2);place-items:center;border-radius:var(--kc-radius-pill);background:var(--kc-color-primary-50);color:var(--kc-color-primary-700);font-size:var(--kc-font-size-2xs);font-weight:var(--kc-font-weight-extrabold)}
.inventory-schedule-card__next span,.inventory-schedule-card__next strong{display:block}
.inventory-schedule-card__next span{color:var(--kc-color-text-muted);font-size:var(--kc-font-size-2xs);font-weight:var(--kc-font-weight-bold);text-transform:uppercase}
.inventory-schedule-card__next strong{margin-top:var(--kc-space-1);font-size:var(--kc-font-size-lg)}
.inventory-schedule-card__actions{display:flex;align-items:center;gap:var(--kc-space-2)}
.inventory-schedule-empty{min-height:240px}
.inventory-schedule-form{display:grid;gap:var(--kc-space-5)}
.inventory-schedule-fields{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--kc-space-4)}
.inventory-schedule-group{display:grid;gap:var(--kc-space-3);margin:0;padding:0;border:0}
.inventory-schedule-group legend{margin-bottom:var(--kc-space-2);color:var(--kc-color-text-secondary);font-size:var(--kc-font-size-xs);font-weight:var(--kc-font-weight-extrabold);letter-spacing:.04em;text-transform:uppercase}
.inventory-schedule-weekdays{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:var(--kc-space-2)}
.inventory-schedule-day input{position:absolute;opacity:0;pointer-events:none}
.inventory-schedule-day span{display:grid;min-height:40px;place-items:center;border:1px solid var(--kc-color-border);border-radius:var(--kc-radius-md);background:var(--kc-color-surface);color:var(--kc-color-text-secondary);font-weight:var(--kc-font-weight-bold);cursor:pointer}
.inventory-schedule-day input:checked+span{border-color:var(--kc-color-primary-300);background:var(--kc-color-primary-50);color:var(--kc-color-primary-700)}
.inventory-schedule-location-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:var(--kc-space-4)}
.inventory-schedule-location-heading>div{display:grid;gap:var(--kc-space-1)}
.inventory-schedule-location-heading strong{font-size:var(--kc-font-size-lg)}
.inventory-schedule-location-heading small{color:var(--kc-color-text-muted);font-size:var(--kc-font-size-xs);font-weight:var(--kc-font-weight-semibold)}
.inventory-schedule-location-tools{display:grid;grid-template-columns:minmax(240px,420px);gap:var(--kc-space-3)}
.inventory-schedule-location-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--kc-space-3);max-height:420px;padding:var(--kc-space-1);overflow:auto}
.inventory-schedule-location-card{display:flex;min-height:210px;flex-direction:column;gap:var(--kc-space-3);padding:var(--kc-space-4);border:1px solid var(--kc-color-border);border-radius:var(--kc-radius-lg);background:var(--kc-color-surface)}
.inventory-schedule-location-card.is-selected{border-color:var(--kc-color-primary-300);background:var(--kc-color-primary-50);box-shadow:0 0 0 2px var(--kc-color-primary-100)}
.inventory-schedule-location-card.is-empty{background:var(--kc-color-slate-50)}
.inventory-schedule-location-card>header{display:flex;align-items:flex-start;justify-content:space-between;gap:var(--kc-space-2);padding-bottom:var(--kc-space-3);border-bottom:1px solid var(--kc-color-border)}
.inventory-schedule-location-card>header>div{display:grid;gap:var(--kc-space-1);min-width:0}
.inventory-schedule-location-card>header strong{overflow:hidden;font-size:var(--kc-font-size-md);text-overflow:ellipsis}
.inventory-schedule-location-card>header small{color:var(--kc-color-text-muted);font-size:var(--kc-font-size-2xs);font-weight:var(--kc-font-weight-bold)}
.inventory-schedule-location-preview{display:grid;align-content:start;gap:var(--kc-space-1);min-height:84px;color:var(--kc-color-text-secondary);font-size:var(--kc-font-size-xs)}
.inventory-schedule-location-preview span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.inventory-schedule-location-preview small{margin-top:var(--kc-space-1);font-weight:var(--kc-font-weight-bold)}
.inventory-schedule-location-preview p{margin:0;color:var(--kc-color-text-muted);font-weight:var(--kc-font-weight-semibold)}
.inventory-schedule-location-card>footer{display:flex;margin-top:auto}
.inventory-schedule-location-card>footer .kc-button{width:100%}
.inventory-schedule-location-empty{grid-column:1/-1;min-height:210px}
.inventory-schedule-editor__actions{display:grid;grid-template-columns:auto 1fr auto auto;gap:var(--kc-space-3)}
.inventory-start-integrity{grid-column:1/-1}
.inventory-start-integrity .kc-button{margin-top:var(--kc-space-3)}
.inventory-count-catalog{overflow:hidden}
.inventory-count-catalog-tools{display:grid;grid-template-columns:minmax(240px,1fr) auto;align-items:center;gap:var(--kc-space-4)}
.inventory-count-catalog-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--kc-space-2);max-height:320px;margin-top:var(--kc-space-4);overflow:auto}
.inventory-count-catalog-row{display:flex;align-items:center;justify-content:space-between;gap:var(--kc-space-4);min-width:0;padding:var(--kc-space-3);border:1px solid var(--kc-color-border);border-radius:var(--kc-radius-md);background:var(--kc-color-surface)}
.inventory-count-catalog-row .inventory-row-copy{min-width:0}
.inventory-count-catalog-row .kc-button{flex:0 0 auto}

.inventory-purchase-layout{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(300px,.65fr);gap:var(--kc-space-4)}
.inventory-purchase-list{display:grid;gap:var(--kc-space-2);margin-top:var(--kc-space-3)}
.inventory-purchase-item{display:grid;grid-template-columns:auto minmax(180px,1fr) minmax(90px,.35fr) minmax(120px,.45fr) auto;align-items:center;gap:var(--kc-space-3);padding:var(--kc-space-3);border:1px solid var(--kc-color-border);border-radius:var(--kc-radius-md);background:var(--kc-color-surface)}
.inventory-purchase-item.is-checked{border-color:var(--kc-color-success-300);background:var(--kc-color-success-50)}
.inventory-purchase-item.is-checked .inventory-row-copy strong{text-decoration:line-through}
.inventory-purchase-item .kc-input,.inventory-purchase-item .kc-select{min-height:38px;padding-block:var(--kc-space-2)}

.inventory-movement-metrics .inventory-metric strong{font-size:var(--kc-font-size-4xl)}
.inventory-movement-filters{display:grid;grid-template-columns:minmax(260px,1.35fr) repeat(3,minmax(150px,.55fr));align-items:end;gap:var(--kc-space-4)}
.inventory-movement-filters .kc-input{width:100%;max-width:none}
.inventory-movement-list{display:grid;overflow:hidden;border:1px solid var(--kc-color-border);border-radius:var(--kc-radius-lg);background:var(--kc-color-surface)}
.inventory-movement-row{display:grid;grid-template-columns:82px 82px minmax(190px,1fr) minmax(130px,.45fr) minmax(120px,.4fr) minmax(130px,.4fr);align-items:center;gap:var(--kc-space-4);min-height:72px;padding:var(--kc-space-3) var(--kc-space-4);border-bottom:1px solid var(--kc-color-border)}
.inventory-movement-row:last-child{border-bottom:0}
.inventory-movement-date strong,.inventory-movement-date small,.inventory-movement-value span,.inventory-movement-value strong,.inventory-movement-value small,.inventory-movement-price span,.inventory-movement-price strong,.inventory-movement-price small,.inventory-movement-total span,.inventory-movement-total strong,.inventory-movement-total small{display:block}
.inventory-movement-date strong,.inventory-movement-value strong,.inventory-movement-price strong,.inventory-movement-total strong{color:var(--kc-color-text);font-size:var(--kc-font-size-md);font-weight:var(--kc-font-weight-extrabold)}
.inventory-movement-date small,.inventory-movement-value span,.inventory-movement-value small,.inventory-movement-price span,.inventory-movement-price small,.inventory-movement-total span,.inventory-movement-total small{margin-top:2px;color:var(--kc-color-text-muted);font-size:var(--kc-font-size-2xs);font-weight:var(--kc-font-weight-semibold)}
.inventory-movement-total{text-align:right}
.inventory-movement-type{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--kc-space-3)}
.inventory-movement-type-button{display:grid;gap:var(--kc-space-1);min-height:58px;padding:var(--kc-space-3) var(--kc-space-5);border:1px solid var(--kc-color-border);border-radius:var(--kc-radius-lg);background:var(--kc-color-surface);color:var(--kc-color-text);font-family:var(--kc-font-family-sans);text-align:left;cursor:pointer}
.inventory-movement-type-button strong{font-size:var(--kc-font-size-xl)}
.inventory-movement-type-button span{color:var(--kc-color-text-muted);font-size:var(--kc-font-size-xs);font-weight:var(--kc-font-weight-semibold)}
.inventory-movement-type-button.is-active{border-color:var(--kc-color-primary-300);background:var(--kc-color-primary-50);box-shadow:0 0 0 2px var(--kc-color-primary-100)}
.inventory-movement-form-grid{display:grid;grid-template-columns:1fr;gap:var(--kc-space-4)}
.inventory-movement-product-card,.inventory-movement-data-card{min-width:0}
.inventory-movement-product-results{display:grid;gap:var(--kc-space-2);max-height:290px;margin-top:var(--kc-space-3);overflow:auto}
.inventory-movement-picker{position:relative;z-index:6;display:grid;grid-template-columns:minmax(220px,.65fr) minmax(260px,1.35fr);align-items:center;gap:var(--kc-space-3) var(--kc-space-4);padding:var(--kc-space-3) var(--kc-space-4);border:1px solid var(--kc-color-border);border-radius:var(--kc-radius-lg);background:var(--kc-color-surface);box-shadow:var(--kc-shadow-sm)}
.inventory-movement-picker__heading{display:flex;align-items:center;justify-content:space-between;gap:var(--kc-space-3);min-width:0}
.inventory-movement-picker__heading>div{display:grid;gap:2px;min-width:0}
.inventory-movement-picker__heading>div>strong{font-size:var(--kc-font-size-lg)}
.inventory-movement-picker__heading small{overflow:hidden;color:var(--kc-color-text-muted);font-size:var(--kc-font-size-2xs);font-weight:var(--kc-font-weight-semibold);text-overflow:ellipsis;white-space:nowrap}
.inventory-movement-picker__heading>.kc-badge{flex:0 0 auto}
.inventory-movement-picker__selected{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:var(--kc-space-2)}
.inventory-movement-product-chip{display:flex;align-items:center;justify-content:space-between;gap:var(--kc-space-3);min-width:min(100%,280px);padding:var(--kc-space-2) var(--kc-space-3);border:1px solid var(--kc-color-primary-200);border-radius:var(--kc-radius-pill);background:var(--kc-color-primary-50)}
.inventory-movement-product-chip>span{display:grid;min-width:0}
.inventory-movement-product-chip strong,.inventory-movement-product-chip small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.inventory-movement-product-chip strong{font-size:var(--kc-font-size-xs)}
.inventory-movement-product-chip small{color:var(--kc-color-text-muted);font-size:var(--kc-font-size-2xs);font-weight:var(--kc-font-weight-semibold)}
.inventory-movement-product-chip button{display:grid;width:24px;height:24px;flex:0 0 24px;padding:0;place-items:center;border:0;border-radius:var(--kc-radius-round);background:transparent;color:var(--kc-color-text-secondary);font-size:var(--kc-font-size-lg);font-weight:var(--kc-font-weight-extrabold);cursor:pointer}
.inventory-movement-product-chip button:hover{background:var(--kc-color-primary-100);color:var(--kc-color-primary-700)}
.inventory-movement-combobox{position:relative;min-width:0}
.inventory-movement-product-dropdown{position:absolute;z-index:12;top:calc(100% + var(--kc-space-2));right:0;left:0;display:grid;gap:var(--kc-space-1);max-height:260px;padding:var(--kc-space-2);overflow:auto;border:1px solid var(--kc-color-border);border-radius:var(--kc-radius-md);background:var(--kc-color-surface);box-shadow:var(--kc-shadow-lg)}
.inventory-movement-product-dropdown .inventory-editor-empty{padding:var(--kc-space-5)}
.inventory-product-choice{display:flex;align-items:center;justify-content:space-between;gap:var(--kc-space-4);min-height:42px;padding:var(--kc-space-2) var(--kc-space-3);border:1px solid var(--kc-color-border);border-radius:var(--kc-radius-md);background:var(--kc-color-surface);color:var(--kc-color-text);font-family:var(--kc-font-family-sans);font-weight:var(--kc-font-weight-bold);text-align:left;cursor:pointer}
.inventory-product-choice:hover{border-color:var(--kc-color-primary-300);background:var(--kc-color-primary-50)}
.inventory-product-choice small{color:var(--kc-color-text-muted);font-size:var(--kc-font-size-xs);font-weight:var(--kc-font-weight-semibold);text-align:right}
.inventory-selected-product{display:flex;align-items:center;justify-content:space-between;gap:var(--kc-space-4);padding:var(--kc-space-4);border:1px solid var(--kc-color-primary-200);border-radius:var(--kc-radius-md);background:var(--kc-color-primary-50)}
.inventory-movement-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--kc-space-4)}
.inventory-movement-note{grid-column:1/-1}
.inventory-movement-preview{display:grid;grid-template-columns:minmax(125px,.7fr) auto minmax(160px,.85fr) minmax(145px,.75fr) auto;align-items:center;gap:var(--kc-space-4);padding:var(--kc-space-4) var(--kc-space-5);border:1px solid var(--kc-color-primary-200);border-radius:var(--kc-radius-lg);background:var(--kc-color-primary-50)}
.inventory-movement-preview span,.inventory-movement-preview strong{display:block}
.inventory-movement-preview div>span{color:var(--kc-color-text-muted);font-size:var(--kc-font-size-xs);font-weight:var(--kc-font-weight-bold);text-transform:uppercase}
.inventory-movement-preview strong{margin-top:var(--kc-space-1);font-size:var(--kc-font-size-xl)}
.inventory-movement-preview .is-negative{color:var(--kc-color-danger-700)}
.inventory-batch-layout{display:grid;grid-template-columns:minmax(300px,.8fr) minmax(0,1.2fr);gap:var(--kc-space-4);align-items:start}
.inventory-batch-search{display:grid;grid-template-columns:minmax(0,1fr) minmax(160px,.55fr);gap:var(--kc-space-3)}
.inventory-batch-results{display:grid;gap:var(--kc-space-2);max-height:560px;margin-top:var(--kc-space-3);overflow:auto}
.inventory-product-choice>span{min-width:0}
.inventory-product-choice>span>small{display:block;margin-top:2px;text-align:left}
.inventory-product-choice.is-selected{border-color:var(--kc-color-success-300);background:var(--kc-color-success-50)}
.inventory-batch-selected{display:grid;gap:var(--kc-space-3)}
.inventory-batch-items{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--kc-space-3)}
.inventory-batch-common{display:grid;grid-template-columns:minmax(180px,.8fr) minmax(150px,.55fr) minmax(220px,1.2fr);gap:var(--kc-space-3)}
.inventory-batch-note{grid-column:auto}
.inventory-batch-item{display:grid;gap:var(--kc-space-3);padding:var(--kc-space-4);border:1px solid var(--kc-color-border);border-radius:var(--kc-radius-lg);background:var(--kc-color-surface)}
.inventory-batch-item__head{display:flex;align-items:center;justify-content:space-between;gap:var(--kc-space-3)}
.inventory-batch-item__fields{display:grid;grid-template-columns:minmax(110px,.55fr) minmax(150px,1fr) minmax(130px,.7fr);gap:var(--kc-space-3)}
.inventory-batch-submit{position:sticky;z-index:3;bottom:0;display:flex;align-items:center;justify-content:space-between;gap:var(--kc-space-4);padding:var(--kc-space-4) var(--kc-space-5);border:1px solid var(--kc-color-primary-200);border-radius:var(--kc-radius-lg);background:rgba(239,246,255,.96);box-shadow:var(--kc-shadow-md);backdrop-filter:blur(8px)}
.inventory-batch-submit strong,.inventory-batch-submit small{display:block}
.inventory-batch-submit small{margin-top:var(--kc-space-1);color:var(--kc-color-text-muted);font-size:var(--kc-font-size-xs);font-weight:var(--kc-font-weight-semibold)}

.inventory-xml-backdrop{z-index:calc(var(--kc-admin-layer-recipe-sheet,50000) + 610);padding:var(--kc-space-4)}
.inventory-modal.inventory-modal--xml{--xml-font-body:clamp(14px,.95vw,16px);--xml-font-small:12px;width:calc(100vw - 28px);max-width:1800px;height:calc(100dvh - 28px);max-height:calc(100dvh - 28px);border-radius:var(--kc-radius-lg)}
/* Scope the shared controls against the admin's legacy input/button !important rules. */
.inventory-modal--xml .kc-input,.inventory-modal--xml .kc-select,.inventory-modal--xml .kc-button,.inventory-modal--xml .kc-tab{border-radius:var(--kc-component-control-radius)!important}
.inventory-modal--xml .kc-input,.inventory-modal--xml .kc-select{border-color:var(--kc-color-border-strong)!important}
.inventory-modal--xml .kc-input:focus,.inventory-modal--xml .kc-select:focus{border-color:var(--kc-color-focus)!important;box-shadow:var(--kc-shadow-focus)!important}
.inventory-modal--xml .kc-button{height:auto;border-color:var(--kc-color-border-strong)!important}
.inventory-modal--xml .kc-button--ghost{border-color:transparent!important}
.inventory-modal--xml .kc-button--primary{border-color:var(--kc-color-primary)!important}
.inventory-modal--xml .inventory-xml-product-open{background:var(--kc-color-surface)!important}
.inventory-modal--xml>.kc-modal__header{padding:var(--kc-space-5) var(--kc-space-9)}
.inventory-modal--xml .kc-modal__title{font-size:22px;line-height:1.25}
.inventory-modal--xml>.kc-modal__header>.kc-button{width:32px;height:32px;min-height:32px;min-width:32px;border:0;background:transparent;box-shadow:none}
.inventory-modal--xml>.kc-modal__body{display:flex;flex-direction:column;min-height:0;overflow:hidden;padding:var(--kc-space-3) var(--kc-space-9) 0;background:var(--kc-color-surface)}
.inventory-modal--xml>.kc-modal__footer{display:flex;align-items:center;justify-content:space-between;gap:var(--kc-space-3);flex-direction:row;min-height:28px;padding:0 var(--kc-space-9) var(--kc-space-3);border:0;background:var(--kc-color-surface)}
.inventory-modal--xml>.kc-modal__footer .inventory-status{font-size:var(--xml-font-small);font-weight:var(--kc-font-weight-medium);text-align:left}
.inventory-modal--xml>.kc-modal__footer .inventory-status:empty{display:none}
.inventory-modal--xml #inventoryXmlDraftStatus{margin-left:auto;font-size:11px;white-space:nowrap;color:var(--kc-color-text-muted);font-weight:var(--kc-font-weight-medium)}
.inventory-modal--xml .inventory-xml-workspace{display:flex;flex:1;flex-direction:column;min-height:0;gap:var(--kc-space-3);padding:0;background:var(--kc-color-surface)}
.inventory-xml-review-header{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:var(--kc-space-2);flex-shrink:0;min-width:0}
.inventory-xml-review-header .kc-toolbar{min-width:0;min-height:56px;padding:var(--kc-space-2) var(--kc-space-3);gap:var(--kc-space-2);border-radius:var(--kc-radius-md)}
.inventory-xml-supplier{display:grid;grid-template-columns:auto minmax(120px,1fr) auto auto;align-items:center}
.inventory-xml-supplier-label{font-size:11px;font-weight:var(--kc-font-weight-extrabold);letter-spacing:.05em;text-transform:uppercase;color:var(--kc-color-text-muted)}
.inventory-xml-supplier .kc-select{height:40px;min-height:40px;padding-block:0;font-size:13px;font-weight:var(--kc-font-weight-bold)}
.inventory-xml-supplier>.kc-button{min-height:36px;padding-inline:var(--kc-space-3);font-size:12px}
.inventory-xml-invoice-meta{display:grid;gap:3px;min-width:0;white-space:nowrap;font-size:12px;color:var(--kc-color-text-secondary)}
.inventory-xml-invoice-meta small{font-size:10px;color:var(--kc-color-text-muted);font-weight:var(--kc-font-weight-medium)}
.inventory-xml-review-tools{display:flex;align-items:center;flex-wrap:nowrap;justify-content:space-between}
.inventory-xml-review-filters.kc-tabs{gap:var(--kc-space-2);padding:0;border:0;background:transparent;overflow:auto;flex-shrink:0;max-width:100%}
.inventory-xml-review-filters .kc-tab{height:38px;min-height:38px;padding:0 var(--kc-space-4);gap:var(--kc-space-2);border:1px solid var(--kc-color-border)!important;border-radius:var(--kc-radius-md);background:var(--kc-color-surface);font-size:13px;color:var(--kc-color-text-secondary);box-shadow:var(--kc-shadow-xs)}
.inventory-xml-review-filters .kc-tab.is-active{border-color:var(--kc-color-suggestion-600)!important;background:var(--kc-color-suggestion-surface);color:var(--kc-color-suggestion-surface-text);box-shadow:none}
.inventory-xml-review-filters .kc-tab strong{min-width:22px;padding:2px 5px;border-radius:var(--kc-radius-pill);background:var(--kc-color-surface-muted);font-size:11px;font-variant-numeric:tabular-nums}
.inventory-xml-review-filters .kc-tab.is-active strong{background:var(--kc-color-suggestion-600);color:var(--kc-color-white)}
.inventory-xml-new-supplier{flex-shrink:0;justify-content:flex-start}
.inventory-xml-new-supplier>.kc-input{width:min(440px,70%)}
.inventory-xml-new-supplier[hidden],.inventory-xml-finance[hidden],.inventory-xml-installments[hidden],.inventory-xml-table [hidden]{display:none}
.inventory-xml-scroll{min-height:0;flex:1;overflow:auto;overscroll-behavior:contain;border:1px solid var(--kc-color-border);border-radius:var(--kc-radius-md);scroll-padding-top:56px;background:var(--kc-color-surface)}
.inventory-xml-table{width:100%;table-layout:fixed;border-collapse:separate;border-spacing:0;text-align:left;font-size:var(--xml-font-body);color:var(--kc-color-text)}
.inventory-xml-col-source{width:22%}.inventory-xml-col-product{width:27%}.inventory-xml-col-quantity{width:7%}.inventory-xml-col-unit{width:19%}.inventory-xml-col-price{width:9%}.inventory-xml-col-total{width:12%}.inventory-xml-col-check{width:4%}
.inventory-xml-table th{position:sticky;top:0;z-index:3;height:46px;padding:var(--kc-space-5) var(--kc-space-4);border-bottom:1px solid var(--kc-color-border);background:var(--kc-color-surface-subtle);color:var(--kc-color-text-muted);font-size:11px;font-weight:var(--kc-font-weight-extrabold);letter-spacing:.05em;text-transform:uppercase;text-align:left;white-space:nowrap}
.inventory-xml-table th:first-child{padding-left:var(--kc-space-7)}
.inventory-xml-table th:nth-child(2){padding-left:38px}
.inventory-xml-table th:nth-child(3),.inventory-xml-table th:nth-child(5){text-align:center}
.inventory-xml-table th:nth-child(6){text-align:right}
.inventory-xml-item>tr>td{min-width:0;padding:var(--kc-space-5) var(--kc-space-4);vertical-align:middle;border-bottom:1px solid var(--kc-color-border);background:var(--kc-color-surface)}
.inventory-xml-item>tr>td:first-child{padding-left:var(--kc-space-7)}
.inventory-xml-item:has(.inventory-xml-detail-row:not([hidden]))>.inventory-xml-item__fields>td{border-bottom:0}
.inventory-xml-item__fields .kc-input,.inventory-xml-item__fields .kc-select{width:100%;min-width:0;height:44px;min-height:44px;padding:var(--kc-space-3);border-radius:var(--kc-component-control-radius);font-size:var(--xml-font-body);font-weight:var(--kc-font-weight-semibold);background:var(--kc-color-surface)}
.inventory-xml-item__fields .kc-select{padding-right:28px}
.inventory-xml-item__fields .kc-input{font-variant-numeric:tabular-nums;text-align:center}
.inventory-xml-source .inventory-xml-source-name.kc-button{display:flex;align-items:center;justify-content:flex-start;gap:var(--kc-space-2);width:100%;height:auto;min-height:0;padding:0;border:0;background:transparent;box-shadow:none;text-align:left;font-size:var(--xml-font-body);font-weight:var(--kc-font-weight-bold);line-height:1.4}
.inventory-xml-source-name>span{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;white-space:normal}
.inventory-xml-source-name>svg{width:14px;height:14px;flex:0 0 14px;fill:none;stroke:var(--kc-color-text-muted);stroke-width:2}
.inventory-xml-source-name[aria-expanded="true"]>svg{transform:rotate(180deg)}
.inventory-xml-source>small{display:block;margin-top:var(--kc-space-1);font-size:11px;color:var(--kc-color-text-muted);font-weight:var(--kc-font-weight-medium)}
.inventory-xml-product-stack{display:grid;grid-template-columns:22px minmax(0,1fr);align-items:center;gap:var(--kc-space-2)}
.inventory-xml-automation-slot{display:flex;align-items:center;justify-content:center}
.inventory-xml-automation-slot .kc-automation{display:grid;place-items:center;width:22px;height:22px;min-height:22px;padding:0;border:1px solid var(--kc-color-suggestion-surface-border);border-radius:var(--kc-radius-round);background:var(--kc-color-suggestion-surface);color:var(--kc-color-suggestion-surface-text)}
.inventory-xml-automation-slot .kc-automation svg{width:13px;height:13px}
.inventory-xml-automation-slot .kc-automation>span,.inventory-xml-sr-only{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.inventory-xml-product-open{display:flex;align-items:center;justify-content:space-between;gap:var(--kc-space-2);text-align:left;cursor:pointer}
.inventory-xml-product-open>span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.inventory-xml-item.is-automated .inventory-xml-product-open{border-color:var(--kc-color-suggestion-surface-border)!important;background:var(--kc-color-suggestion-surface)!important}
.inventory-xml-picker{position:fixed;z-index:calc(var(--kc-admin-layer-recipe-sheet,50000) + 700)}
.inventory-modal--xml .inventory-xml-picker .kc-input{height:40px;min-height:40px;font-size:14px;text-align:left;font-weight:var(--kc-font-weight-medium)}
.inventory-modal--xml .kc-dropdown__options{flex:1;min-height:0}
.inventory-modal--xml .kc-dropdown__option{height:auto;min-height:48px;padding:var(--kc-space-3);border:0!important;border-radius:var(--kc-radius-sm)!important;font-size:14px;white-space:normal;box-shadow:none}
.inventory-modal--xml .kc-dropdown__option strong{font-size:14px;line-height:1.35}
.inventory-modal--xml .kc-dropdown__option .kc-automation{margin-left:auto;flex-shrink:0}
.inventory-modal--xml .kc-dropdown__footer .kc-button{min-height:32px;font-size:13px}
.inventory-modal--xml .kc-dropdown__footer small{font-size:11px}
.inventory-modal--xml .kc-dropdown__group{font-size:12px}
.inventory-xml-payment-menu{position:fixed;z-index:calc(var(--kc-admin-layer-recipe-sheet,50000) + 700)}
.inventory-xml-payment-picker>.kc-select{width:100%;background-image:none!important}
.inventory-xml-money{position:relative;display:block;min-width:0}
.inventory-xml-item__fields .inventory-xml-money>.kc-input{padding-right:30px;padding-left:var(--kc-space-2)}
.inventory-xml-money>span{position:absolute;right:var(--kc-space-3);top:50%;transform:translateY(-50%);font-size:11px;color:var(--kc-color-text-muted);pointer-events:none}
.inventory-xml-unit-controls{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:var(--kc-space-2)}
.inventory-xml-conversion-toggle.kc-button{height:32px;min-height:32px;padding:0 var(--kc-space-2);font-size:10px}
.inventory-xml-row-total{text-align:right;font-variant-numeric:tabular-nums}
.inventory-xml-row-total>strong{display:block;font-size:var(--xml-font-body);font-weight:var(--kc-font-weight-extrabold);white-space:nowrap}
.inventory-xml-row-total>small{display:block;margin-top:var(--kc-space-1);font-size:11px;white-space:nowrap;color:var(--kc-color-text-muted);font-weight:var(--kc-font-weight-medium)}
.inventory-xml-check-cell{text-align:center}
.inventory-xml-confirm.kc-button{display:inline-grid;place-items:center;width:30px;min-width:30px;height:30px;min-height:30px;padding:5px;color:var(--kc-color-text-muted);background:var(--kc-color-surface);box-shadow:none}
.inventory-xml-confirm svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.inventory-xml-confirm:hover,.inventory-xml-item.is-confirmed .inventory-xml-confirm{opacity:1;color:var(--kc-color-suggestion-surface-text);border-color:var(--kc-color-suggestion-surface-border)!important;background:var(--kc-color-suggestion-surface)}
.inventory-xml-note-details{display:flex;align-items:center;gap:var(--kc-space-10);flex-wrap:wrap;padding:var(--kc-space-3) 0}
.inventory-xml-note-details>div{display:grid;gap:var(--kc-space-1)}
.inventory-xml-note-details span{color:var(--kc-color-text-muted);font-size:var(--xml-font-small)}
.inventory-xml-note-details strong{font-size:13px}
.inventory-xml-note-details>.kc-button{margin-left:auto}
.inventory-xml-detail-row>td{background:var(--kc-color-surface-subtle)!important}
.inventory-xml-item__help{margin:0;color:var(--kc-color-warning-800);font-size:var(--xml-font-small)}
.inventory-xml-conversion-panel{padding:var(--kc-space-3) 0}
.inventory-xml-package-equation{display:grid;grid-template-columns:minmax(180px,2fr) auto minmax(80px,.7fr) minmax(120px,1fr) auto;align-items:end;gap:var(--kc-space-4);max-width:960px}
.inventory-xml-equation-symbol{align-self:end;padding-bottom:14px;color:var(--kc-color-text-muted)}
.inventory-xml-package-equation .kc-input,.inventory-xml-package-equation .kc-select,.inventory-xml-package-equation>.kc-button{height:42px;min-height:42px;font-size:14px}
.inventory-xml-conversion-panel>.kc-field__help{display:block;margin-top:var(--kc-space-3);font-weight:var(--kc-font-weight-medium)}
.inventory-xml-ignored{color:var(--kc-color-text-muted)}
.inventory-xml-submit{position:sticky;z-index:4;bottom:0;display:flex;align-items:center;justify-content:space-between;gap:var(--kc-space-7);flex-shrink:0;padding:var(--kc-space-3) 0;background:var(--kc-color-surface)}
.inventory-xml-completion{display:grid;gap:var(--kc-space-1);margin-right:auto;font-size:13px;color:var(--kc-color-text-secondary)}
.inventory-xml-completion>strong{font-weight:var(--kc-font-weight-semibold)}
.inventory-xml-completion>small{font-size:11px;color:var(--kc-color-text-muted)}
.inventory-xml-final-total{display:grid;gap:var(--kc-space-1);text-align:right;white-space:nowrap}
.inventory-xml-final-total span{font-size:11px;color:var(--kc-color-text-muted)}
.inventory-xml-final-total strong{font-size:16px;font-variant-numeric:tabular-nums}
.inventory-xml-submit>.kc-button{min-height:42px;font-size:14px}
.inventory-xml-scroll>#inventoryXmlFinance{margin:var(--kc-space-7);box-shadow:none;font-size:13px}
.inventory-xml-finance{display:grid;grid-template-columns:minmax(180px,.85fr) minmax(0,1.5fr);align-items:start;gap:var(--kc-space-7)}
.inventory-xml-installments{display:grid;gap:var(--kc-space-2)}
.inventory-xml-installment{display:grid;grid-template-columns:minmax(70px,.5fr) minmax(140px,1fr) auto;align-items:center;gap:var(--kc-space-5)}
.inventory-xml-item__total{display:grid;gap:var(--kc-space-1);font-size:13px}
.inventory-xml-item__total span{color:var(--kc-color-text-muted);font-size:11px}
.inventory-xml-drafts{padding:var(--kc-space-3)}
.inventory-xml-draft-row{display:flex;align-items:center;gap:var(--kc-space-3);padding-top:var(--kc-space-3)}
.inventory-xml-draft-row>div{flex:1;display:grid;gap:var(--kc-space-1);min-width:0}
.inventory-xml-draft-row strong{font-size:var(--kc-font-size-sm);overflow-wrap:anywhere}
.inventory-xml-draft-row small{font-size:var(--kc-font-size-xs);color:var(--kc-color-text-muted)}
@media(max-width:1200px){
  .inventory-xml-review-header{grid-template-columns:1fr}
  .inventory-xml-supplier{grid-template-columns:auto minmax(160px,1fr) auto auto}
  .inventory-xml-invoice-meta{display:flex;align-items:center;justify-content:flex-end;gap:var(--kc-space-3)}
  .inventory-xml-finance{grid-template-columns:1fr}
  .inventory-xml-table th,.inventory-xml-item>tr>td{padding-inline:var(--kc-space-2)}
  .inventory-xml-table th:first-child,.inventory-xml-item>tr>td:first-child{padding-left:var(--kc-space-4)}
}
@media(max-width:900px){
  .inventory-modal.inventory-modal--xml{--xml-font-body:14px;width:100%;height:100dvh;max-height:100dvh;border-radius:0}
  .inventory-xml-backdrop{padding:0}
  .inventory-modal--xml>.kc-modal__header{padding:var(--kc-space-4) var(--kc-space-5)}
  .inventory-modal--xml>.kc-modal__body{padding:var(--kc-space-2) var(--kc-space-3) 0}
  .inventory-modal--xml>.kc-modal__footer{padding:0 var(--kc-space-4) var(--kc-space-2);flex-wrap:wrap;min-height:20px}
  .inventory-xml-review-header .kc-toolbar{min-height:0}
  .inventory-xml-review-tools{flex-wrap:wrap}
  .inventory-xml-review-filters.kc-tabs{flex:1;justify-content:space-between}
  .inventory-xml-review-filters .kc-tab{flex:1;min-width:0;min-height:34px;font-size:11px;padding-inline:var(--kc-space-2);gap:var(--kc-space-1)}
  .inventory-xml-review-filters .kc-tab strong{min-width:18px;padding:2px 3px;font-size:10px}
  .inventory-xml-supplier{grid-template-columns:auto minmax(0,1fr);gap:var(--kc-space-2)}
  .inventory-xml-supplier-label{font-size:10px}
  .inventory-xml-supplier .kc-select{font-size:14px;height:36px;min-height:36px}
  .inventory-xml-supplier>.kc-button{grid-column:1;grid-row:2;min-height:30px;font-size:11px}
  .inventory-xml-invoice-meta{grid-column:2;grid-row:2;justify-content:flex-end;font-size:11px;gap:var(--kc-space-2)}
  .inventory-xml-scroll{scroll-padding-top:0}
  .inventory-xml-table,.inventory-xml-item,.inventory-xml-table tbody{display:block;width:100%}
  .inventory-xml-table colgroup{display:none}
  .inventory-xml-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  .inventory-xml-item{border-bottom:1px solid var(--kc-color-border)}
  .inventory-xml-item__fields{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.5fr) minmax(0,1fr) 32px;gap:var(--kc-space-4) var(--kc-space-2);padding:var(--kc-space-5)}
  .inventory-xml-item>tr>td,.inventory-xml-item>tr>td:first-child{display:block;padding:0;border:0;min-width:0}
  .inventory-xml-source{grid-column:1/4;grid-row:1}
  .inventory-xml-check-cell{grid-column:4;grid-row:1;align-self:center}
  .inventory-xml-source>small{font-size:11px}
  .inventory-xml-product-field{grid-column:1/-1;grid-row:2}
  .inventory-xml-product-stack{grid-template-columns:22px minmax(0,1fr)}
  .inventory-xml-quantity-field{grid-column:1;grid-row:3}
  .inventory-xml-unit-field{grid-column:2;grid-row:3}
  .inventory-xml-cost-field{grid-column:3/5;grid-row:3}
  .inventory-xml-quantity-field::before,.inventory-xml-unit-field::before,.inventory-xml-cost-field::before{content:attr(data-label);display:block;margin-bottom:var(--kc-space-1);font-size:11px;font-weight:var(--kc-font-weight-semibold);color:var(--kc-color-text-muted)}
  .inventory-xml-item__fields .kc-input,.inventory-xml-item__fields .kc-select,.inventory-xml-picker .kc-input{font-size:16px;height:40px;min-height:40px}
  .inventory-modal--xml .inventory-xml-picker .kc-input{font-size:16px}
  .inventory-xml-unit-controls{grid-template-columns:minmax(0,1fr)}
  .inventory-xml-conversion-toggle.kc-button{height:26px;min-height:26px;font-size:11px;justify-self:end}
  .inventory-xml-unit-controls>.kc-select{padding-left:var(--kc-space-2);padding-right:var(--kc-space-9);background-position:right var(--kc-space-1) center}
  .inventory-xml-row-total{grid-column:1/-1;grid-row:4;display:flex!important;align-items:center;justify-content:flex-end;gap:var(--kc-space-3)}
  .inventory-xml-row-total::before{content:"Total";margin-right:auto;font-size:11px;color:var(--kc-color-text-muted)}
  .inventory-xml-row-total>small{margin-top:0;font-size:11px}
  .inventory-xml-detail-row,.inventory-xml-help-row{display:block}
  .inventory-xml-item>.inventory-xml-detail-row>td:first-child,.inventory-xml-item>.inventory-xml-help-row>td:first-child{padding:var(--kc-space-5)}
  .inventory-xml-note-details{gap:var(--kc-space-5);font-size:12px}
  .inventory-xml-note-details>div{width:calc(50% - 8px)}
  .inventory-xml-note-details>.kc-button{margin-left:0}
  .inventory-xml-ignored{grid-column:1/-1}
  .inventory-xml-package-equation{grid-template-columns:minmax(0,1fr) minmax(0,1.5fr);gap:var(--kc-space-3)}
  .inventory-xml-package-name{grid-column:1/-1}
  .inventory-xml-equation-symbol{display:none}
  .inventory-xml-package-equation>.kc-button{grid-column:1/-1;justify-self:end}
  .inventory-xml-package-equation .kc-input,.inventory-xml-package-equation .kc-select{font-size:16px}
  .inventory-xml-installment{grid-template-columns:.6fr 1fr}
  .inventory-xml-installment>.kc-choice{grid-column:1/-1}
  .inventory-xml-submit{gap:var(--kc-space-3);flex-wrap:wrap;padding-block:var(--kc-space-2)}
  .inventory-xml-completion{font-size:11px}
  .inventory-xml-final-total strong{font-size:14px}
  .inventory-xml-submit>.kc-button{min-height:40px;font-size:13px}
}
@media(max-width:480px){
  .inventory-xml-final-total{display:none}
  .inventory-xml-completion{flex:1;min-width:0}
  .inventory-xml-completion small{display:none}
  .inventory-xml-table .inventory-xml-product-open{font-size:14px}
}

.inventory-start-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,.65fr);gap:var(--kc-space-5)}
.inventory-start-list{display:grid;gap:var(--kc-space-2);max-height:430px;overflow:auto}
.inventory-start-choice{display:flex;align-items:center;justify-content:space-between;gap:var(--kc-space-4);padding:var(--kc-space-4);border:1px solid var(--kc-color-border);border-radius:var(--kc-radius-md);background:var(--kc-color-surface)}
.inventory-start-choice small{color:var(--kc-color-text-muted);font-weight:var(--kc-font-weight-semibold)}
.inventory-start-summary{display:grid;align-content:start;gap:var(--kc-space-4);padding:var(--kc-space-5);border:1px solid var(--kc-color-border);border-radius:var(--kc-radius-lg);background:var(--kc-color-surface)}
.inventory-start-summary h3{margin:0;font-size:var(--kc-font-size-4xl)}

.inventory-count-shell{display:grid;gap:var(--kc-space-4)}
.inventory-count-sticky{position:sticky;z-index:3;top:0;display:grid;grid-template-columns:auto minmax(180px,1fr) auto;align-items:center;gap:var(--kc-space-5);padding:var(--kc-space-4);border:1px solid var(--kc-color-border);border-radius:var(--kc-radius-lg);background:rgba(255,255,255,.96);box-shadow:var(--kc-shadow-sm);backdrop-filter:blur(8px)}
.inventory-count-title{min-width:0}
.inventory-count-title h3{overflow:hidden;margin:0;text-overflow:ellipsis;white-space:nowrap;font-size:var(--kc-font-size-4xl)}
.inventory-count-title p{margin:2px 0 0;color:var(--kc-color-text-muted);font-size:var(--kc-font-size-xs);font-weight:var(--kc-font-weight-semibold)}
.inventory-count-list{display:grid;gap:var(--kc-space-3)}
.inventory-count-row{display:grid;grid-template-columns:minmax(220px,1fr) minmax(360px,1.15fr) auto;align-items:center;gap:var(--kc-space-5);min-height:86px;padding:var(--kc-space-4);border:1px solid var(--kc-color-border);border-left:4px solid var(--kc-color-warning-600);border-radius:var(--kc-radius-lg);background:var(--kc-color-surface);box-shadow:var(--kc-shadow-xs)}
.inventory-count-row.is-filled{border-left-color:var(--kc-color-success-600)}
.inventory-product{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:var(--kc-space-4);min-width:0}
.inventory-product-image{display:grid;width:64px;height:64px;place-items:center;overflow:hidden;border:1px solid var(--kc-color-border);border-radius:var(--kc-radius-md);background:var(--kc-color-surface-muted);color:var(--kc-color-slate-400);font-size:var(--kc-font-size-xs);font-weight:var(--kc-font-weight-bold);text-align:center}
.inventory-product-image img{width:100%;height:100%;object-fit:cover}
.inventory-product-image.is-empty{display:none}
.inventory-product-copy{min-width:0}
.inventory-product-copy strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:var(--kc-font-size-xl)}
.inventory-product-copy small{display:block;margin-top:var(--kc-space-1);color:var(--kc-color-text-muted);font-size:var(--kc-font-size-xs);font-weight:var(--kc-font-weight-semibold)}
.inventory-quantity-stack{display:grid;gap:var(--kc-space-2)}
.inventory-quantity-line{display:grid;grid-template-columns:minmax(110px,.65fr) minmax(150px,1fr) auto;align-items:center;gap:var(--kc-space-2)}
.inventory-quantity-line .kc-input,.inventory-quantity-line .kc-select{min-height:38px;padding-block:var(--kc-space-2)}
.inventory-add-line{justify-self:start;border:0;background:transparent;color:var(--kc-color-primary-700);font:var(--kc-font-weight-bold) var(--kc-font-size-sm)/1 var(--kc-font-family-sans);cursor:pointer}
.inventory-count-row-actions{display:flex;align-items:center;flex-wrap:wrap;gap:var(--kc-space-4)}
.inventory-quick-package{display:grid;gap:var(--kc-space-3);margin-top:var(--kc-space-2);padding:var(--kc-space-4);border:1px solid var(--kc-color-primary-200);border-radius:var(--kc-radius-md);background:var(--kc-color-primary-50)}
.inventory-quick-package-head,.inventory-quick-package-footer{display:flex;align-items:center;justify-content:space-between;gap:var(--kc-space-3)}
.inventory-quick-package-head strong,.inventory-quick-package-head small{display:block}
.inventory-quick-package-head small,.inventory-quick-package-footer small{margin-top:2px;color:var(--kc-color-text-muted);font-size:var(--kc-font-size-2xs);font-weight:var(--kc-font-weight-semibold)}
.inventory-quick-package-fields{display:grid;grid-template-columns:minmax(150px,1fr) minmax(190px,1fr);gap:var(--kc-space-3)}
.inventory-quick-package-fields .kc-field{display:grid;gap:var(--kc-space-1)}
.inventory-quick-package-measure{display:grid;grid-template-columns:minmax(80px,1fr) minmax(76px,.55fr);gap:var(--kc-space-2)}
.inventory-quick-package .kc-input,.inventory-quick-package .kc-select{min-height:38px;padding-block:var(--kc-space-2)}
.inventory-quick-package-footer .is-invalid{color:var(--kc-color-danger-700)}
.inventory-row-total{min-width:110px;text-align:right}
.inventory-row-total strong,.inventory-row-total small{display:block}
.inventory-row-total strong{font-size:var(--kc-font-size-xl)}
.inventory-row-total small{margin-top:var(--kc-space-1);color:var(--kc-color-text-muted);font-size:var(--kc-font-size-xs);font-weight:var(--kc-font-weight-semibold)}
.inventory-row-total .is-invalid{color:var(--kc-color-danger-700)}
.inventory-unfilled{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:var(--kc-space-5);padding:var(--kc-space-5);border:1px solid var(--kc-color-warning-300);border-radius:var(--kc-radius-lg);background:var(--kc-color-warning-50)}
.inventory-unfilled h3{margin:0;color:var(--kc-color-warning-800);font-size:var(--kc-font-size-lg)}
.inventory-unfilled p{margin:var(--kc-space-1) 0 0;color:var(--kc-color-warning-800);font-size:var(--kc-font-size-sm);font-weight:var(--kc-font-weight-semibold)}
.inventory-unfilled-list{margin:var(--kc-space-2) 0 0;padding-left:var(--kc-space-7);color:var(--kc-color-text-secondary);font-size:var(--kc-font-size-xs)}
.inventory-status{min-height:18px;color:var(--kc-color-text-muted);font-size:var(--kc-font-size-xs);font-weight:var(--kc-font-weight-semibold)}
.inventory-status.is-error{color:var(--kc-color-danger-700)}
.inventory-status.is-success{color:var(--kc-color-success-700)}

@media(max-width:900px){
  .inventory-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
  .inventory-diamond-details__body{grid-template-columns:1fr}
  .inventory-location-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .inventory-daily-grid{grid-template-columns:1fr}
  .inventory-schedule-fields{grid-template-columns:repeat(2,minmax(0,1fr))}
  .inventory-schedule-card{grid-template-columns:minmax(0,1fr) 100px}
  .inventory-schedule-card__actions{grid-column:1/-1;justify-content:flex-end}
  .inventory-location-editor-toolbar{grid-template-columns:1fr}
  .inventory-location-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
  .inventory-location-editor,.inventory-start-grid{grid-template-columns:1fr}
  .inventory-editor-panel{height:620px}
  .inventory-editor-list--catalog{grid-template-columns:1fr}
  .inventory-purchase-layout{grid-template-columns:1fr}
  .inventory-schedule-location-list{grid-template-columns:repeat(2,minmax(0,1fr))}
  .inventory-count-catalog-list{grid-template-columns:1fr}
  .inventory-movement-filters{grid-template-columns:repeat(2,minmax(0,1fr))}
  .inventory-movement-search{grid-column:1/-1}
  .inventory-movement-row{grid-template-columns:76px 86px minmax(180px,1fr) minmax(125px,.55fr)}
  .inventory-movement-row>.inventory-row-copy{grid-column:3/-1}
  .inventory-movement-value{grid-column:1/3}
  .inventory-movement-price{grid-column:3}
  .inventory-movement-total{grid-column:4;text-align:right}
  .inventory-movement-form-grid{grid-template-columns:1fr}
  .inventory-movement-preview{grid-template-columns:minmax(120px,1fr) auto minmax(150px,1fr) minmax(140px,1fr)}
  .inventory-movement-preview .kc-button{grid-column:1/-1;width:100%}
  .inventory-batch-layout{grid-template-columns:1fr}
  .inventory-batch-items{grid-template-columns:1fr}
  .inventory-count-row{grid-template-columns:minmax(190px,.8fr) minmax(300px,1.2fr)}
  .inventory-row-total{grid-column:2;text-align:left}
}
@media(max-width:640px){
  .inventory-modal{height:94dvh;max-height:94dvh}
  .inventory-modal--location-editor{height:100dvh;max-height:100dvh;border-radius:0}
  .inventory-modal--location-editor .kc-modal__title{font-size:var(--kc-font-size-4xl)}
  .inventory-modal--location-editor .kc-modal__description{display:none}
  .inventory-modal--location-editor .inventory-tabs{display:none}
  .inventory-modal--location-editor .kc-modal__body{overflow:auto}
  .inventory-modal--location-editor .kc-modal__footer{min-height:0;padding:0;border-top:0}
  .inventory-modal--location-editor .kc-modal__footer>.kc-button,.inventory-modal--location-editor .inventory-status:empty{display:none}
  .inventory-modal--location-editor .inventory-status:not(:empty){width:100%;padding:var(--kc-space-2) var(--kc-space-4);border-top:1px solid var(--kc-color-border);background:var(--kc-color-slate-25)}
  .inventory-modal .kc-modal__header{padding:var(--kc-space-5)}
  .inventory-modal--location-editor .kc-modal__header{padding:var(--kc-space-3) var(--kc-space-4)}
  .inventory-tabs{margin:var(--kc-space-3) var(--kc-space-4) 0}
  .inventory-workspace{padding:var(--kc-space-4)}
  .inventory-location-workspace{height:auto;min-height:100%;grid-template-rows:auto auto auto auto;gap:var(--kc-space-2);padding:var(--kc-space-2)}
  .inventory-location-workspace .inventory-editor-panel{height:auto;min-height:58dvh}
  .inventory-location-workspace .inventory-editor-panel--catalog{min-height:calc(58dvh + 26rem)}
  .inventory-location-workspace .inventory-editor-panel--catalog .inventory-editor-list--catalog{min-height:58dvh;flex:0 0 58dvh}
  .inventory-toolbar{position:static}
  .inventory-toolbar .kc-toolbar__group,.inventory-toolbar .kc-input{width:100%}
  .inventory-catalog-filters,.inventory-movement-filters,.inventory-count-catalog-tools{grid-template-columns:1fr}
  .inventory-movement-search{grid-column:auto}
  .inventory-location-editor-toolbar{grid-template-columns:1fr;align-items:stretch;gap:var(--kc-space-2);padding:var(--kc-space-2)}
  .inventory-location-editor-toolbar .kc-input{min-height:42px}
  .inventory-location-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--kc-space-1)}
  .inventory-location-summary>span{min-height:38px;padding:var(--kc-space-2)}
  .inventory-location-summary strong{font-size:var(--kc-font-size-lg)}
  .inventory-location-mode-switch{display:flex}
  .inventory-location-mode{width:0;min-height:48px;flex:1 1 0;gap:var(--kc-space-2);padding:var(--kc-space-2)}
  .inventory-location-mode small{display:none}
  .inventory-editor-step{width:28px;height:28px;font-size:var(--kc-font-size-sm)}
  .inventory-editor-head{gap:var(--kc-space-2);padding:var(--kc-space-2)}
  .inventory-editor-panel--assigned .inventory-editor-head--section{display:none}
  .inventory-assigned-tools .kc-field__label{display:none}
  .inventory-assigned-tools .kc-input{min-height:40px}
  .inventory-order-presets{justify-content:flex-start;flex-wrap:nowrap}
  .inventory-order-presets>span{display:none}
  .inventory-order-presets .kc-button{min-height:38px;padding-inline:var(--kc-space-3)}
  .inventory-editor-list{gap:var(--kc-space-1);padding:var(--kc-space-2);scrollbar-gutter:auto}
  .inventory-assigned-row,.inventory-catalog-row{min-height:54px;padding:var(--kc-space-1) var(--kc-space-2)}
  .inventory-editor-tip{display:none}
  .inventory-location-primary-actions{display:grid;grid-template-columns:1fr 1fr}
  .inventory-location-primary-actions .kc-button{width:100%}
  .inventory-location-savebar{display:grid;position:static;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:var(--kc-space-2);padding:var(--kc-space-2)}
  .inventory-location-savebar>div:first-child .kc-button{min-width:0;padding-inline:var(--kc-space-3)}
  .inventory-catalog-actions{display:grid;grid-template-columns:1fr 1fr;width:100%}
  .inventory-catalog-actions .kc-button{width:100%}
  .inventory-catalog-actions .kc-button--primary{grid-column:1/-1;grid-row:1;min-width:0}
  .inventory-catalog-selectionbar{align-items:stretch;flex-direction:column}
  .inventory-catalog-filters{grid-template-columns:1fr}
  .inventory-assigned-tools{grid-template-columns:1fr}
  .inventory-order-presets{justify-content:flex-start;flex-wrap:wrap}
  .inventory-movement-type{grid-template-columns:1fr}
  .inventory-movement-picker{grid-template-columns:1fr}
  .inventory-movement-picker__heading{align-items:flex-start;flex-direction:column}
  .inventory-movement-picker__selected{grid-column:auto}
  .inventory-movement-product-chip{width:100%;min-width:0;border-radius:var(--kc-radius-md)}
  .inventory-movement-row{grid-template-columns:72px minmax(0,1fr) auto;gap:var(--kc-space-3)}
  .inventory-movement-row>.inventory-row-copy{grid-column:2/-1;grid-row:1}
  .inventory-movement-row>.kc-badge{grid-column:1;grid-row:2;justify-self:start}
  .inventory-movement-date{grid-column:1;grid-row:1}
  .inventory-movement-value{grid-column:2;grid-row:2}
  .inventory-movement-price{grid-column:3;grid-row:2;text-align:right}
  .inventory-movement-total{grid-column:2/-1;grid-row:3;text-align:left}
  .inventory-movement-fields{grid-template-columns:1fr}
  .inventory-movement-note{grid-column:auto}
  .inventory-movement-preview{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)}
  .inventory-movement-preview>div:nth-of-type(3){grid-column:1/-1}
  .inventory-metrics{gap:var(--kc-space-2)}
  .inventory-diamond-card__main{grid-template-columns:auto minmax(0,1fr);padding:var(--kc-space-4)}
  .inventory-diamond-card__actions{grid-column:1/-1}
  .inventory-diamond-card__actions .kc-button{width:100%}
  .inventory-diamond-details>summary,.inventory-diamond-details__body,.inventory-diamond-details__footer{padding-right:var(--kc-space-4);padding-left:var(--kc-space-4)}
  .inventory-diamond-details__footer{align-items:stretch;flex-direction:column}
  .inventory-diamond-details__footer .kc-button{width:100%}
  .inventory-diamond-product{grid-template-columns:34px minmax(0,1fr)}
  .inventory-diamond-product>.kc-badge{grid-column:2;justify-self:start}
  .inventory-metric{min-height:72px;padding:var(--kc-space-4)}
  .inventory-metric strong{font-size:var(--kc-font-size-5xl)}
  .inventory-location-grid{grid-template-columns:1fr}
  .inventory-location-card{min-height:136px;padding:var(--kc-space-5)}
  .inventory-active-count{grid-template-columns:1fr}
  .inventory-editor-panel{height:min(64dvh,580px);min-height:460px}
  .inventory-editor-list{max-height:none}
  .inventory-editor-head--section{align-items:flex-start}
  .inventory-editor-head--section>.kc-badge{flex:0 0 auto}
  .inventory-editor-head{padding:var(--kc-space-4)}
  .inventory-location-workspace .inventory-editor-head{padding:var(--kc-space-2)}
  .inventory-location-workspace .inventory-assigned-tools{grid-template-columns:minmax(0,1fr) auto;gap:var(--kc-space-2)}
  .inventory-editor-list{padding:var(--kc-space-3)}
  .inventory-assigned-row{grid-template-columns:36px 30px minmax(0,1fr) auto;gap:var(--kc-space-2)}
  .inventory-sequence-number{width:28px;height:28px}
  .inventory-move-assigned{min-width:0;padding-inline:var(--kc-space-2);font-size:var(--kc-font-size-xs)}
  .inventory-catalog-row{grid-template-columns:auto minmax(0,1fr) 24px}
  .inventory-editor-tip{align-items:flex-start}
  .inventory-move-backdrop{padding:var(--kc-space-3)}
  .inventory-move-dialog{max-height:calc(100dvh - 24px);padding:var(--kc-space-4);border-radius:var(--kc-radius-lg)}
  .inventory-move-shortcuts{grid-template-columns:1fr}
  .inventory-move-targets article{grid-template-columns:1fr}
  .inventory-move-targets article>div:last-child{display:grid;grid-template-columns:1fr 1fr}
  .inventory-count-sticky{grid-template-columns:auto minmax(0,1fr);gap:var(--kc-space-3)}
  .inventory-count-sticky>.inventory-actions{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr}
  .inventory-count-row{grid-template-columns:1fr;gap:var(--kc-space-3);min-height:0;padding:var(--kc-space-4)}
  .inventory-product-image{width:48px;height:48px}
  .inventory-quantity-line{grid-template-columns:minmax(88px,.7fr) minmax(0,1fr) auto}
  .inventory-row-total{grid-column:auto;text-align:left}
  .inventory-quick-package-fields{grid-template-columns:1fr}
  .inventory-quick-package-footer{align-items:stretch;flex-direction:column}
  .inventory-quick-package-footer .kc-button{width:100%}
  .inventory-unfilled{grid-template-columns:1fr}
  .inventory-unfilled .kc-button{width:100%}
  .inventory-editor-footer{align-items:stretch;flex-direction:column}
  .inventory-editor-footer .inventory-actions{display:grid;grid-template-columns:1fr 1fr;width:100%}
  .inventory-editor-footer .kc-button{width:100%}
  .inventory-audit-actions{align-items:stretch;flex-direction:column}
  .inventory-audit-actions .kc-button{width:100%}
  .inventory-audit-row{align-items:stretch;flex-direction:column}
  .inventory-audit-row .kc-button{width:100%}
  .inventory-daily-card__actions{display:grid;grid-template-columns:1fr}
  .inventory-daily-card__actions .kc-button{width:100%}
  .inventory-schedule-card{grid-template-columns:1fr}
  .inventory-schedule-card__next{display:flex;align-items:center;justify-content:space-between}
  .inventory-schedule-card__actions{display:grid;grid-template-columns:1fr 1fr}
  .inventory-schedule-card__actions .kc-button:first-child{grid-column:1/-1}
  .inventory-schedule-fields,.inventory-schedule-location-list{grid-template-columns:1fr}
  .inventory-schedule-location-heading{align-items:stretch;flex-direction:column}
  .inventory-schedule-location-tools{grid-template-columns:1fr}
  .inventory-schedule-weekdays{grid-template-columns:repeat(4,minmax(0,1fr))}
  .inventory-schedule-editor__actions{grid-template-columns:1fr 1fr}
  .inventory-schedule-editor__actions>span{display:none}
  .inventory-schedule-editor__actions .kc-button--danger{grid-column:1/-1}
  .inventory-batch-search,.inventory-batch-common,.inventory-batch-item__fields{grid-template-columns:1fr}
  .inventory-batch-note{grid-column:auto}
  .inventory-batch-submit{align-items:stretch;flex-direction:column}
  .inventory-batch-submit .kc-button{width:100%}
  .inventory-count-catalog-row{align-items:stretch;flex-direction:column}
  .inventory-count-catalog-row .kc-button{width:100%}
  .inventory-purchase-item{grid-template-columns:auto minmax(0,1fr) auto}
  .inventory-purchase-item .inventory-row-copy{grid-column:2/-1}
  .inventory-purchase-item .kc-input,.inventory-purchase-item .kc-select{grid-column:2}
  .inventory-purchase-item [data-inventory-action="purchase-remove-item"]{grid-column:3;grid-row:2/4}
}
@media(max-width:400px){
  .inventory-metrics{grid-template-columns:1fr 1fr}
  .inventory-metric span{font-size:var(--kc-font-size-2xs)}
  .inventory-quantity-line{grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr) 34px}
}

/* Consulta fiscal: uma unica fila operacional para estoque e Contas a pagar. */
.inventory-fiscal-search{display:grid;gap:var(--kc-space-3);overflow:hidden;border-color:var(--kc-color-primary-200);background:linear-gradient(180deg,var(--kc-color-primary-50),#fff 120px)}
.inventory-fiscal-search__header{align-items:end;gap:var(--kc-space-4)}
.inventory-fiscal-search__header>div:first-child{min-width:0}
.inventory-fiscal-search__controls{display:flex;align-items:end;justify-content:flex-end;gap:var(--kc-space-2);flex-wrap:wrap}
.inventory-fiscal-uf{width:108px;min-width:108px}
.inventory-fiscal-tabs{display:flex;align-items:center;gap:var(--kc-space-1);padding:0 var(--kc-space-4);overflow-x:auto;scrollbar-width:thin}
.inventory-fiscal-tabs button{display:inline-flex;align-items:center;justify-content:center;gap:var(--kc-space-2);min-height:34px;padding:0 var(--kc-space-3);border:1px solid transparent;border-radius:var(--kc-radius-md);background:transparent;color:var(--kc-color-text-muted);font:inherit;font-size:var(--kc-font-size-sm);font-weight:700;white-space:nowrap;cursor:pointer}
.inventory-fiscal-tabs button span{min-width:22px;padding:2px 6px;border-radius:999px;background:var(--kc-color-surface-muted);color:var(--kc-color-text);font-size:var(--kc-font-size-2xs)}
.inventory-fiscal-tabs button.is-active{border-color:var(--kc-color-primary-200);background:#fff;color:var(--kc-color-primary-700);box-shadow:var(--kc-shadow-xs)}
.inventory-fiscal-list{display:grid;gap:var(--kc-space-2);padding:0 var(--kc-space-4)}
.inventory-fiscal-row{display:grid;grid-template-columns:minmax(240px,1fr) minmax(110px,.26fr) minmax(210px,auto);align-items:center;gap:var(--kc-space-4);min-width:0;padding:var(--kc-space-3);border:1px solid var(--kc-color-border);border-radius:var(--kc-radius-lg);background:#fff;box-shadow:var(--kc-shadow-xs)}
.inventory-fiscal-row.is-launched{border-color:var(--kc-color-success-300);background:var(--kc-color-success-50)}
.inventory-fiscal-row.is-ignored{opacity:.78;background:var(--kc-color-surface-muted)}
.inventory-fiscal-row__identity{display:flex;align-items:center;gap:var(--kc-space-3);min-width:0}
.inventory-fiscal-row__identity>div{display:grid;gap:2px;min-width:0}
.inventory-fiscal-row__identity strong,.inventory-fiscal-row__identity small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.inventory-fiscal-row__identity small,.inventory-fiscal-row__meta small{color:var(--kc-color-text-muted);font-size:var(--kc-font-size-xs)}
.inventory-fiscal-series{color:var(--kc-color-text-muted)}
.inventory-fiscal-row__meta{display:grid;gap:2px;text-align:right}
.inventory-fiscal-row__meta strong{font-size:var(--kc-font-size-lg)}
.inventory-fiscal-row__meta small span{font-weight:var(--kc-font-weight-semibold);color:var(--kc-color-text)}
.inventory-fiscal-row__actions{display:flex;align-items:center;justify-content:flex-end;gap:var(--kc-space-2)}
.inventory-fiscal-finance-state{color:var(--kc-color-success-700);font-size:var(--kc-font-size-xs);font-weight:700;text-align:right}
.inventory-fiscal-finance-state.is-pending{color:var(--kc-color-warning-700)}
.inventory-fiscal-loading{padding:var(--kc-space-6);text-align:center;color:var(--kc-color-text-muted)}
.inventory-fiscal-footnote{display:flex;align-items:center;justify-content:space-between;gap:var(--kc-space-3);padding:0 var(--kc-space-4) var(--kc-space-4);color:var(--kc-color-text-muted);font-size:var(--kc-font-size-2xs)}
.inventory-fiscal-search>.kc-alert{margin:0 var(--kc-space-4)}

@media(max-width:900px){
  .inventory-fiscal-search__header{align-items:stretch;flex-direction:column}
  .inventory-fiscal-search__controls{justify-content:flex-start}
  .inventory-fiscal-row{grid-template-columns:minmax(0,1fr) auto;gap:var(--kc-space-2) var(--kc-space-3)}
  .inventory-fiscal-row__meta{grid-column:2;grid-row:1}
  .inventory-fiscal-row__actions{grid-column:1/-1;justify-content:flex-end;border-top:1px solid var(--kc-color-border);padding-top:var(--kc-space-2)}
}
@media(max-width:640px){
  .inventory-fiscal-search__controls{display:grid;grid-template-columns:1fr 1fr}
  .inventory-fiscal-uf{grid-column:1/-1;width:100%}
  .inventory-fiscal-search__controls .kc-button{width:100%;min-width:0;white-space:normal}
  .inventory-fiscal-tabs,.inventory-fiscal-list{padding-inline:var(--kc-space-3)}
  .inventory-fiscal-row{grid-template-columns:1fr;padding:var(--kc-space-3)}
  .inventory-fiscal-row__identity{align-items:flex-start;flex-direction:column;gap:var(--kc-space-2)}
  .inventory-fiscal-row__identity strong,.inventory-fiscal-row__identity small{white-space:normal}
  .inventory-fiscal-row__meta{grid-column:1;grid-row:auto;display:flex;align-items:baseline;justify-content:space-between;text-align:left}
  .inventory-fiscal-row__actions{grid-column:1;display:grid;grid-template-columns:1fr 1fr}
  .inventory-fiscal-row__actions .kc-button{width:100%}
  .inventory-fiscal-finance-state{grid-column:1/-1;text-align:left}
  .inventory-fiscal-footnote{align-items:flex-start;flex-direction:column;padding-inline:var(--kc-space-3)}
  .inventory-fiscal-search>.kc-alert{margin-inline:var(--kc-space-3)}
}

/* Organização física: a mesma família de controles da conferência de notas. */
.inventory-modal--physical .kc-input,.inventory-modal--physical .kc-select,.inventory-modal--physical .kc-button,.inventory-modal--physical .kc-tab{border-radius:var(--kc-component-control-radius)!important}
.inventory-modal--physical .kc-input,.inventory-modal--physical .kc-select{border-color:var(--kc-color-border-strong)!important;font-size:var(--kc-font-size-xl);font-weight:var(--kc-font-weight-medium);text-align:left}
.inventory-modal--physical .kc-input:focus,.inventory-modal--physical .kc-select:focus{border-color:var(--kc-color-focus)!important;box-shadow:var(--kc-shadow-focus)!important}
.inventory-modal--physical .kc-button{height:auto;border-color:var(--kc-color-border-strong)!important}
.inventory-modal--physical .kc-button--ghost{border-color:transparent!important}
.inventory-modal--physical .kc-button--primary{border-color:var(--kc-color-primary)!important}
.inventory-modal--physical .kc-button--danger{border-color:var(--kc-color-danger)!important}
.inventory-modal--physical .kc-button--success{border-color:var(--kc-color-success)!important}
.inventory-modal--physical .inventory-toolbar{position:static;min-height:56px;padding:var(--kc-space-3) var(--kc-space-4);border-radius:var(--kc-component-control-radius)}
.inventory-modal--physical .inventory-tabs{gap:var(--kc-space-2)}
.inventory-modal--physical .inventory-tabs .kc-tab{height:auto;min-height:38px;white-space:nowrap}
.inventory-modal--physical .inventory-location-card{padding:var(--kc-space-5);border-radius:var(--kc-component-card-radius);box-shadow:none}
.inventory-modal--physical .inventory-location-head h3{font-size:var(--kc-font-size-3xl)}
.inventory-modal--physical .inventory-location-mode{height:auto;min-height:48px;justify-content:start}
.inventory-metrics--overview{grid-template-columns:repeat(2,minmax(0,1fr))}
.inventory-metrics--overview .inventory-metric{min-height:0;padding:var(--kc-space-4)}
.inventory-metrics--overview .inventory-metric strong{font-size:var(--kc-font-size-5xl)}
.inventory-location-order-tip{position:relative;margin-top:var(--kc-space-2);border-color:var(--kc-color-primary-200);background:var(--kc-color-primary-50);font-weight:var(--kc-font-weight-medium)}
.inventory-location-order-tip::before{position:absolute;top:-7px;left:var(--kc-space-7);width:12px;height:12px;border-top:1px solid var(--kc-color-primary-200);border-left:1px solid var(--kc-color-primary-200);background:var(--kc-color-primary-50);transform:rotate(45deg);content:""}
.inventory-location-order-tip>span{display:grid;width:24px;height:24px;place-items:center;border-radius:var(--kc-radius-round);background:var(--kc-color-primary-100);color:var(--kc-color-primary-700);font-weight:var(--kc-font-weight-bold)}
.inventory-count-section>.inventory-active-count{border:0;border-radius:0;background:var(--kc-color-surface-subtle)}
.inventory-count-section>.kc-card__header{align-items:center}
.inventory-last-count{display:flex;align-items:center;justify-content:space-between;gap:var(--kc-space-3);padding:var(--kc-space-3) var(--kc-space-5);color:var(--kc-color-text-muted);font-size:var(--kc-font-size-md)}
.inventory-diamond-card__actions:empty{display:none}
.inventory-category-picker>.kc-select{width:100%;min-height:44px;background-image:none!important;padding-right:var(--kc-space-4)}
.inventory-category-picker>.kc-select>span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.inventory-category-menu{position:fixed;z-index:calc(var(--kc-admin-layer-recipe-sheet,50000) + 700)}
.inventory-category-menu .kc-dropdown__group{flex:0 0 auto;font-weight:var(--kc-font-weight-medium)}
.inventory-category-menu .kc-dropdown__options{flex:1;min-height:0}
.inventory-modal--physical .inventory-category-menu .kc-dropdown__option{height:auto;min-height:44px;padding:var(--kc-space-3);border:0!important;border-radius:var(--kc-radius-sm)!important;font-size:var(--kc-font-size-xl);font-weight:var(--kc-font-weight-medium);white-space:normal;box-shadow:none;text-align:left}
.inventory-category-menu .kc-dropdown__option>span:last-child{overflow-wrap:anywhere}
.inventory-count-result .kc-toolbar small{display:block;margin-top:var(--kc-space-2);font-size:var(--kc-font-size-md);color:var(--kc-color-text-muted)}
.inventory-count-result-row{display:grid;grid-template-columns:minmax(0,2fr) repeat(3,minmax(0,1fr));align-items:center;gap:var(--kc-space-4);padding:var(--kc-space-4) var(--kc-space-5);border-top:1px solid var(--kc-color-border);font-size:var(--kc-font-size-xl)}
.inventory-count-result-row>strong{overflow-wrap:anywhere;font-weight:var(--kc-font-weight-semibold)}
.inventory-count-result-row>span{display:grid;gap:var(--kc-space-1);text-align:right;font-variant-numeric:tabular-nums}
.inventory-count-result-row small,.inventory-count-result-empty{font-size:var(--kc-font-size-md);color:var(--kc-color-text-muted)}
@media(max-width:640px){
  .inventory-modal--physical .kc-input,.inventory-modal--physical .kc-select{font-size:var(--kc-font-size-3xl)}
  .inventory-modal--physical .inventory-tabs .kc-tab{min-height:40px;padding-inline:var(--kc-space-3);font-size:var(--kc-font-size-md)}
  .inventory-modal--physical .inventory-toolbar{align-items:center;flex-direction:row;flex-wrap:wrap}
  .inventory-modal--physical .inventory-toolbar .kc-toolbar__group{width:auto;flex:1 1 auto}
  .inventory-modal--physical .inventory-toolbar>.kc-button{margin-left:auto}
  .inventory-count-section>.kc-card__header{align-items:stretch;flex-direction:column}
  .inventory-last-count{align-items:flex-start;flex-direction:column}
  .inventory-location-order-tip{padding:var(--kc-space-4)}
  .inventory-count-result-row{grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--kc-space-3);padding:var(--kc-space-4)}
  .inventory-count-result-row>strong{grid-column:1/-1}
  .inventory-count-result-row>span{text-align:left}
}
.inventory-modal--physical .kc-input,.inventory-modal--physical .kc-select{height:44px;min-height:44px}
.inventory-modal--physical .kc-field,.inventory-modal--physical .kc-choice,.inventory-modal--physical .inventory-catalog-row{margin-bottom:0;text-transform:none}
.inventory-modal--physical .inventory-catalog-row{font-weight:var(--kc-font-weight-medium)}
.inventory-modal--physical .inventory-start-summary{height:auto;position:static}

/* Visão geral: indicadores compactos e atalhos apenas para pendências existentes. */
.inventory-overview{gap:var(--kc-space-4)}
.inventory-overview-heading{display:flex;align-items:center;justify-content:space-between;gap:var(--kc-space-3);font-size:var(--kc-font-size-3xl)}
.inventory-overview-metrics{display:grid;grid-template-columns:1.25fr 1fr 1fr;gap:var(--kc-space-4)}
.inventory-overview-metric{display:flex;flex-direction:column;align-items:start;gap:var(--kc-space-2);min-width:0;padding:var(--kc-space-4) var(--kc-space-5)}
.inventory-overview-metric>span{font-size:var(--kc-font-size-lg);font-weight:var(--kc-font-weight-semibold);color:var(--kc-color-text-muted)}
.inventory-overview-metric>strong{font-size:var(--kc-font-size-5xl);font-variant-numeric:tabular-nums;line-height:var(--kc-line-height-tight)}
.inventory-overview-metric>small{color:var(--kc-color-text-muted);font-size:var(--kc-font-size-md);line-height:var(--kc-line-height-body)}
.inventory-overview-metric>small:empty{display:none}
.inventory-overview-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start;gap:var(--kc-space-4)}
.inventory-overview-grid:has(.inventory-overview-insights:empty){grid-template-columns:1fr}
.inventory-overview-insights{display:grid;gap:var(--kc-space-4);min-width:0}
.inventory-overview-insights:empty{display:none}
.inventory-overview .kc-card{min-width:0;box-shadow:none}
.inventory-overview .kc-card__header{position:static;display:flex;flex-direction:row;text-align:left;align-items:center;justify-content:space-between;padding:var(--kc-space-4) var(--kc-space-5);gap:var(--kc-space-3);background:var(--kc-color-surface-subtle);color:var(--kc-color-text);box-shadow:none}
.inventory-overview .kc-card__title{font-size:var(--kc-font-size-3xl)}
.inventory-overview .kc-card__subtitle{font-size:var(--kc-font-size-md);margin-top:var(--kc-space-1)}
.inventory-modal--physical .inventory-overview-row{display:flex;width:100%;min-height:60px;height:auto;align-items:center;justify-content:space-between;gap:var(--kc-space-3);padding:var(--kc-space-3) var(--kc-space-5);border:0!important;border-top:1px solid var(--kc-color-border)!important;border-radius:0!important;text-align:left;white-space:normal;font-size:var(--kc-font-size-xl);font-weight:var(--kc-font-weight-medium)}
.inventory-overview-row>.inventory-overview-copy{flex:1;min-width:0;display:grid;gap:var(--kc-space-1)}
.inventory-overview-copy>strong{font-weight:var(--kc-font-weight-semibold);overflow-wrap:anywhere}
.inventory-overview-copy>small{color:var(--kc-color-text-muted);font-size:var(--kc-font-size-md);font-weight:var(--kc-font-weight-medium);line-height:var(--kc-line-height-body);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.inventory-overview-row>strong{white-space:nowrap;font-size:var(--kc-font-size-lg);font-weight:var(--kc-font-weight-semibold);font-variant-numeric:tabular-nums}
.inventory-overview-row>span:last-child:not(.kc-badge){color:var(--kc-color-text-muted)}
.inventory-overview-row>.inventory-overview-increase{color:var(--kc-color-warning-700)}
.inventory-overview-note{margin:0;padding:var(--kc-space-4) var(--kc-space-5);color:var(--kc-color-text-muted);font-size:var(--kc-font-size-md);line-height:var(--kc-line-height-body)}
.inventory-overview-note>.kc-button{margin-left:var(--kc-space-2)}
.inventory-overview-more{margin:var(--kc-space-2) var(--kc-space-4)}
@media(max-width:800px){
  .inventory-overview-grid{grid-template-columns:1fr}
  .inventory-overview-insights{grid-template-columns:repeat(2,minmax(0,1fr))}
  .inventory-overview-insights>.kc-card:only-child{grid-column:1/-1}
}
@media(max-width:640px){
  .inventory-overview-heading{align-items:start;flex-direction:column;font-size:var(--kc-font-size-2xl)}
  .inventory-overview-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--kc-space-3)}
  .inventory-overview-metric{padding:var(--kc-space-3) var(--kc-space-4)}
  .inventory-overview-metric:first-child{grid-column:1/-1}
  .inventory-overview-metric>strong{font-size:var(--kc-font-size-4xl)}
  .inventory-overview-metric>small{font-size:var(--kc-font-size-sm)}
  .inventory-overview-insights{grid-template-columns:1fr}
  .inventory-overview .kc-card__header{padding:var(--kc-space-3) var(--kc-space-4)}
  .inventory-modal--physical .inventory-overview-row{padding:var(--kc-space-3) var(--kc-space-4);font-size:var(--kc-font-size-lg)}
}

.inventory-xml-conversion-tabs{width:max-content;max-width:100%;margin-bottom:var(--kc-space-4)}
.inventory-modal--xml .inventory-xml-conversion-tabs .kc-tab{height:auto;min-height:34px;font-size:var(--kc-font-size-lg)}
.inventory-xml-bridges{display:grid;gap:var(--kc-space-3)}
.inventory-xml-bridge-list{display:grid;gap:var(--kc-space-2);max-width:700px}
.inventory-xml-bridge-list:empty{display:none}
.inventory-xml-bridge-list>div{display:flex;align-items:center;justify-content:space-between;gap:var(--kc-space-4);font-size:var(--kc-font-size-xl)}
.inventory-xml-bridge-equation{display:grid;grid-template-columns:minmax(70px,1fr) minmax(75px,1fr) auto minmax(80px,1fr) minmax(75px,1fr) auto auto;align-items:end;gap:var(--kc-space-3);max-width:1000px}
.inventory-xml-bridge-equation>.kc-choice{align-self:center;margin:0;text-transform:none;font-size:var(--kc-font-size-md)}
.inventory-xml-bridge-equation>.kc-button{align-self:end;min-height:42px}
.inventory-xml-bridge-equation>.kc-field{margin:0}
.inventory-xml-bridge-equation>span{padding-bottom:var(--kc-space-4)}
.inventory-xml-bridge-equation .kc-input,.inventory-xml-bridge-equation .kc-select{height:42px;min-height:42px;font-size:var(--kc-font-size-xl)}
.inventory-xml-payment-terms{display:flex;align-items:start;gap:var(--kc-space-3);margin-bottom:var(--kc-space-3)}
.inventory-xml-payment-terms>.kc-field{flex:1;min-width:0;margin:0}
.inventory-xml-payment-terms>.kc-button{margin-top:20px;min-height:40px}
.inventory-xml-payment-terms .kc-input{height:40px;min-height:40px;font-size:var(--kc-font-size-xl)}
.inventory-xml-payment-terms .kc-field__help{font-size:var(--kc-font-size-sm);font-weight:var(--kc-font-weight-medium);text-transform:none}
.inventory-xml-installment-list{display:grid;gap:var(--kc-space-3);max-height:260px;overflow:auto;overscroll-behavior:contain;padding:var(--kc-space-1)}
.inventory-xml-installment-list .inventory-xml-installment{grid-template-columns:minmax(100px,.7fr) minmax(140px,1fr) auto;gap:var(--kc-space-3)}
.inventory-xml-installment-list .kc-field,.inventory-xml-installment-list .kc-choice{margin:0;text-transform:none}
.inventory-xml-installment-list .kc-input{height:40px;min-height:40px;font-size:var(--kc-font-size-xl)}
.inventory-xml-installment-value .kc-input{padding-right:32px}
.inventory-xml-installments>[data-xml-installment-status]{font-weight:var(--kc-font-weight-medium);font-size:var(--kc-font-size-md)}
@media(max-width:900px){
  .inventory-xml-bridge-equation{grid-template-columns:minmax(70px,1fr) minmax(65px,1fr) auto minmax(70px,1fr) minmax(65px,1fr)}
  .inventory-xml-bridge-equation>.kc-choice{grid-column:1/4}
  .inventory-xml-bridge-equation>.kc-button{grid-column:4/-1}
}
@media(max-width:640px){
  .inventory-xml-bridge-equation{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:var(--kc-space-3)}
  .inventory-xml-bridge-equation>span{display:none}
  .inventory-xml-bridge-equation>.kc-choice,.inventory-xml-bridge-equation>.kc-button{grid-column:1/-1}
  .inventory-xml-bridge-equation .kc-input,.inventory-xml-bridge-equation .kc-select,.inventory-xml-payment-terms .kc-input,.inventory-xml-installment-list .kc-input{font-size:var(--kc-font-size-3xl)}
  .inventory-xml-payment-terms{flex-direction:column}
  .inventory-xml-payment-terms>.kc-field{width:100%}
  .inventory-xml-payment-terms>.kc-button{margin:0;align-self:flex-end}
  .inventory-xml-installment-list .inventory-xml-installment{grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);padding-block:var(--kc-space-2);border-bottom:1px solid var(--kc-color-border)}
  .inventory-xml-installment-list .kc-choice{grid-column:1/-1}
}
