/* Phone-first interaction fixes. Scroll remains available by touch, wheel and keyboard. */
html{scrollbar-width:none}*{scrollbar-width:none;-webkit-tap-highlight-color:transparent}*::-webkit-scrollbar{width:0!important;height:0!important;display:none!important}button,a,[role=option],.bulk-row{-webkit-tap-highlight-color:transparent;touch-action:manipulation}button,.bulk-row{-webkit-user-select:none;user-select:none}button:focus:not(:focus-visible),a:focus:not(:focus-visible){outline:none!important;box-shadow:none}button:focus-visible,a:focus-visible,[tabindex]:focus-visible{outline:2px solid #79a083;outline-offset:3px}.page-content,.panel,.stat-card,.fabric-card,.branch-card{animation:none!important}.modal-overlay{animation:frantex-fade .12s ease-out!important}.modal{animation:frantex-sheet .16s ease-out!important}.picker-popover{animation:frantex-fade .1s ease-out!important}@keyframes frantex-fade{from{opacity:0}to{opacity:1}}@keyframes frantex-sheet{from{opacity:.5;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
.saving-feedback{opacity:.65;pointer-events:none}.reference-number{font-size:13px;color:#6b7b70}.sidebar{overscroll-behavior:contain}.table-wrap{overscroll-behavior-x:contain}
@media(max-width:840px){
 html,body{width:100%;max-width:100%;overflow-x:clip}body{background:#f0f5ef!important}.main{margin-left:0!important;width:100%!important;min-width:0!important}.page-content{padding:22px 16px!important;overflow:visible}.page-heading{display:flex;flex-direction:column;align-items:stretch;gap:15px;margin-bottom:22px}.page-heading h1{font-size:29px;line-height:1.13;letter-spacing:-.8px;overflow-wrap:break-word}.subtitle{font-size:14px;line-height:1.6}.heading-actions{width:100%;display:flex;flex-wrap:wrap;gap:8px}.heading-actions .btn{flex:1;min-height:44px;white-space:normal;padding:11px 12px}.eyebrow{font-size:10px;letter-spacing:1.3px}.topbar{position:relative!important;top:auto!important;margin:10px 12px 8px!important;padding:12px!important;display:flex;flex-wrap:wrap;gap:10px;min-height:0!important;border-radius:22px!important;background:#fff!important;box-shadow:0 3px 12px #234f4008!important}.breadcrumbs{display:flex!important;flex:1 0 100%;min-width:0!important;width:100%;gap:8px}.breadcrumbs>span{display:none}.breadcrumbs strong{font-size:13px;white-space:normal!important;overflow:visible!important;text-overflow:clip!important}.menu-toggle{display:inline-flex!important;min-width:38px;min-height:38px}.topbar-actions{width:100%;justify-content:flex-end}.local-status{display:none!important}.profile-switch{width:100%;justify-content:space-between;gap:9px}.profile-switch>span{font-size:13px;min-width:0;overflow-wrap:anywhere}.profile-switch>span small{font-size:10px}.profile-switch .btn{font-size:12px;min-height:38px;padding:8px 12px}.profile-switch>.avatar{display:none!important}.demo-banner{margin:0 12px!important;border-radius:14px;padding:9px 12px!important;font-size:10px}.demo-banner>span{line-height:1.5}.demo-banner>span:last-child{display:none!important}
 .sidebar{left:10px!important;top:10px!important;bottom:10px!important;height:calc(100dvh - 20px)!important;width:min(285px,85vw)!important;padding:22px 15px 16px!important;border-radius:26px!important;background:#224e40!important;box-shadow:8px 0 24px #173d3622!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;transition:transform .18s ease-out!important;overflow-y:auto!important}.sidebar .brand{margin:0 0 22px!important;padding:0 8px!important}.sidebar .brand-name{font-size:32px!important}.sidebar .brand-caption{font-size:7px!important}.sidebar .nav-label{margin:12px 10px!important;font-size:9px}.sidebar nav{display:flex;flex-direction:column;gap:4px}.sidebar .nav-item{min-height:46px!important;padding:11px 13px!important;font-size:13px!important;border-radius:18px}.sidebar .nav-item span{white-space:normal}.sidebar-bottom{margin-top:20px!important}.sidebar-bottom .workspace-card{display:none}.sidebar-bottom .version-label{font-size:9px}.mobile-nav-backdrop{backdrop-filter:none!important;-webkit-backdrop-filter:none!important;background:#102a1f70!important}.app-shell:not(.menu-open) .sidebar{transform:translateX(calc(-100% - 35px))!important}.app-shell.menu-open .sidebar{transform:translateX(0)!important}
 .panel,.stat-card,.fabric-card,.branch-card,.topbar,.filter-chip,.btn,.form-notice,.scan-mode-card,.detail-branches>div,.picker-popover{backdrop-filter:none!important;-webkit-backdrop-filter:none!important}.panel,.stat-card,.fabric-card,.branch-card{background:#fff!important;box-shadow:0 3px 12px #234f4006!important;transform:none!important;transition:none!important}.stat-card:first-child{background:#285844!important}.stat-card{border-radius:20px!important;padding:17px!important}.stat-value{font-size:29px!important}.stat-unit{font-size:15px!important}.stat-label,.stat-foot{font-size:11px!important;line-height:1.5}.stats-grid{grid-template-columns:1fr 1fr!important;gap:10px!important}.dashboard-grid,.settings-grid,.split-layout,.branch-cards{grid-template-columns:1fr!important;gap:16px!important}.section-heading{gap:12px;align-items:flex-start}.section-heading h2{font-size:19px}.section-heading p{font-size:12px}.section-heading .text-link{white-space:normal;font-size:11px}.fabric-grid{grid-template-columns:1fr 1fr!important;gap:10px!important}.fabric-preview{height:110px!important}.fabric-body{padding:12px!important}.fabric-body h3{font-size:16px;overflow-wrap:anywhere}.fabric-meta{font-size:10px}.fabric-stock strong{font-size:20px}.fabric-stock>span{font-size:10px}.fabric-stock{gap:6px;flex-wrap:wrap}.sample-color-note{font-size:8px!important;right:6px;bottom:7px}.fabric-number{bottom:7px!important;left:7px!important;font-size:9px!important}.sample-color-note{display:none}.branch-meters{font-size:34px}.bar-row{gap:10px}.bar-label{gap:8px;align-items:flex-start}.bar-label strong{font-size:13px}.bar-caption{font-size:11px}.panel-header,.panel-body{padding:17px!important}.page-footer{margin:0 16px!important;flex-direction:column;gap:7px;font-size:10px}
 .table-wrap{overflow:visible!important;border:0!important;border-radius:0!important;padding:0 12px!important}.table-wrap table{display:block!important;width:100%!important;min-width:0!important;table-layout:auto!important}.table-wrap thead{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}.table-wrap tbody{display:grid!important;gap:12px;width:100%}.table-wrap tr{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px 14px;padding:17px!important;border:1px solid #dce7dc!important;border-radius:20px;background:#fff;min-width:0}.table-wrap td{display:flex!important;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:5px;padding:0!important;border:0!important;min-width:0!important;white-space:normal!important;font-size:13px!important;overflow-wrap:anywhere;max-width:100%}.table-wrap td:before{content:attr(data-label);display:block;color:#708775;font-size:10px;font-weight:600;letter-spacing:.4px;line-height:1.3}.table-wrap td:first-child,.table-wrap td:last-child{grid-column:1/-1}.table-wrap td:first-child:before{font-size:10px}.table-wrap td:last-child{flex-direction:row;flex-wrap:wrap;gap:8px;border-top:1px solid #eef2ec!important;padding-top:12px!important}.table-wrap td:last-child:before{flex-basis:100%}.table-wrap .cell-product{width:100%;min-width:0;gap:10px}.table-wrap .cell-product>div{min-width:0}.table-wrap .cell-main{font-size:14px;white-space:normal!important}.table-wrap .cell-sub{font-size:12px;white-space:normal!important;overflow-wrap:anywhere}.table-wrap .row-buttons{width:100%;gap:7px}.table-wrap .btn,.table-wrap .row-action{min-height:40px;font-size:12px;padding:10px 12px;margin:0!important}.table-wrap td:last-child .btn{flex:1 1 auto}.table-wrap .swatch{flex:0 0 40px}.inventory-toolbar{flex-wrap:wrap;padding:16px!important;gap:10px}.inventory-toolbar .search-field{flex:1 0 100%}.filter-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);padding:12px 16px!important;gap:10px}.filter-row>*{min-width:0!important;max-width:100%!important}.filter-row .select-wrap{width:auto!important}.filter-row input{width:100%!important}.movement-filters{grid-template-columns:1fr 1fr}.movement-filters label{font-size:12px;display:flex;flex-direction:column;gap:6px}.movement-filters>input{grid-column:1/-1}.result-summary{padding:12px 16px!important;gap:8px;flex-wrap:wrap;font-size:12px}.custom-select-trigger{min-height:44px!important;padding:10px 12px!important;font-size:13px!important;white-space:normal!important}.custom-select-trigger .select-value{white-space:normal!important;text-overflow:clip!important;overflow:visible!important;text-align:left;line-height:1.3}.picker-popover{background:#fbfdfb!important;max-width:calc(100vw - 24px)!important;border-radius:20px!important;box-shadow:0 12px 32px #173d3629!important}.picker-option{min-height:44px;font-size:13px!important;white-space:normal!important;line-height:1.45}.picker-backdrop{backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
 .modal-overlay{padding:8px!important;align-items:center!important;background:#132b2366!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}.modal{width:100%!important;max-width:100%!important;max-height:calc(100dvh - 16px)!important;border-radius:25px!important;background:#f9fcf7!important;box-shadow:0 12px 40px #102a2426!important;display:flex!important;flex-direction:column;overflow:hidden!important;min-height:0}.modal-header{flex:none;padding:20px 18px!important;gap:10px;background:#f9fcf7!important;backdrop-filter:none!important}.modal-header>div{min-width:0}.modal-header h2{font-size:23px!important;line-height:1.18;overflow-wrap:anywhere}.modal-header .eyebrow{font-size:9px}.modal-header .icon-button{flex:0 0 40px;width:40px;height:40px}.modal-body{flex:1;min-height:0;overflow-y:auto!important;overflow-x:hidden!important;padding:18px 14px!important}.modal .form-grid{grid-template-columns:minmax(0,1fr)!important;gap:17px!important}.form-field{min-width:0;max-width:100%}.form-field label{font-size:13px!important}.form-field input,.form-field textarea,.login-card input{font-size:16px!important;min-height:46px;width:100%}.form-field textarea{min-height:90px}.field-hint{font-size:12px!important;line-height:1.5}.form-notice{font-size:13px;line-height:1.6;padding:15px!important}.modal-footer{flex-wrap:wrap;gap:9px;padding:14px 0 3px!important;margin-top:16px!important}.modal-footer .btn{flex:1;min-height:45px;font-size:13px;white-space:normal}.detail-heading{gap:14px;flex-wrap:wrap}.detail-total{width:100%;font-size:30px}.detail-branches{grid-template-columns:1fr!important;gap:12px}.detail-branches>div{padding:16px!important}.detail-branches span{font-size:22px!important}.detail-branches small,.roll-reference p{font-size:13px!important}.detail-photo{max-height:220px}.photo-upload{grid-template-columns:1fr!important;flex-direction:column}.photo-preview{width:100%;height:150px}.photo-upload input[type=file]{font-size:12px!important;max-width:100%}.scan-modes{grid-template-columns:1fr!important;gap:12px}.scan-mode-card{padding:18px!important}.scan-mode-card h3{font-size:18px}.scan-mode-card p{font-size:13px}.scan-frame{max-height:38dvh}.input-action{flex-wrap:wrap}.input-action input{min-width:0;flex:1 0 100%}.input-action .btn{width:100%}
 .bulk-modal .modal-body{display:flex;overflow:hidden!important;padding:12px 14px 8px!important}.bulk-modal form{display:flex;flex-direction:column;min-height:0;width:100%;flex:1}.bulk-modal form>.form-grid{display:flex!important;flex-direction:column;overflow-y:auto;overflow-x:hidden;flex:1;min-height:0;gap:12px!important;padding:0 1px 12px}.bulk-toolbar{display:grid!important;grid-template-columns:1fr!important;gap:10px;order:0}.bulk-toolbar .search-field{min-height:46px}.bulk-tools{justify-content:space-between;gap:8px}.bulk-tools .btn{font-size:12px;min-height:40px;padding:8px}.bulk-summary{order:1;flex:none;padding:12px 14px!important;border-radius:17px;position:sticky;top:0;z-index:2;font-size:13px}.bulk-summary strong{font-size:23px}.bulk-summary small{font-size:11px;max-width:48%;text-align:right}.bulk-list{order:2;display:grid;max-height:none!important;overflow:visible!important;padding:0!important;gap:9px!important;flex:none}.bulk-modal .form-grid>.form-field{order:3;flex:none}.bulk-row{display:grid!important;grid-template-columns:24px minmax(0,1fr);gap:9px 12px!important;padding:14px!important;border-radius:18px!important}.bulk-row>.swatch{display:none!important}.bulk-row input{grid-column:1;grid-row:1/3;align-self:center}.bulk-row>span:not(.swatch):not(.roll-measures){grid-column:2;min-width:0}.bulk-row .roll-measures{grid-column:2;text-align:left;display:flex;align-items:center;gap:9px;flex-basis:auto!important}.bulk-row strong{font-size:14px!important}.bulk-row small{font-size:12px!important;margin:4px 0 0;overflow-wrap:anywhere}.bulk-row .roll-measures b{font-size:14px!important}.bulk-row .roll-measures small{margin:0}.bulk-row[hidden]{display:none!important}.bulk-modal .modal-footer{flex:none;margin:0!important;padding:12px 0 2px!important;border-top:1px solid #dce5d9;background:#f9fcf7}.bulk-modal .form-error:empty{display:none}.bulk-modal .form-error{flex:none;font-size:12px;padding:8px}.password-control{min-width:0}.password-control input{min-width:0!important}.password-reveal{font-size:12px!important;min-height:36px!important}.toast-container{left:12px!important;right:12px!important;bottom:14px!important;max-width:none!important}.toast{font-size:12px!important;line-height:1.5;backdrop-filter:none!important;background:#285844!important}.page-footer{padding-bottom:25px!important}.quick-panel{min-height:245px!important}.woven-decoration{display:none}
}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

@media(max-width:840px){.topbar{height:auto!important}.topbar-actions{position:static!important;flex:none!important;height:auto!important}.profile-switch{height:auto!important;padding:0!important}}
/* Explicit priority: component rules previously restored thin scrollbars. */
html,body,.sidebar,.sidebar nav,.picker-popover,.table-wrap,.modal-body,.bulk-list,.bulk-modal form>.form-grid{
  scrollbar-width:none!important;
  -ms-overflow-style:none!important;
  scrollbar-color:transparent transparent!important;
}
*::-webkit-scrollbar,*::-webkit-scrollbar-track,*::-webkit-scrollbar-thumb,*::-webkit-scrollbar-corner{
  display:none!important;
  width:0!important;
  height:0!important;
  background:transparent!important;
  border:0!important;
}
.branch-stock-preview{display:grid;gap:6px;margin-top:10px;width:100%;min-width:0}.branch-stock-item{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:7px 10px;border-radius:12px;background:#edf4e8;font-size:12px;line-height:1.4}.branch-stock-item>span{min-width:0;overflow-wrap:anywhere}.branch-stock-item>strong{white-space:nowrap;font-size:12px;color:#245441}.branch-stock-item.empty{background:#f3f5f1;color:#748173}.catalog-actions{display:flex;gap:8px;flex-wrap:wrap}.catalog-actions .btn{white-space:nowrap;min-height:42px}.fabric-card-group{min-width:0;display:flex;flex-direction:column;gap:8px}.fabric-card-group>.fabric-card{width:100%;flex:1}.catalog-edit{width:100%;min-height:44px}.table-wrap .reference-number{white-space:nowrap!important;display:table-cell!important}.branch-stock-preview strong{font-variant-numeric:tabular-nums}
@media(max-width:840px){.table-wrap td:has(>.branch-stock-preview){grid-column:1/-1}.table-wrap .reference-number{display:block!important}.catalog-actions{width:100%}.catalog-actions .btn{flex:1}.fabric-grid .branch-stock-item{flex-wrap:wrap;gap:3px;font-size:11px;padding:7px}.fabric-grid .branch-stock-item strong{font-size:11px}}
.text-scan-view{border-radius:22px;overflow:hidden;background:#e6eee3}.text-scan-view:has(video[hidden]):has(img[hidden]){display:none}.text-scan-view video,.text-scan-view img{width:100%;max-height:45dvh;object-fit:contain;display:block}.text-scan-view [hidden]{display:none!important}.scan-buttons{display:flex;gap:10px;margin:16px 0}.scan-buttons button{flex:1;min-height:46px}.scan-photo-button{display:flex;flex-direction:column;gap:9px;padding:16px;border:1px dashed #95b39b;border-radius:18px;font-size:14px}.scan-photo-button input{width:100%;min-width:0;font-size:14px}.text-scanner progress{width:100%;height:10px;accent-color:#2d6049;margin-top:18px}.printed-summary{display:grid;grid-template-columns:1fr 1fr;gap:8px}.printed-summary>div{padding:10px;background:#fff;border-radius:13px;min-width:0}.printed-summary dt{font-size:11px;color:#647c6b}.printed-summary dd{margin:5px 0 0;font-weight:600;overflow-wrap:anywhere;font-size:14px}
.scan-live-fields{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:12px 0}.scan-live-fields>div{background:#eef4e9;border-radius:12px;padding:10px;display:flex;flex-direction:column;gap:5px;min-width:0}.scan-live-fields span{font-size:11px;color:#607663}.scan-live-fields strong{font-size:13px;overflow-wrap:anywhere}.scan-field-missing{border:1px solid #c58d45;border-radius:16px;padding:12px;background:#fff9ed}.scan-field-missing:after{content:'No leído con seguridad · revisa este dato';font-size:12px;color:#896128}.scanned-photo img{width:100%;max-height:45dvh;object-fit:contain}.text-scanner .form-notice{font-size:13px}.text-scanner video{min-height:180px}
