/* Scoped tablet surface; desktop and Punto Almacén keep their own layout. */
/* Keep the normal account session and reserve two rows for four visible pieces. */
@media(min-width:640px){
 :root.smartwarehouse-tablet .swt-shell .warehouse-results{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 :root.smartwarehouse-tablet .swt-shell .point-search-controls{grid-template-areas:"query search qr"!important;grid-template-columns:minmax(0,1fr) 140px 140px!important}
 :root.smartwarehouse-tablet .swt-shell .point-search-controls>textarea{grid-column:auto!important;min-height:60px!important;height:60px!important}
 :root.smartwarehouse-tablet .swt-shell .point-results-heading{margin:0!important;padding:4px 0!important}
 :root.smartwarehouse-tablet .swt-shell .point-results-heading p{display:none}
 :root.smartwarehouse-tablet .swt-shell .point-piece-card{padding:7px!important}
 :root.smartwarehouse-tablet .swt-shell .warehouse-point-primary-search,:root.smartwarehouse-tablet .swt-shell .warehouse-search-panel{padding:6px!important}
}
.smartwarehouse-tablet .swt-shell .point-mobile-tools,.smartwarehouse-tablet .swt-shell .point-operator{display:none!important}
.smartwarehouse-tablet #app{height:100dvh;overflow:hidden}
:root.smartwarehouse-tablet .swt-shell .warehouse-point-frame .warehouse-point-title{display:none!important}
.swt-shell .warehouse-order-filters,.swt-shell .order-general-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}.swt-shell .warehouse-order-table-wrap{overflow:visible!important}.swt-shell .warehouse-order-filters label,.swt-shell .order-general-grid label{min-width:0}.swt-shell .warehouse-order-filters input,.swt-shell .warehouse-order-filters select{width:100%}
.swt-shell .swi-tabs{display:none!important}
.swt-shell .point-mobile-tools,.swt-shell .point-operator{display:none!important}
.swt-shell{height:100%;display:grid;grid-template-rows:auto minmax(0,1fr) auto;background:#f2f6fc;color:#16395f;font:16px/1.4 Arial,sans-serif;min-width:0}
.swt-shell *{box-sizing:border-box;min-width:0}
.swt-shell button,.swt-shell .btn,.swt-shell select,.swt-shell input:not([type=checkbox]){min-height:48px;font-size:16px;line-height:1.3;border-radius:9px;touch-action:manipulation}
.swt-shell button{cursor:pointer;border:1px solid #abc7e8;padding:8px 14px;background:white;color:#0756ba}.swt-shell button:disabled{opacity:.55;cursor:not-allowed}.swt-shell .primary{background:#0756ba;color:white}
.swt-shell input,.swt-shell textarea,.swt-shell select{max-width:100%;padding:9px;border:1px solid #b5cce6;font:inherit;background:white;color:#16395f}.swt-shell label{font-size:14px;display:flex;flex-direction:column;gap:5px}
.swt-content{overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding:12px;min-height:0}
.swt-navigation{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:8px 12px max(8px,env(safe-area-inset-bottom));background:white;border-top:1px solid #b5cce6;z-index:2}
.swt-navigation button{display:flex;align-items:center;justify-content:center;gap:10px;border:0;min-height:56px}.swt-navigation button>span{font-size:25px}.swt-navigation button[aria-current=page],.swt-subnav button[aria-current=page]{background:#e1edff;color:#004aa6;box-shadow:inset 0 -3px #0756ba}
.swt-subnav{display:flex;gap:8px;margin-bottom:10px;flex-wrap:wrap}.swt-panel{background:white;border:1px solid #c4d8ef;border-radius:12px;padding:12px}.swt-panel>header{display:flex;align-items:center;justify-content:space-between;gap:12px}.swt-panel h1{font-size:22px;margin:5px 0}.swt-panel h2{font-size:18px;margin:4px 0;overflow-wrap:anywhere}.swt-panel p{margin:6px 0}
.swt-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:12px;margin:12px 0}.swt-inventory-card{text-align:left;display:flex;flex-direction:column;gap:8px}.swt-count-card{padding:12px;border:1px solid #c4d8ef;border-radius:10px;display:flex;flex-direction:column;gap:10px}.swt-count-card input{font-size:25px!important}
.swt-inventory-filter{display:flex;align-items:end;gap:8px;margin:12px 0}.swt-inventory-filter label{flex:1}.swt-actionbar{position:sticky;bottom:-12px;background:#f0f6ff;border-top:1px solid #bdd4ee;padding:10px;display:flex;align-items:center;justify-content:space-between;gap:12px;z-index:1}.swt-error,.swt-notice{padding:10px;border-radius:8px;background:#e5f2ff;margin:0 0 8px}.swt-error{color:#922129;background:#ffedef}
.swt-shell .warehouse-point-side,.swt-shell .warehouse-point-title{display:none!important}.swt-shell .warehouse-point-frame,.swt-shell .warehouse-point-shell,.swt-shell .warehouse-point-layout{display:block!important;width:100%!important;height:auto!important;min-height:0!important;margin:0!important;padding:0!important;overflow:visible!important;background:transparent!important}
.swt-shell .warehouse-point-primary-search,.swt-shell .warehouse-search-panel{width:100%!important;max-width:none!important;height:auto!important;margin:0!important;padding:12px!important;overflow:visible!important}.swt-shell .warehouse-results{height:auto!important;max-height:none!important;overflow:visible!important;display:grid!important;grid-template-columns:repeat(auto-fit,minmax(min(100%,330px),1fr));gap:10px}.swt-shell .point-results-heading{grid-column:1/-1}.swt-shell .warehouse-results>article,.swt-shell .warehouse-results>button{height:auto!important;min-height:100px;overflow:visible!important}
.swt-shell .point-mobile-tools{display:flex!important;gap:8px;flex-wrap:wrap;margin:0 0 10px}.swt-shell .point-mobile-tools button{flex:1}.swt-shell .point-action-icon svg{width:24px;height:24px}.swt-shell .point-operator{margin:0 0 8px}.swt-shell .warehouse-search-actions{display:block!important}.swt-shell .point-search-controls{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px}.swt-shell .point-search-controls>textarea{grid-column:1/-1;width:100%}.swt-shell .warehouse-search-intro h2{font-size:22px}.swt-shell .warehouse-search-intro{padding:0!important}.swt-shell .point-overlay{width:calc(100vw - 24px);max-width:1100px;max-height:calc(100dvh - 24px);height:auto;overflow:auto}.swt-shell .point-overlay-body{overflow:visible;max-height:none}.swt-shell .point-operation-overlay{height:calc(100dvh - 24px)}
.swt-shell .warehouse-orders,.swt-shell .swi{height:auto!important;min-height:0!important;width:100%!important;max-width:none!important;padding:0!important;overflow:visible!important}.swt-shell .order-detail-columns,.swt-shell .order-summary{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr))!important}.swt-shell .order-detail-columns{grid-template-columns:1fr!important}.swt-shell .order-detail-columns>main,.swt-shell .order-detail-columns>aside,.swt-shell .swi-scroll,.swt-shell .swi-body{overflow:visible!important;max-height:none!important;height:auto!important}.swt-shell .order-actions,.swt-shell .order-filters{display:flex!important;flex-wrap:wrap!important;gap:8px}.swt-shell .warehouse-order-detail-head{display:flex!important;flex-wrap:wrap!important;gap:8px}.swt-shell .warehouse-order-detail-head h2{font-size:22px;overflow-wrap:anywhere}.swt-shell .order-line-v2,.swt-shell .manifest-row,.swt-shell .order-form-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;padding:12px!important;max-width:100%;border:1px solid #c4d8ef;border-radius:10px;margin-bottom:10px}.swt-shell .order-line-v2 .line-description{grid-column:1/-1}.swt-shell .order-line-v2 label{white-space:normal!important}.swt-shell .manifest-material{grid-column:1/-1}.swt-shell .manifest-material img{width:60px;height:60px;object-fit:contain}.swt-shell .receipt-assist fieldset{min-width:0}.swt-shell .receipt-assist footer{display:flex;flex-wrap:wrap;gap:8px;position:sticky;bottom:0;background:#fff;padding:10px;z-index:1}
.swt-shell .swi-tabs{flex-wrap:wrap}.swt-shell .swi-movement,.swt-shell .swi-proposal{grid-template-columns:80px minmax(0,1fr)!important}.swt-shell .swi-main,.swt-shell .swi-stock,.swt-shell .swi-context,.swt-shell .swi-note,.swt-shell .swi-order-data{grid-column:1/-1!important}.swt-shell .swi-footer{position:sticky;bottom:0;flex-wrap:wrap}.swt-shell .swi-footer>div{flex-wrap:wrap}
.swt-shell .compact-table{width:100%;table-layout:fixed}.swt-shell .compact-table td,.swt-shell .compact-table th{white-space:normal!important;overflow-wrap:anywhere;font-size:14px;padding:8px!important}.swt-shell .order-card{overflow:visible!important}.swt-shell .warehouse-orders .table-scroll{overflow:visible!important}
@media(max-width:900px){.swt-shell .compact-table,.swt-shell .compact-table tbody,.swt-shell .compact-table tr{display:block}.swt-shell .compact-table thead{display:none}.swt-shell .compact-table tr{border:1px solid #c4d8ef;border-radius:9px;margin:8px 0;padding:8px}.swt-shell .compact-table td{display:grid;grid-template-columns:minmax(90px,.7fr) minmax(0,1fr);gap:10px;width:auto!important}.swt-shell .compact-table td:before{content:attr(data-label);font-size:12px;color:#506983}.swt-shell .compact-table td>*{grid-column:2}.swt-shell .order-summary{grid-template-columns:1fr 1fr!important}}
@media(max-width:550px){.swt-content{padding:6px}.swt-shell .order-line-v2,.swt-shell .manifest-row,.swt-shell .order-form-grid{grid-template-columns:1fr!important}.swt-shell .point-mobile-tools{display:grid!important;grid-template-columns:1fr 1fr}.swt-shell .order-summary{grid-template-columns:1fr!important}.swt-navigation{gap:2px;padding:5px}.swt-navigation button{font-size:14px;padding:6px}.swt-actionbar{flex-direction:column;align-items:stretch}.swt-shell .swi-footer>div:last-child{display:flex;flex-wrap:wrap}.swt-shell .swi-toolbar{padding:8px}}
/* The tablet uses a personal account and a bounded two-column results list. */
:root.smartwarehouse-tablet .swt-shell[data-area=warehouse] .swt-content{display:flex;overflow:hidden;padding:6px}
:root.smartwarehouse-tablet .swt-shell[data-area=warehouse] :is(.warehouse-point-frame,.warehouse-point-shell,.warehouse-point-layout,.warehouse-point-primary-search,.warehouse-search-panel){display:flex!important;flex-direction:column!important;flex:1;min-height:0!important;height:100%!important;overflow:hidden!important}
:root.smartwarehouse-tablet .swt-shell .warehouse-results{flex:1;min-height:0!important;overflow:auto!important;align-content:start;overscroll-behavior:contain;scrollbar-gutter:stable}
:root.smartwarehouse-tablet .swt-shell .warehouse-results>article{min-height:0!important}
:root.smartwarehouse-tablet .swt-shell .point-search-controls #warehouse-search{height:60px!important;min-height:60px!important}
:root.smartwarehouse-tablet .swt-shell .warehouse-search-intro,:root.smartwarehouse-tablet .swt-shell .warehouse-search-actions{flex:none}
/* Shared Point styles must not expand the reduced APK past its bottom navigation. */
:root.smartwarehouse-tablet,:root.smartwarehouse-tablet body,:root.smartwarehouse-tablet body #app{height:100dvh!important;min-height:0!important;overflow:hidden!important;margin:0!important;padding:0!important}
:root.smartwarehouse-tablet body #app>.swt-shell{height:100%!important;min-height:0!important;overflow:hidden;grid-template-rows:auto minmax(0,1fr) auto}
:root.smartwarehouse-tablet body #app>.swt-shell[data-area=home]{grid-template-rows:auto minmax(0,1fr)}

/* Task-first reduced app: inventories and withdrawals, supporting tools under More. */
:root.smartwarehouse-tablet .swt-navigation{grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}
:root.smartwarehouse-tablet .swt-navigation button{flex-direction:column;gap:3px;padding:6px;min-height:62px}
:root.smartwarehouse-tablet .swt-navigation button>span{font-size:14px;font-weight:600}
:root.smartwarehouse-tablet .swt-navigation svg{width:25px;height:25px;flex:none}
:root.smartwarehouse-tablet .swt-home{width:100%;max-width:1200px;margin:0 auto;padding:clamp(10px,2vw,24px);display:flex;flex-direction:column;gap:20px}
:root.smartwarehouse-tablet .swt-home h1{font-size:clamp(27px,3vw,38px);line-height:1.2;margin:6px 0 10px;color:#113b66}
:root.smartwarehouse-tablet .swt-home p{margin:0;line-height:1.5;font-size:17px}
:root.smartwarehouse-tablet .swt-home .swt-eyebrow{font-size:12px;letter-spacing:.12em;color:#52677e;font-weight:700}
:root.smartwarehouse-tablet :is(.swt-main-tasks,.swt-secondary-tasks){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
:root.smartwarehouse-tablet .swt-task{display:grid;grid-template-columns:64px minmax(0,1fr) 24px;gap:18px;align-items:center;text-align:left;min-height:190px;padding:26px;border-radius:20px;border:1px solid #b9cfe6;box-shadow:0 5px 18px #133d7010;color:#144c85;background:#fff;white-space:normal}
:root.smartwarehouse-tablet .swt-task>span:nth-child(2){display:flex;flex-direction:column;gap:12px}
:root.smartwarehouse-tablet .swt-task strong{font-size:clamp(23px,2.5vw,30px);line-height:1.2;overflow-wrap:anywhere}
:root.smartwarehouse-tablet .swt-task small{display:block;font-size:17px;line-height:1.5;font-weight:400}
:root.smartwarehouse-tablet .swt-task-icon{display:grid;place-items:center;width:64px;height:64px;border-radius:16px;background:#edf5ff}
:root.smartwarehouse-tablet .swt-task-icon svg{width:36px;height:36px}
:root.smartwarehouse-tablet .swt-task-primary{background:#0958b6;color:#fff;border-color:#0958b6}
:root.smartwarehouse-tablet .swt-task-primary .swt-task-icon{background:#ffffff22}
:root.smartwarehouse-tablet .swt-secondary-tasks .swt-task{min-height:150px}
:root.smartwarehouse-tablet .swt-quick-tasks{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:18px}
:root.smartwarehouse-tablet .swt-quick-tasks .swt-task{min-height:96px;padding:14px;gap:10px;grid-template-columns:32px minmax(0,1fr)}
:root.smartwarehouse-tablet .swt-quick-tasks .swt-task>span:last-child{display:none}
:root.smartwarehouse-tablet .swt-quick-tasks .swt-task>span:nth-child(2){gap:4px}
:root.smartwarehouse-tablet .swt-quick-tasks .swt-task strong{font-size:18px}
:root.smartwarehouse-tablet .swt-quick-tasks .swt-task small{font-size:14px;line-height:1.3}
:root.smartwarehouse-tablet .swt-quick-tasks .swt-task-icon{width:32px;height:36px;border-radius:8px}
:root.smartwarehouse-tablet .swt-quick-tasks .swt-task-icon svg{width:26px;height:26px}
@media(max-width:900px){:root.smartwarehouse-tablet .swt-quick-tasks{grid-template-columns:repeat(2,minmax(0,1fr))}}
:root.smartwarehouse-tablet .swt-home-tools{display:flex;gap:12px;flex-wrap:wrap}
:root.smartwarehouse-tablet .swt-home-tools button{min-height:52px}
:root.smartwarehouse-tablet .swt-home .swt-home-note{font-size:14px;color:#536779;border-top:1px solid #d2deec;padding-top:16px}
:root.smartwarehouse-tablet .swt-work-title{flex:none;padding:4px 8px 10px}
:root.smartwarehouse-tablet .swt-work-title h1{font-size:24px;margin:0 0 3px;line-height:1.3}
:root.smartwarehouse-tablet .swt-work-title p{font-size:14px;margin:0;color:#536779}
:root.smartwarehouse-tablet .swt-shell:is([data-area=warehouse],[data-area=issue]) .swt-content{display:flex;flex-direction:column;overflow:hidden;padding:6px}
:root.smartwarehouse-tablet .swt-shell:is([data-area=warehouse],[data-area=issue]) :is(.warehouse-point-frame,.warehouse-point-shell,.warehouse-point-layout,.warehouse-point-primary-search,.warehouse-search-panel){display:flex!important;flex-direction:column!important;flex:1;min-height:0!important;height:100%!important;overflow:hidden!important}
:root.smartwarehouse-tablet .swt-progress{display:block;width:100%;height:10px;margin:16px 0;accent-color:#087b62}
:root.smartwarehouse-tablet .swt-filter-toggle{margin-top:10px;font-size:14px;min-height:48px}
:root.smartwarehouse-tablet .swt-filter-toggle[aria-pressed=true]{background:#e5f5ef;border-color:#23947d;color:#075c49}
:root.smartwarehouse-tablet .swt-count-card .swt-location{display:block;font-size:18px;color:#064c9c;font-weight:700}
:root.smartwarehouse-tablet .swt-count-card small{display:block;margin-top:6px}
:root.smartwarehouse-tablet .swt-count-card input{min-height:60px;font-size:30px!important}
:root.smartwarehouse-tablet .swt-actionbar{bottom:-12px;border-radius:8px;box-shadow:0 -4px 14px #2542630b}
:root.smartwarehouse-tablet .swt-shell button:focus-visible{outline:3px solid #df9d20;outline-offset:2px}
:root.smartwarehouse-tablet .swt-shell .point-movement-form{justify-content:flex-start!important;gap:14px!important}
:root.smartwarehouse-tablet .swt-shell .point-movement-form :is(input,select,textarea){font-weight:400!important}
:root.smartwarehouse-tablet .swt-shell .point-movement-form fieldset{align-content:start!important;gap:14px!important;grid-template-columns:minmax(0,1fr)}
:root.smartwarehouse-tablet .swt-shell .point-form-actions{position:sticky;bottom:0;background:#f5f9ff;padding:10px 0;margin-top:4px}
:root.smartwarehouse-tablet .swt-shell .point-movement-form .swt-operation-user{font-size:14px;color:#536779;margin:0}
@media(min-width:768px){
 :root.smartwarehouse-tablet .swt-navigation button>span{font-size:17px}
 :root.smartwarehouse-tablet .swt-navigation button{min-height:70px;flex-direction:row;gap:10px}
 :root.smartwarehouse-tablet .swt-count-card h2{font-size:20px}
 :root.smartwarehouse-tablet .swt-shell .point-movement-form fieldset{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px!important;flex:none}
 :root.smartwarehouse-tablet .swt-shell .point-movement-form label{grid-column:auto;font-size:18px}
 :root.smartwarehouse-tablet .swt-shell .point-movement-form label:has(textarea){grid-column:1/-1}
 :root.smartwarehouse-tablet .swt-shell .point-movement-form :is(input,select){min-height:58px!important}
}

/* Mobile portrait is the primary surface; larger screens keep the same workflow. */
:root.smartwarehouse-tablet .swt-main-tasks{grid-template-columns:minmax(0,1fr);gap:12px}
:root.smartwarehouse-tablet .swt-main-tasks .swt-task{min-height:112px;padding:16px;grid-template-columns:44px minmax(0,1fr) 18px;gap:12px}
:root.smartwarehouse-tablet .swt-main-tasks .swt-task-icon{width:44px;height:44px}
:root.smartwarehouse-tablet .swt-main-tasks .swt-task strong{font-size:23px}
:root.smartwarehouse-tablet .swt-main-tasks .swt-task small{font-size:15px;line-height:1.3}
:root.smartwarehouse-tablet .swt-main-tasks .swt-task>span:nth-child(2){gap:6px}
:root.smartwarehouse-tablet .swt-home{padding:12px 6px;gap:12px}
:root.smartwarehouse-tablet .swt-home h1{font-size:24px}
:root.smartwarehouse-tablet .swt-home header p{margin:4px 0}
:root.smartwarehouse-tablet .swt-quick-tasks{grid-template-columns:repeat(2,minmax(0,1fr));margin-top:0;gap:8px}
:root.smartwarehouse-tablet .swt-quick-tasks .swt-task{min-height:74px;padding:10px;gap:8px}
:root.smartwarehouse-tablet .swt-quick-tasks .swt-task strong{font-size:16px}
:root.smartwarehouse-tablet .swt-quick-tasks .swt-task small{display:none}
:root.smartwarehouse-tablet .swt-home .swt-home-note{margin:0;padding-top:8px;font-size:13px}
:root.smartwarehouse-tablet .swt-route-stop{padding:14px;margin:12px 0;border:1px solid #bfd3e8;border-left:5px solid #0756ba;border-radius:10px;background:white;overflow-wrap:anywhere}
:root.smartwarehouse-tablet .swt-route-stop h2{font-size:24px;color:#074f9e}
:root.smartwarehouse-tablet .swt-route-stop>strong{font-size:24px;font-weight:400}
:root.smartwarehouse-tablet :is(.swt-route-tools,.swt-route-stop>div){display:flex;flex-wrap:wrap;gap:8px}
:root.smartwarehouse-tablet .swt-shell[data-area=inventory] .swi-tabs{display:none}
:root.smartwarehouse-tablet .swt-daily{display:flex;flex-direction:column;gap:12px}
:root.smartwarehouse-tablet .swt-daily .swi-toolbar{padding:0;display:flex;flex-direction:column;gap:8px}
:root.smartwarehouse-tablet .swt-daily .swi-date-controls{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;gap:6px;width:100%}
:root.smartwarehouse-tablet .swt-daily .swi-date-controls input{width:100%;font-size:17px;min-height:48px}
:root.smartwarehouse-tablet .swt-daily .swi-date-controls button{min-width:0;padding:6px}
:root.smartwarehouse-tablet .swt-daily .swi-date-controls button:last-child{grid-column:1/-1;min-height:44px}
:root.smartwarehouse-tablet .swt-daily .swi-summary{flex-wrap:wrap}
:root.smartwarehouse-tablet .swt-daily-progress{display:grid;gap:7px}
:root.smartwarehouse-tablet .swt-daily-progress progress{width:100%;height:12px;accent-color:#14835c}
:root.smartwarehouse-tablet .swt-daily-card{padding:12px;border:1px solid #b9d0e8;border-radius:14px;background:white;display:flex;flex-direction:column;gap:12px}
:root.smartwarehouse-tablet .swt-daily-card p{margin:0;font-size:15px}
:root.smartwarehouse-tablet .swt-daily-location{background:#e8f2ff;border-radius:8px;padding:12px}
:root.smartwarehouse-tablet .swt-daily-location h2{font-size:25px;margin:4px 0 0;overflow-wrap:anywhere;color:#084e96}
:root.smartwarehouse-tablet .swt-daily-piece{display:flex;gap:12px;align-items:center}
:root.smartwarehouse-tablet .swt-daily-piece>img{width:100px;height:100px;object-fit:contain;background:#f3f6fa;border-radius:8px}
:root.smartwarehouse-tablet .swt-daily-piece h3{font-size:19px;line-height:1.3;margin:4px 0;overflow-wrap:anywhere}
:root.smartwarehouse-tablet .swt-daily-number{background:#eaf7f1;border-radius:8px;padding:12px;display:flex;flex-direction:column;gap:4px}
:root.smartwarehouse-tablet .swt-daily-number strong{font-size:36px;font-weight:400;color:#095d43}
:root.smartwarehouse-tablet .swt-daily-number small{font-size:17px}
:root.smartwarehouse-tablet .swt-daily-actions{position:sticky;bottom:-6px;background:white;display:grid;gap:8px;padding:10px 0 0}
:root.smartwarehouse-tablet .swt-daily-actions button{min-height:52px;font-size:17px}
:root.smartwarehouse-tablet .swt-daily-finished{padding:24px 12px;text-align:center;background:#eaf7f1;border-radius:12px}
:root.smartwarehouse-tablet .swt-checked{padding:12px;background:#eaf7f1;border-radius:8px}
@media(max-width:700px){
 :root.smartwarehouse-tablet :is(.swt-main-tasks,.swt-secondary-tasks){grid-template-columns:1fr;gap:14px}
 :root.smartwarehouse-tablet .swt-home{gap:18px;padding:16px 10px}
 :root.smartwarehouse-tablet .swt-task{min-height:142px;padding:18px;gap:14px;grid-template-columns:50px minmax(0,1fr) 18px}
 :root.smartwarehouse-tablet .swt-task-icon{width:50px;height:50px}
 :root.smartwarehouse-tablet .swt-task small{font-size:15px}
 :root.smartwarehouse-tablet .swt-home-tools button{flex:1 1 140px;font-size:14px}
 :root.smartwarehouse-tablet .swt-inventory-filter{flex-wrap:wrap}
 :root.smartwarehouse-tablet .swt-inventory-filter label{flex:1 1 100%}
 :root.smartwarehouse-tablet .swt-inventory-filter button{flex:1}
}
/* One row on every reduced-app screen; preserve shared help, notices and account actions. */
:root.smartwarehouse-tablet body #app .swt-header{display:flex;flex-wrap:nowrap;align-items:center;gap:4px;min-height:56px;padding:6px max(8px,env(safe-area-inset-right)) 6px max(8px,env(safe-area-inset-left));background:#0756ba;color:#fff}
:root.smartwarehouse-tablet .swt-header .swt-brand{display:flex;align-items:center;gap:6px;flex:1 1 auto;min-width:0;overflow:hidden}
:root.smartwarehouse-tablet .swt-header .swt-brand img{width:28px;height:28px;flex:none}
:root.smartwarehouse-tablet .swt-header .swt-brand strong{font-size:16px;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
:root.smartwarehouse-tablet body #app .swt-header .sf-top-actions{display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;align-items:center;justify-content:flex-end;width:auto!important;min-width:0!important;flex:0 0 auto!important;gap:4px;margin:0!important}
:root.smartwarehouse-tablet body #app .swt-header :is(.swt-sync,.smarthelp-manual-button,.sf-bell,.sf-top-actions>.sf-user){display:flex!important;align-items:center;justify-content:center;position:relative;flex:0 0 44px!important;width:44px!important;min-width:44px!important;max-width:44px!important;height:44px!important;min-height:44px!important;padding:8px!important;gap:0!important;margin:0!important;border:1px solid #ffffff42!important;border-radius:9px!important;background:#ffffff12!important;color:#fff!important;box-shadow:none!important}
:root.smartwarehouse-tablet body #app .swt-header :is(.sf-user-copy,.sf-user>em){display:none!important}
:root.smartwarehouse-tablet body #app .swt-header .sf-user>span:first-child{display:grid;place-items:center;width:30px!important;height:30px!important;min-width:30px!important;padding:0!important;margin:0!important;border-radius:50%;background:#e9f2ff!important;color:#0756ba!important;font-size:14px!important;line-height:1;font-weight:600}
:root.smartwarehouse-tablet body #app .swt-header svg{width:24px!important;height:24px!important;flex:none;fill:none;stroke:currentColor;stroke-width:1.8}
:root.smartwarehouse-tablet body #app .swt-header .sf-bell>i{top:0!important;right:0!important;font-size:10px!important;line-height:16px!important;min-width:16px!important;height:16px!important;padding:0 3px!important}
:root.smartwarehouse-tablet body #app .swt-header .swt-sync[data-offline=true]{color:#ffe195!important}

/* Buscar y elegir la pieza primero. Un único tapiz y un único scroll de resultados. */
:root.smartwarehouse-tablet .swt-shell{background:#fff}
:root.smartwarehouse-tablet .swt-shell[data-area=issue] .swt-content{padding:0;scrollbar-gutter:auto;gap:0}
:root.smartwarehouse-tablet .swt-work-title{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:6px 8px}
:root.smartwarehouse-tablet .swt-work-title h1{font-size:19px;margin:0}
:root.smartwarehouse-tablet .swt-work-title button{min-height:36px;font-size:13px;padding:5px 8px}
:root.smartwarehouse-tablet .swt-shell[data-area=issue] :is(.warehouse-point-frame,.warehouse-point-shell,.warehouse-point-layout,.warehouse-point-primary-search,.warehouse-search-panel){width:100%!important;max-width:none!important;margin:0!important;border:0!important;border-radius:0!important;padding:0!important;height:auto!important;min-height:0!important;flex:1 1 0!important;background:#fff!important}
:root.smartwarehouse-tablet .swt-shell[data-area=issue] .warehouse-search-actions{flex:0 0 auto;padding:0 8px 6px!important}
:root.smartwarehouse-tablet .swt-shell[data-area=issue] .warehouse-search-intro{display:none!important}
:root.smartwarehouse-tablet .swt-shell[data-area=issue] .point-search-controls{grid-template-columns:minmax(0,1fr) 48px 48px!important;grid-template-areas:"query search qr"!important;gap:6px!important}
:root.smartwarehouse-tablet .swt-shell[data-area=issue] .point-search-controls>textarea{grid-column:auto!important;min-height:48px!important;height:48px!important;max-height:90px!important;resize:vertical;padding:6px!important}
:root.smartwarehouse-tablet .swt-shell[data-area=issue] .warehouse-results{flex:1 1 0!important;min-height:0!important;height:auto!important;overflow:auto!important;overscroll-behavior:contain;padding:0 8px 8px!important;align-content:start;grid-template-columns:minmax(0,1fr)!important}
:root.smartwarehouse-tablet .swt-shell .point-overlay{inset:0!important;margin:0!important;width:100%!important;max-width:100%!important;height:100dvh!important;max-height:100dvh!important;border:0!important;border-radius:0!important;padding:0!important;overflow:hidden!important}
:root.smartwarehouse-tablet .swt-shell .point-overlay[open]{display:flex!important;flex-direction:column!important}
:root.smartwarehouse-tablet .swt-shell .point-overlay-heading{flex:0 0 auto;padding:6px 8px!important;gap:8px!important}
:root.smartwarehouse-tablet .swt-shell .point-overlay-heading h2{font-size:20px!important;margin:0!important}
:root.smartwarehouse-tablet .swt-shell .point-overlay-body{flex:1 1 0;min-height:0;overflow:auto!important;padding:0 8px 8px!important;width:100%;max-width:none}
:root.smartwarehouse-tablet .swt-shell .point-movement-form{width:100%!important;max-width:none!important;margin:0!important;padding:0!important;gap:8px!important}
:root.smartwarehouse-tablet .swt-shell .point-movement-form fieldset{padding:0!important;margin:0!important;border:0!important;gap:8px!important;grid-template-columns:minmax(0,1fr)!important}
:root.smartwarehouse-tablet .swt-shell .point-movement-form label{gap:3px!important}
:root.smartwarehouse-tablet .swt-shell .point-form-actions{padding:8px 0!important;background:#fff!important;display:flex;flex-wrap:wrap;gap:6px!important}
:root.smartwarehouse-tablet .swt-shell .point-form-actions button{flex:1 1 140px;white-space:normal}
:root.smartwarehouse-tablet .swt-navigation button>span{font-size:12px;line-height:1.15;white-space:normal;overflow-wrap:normal;text-align:center}
:root.smartwarehouse-tablet .swt-order-tools{display:flex;justify-content:flex-end;margin-bottom:6px}
:root.smartwarehouse-tablet .swt-shell[data-area=issue] .point-search-controls :is(.warehouse-search-submit,.warehouse-search-utility){display:grid!important;place-items:center;position:relative;width:48px!important;height:48px!important;min-width:48px!important;min-height:48px!important;padding:0!important;overflow:hidden;gap:0!important}
:root.smartwarehouse-tablet .swt-shell[data-area=issue] .point-search-controls button>span:last-child{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important;border:0!important}
:root.smartwarehouse-tablet .swt-shell[data-area=issue] .point-search-controls button svg{width:25px!important;height:25px!important}
:root.smartwarehouse-tablet .swt-shell[data-area=issue] .point-search-controls textarea{width:100%!important;min-height:48px!important;height:48px!important;max-height:90px!important;padding:8px!important;resize:vertical}
:root.smartwarehouse-tablet .swt-shell[data-area=issue] .warehouse-search-field{margin:0!important;gap:0!important}
:root.smartwarehouse-tablet .swt-shell[data-area=issue] .point-results-heading{padding:4px 0!important;margin:0!important}
:root.smartwarehouse-tablet .swt-shell[data-area=issue] .point-results-heading h2{font-size:16px!important;margin:0!important}
:root.smartwarehouse-tablet .swt-shell[data-area=issue] .point-results-heading p{display:none!important}
:root.smartwarehouse-tablet .swt-shell[data-area=issue] .point-compact-answer{padding:4px 8px!important;margin:0!important;font-size:13px!important;flex:0 0 auto}
/* The dashboard shares the same permanent navigation as every working area. */
:root.smartwarehouse-tablet .swt-navigation{grid-template-columns:repeat(4,minmax(0,1fr));gap:2px;padding:4px 4px max(4px,env(safe-area-inset-bottom))}
:root.smartwarehouse-tablet .swt-navigation button{display:flex;flex-direction:column;gap:3px;padding:4px 2px;min-height:58px}
:root.smartwarehouse-tablet .swt-shell[data-area=home] .swt-content{padding:8px;scrollbar-gutter:auto}
:root.smartwarehouse-tablet .swt-subnav{display:grid;grid-template-columns:1fr 1fr auto;gap:4px}
:root.smartwarehouse-tablet .swt-subnav button{font-size:13px;padding:6px;min-height:44px}
:root.smartwarehouse-tablet .wc-count{border-bottom:1px solid #cadaec;padding-bottom:14px;margin-bottom:14px}
/* Phone browser: keep every navigation action reachable without squeezing the record. */
@media (max-width: 600px) {
  :root body #app .desktop.warehouse.suite-reference-ui { --warehouse-side-width: 56px !important; grid-template-columns: 56px minmax(0, 1fr) !important; }
  :root body #app .desktop.warehouse.suite-reference-ui > .side { width: 56px !important; min-width: 0 !important; padding-inline: 4px !important; }
  :root body #app .desktop.warehouse.suite-reference-ui > .side .brand { position: static !important; width: 100% !important; min-width: 0 !important; max-width: 100% !important; justify-content: center !important; gap: 0 !important; padding-inline: 0 !important; }
  :root body #app .desktop.warehouse.suite-reference-ui > .side .brand > div { display: none !important; }
  :root body #app .desktop.warehouse.suite-reference-ui > .side .brand img { width: 32px !important; height: 32px !important; }
  :root body #app .desktop.warehouse.suite-reference-ui .side-nav { width: 48px !important; max-width: 48px; padding: 0 !important; margin: 0 !important; }
  :root body #app .desktop.warehouse.suite-reference-ui .side-nav > button,
  :root body #app .desktop.warehouse.suite-reference-ui .warehouse-admin-menu > summary {
    width: 48px !important; min-width: 0 !important; min-height: 44px !important; padding: 8px !important; justify-content: center !important; gap: 0 !important;
  }
  :root body #app .desktop.warehouse.suite-reference-ui .side-nav > button > em {
    display: block !important; position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
  }
  :root body #app .desktop.warehouse.suite-reference-ui .warehouse-admin-menu > summary > em,
  :root body #app .desktop.warehouse.suite-reference-ui .warehouse-admin-menu > summary > b { display: none !important; }
  :root body #app .desktop.warehouse.suite-reference-ui .side-nav > button svg { width: 24px; height: 24px; }
  :root body #app .desktop.warehouse.suite-reference-ui .warehouse-admin-menu > div {
    position: fixed !important; left: 56px !important; top: 64px !important; bottom: auto !important; width: calc(100vw - 64px) !important;
    height: auto !important; max-height: calc(100dvh - 72px); max-width: 320px; overflow: auto; z-index: 90; padding: 8px;
    display: flex !important; flex-direction: column; gap: 4px; align-items: stretch;
    background: #fff; border: 1px solid #c7dcf1; border-radius: 8px; box-shadow: 0 8px 24px #173c5833;
  }
  :root body #app .desktop.warehouse.suite-reference-ui .warehouse-admin-menu > div button { min-height: 44px !important; width: 100% !important; flex: 0 0 auto; }
  :root body #app .desktop.warehouse.suite-reference-ui .warehouse-admin-menu > div button em { white-space: normal; }
  :root body #app .desktop.warehouse.suite-reference-ui .side > .suite-sidebar-status { width: 44px; min-width: 0; min-height: 44px; padding: 8px; justify-content: center; }
  :root body #app .desktop.warehouse.suite-reference-ui .suite-sidebar-status > span:not(.suite-sidebar-status-icon) { display: none; }
  :root body #app .desktop.warehouse.suite-reference-ui > .desktop-main { min-width: 0; width: 100%; }
  :root body #app .desktop.warehouse.suite-reference-ui .warehouse-order-detail-head { flex-direction: column; align-items: stretch; }
  :root body #app .desktop.warehouse.suite-reference-ui .warehouse-order-detail-head > div:first-child { display: block; min-width: 0; }
  :root body #app .desktop.warehouse.suite-reference-ui .warehouse-order-detail-head h2 { font-size: 20px !important; line-height: 1.3; overflow-wrap: anywhere; }
  :root body #app .desktop.warehouse.suite-reference-ui .warehouse-order-detail-head > div:first-child .btn { margin-bottom: 8px; }
  :root body #app .desktop.warehouse.suite-reference-ui .order-actions { display: flex; flex-wrap: wrap; gap: 6px; }
  :root body #app .desktop.warehouse.suite-reference-ui .order-actions > button { min-height: 44px; flex: 1; }
  :root body #app .desktop.warehouse.suite-reference-ui .order-detail-columns { grid-template-columns: minmax(0, 1fr); }
  :root body #app .desktop.warehouse.suite-reference-ui .order-card:has(> table.compact-table) { min-width: 0; overflow-x: auto; }
  :root body #app .desktop.warehouse.suite-reference-ui .order-card > table.compact-table { min-width: 580px; }
}
