.df-stock{margin:-24px;min-height:100%;color:var(--text)}.st-shell{display:flex;min-height:100%}.st-side{width:190px;flex-shrink:0;background:var(--panel);border-right:1px solid var(--line);padding:16px 0}.st-side button{display:block;width:100%;border:0;border-left:3px solid transparent;background:none;color:var(--muted);text-align:left;padding:12px 16px}.st-side button.active{border-left-color:var(--green);background:color-mix(in srgb,var(--green) 15%,transparent);color:var(--text)}.st-main{padding:18px;flex:1;min-width:0}.df-stock h1{margin:0 0 6px;font-size:22px}.df-stock h3{margin:0 0 12px}.st-muted{color:var(--muted);font-size:12px}.st-tabs,.st-actions{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.st-tabs{border-bottom:1px solid var(--line);padding-bottom:10px}.st-tabs .active{background:var(--green);color:var(--on-primary,#fff)}.st-panel{border:1px solid var(--line);background:var(--panel);padding:16px;border-radius:12px;margin:14px 0}.st-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px}.st-card{border:1px solid var(--line);background:var(--panel);padding:16px;border-radius:12px;text-align:left;color:var(--text)}.st-card strong{display:block;font-size:24px}.st-table-wrap{overflow:auto;border:1px solid var(--line);border-radius:10px;margin:12px 0}.st-table{width:100%;border-collapse:collapse;white-space:nowrap}.st-table th,.st-table td{padding:12px;text-align:left;border-bottom:1px solid var(--line)}.st-table th{color:var(--muted);font-size:11px;text-transform:uppercase}.st-table tbody tr:nth-child(even){background:color-mix(in srgb,var(--muted) 7%,var(--panel))}.st-filter,.st-form{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px;align-items:end}.st-form{grid-template-columns:repeat(2,minmax(0,1fr))}.st-form .st-full{grid-column:1/-1}.df-stock label,.st-dialog label{display:flex;flex-direction:column;gap:5px;color:var(--muted);font-size:12px}.df-stock input,.df-stock select,.df-stock textarea,.st-dialog input,.st-dialog select,.st-dialog textarea{border:1px solid var(--line);border-radius:7px;padding:9px;background:var(--panel);color:var(--text);min-width:0}.st-check{flex-direction:row!important;align-items:center}.st-dialog{width:min(780px,calc(100vw - 32px));max-height:90vh;overflow:auto;background:var(--panel);color:var(--text);border:1px solid var(--line);border-radius:12px;padding:20px}.st-dialog::backdrop{background:var(--overlay, #0007)}.st-dialog header{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.st-dialog h2{font-size:18px;margin:0}.st-dialog footer{display:flex;justify-content:flex-end;gap:10px;margin-top:18px}.st-error{color:var(--danger,#ef4444);margin:10px 0}.st-dialog .st-code-error{color:var(--danger,#b91c1c);overflow-wrap:anywhere}.st-code-error:empty{display:none}.st-photo{width:52px;height:52px;object-fit:contain;border-radius:8px;background:color-mix(in srgb,var(--muted) 8%,var(--panel))}.st-product .st-photo{width:100%;height:120px}.st-product h3{margin-top:12px}.st-tag{border:1px solid var(--line);border-radius:12px;padding:3px 8px;font-size:11px}.st-pagination{display:flex;justify-content:flex-end;align-items:center;gap:10px}.st-bars{display:flex;align-items:end;gap:10px;height:230px;overflow-x:auto;padding:10px 0 35px}.st-bar{height:100%;min-width:65px;flex:1;display:flex;flex-direction:column;justify-content:end;align-items:center}.st-bar button{width:70%;background:var(--green);border:0;min-height:2px;border-radius:5px 5px 0 0}.st-bar small{max-width:95px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px}.st-mobile-menu{display:none}.st-chart{width:100%;height:280px}.st-main canvas{max-width:100%}
@media(min-width:769px){#view:has(>.df-stock){display:flex;flex-direction:column;overflow:hidden;padding:0}#view:has(>.df-stock)>.module-identity-band{margin:0!important;flex-shrink:0}#view>.df-stock{margin:0;flex:1;min-height:0;overflow:hidden}.st-shell{height:100%;min-height:0}.st-side{overflow:auto}.st-main{overflow:auto}}
@media(max-width:768px){.df-stock{margin:-16px}.st-side{display:none}.st-main{padding:16px}.st-mobile-menu{display:block;margin-bottom:14px;width:100%}.st-form{grid-template-columns:1fr}.st-form .st-full{grid-column:auto}.st-tabs{flex-wrap:nowrap;overflow:auto}.st-tabs button{white-space:nowrap}.st-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.st-card{padding:12px}.st-card strong{font-size:20px}}
@media print{.st-side,.st-tabs,.st-filter,.st-actions,.st-pagination,.st-mobile-menu{display:none!important}.df-stock,.st-shell,.st-main{display:block!important;overflow:visible!important;height:auto!important;margin:0!important;padding:0!important}.st-table-wrap{overflow:visible}.st-table{white-space:normal;font-size:10px}.st-table tr{break-inside:avoid}.st-table thead{display:table-header-group}}
/* Configurações: estrutura visual do piloto, com os tokens do sistema. */
.df-stock .st-tabs .btn{background:transparent;border-color:transparent;color:var(--muted);box-shadow:none}.df-stock .st-tabs .btn-primary{background:color-mix(in srgb,var(--green) 16%,var(--panel));color:var(--text);border-color:transparent}.df-stock .st-tabs .btn:hover{background:color-mix(in srgb,var(--green) 9%,var(--panel))}.st-nav-group{font-size:11px;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);margin:20px 12px 10px}.st-nav-group:first-child{margin-top:6px}.st-side button{display:flex;gap:12px;align-items:center}.st-side button i{width:16px;text-align:center}.st-panel-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.st-panel-heading h3,.st-panel-heading p{margin:0}.st-settings-narrow{max-width:780px}.st-settings-abc{max-width:1000px}.st-help{padding:14px;border-radius:9px;background:color-mix(in srgb,var(--muted) 8%,var(--panel));color:var(--muted);line-height:1.6}.st-help p{margin:6px 0 0}.st-abc-help{border-left:3px solid var(--green);color:var(--text);margin-bottom:16px}.st-policy-checks{display:grid;gap:24px;padding:16px 0}.st-status-active{border-color:var(--green);color:var(--green);background:color-mix(in srgb,var(--green) 8%,var(--panel))}.df-stock .st-table{background:var(--panel)}.df-stock .st-table tbody tr:nth-child(even){background:color-mix(in srgb,var(--muted) 9%,var(--panel))}.st-form-section{border-bottom:1px solid var(--line);padding:14px 0 8px;text-transform:uppercase;font-size:13px;color:var(--green);margin:0!important}.st-image-field{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}.st-image-field .st-photo{width:100px;height:100px;object-fit:contain}.st-abc-cards{grid-template-columns:repeat(3,minmax(0,1fr))}.st-abc-distribution{display:flex;height:12px;border-radius:8px;overflow:hidden;margin-top:16px;background:var(--line)}.st-abc-distribution .st-class-A{background:#16b96a}.st-abc-distribution .st-class-B{background:#efb546}.st-abc-distribution .st-class-C{background:#5397e3}.st-class-A .st-tag{color:#008748;border-color:#16b96a}.st-class-B .st-tag{color:#9b6500;border-color:#efb546}.st-class-C .st-tag{color:#2762b7;border-color:#5397e3}
@media(max-width:600px){.st-abc-cards{grid-template-columns:1fr}.st-panel-heading{align-items:flex-start;flex-wrap:wrap}.st-settings-narrow,.st-settings-abc{max-width:100%}}
/* Painéis e catálogo: dimensões independentes da quantidade de produtos. */
.df-stock .st-page-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:16px}.df-stock .st-page-heading p{margin:4px 0}.df-stock .st-filter{display:flex;flex-wrap:wrap;gap:10px;align-items:end;margin:0 0 14px}.df-stock .st-filter label{flex:0 1 180px}.df-stock .st-filter label:has(input[type=search]){flex-basis:390px}.df-stock .st-filter .btn{flex:none;min-width:auto}.df-stock .st-panel>.st-filter:last-child{margin-bottom:0}.df-stock .st-actions{justify-content:flex-end}.df-stock .st-table{table-layout:auto!important;width:100%!important;background:var(--panel)}.df-stock .st-table th,.df-stock .st-table td{width:auto!important;max-width:260px;min-width:70px;white-space:normal!important;overflow-wrap:anywhere;vertical-align:middle;line-height:1.5}.df-stock .st-table th{white-space:nowrap!important}.df-stock .st-table td:last-child{min-width:120px;white-space:nowrap!important}.df-stock .st-table td .btn{margin:2px}.df-stock .st-table td .st-photo{width:40px!important;height:40px!important;max-width:40px!important;object-fit:contain}.df-stock .st-table tbody tr:nth-child(even){background:color-mix(in srgb,var(--muted) 9%,var(--panel))}.df-stock .st-catalog-toolbar{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:14px}.df-stock .st-catalog{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:12px;align-items:stretch}.df-stock .st-product{min-width:0;max-width:250px;border:1px solid var(--line);border-radius:12px;padding:12px;background:var(--panel);display:flex;flex-direction:column}.df-stock .st-product-image{height:100px;flex:0 0 100px;border-radius:9px;background:color-mix(in srgb,var(--muted) 9%,var(--panel));display:flex;justify-content:center;align-items:center;overflow:hidden;margin-bottom:10px}.df-stock .st-product .st-product-image img.st-photo,.df-stock .st-product .st-product-image span.st-photo{display:flex;align-items:center;justify-content:center;width:100%!important;height:100px!important;max-height:100px!important;max-width:100%!important;object-fit:contain!important;margin:0!important;padding:8px;box-sizing:border-box}.df-stock .st-product h3{font-size:14px;margin:3px 0 8px;overflow-wrap:anywhere}.df-stock .st-product p{margin:4px 0}.df-stock .st-product-stock{display:flex;justify-content:space-between;align-items:center;gap:6px;margin:10px 0}.df-stock .st-product-buy{margin-top:auto;padding-top:12px}.df-stock .st-product-buy>.btn{width:100%;white-space:normal;padding:9px 5px}.df-stock .st-quantity{display:flex;align-items:center;gap:7px}.df-stock .st-quantity .btn{padding:5px 8px;min-width:28px}.df-stock .st-quantity input{width:65px;text-align:center}.df-stock dialog.st-cart-drawer{position:fixed;inset:0 0 0 auto;margin:0;width:min(430px,100vw);height:100dvh;max-height:100dvh;max-width:100vw;border-radius:0;box-sizing:border-box;padding:20px;overflow:auto}.st-cart-drawer .st-orderline{padding:14px 0;border-bottom:1px solid var(--line)}.st-cart-drawer .st-panel-heading{margin-bottom:4px}.st-cart-drawer .st-cart-total{margin-right:auto;align-self:center}.st-cart-drawer footer{flex-wrap:wrap}.st-cart-drawer header .btn{font-size:0}.st-cart-drawer header .btn::after{content:'×';font-size:20px}.df-stock .st-tone-danger{color:#d8203f;border-color:#ffbbc7;background:#fff1f3}.df-stock .st-tone-warning{color:#9a6100;border-color:#ffd483;background:#fff8e6}.df-stock .st-tone-success{color:#008449;border-color:#96e5b6;background:#edfcf2}.df-stock .st-tone-info{color:#2261c2;border-color:#bad4ff;background:#f1f6ff}.df-stock .st-kpis{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}.df-stock .st-kpis .st-card strong{margin:8px 0 2px;font-size:26px}.df-stock .st-kpis .st-muted{margin:4px 0 0}.st-kpi-icon{display:inline-flex;border-radius:8px;padding:8px;color:var(--green);background:color-mix(in srgb,var(--green) 12%,var(--panel))}.df-stock .st-dashboard-charts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.df-stock .st-dashboard-charts .st-panel{margin-bottom:0}.df-stock .st-chart{height:260px}
@media(max-width:1000px){.df-stock .st-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}.df-stock .st-dashboard-charts{grid-template-columns:1fr}}
@media(max-width:600px){.df-stock .st-catalog{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.df-stock .st-product{padding:9px;max-width:none}.df-stock .st-catalog-toolbar,.df-stock .st-page-heading{align-items:flex-start;flex-wrap:wrap}.df-stock .st-filter label{flex:1 1 130px}.df-stock .st-product-stock{align-items:flex-start;flex-direction:column}.df-stock .st-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.df-stock .st-kpis .st-card strong{font-size:21px}.df-stock .st-quantity{flex-wrap:wrap}.df-stock .st-product-buy>.btn{font-size:11px}.df-stock .st-cart-drawer .st-form{grid-template-columns:1fr}}
.df-stock [data-import-preview]{max-height:360px;overflow:auto}.df-stock [data-request-item]{width:17px;height:17px}.df-stock .st-dialog .st-actions{flex-wrap:wrap;gap:8px}

.st-cart-product{display:flex;align-items:center;gap:12px;min-width:0}.st-cart-product .st-photo{display:flex;align-items:center;justify-content:center;width:52px;height:52px;flex:0 0 52px;object-fit:contain}.st-cart-product b{overflow-wrap:anywhere}.st-request-dialog{width:min(1180px,calc(100vw - 32px))}.st-request-dialog .st-table{white-space:normal}.st-request-dialog td:last-child{min-width:150px}.st-request-dialog td .btn{margin:3px}.st-request-dialog th:first-child{width:65px}

.st-confirm{max-width:420px;width:calc(100% - 32px);padding:24px}.st-confirm p{line-height:1.5}.st-confirm footer{display:flex;justify-content:flex-end;gap:10px;margin-top:20px}.st-confirm .st-confirm-danger{background:#ef4444;color:white;border-color:#ef4444}.st-confirm::backdrop{background:rgba(15,23,42,.45)}

/* Stock mobile navigation follows the module landing-list pattern. */
.st-mobile-back{display:none}
@media(max-width:768px){
 .df-stock .st-mobile-home{padding:24px 32px}
 .st-mobile-home h1{font-size:24px;margin:12px 0 16px}
 .st-mobile-group{margin:24px 0}
 .st-mobile-group h2{font-size:12px;text-transform:uppercase;letter-spacing:.5px;color:var(--muted);margin:0 0 8px}
 .st-mobile-list{border:1px solid var(--line);border-radius:8px;overflow:hidden;background:var(--panel)}
 .df-stock .st-mobile-item{display:flex;align-items:center;gap:14px;width:100%;padding:14px 16px;border:0;border-bottom:1px solid var(--line);border-radius:0;background:var(--panel);text-align:left;color:var(--text);font:inherit;cursor:pointer;white-space:normal;word-break:normal;overflow-wrap:normal}
 .st-mobile-item:last-child{border-bottom:0}
 .st-mobile-icon{display:flex;align-items:center;justify-content:center;flex:0 0 34px;height:34px;border:1px solid var(--line);border-radius:8px;background:var(--surface-alt);color:var(--muted)}
 .st-mobile-copy{flex:1;min-width:0}
 .st-mobile-copy strong{display:block;font-size:14px}
 .st-mobile-copy>span{display:block;color:var(--muted);font-size:12px;margin-top:2px}
 .df-stock .st-mobile-back{display:flex;align-items:center;gap:8px;background:transparent;border:0;border-bottom:1px solid var(--line);color:var(--green);font:inherit;font-weight:600;padding:12px 0;margin-bottom:16px;width:100%;cursor:pointer}
 .st-mobile-item:focus-visible,.st-mobile-back:focus-visible{outline:2px solid var(--green);outline-offset:-3px}
}
/* Keep natural column widths; scroll the table, never compress words or chips. */
@media screen{
 .df-stock .st-table-wrap{max-width:100%;min-width:0;overflow-x:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
 .df-stock .st-table{width:max-content!important;min-width:100%;table-layout:auto!important}
 .df-stock .st-table th,.df-stock .st-table td{max-width:none;min-width:90px;word-break:normal;overflow-wrap:normal;white-space:nowrap!important}
 .df-stock .st-table .st-col-text{min-width:220px;max-width:340px;white-space:normal!important;overflow-wrap:break-word}
 .df-stock .st-table .st-col-actions{min-width:140px;white-space:nowrap!important}
 .df-stock .st-table th{white-space:nowrap!important}
 .df-stock .st-tag{display:inline-block;white-space:nowrap;word-break:normal;overflow-wrap:normal}
 .df-stock .btn{word-break:normal;overflow-wrap:normal;white-space:nowrap;flex-shrink:0}
 .df-stock .st-pagination{flex-wrap:wrap;gap:10px}
 .df-stock .st-pagination .btn{min-width:86px}
 .df-stock .st-pagination span{word-break:normal;overflow-wrap:normal;text-align:center}
}
@media screen and (max-width:600px){
 .df-stock .st-pagination{justify-content:space-between}
 .df-stock .st-pagination span{flex-basis:100%;order:-1}
 .df-stock .st-actions{justify-content:flex-start;gap:8px}
 .df-stock .st-actions .btn{max-width:100%;white-space:normal}
 .df-stock .st-filter label{min-width:0}
 .df-stock .st-card .st-qty{gap:6px}
}

/* Constrain grid/flex ancestors so wide tables scroll inside their own wrapper. */
@media screen {
 .df-stock .st-panel,.df-stock .st-form,.df-stock .st-form>*,
 .df-stock .st-dashboard-charts>*,.df-stock .st-full {
  min-width:0;max-width:100%;box-sizing:border-box;
 }
 .df-stock .st-dialog {box-sizing:border-box;max-width:calc(100vw - 32px);}
 .df-stock .st-dialog form {min-width:0;max-width:100%;}
 .df-stock .st-table-wrap {box-sizing:border-box;width:100%;max-width:100%;min-width:0;overflow-x:auto;}
 .df-stock .st-form input,.df-stock .st-form select,.df-stock .st-form textarea {
  box-sizing:border-box;max-width:100%;
 }
 .df-stock .st-dialog header {gap:12px;}
 .df-stock .st-dialog header h2 {min-width:0;overflow-wrap:anywhere;}
 .df-stock .st-dialog footer {flex-wrap:wrap;}
}
@media screen and (max-width:768px) {
 .df-stock .st-form,.df-stock .st-cart-drawer .st-form {grid-template-columns:minmax(0,1fr);}
 .df-stock .st-dialog .st-actions {width:100%;min-width:0;flex-wrap:wrap;justify-content:flex-start;}
 .df-stock .st-dialog .st-actions .btn,.df-stock .st-dialog footer .btn {
  max-width:100%;white-space:normal;overflow-wrap:break-word;
 }
}

@media screen {
 .df-stock .st-transfer-dialog {width:min(900px,calc(100vw - 32px));}
 .df-stock .st-transfer-dialog [hidden] {display:none;}
 .df-stock .st-transfer-depots,.df-stock .st-transfer-line {
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:10px;
 }
 .df-stock .st-transfer-editor {display:grid;gap:12px;}
 .df-stock .st-transfer-editor h3 {margin:8px 0 0;}
 .df-stock .st-transfer-picker {max-height:18rem;overflow:auto;overscroll-behavior:contain;}
 .df-stock .st-transfer-picker fieldset {min-width:0;margin:0;padding:0;border:0;}
 .df-stock .st-transfer-option {
  display:flex;flex-direction:row;align-items:center;gap:10px;padding:8px;
  border-bottom:1px solid var(--line);cursor:pointer;min-height:44px;
 }
 .df-stock .st-transfer-option input {flex:none;width:18px;height:18px;}
 .df-stock .st-transfer-option strong,.df-stock .st-transfer-line strong {color:var(--text);overflow-wrap:anywhere;}
 .df-stock .st-transfer-option small,.df-stock .st-transfer-line small {display:block;color:var(--muted);overflow-wrap:anywhere;}
 .df-stock .st-transfer-line {
  grid-template-columns:minmax(0,2fr) minmax(0,1fr) minmax(0,1.5fr) auto;
  padding:10px;border:1px solid var(--line);border-radius:8px;margin-bottom:8px;
 }
 .df-stock .st-transfer-summary {padding-inline-start:20px;}
 .df-stock .st-transfer-summary li {margin-block:8px;}
 .df-stock .st-transfer-dialog footer {
  position:sticky;bottom:0;background:var(--panel);padding-block:10px;
  border-top:1px solid var(--line);
 }
}
@media screen and (max-width:600px) {
 .df-stock .st-transfer-dialog {width:100%;max-width:100%;max-height:100dvh;margin:auto 0 0;padding:14px;}
 .df-stock .st-transfer-depots {grid-template-columns:minmax(0,1fr);}
 .df-stock .st-transfer-picker {max-height:14rem;}
 .df-stock .st-transfer-line {grid-template-columns:repeat(2,minmax(0,1fr));}
 .df-stock .st-transfer-line > div {grid-column:1/-1;}
 .df-stock .st-transfer-line > button {grid-column:1/-1;justify-self:start;}
 .df-stock .st-transfer-dialog footer {padding-bottom:max(10px,env(safe-area-inset-bottom));}
}

@media screen {
 .df-stock .st-purchase-editor {display:grid;gap:12px;}
 .df-stock .st-purchase-editor h3 {margin:8px 0 0;}
 .df-stock .st-purchase-line {grid-template-columns:minmax(0,1fr) minmax(0,255px);align-items:center;}
 .df-stock .st-purchase-quantity {display:grid;grid-template-columns:40px minmax(0,1fr) 40px 40px;gap:6px;}
 .df-stock .st-purchase-quantity input {width:100%;text-align:center;appearance:textfield;}
 .df-stock .st-purchase-quantity input::-webkit-inner-spin-button {appearance:none;}
 .df-stock .st-purchase-quantity .btn {min-width:0;min-height:40px;padding:0;}
 .df-stock label.st-purchase-select {display:flex;flex-direction:row;align-items:center;gap:8px;color:inherit;font-size:inherit;cursor:pointer;}
 .df-stock .st-purchase-select input {width:17px;height:17px;flex:none;}
}
@media screen and (max-width:600px) {
 .df-stock .st-purchase-line {grid-template-columns:minmax(0,1fr);}
 .df-stock .st-purchase-quantity {grid-template-columns:44px minmax(0,1fr) 44px 44px;}
 .df-stock .st-purchase-quantity .btn {min-height:44px;}
}

.df-stock .st-product-buy > .st-unavailable:disabled {
 background:#f1f3f5;
 border-color:#d3d9df;
 color:#475569;
 opacity:1;
 cursor:not-allowed;
}

.df-stock .st-loading {padding-inline:var(--space-4,16px);}

.df-stock .st-image-field [hidden] {display:none;}
.df-stock .st-movement-actions {justify-content:flex-start;gap:8px;}

@media screen {
 .df-stock .st-wizard-dialog {max-width:calc(100vw - 24px);}
 .df-stock .st-wizard-dialog [hidden] {display:none;}
 .df-stock .st-wizard-step {margin:0;min-width:0;}
 .df-stock .st-wizard-progress {grid-column:1/-1;display:flex;flex-wrap:wrap;gap:6px;margin:0;padding:0;list-style:none;}
 .df-stock .st-wizard-progress li {padding:6px 9px;border:1px solid var(--line);border-radius:16px;font-size:12px;color:var(--muted);}
 .df-stock .st-wizard-progress [aria-current="step"] {background:color-mix(in srgb,var(--green) 16%,var(--panel));color:var(--text);font-weight:700;}
 .df-stock .st-supplier-results {display:grid;gap:4px;margin-top:6px;max-height:195px;overflow:auto;}
 .df-stock [data-price-product-picker] {position:relative;min-width:0;}
 .df-stock #st-price-product-results {
  position:absolute;z-index:2;inset-inline:0;top:calc(100% + 4px);
  max-height:min(12rem,32vh);overflow:auto;overscroll-behavior:contain;
  background:var(--panel);border:1px solid var(--line);border-radius:8px;
  box-shadow:0 6px 18px #0002;
 }
 .df-stock #st-price-product-results button {
  display:block;width:100%;padding:9px 12px;border:0;border-radius:0;
  background:transparent;color:var(--text);font:inherit;text-align:left;
  white-space:normal;overflow-wrap:anywhere;cursor:pointer;
 }
 .df-stock #st-price-product-results button + button {border-top:1px solid var(--line);}
 .df-stock #st-price-product-results button:hover,
 .df-stock #st-price-product-results button:focus-visible {
  background:color-mix(in srgb,var(--green) 12%,var(--panel));
 }
 .df-stock #st-price-product-results p {margin:0;padding:9px 12px;}
 .df-stock .st-supplier-results .btn,.df-stock .st-supplier-chip {text-align:left;white-space:normal;overflow-wrap:anywhere;}
 .df-stock .st-supplier-chips {display:flex;flex-wrap:wrap;gap:6px;margin-top:8px;}
 .df-stock .st-supplier-chip {border-radius:20px;background:color-mix(in srgb,var(--green) 16%,var(--panel));}
 .df-stock .st-receipt-cards {display:grid;gap:12px;}
 .df-stock .st-receipt-card {
  display:grid;grid-template-columns:minmax(0,1fr) minmax(0,370px);align-items:center;
  gap:12px;min-width:0;padding:12px;border:1px solid var(--line);border-radius:12px;background:var(--panel);
 }
 .df-stock .st-receipt-product {justify-self:start;}
 .df-stock .st-receipt-fields {display:flex;flex-wrap:wrap;align-items:start;gap:8px;}
 .df-stock .st-receipt-fields > div {flex:1 1 150px;min-width:0;}
 .df-stock .st-receipt-details {grid-column:1/-1;padding-top:10px;border-top:1px solid var(--line);}
 .df-stock .st-request-edit .st-help {margin:0;}
 .df-stock .st-request-edit .st-panel-heading {flex-wrap:nowrap;}
 .df-stock .st-request-edit .st-panel-heading > .btn {flex:none;}
 .df-stock .st-request-edit [data-edit-empty][hidden] {display:none;}
 .df-stock .st-receipt-card small {display:block;overflow-wrap:anywhere;}
 .df-stock .st-receipt-quantity {display:grid;grid-template-columns:44px minmax(0,1fr) 44px;gap:6px;}
 .df-stock .st-receipt-quantity input {min-width:0;text-align:center;appearance:textfield;}
 .df-stock .st-receipt-quantity input::-webkit-inner-spin-button {appearance:none;}
 .df-stock .st-receipt-quantity .btn {min-width:0;min-height:40px;padding:0;}
 .df-stock .st-receipt-history {margin:8px 0;overflow-wrap:anywhere;}
}

@media screen and (max-width:600px) {
 .df-stock .st-receipt-card {grid-template-columns:minmax(0,1fr);}
}

@media screen {
 .df-stock .st-inventory-picker {display:grid;gap:10px;min-width:0;}
 .df-stock .st-inventory-picker[hidden] {display:none;}
 .df-stock .st-inventory-picker fieldset {padding:0;border:1px solid var(--line);border-radius:10px;}
 .df-stock .st-inventory-picker legend {margin-inline:8px;padding-inline:4px;}
 .df-stock .st-inventory-picker .st-cart-product .st-photo {width:40px;height:40px;flex-basis:40px;}
 .df-stock .st-inventory-picker .st-transfer-option:last-child {border-bottom:0;}
 .df-stock .st-inventory-actions {justify-content:flex-start;}
 .df-stock .st-inventory-picker [data-inventory-more] {justify-self:start;}
}
@media screen and (max-width:768px) {
 .df-stock .st-inventory-dialog footer {position:static;}
 .df-stock .st-inventory-dialog .st-wizard-step {gap:8px;}
 .df-stock .st-inventory-dialog .st-wizard-step > .st-form-section {padding-top:6px;}
}

@media screen {
 .df-stock .st-count-dialog {
  width:min(840px,calc(100vw - 32px));max-height:min(90vh,calc(100dvh - 32px));padding:0;overflow:hidden;
 }
 .df-stock .st-count-dialog[open] {display:flex;flex-direction:column;}
 .df-stock .st-count-dialog > header {
  flex:none;margin:0;padding:14px 20px;border-bottom:1px solid var(--line);
 }
 .df-stock .st-count-dialog > form {display:flex;flex-direction:column;min-height:0;}
 .df-stock .st-count-dialog .st-form {
  display:grid;grid-template-columns:minmax(0,1fr);align-items:start;gap:12px;min-height:0;
  overflow:auto;overscroll-behavior:contain;padding:16px 20px;
 }
 .df-stock .st-count-dialog footer {
  flex:none;margin:0;padding:12px 20px;border-top:1px solid var(--line);background:var(--panel);align-items:center;
 }
 .df-stock .st-count-dialog footer [data-action^="doc:cancelar_inventario"] {margin-right:auto;color:var(--danger,#b91c1c);}
 .df-stock .st-count-dialog .st-error {flex:none;margin:0;padding:8px 20px;}
 .df-stock .st-count-dialog .st-error:empty {display:none;}
 .df-stock .st-count-overview {
  display:grid;gap:10px;padding:12px;border:1px solid var(--line);border-radius:12px;
  background:color-mix(in srgb,var(--muted) 6%,var(--panel));
 }
 .df-stock .st-count-meta,.df-stock .st-count-progress {
  display:flex;align-items:center;gap:6px 10px;flex-wrap:wrap;overflow-wrap:anywhere;
 }
 .df-stock .st-count-meta > span:last-child {color:var(--muted);}
 .df-stock .st-count-progress {justify-content:space-between;font-size:12px;font-weight:600;}
 .df-stock .st-count-progress progress {width:100%;height:7px;accent-color:var(--green);}
 .df-stock .st-count-dialog .st-count-tools {margin:0;justify-content:flex-start;}
 .df-stock .st-count-tools .btn i,.df-stock .st-count-meta i {margin-right:4px;}
 .df-stock .st-count-hint {margin:0;}
 .df-stock .st-count-cards {display:grid;gap:12px;}
 .df-stock .st-count-card {border:1px solid var(--line);border-radius:12px;min-width:0;}
 .df-stock .st-count-product {
  padding:12px;border-radius:12px 12px 0 0;background:color-mix(in srgb,var(--muted) 5%,var(--panel));
 }
 .df-stock .st-count-product .st-photo {width:44px;height:44px;flex-basis:44px;}
 .df-stock .st-count-product h3 {margin:0;font-size:15px;overflow-wrap:anywhere;}
 .df-stock .st-count-line {
  display:grid;grid-template-columns:minmax(0,1fr) minmax(0,220px) minmax(96px,max-content);gap:8px 12px;
  align-items:center;border-top:1px solid var(--line);padding:10px 12px;overflow-wrap:anywhere;
 }
 .df-stock .st-count-line.is-divergent {background:color-mix(in srgb,#ffd483 12%,var(--panel));}
 .df-stock .st-count-line:last-child {border-radius:0 0 12px 12px;}
 .df-stock .st-count-lot small,.df-stock .st-count-value small {display:block;margin-top:2px;}
 .df-stock .st-count-lot strong {color:var(--text);}
 .df-stock .st-count-line .st-tag {justify-self:start;}
}
@media screen and (max-width:600px) {
 .df-stock .st-count-dialog {width:calc(100vw - 20px);max-width:calc(100vw - 20px);}
 .df-stock .st-count-dialog > header,.df-stock .st-count-dialog .st-form,.df-stock .st-count-dialog footer {padding:12px;}
 .df-stock .st-count-line {grid-template-columns:minmax(0,1fr) auto;}
 .df-stock .st-count-line > label,.df-stock .st-count-value {grid-column:1/-1;grid-row:2;}
 .df-stock .st-count-line .st-tag {grid-column:2;grid-row:1;justify-self:end;}
 .df-stock .st-count-dialog footer > .btn-primary {width:100%;}
 .df-stock .st-count-dialog footer > [data-action^="doc:cancelar_inventario"] {order:1;margin-right:0;}
}

.df-stock .st-product-import h3 {margin:0 0 8px;}
.df-stock .st-product-import [data-product-summary] {font-weight:600;}
.df-stock .st-product-import [data-product-rows] {display:grid;gap:8px;margin-bottom:12px;}
.df-stock .st-product-import-row {
 display:grid;gap:8px;min-width:0;padding:12px;border:1px solid var(--line);border-radius:10px;overflow-wrap:anywhere;
}
.df-stock .st-product-import-row.is-pending {border-color:var(--danger,#b91c1c);}
.df-stock .st-product-import-row .st-panel-heading {margin:0;flex-wrap:nowrap;}
.df-stock .st-product-import-row .st-panel-heading small {display:block;}
.df-stock .st-product-import-row p {margin:0;font-size:12px;}
.df-stock .st-product-import-row [data-product-replace] {justify-self:start;}
.df-stock .st-product-import-row [aria-pressed="true"] {border-color:var(--green);}
.df-stock .st-product-import-row.is-pending [data-product-status] {color:var(--danger,#b91c1c);font-weight:600;}
.df-stock .st-product-import [hidden] {display:none;}

.df-stock .st-count-line > .st-count-found {grid-column:1/-1;padding-top:6px;}
.df-stock .st-count-line > .st-count-found[hidden] {display:none;}
.df-stock .st-classification .st-classification-tabs {justify-content:flex-start;margin:0 0 16px;}
.df-stock .st-classification-tabs [aria-pressed="true"] {border-color:var(--green);font-weight:600;}
.df-stock .st-classification-row-actions {display:flex;justify-content:flex-end;gap:6px;}

/* Solicitações: escolha legível no celular e ações concentradas na etapa atual. */
.st-flow-options { border:0; padding:0; display:grid; gap:12px; min-width:0; }
.st-flow-options legend { margin-bottom:12px; font-weight:600; }
.st-flow-option { border:1px solid var(--border,#dce4ea); border-radius:12px; padding:14px; cursor:pointer; display:grid; gap:8px; }
.st-flow-option:has(input:checked) { border-color:#22c55e; background:rgba(34,197,94,.07); }
.st-flow-option span { display:flex; align-items:center; gap:8px; }
.st-flow-option input { width:auto; margin:0; }
.st-flow-option small { line-height:1.5; font-weight:400; }
.st-request-actions { margin-block:16px; gap:10px; }
.st-request-actions .btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:44px; }
.st-policy-checks[hidden] { display:none; }
@media(max-width:640px) { .st-request-actions .btn { flex:1 1 100%; } }

/* Seleção visual de produtos nas movimentações e transferências. */
.df-stock .st-transfer-option > .st-photo {flex:0 0 52px;display:flex;align-items:center;justify-content:center;}
.df-stock .st-transfer-option > span {min-width:0;}
.df-stock .st-movement-picker .st-cart-product {flex:1;min-width:0;}
.df-stock .st-movement-picker .st-cart-product > span:last-child {min-width:0;}
.df-stock .st-transfer-option:has(input:checked) {background:color-mix(in srgb,var(--green) 10%,var(--panel));}
.df-stock .st-movement-selected {padding:12px;border:1px solid var(--line);border-radius:10px;}
.df-stock .st-movement-selected:empty {display:none;}
.df-stock .st-movement-selected small {display:block;color:var(--muted);overflow-wrap:anywhere;}
.df-stock .st-transfer-summary .st-cart-product {align-items:center;}
@media screen and (max-width:600px) {
 .df-stock .st-movement-dialog .st-form {grid-template-columns:minmax(0,1fr);}
 .df-stock .st-movement-dialog footer {flex-wrap:wrap;}
 .df-stock .st-movement-dialog footer .btn {flex:1;min-height:44px;white-space:normal;word-break:normal;}
}

/* Lotes: identidade do produto ocupa a linha inteira em todas as etapas. */
.df-stock .st-movement-dialog .st-transfer-line > .st-cart-product {grid-column:1/-1;min-width:0;}
.df-stock .st-movement-dialog .st-transfer-summary > li {padding:12px 0;border-bottom:1px solid var(--line);}
.df-stock .st-movement-dialog [data-movement-add] {justify-self:start;white-space:normal;}
.df-stock .st-movement-dialog [data-movement-review] p {overflow-wrap:anywhere;}

/* Barras utilizáveis por mouse em todos os painéis e tabelas do Estoque. */
#view:has(>.df-stock), .df-stock .st-main, .df-stock .st-side,
.df-stock .st-table-wrap, .df-stock .st-tabs, .st-dialog {
  scrollbar-width: auto;
  scrollbar-color: var(--muted) var(--surface-alt);
  -ms-overflow-style: auto;
  scrollbar-gutter: stable;
}
#view:has(>.df-stock)::-webkit-scrollbar,
.df-stock .st-main::-webkit-scrollbar, .df-stock .st-side::-webkit-scrollbar,
.df-stock .st-table-wrap::-webkit-scrollbar, .df-stock .st-tabs::-webkit-scrollbar,
.st-dialog::-webkit-scrollbar { display:block; width:12px; height:12px; }
#view:has(>.df-stock)::-webkit-scrollbar-thumb,
.df-stock .st-main::-webkit-scrollbar-thumb, .df-stock .st-side::-webkit-scrollbar-thumb,
.df-stock .st-table-wrap::-webkit-scrollbar-thumb, .df-stock .st-tabs::-webkit-scrollbar-thumb,
.st-dialog::-webkit-scrollbar-thumb {
  background:var(--muted); border:2px solid var(--surface-alt); border-radius:8px;
}
