/* Shared, compact workspace. Every menu item is visible without horizontal scrolling. */
body{overflow-wrap:break-word}body.has-workspace{--workspace-radius:14px}body.has-workspace :is(main,.admin-main,.panel,.portal-panel,.inventory-panel,.form-field){min-width:0}
body.has-workspace :is(button,.button,input,select){min-height:40px}body.has-workspace :is(.icon-button,.view-toggle button){min-width:40px}body.has-workspace svg{width:19px;height:19px}
.warehouse-body .sidebar{width:218px;padding:20px 14px 0;height:100dvh;overflow:hidden}.warehouse-body .app-shell{margin-left:218px;min-width:0}.warehouse-body .company-brand{font-size:17px;letter-spacing:-.5px}.warehouse-body .workspace-switch{margin-top:18px;padding:10px}.warehouse-body .nav-caption{margin:20px 10px 10px}.warehouse-body #navigation{min-height:0;overflow:auto;scrollbar-width:thin}.warehouse-body #navigation a{padding:10px 12px;min-height:42px;font-size:13px;margin:2px 0}.warehouse-body .sidebar-bottom{margin-top:auto}.warehouse-body .side-tip{display:none}.warehouse-body .profile{padding:14px 4px}.warehouse-body .settings-nav{font-size:12px}.warehouse-body .topbar{height:64px;padding:0 28px;position:sticky;top:0;z-index:25;background:var(--surface)}.warehouse-body #main{padding:28px;max-width:1800px;width:100%;margin:auto}.warehouse-body .page-heading{margin-bottom:20px;gap:16px;align-items:center}.warehouse-body .page-heading h1{font-size:28px}.warehouse-body .page-heading p{font-size:13px;margin-bottom:0}.warehouse-body .eyebrow{font-size:10px;letter-spacing:1.4px;margin-bottom:8px}.warehouse-body .heading-actions{flex-wrap:wrap;gap:8px}.warehouse-body .button{font-size:12px;padding:10px 14px;border-radius:9px}.warehouse-body .stats-grid{gap:12px}.warehouse-body .stat-card{padding:16px;border-radius:12px;min-width:0}.warehouse-body .stat-value{font-size:27px}.warehouse-body .stat-top{font-size:12px}.warehouse-body .stat-sub{font-size:11px;flex-wrap:wrap}.warehouse-body .panel,.warehouse-body .inventory-panel{border-radius:14px}.warehouse-body .panel-header{padding:20px;gap:12px;flex-wrap:wrap}.warehouse-body .overview-columns{gap:16px}.warehouse-body .app-footer{padding:20px 28px;font-size:10px;gap:10px;flex-wrap:wrap}
.inventory-summary{display:flex;gap:20px;flex-wrap:wrap;align-items:center;margin:0 0 18px;color:var(--muted);font-size:13px}.inventory-summary strong{color:var(--ink);font-size:16px}.inventory-summary>button{margin-left:auto;display:flex;gap:7px;align-items:center;font-size:12px}.inventory-toolbar{display:flex;gap:12px;align-items:center;padding:16px}.inventory-toolbar .search-box{max-width:none;flex:1;min-width:0}.inventory-toolbar input{min-height:44px;font-size:14px}.inventory-toolbar .barcode-search-button{height:44px;width:44px}.inventory-filter-box{border-top:1px solid var(--line)}.inventory-filter-box summary{cursor:pointer;font-size:12px;padding:13px 18px;color:var(--muted);min-height:44px}.inventory-filter-box .filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) auto;gap:12px;padding:0 16px 16px;align-items:end;border:0}.inventory-filter-box label{font-size:11px;color:var(--muted);min-width:0}.inventory-filter-box select{display:block;width:100%;max-width:none;min-height:42px;margin-top:5px;font-size:12px}.warehouse-body .stock-tabs{display:flex;flex-wrap:wrap;overflow:visible;gap:7px;min-height:0;padding:10px 16px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.warehouse-body .stock-tabs button{min-height:36px;padding:6px 10px;border:1px solid transparent;border-radius:7px;font-size:12px;white-space:normal}.warehouse-body .stock-tabs button.active{background:var(--mint);border-color:var(--line);color:var(--ink)}.warehouse-body .stock-tabs .tab-number{margin-left:5px}.inventory-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:14px;padding:16px}.inventory-slot{border:1px solid var(--line);border-radius:12px;background:var(--surface);min-width:0;overflow:hidden;transition:border-color .15s,box-shadow .15s}.inventory-slot:hover{border-color:var(--green);box-shadow:0 5px 20px #0001}.inventory-open{display:block;width:100%;padding:0;text-align:left;min-width:0}.inventory-image{position:relative;aspect-ratio:4/3;background:var(--bg);overflow:hidden}.inventory-image img{display:block;width:100%;height:100%;object-fit:contain;padding:10px}.inventory-quantity{position:absolute;top:10px;right:10px;display:flex;align-items:baseline;gap:4px;padding:5px 9px;border-radius:7px;background:var(--surface);box-shadow:0 2px 8px #0001;font-weight:700;font-size:19px}.inventory-quantity small{font-size:10px;font-weight:500;color:var(--muted)}.inventory-copy{padding:13px 12px 8px}.inventory-category{display:block;font-size:10px;color:var(--muted);margin-bottom:6px;overflow-wrap:anywhere}.inventory-copy h2{font-size:15px;line-height:1.4;margin:0 0 5px;letter-spacing:-.2px;overflow-wrap:anywhere}.inventory-copy .product-sku{font-size:11px;margin-bottom:10px;overflow-wrap:anywhere}.inventory-copy .location-tag{font-size:11px;max-width:100%;white-space:normal;overflow-wrap:anywhere}.inventory-slot-status{display:flex;justify-content:space-between;align-items:center;gap:6px;flex-wrap:wrap;padding:8px 12px;font-size:12px}.inventory-slot-status .status{font-size:10px;white-space:normal}.inventory-slot-actions{border-top:1px solid var(--line);display:flex;align-items:center;gap:4px;padding:4px 8px}.inventory-select{display:flex;gap:6px;align-items:center;margin-right:auto;font-size:10px;color:var(--muted);min-height:40px}.inventory-select input{min-height:18px!important;min-width:18px;width:18px;height:18px}.inventory-slot-actions .icon-button{min-width:40px;height:40px}.warehouse-body .table-footer{padding:14px 16px;gap:12px;flex-wrap:wrap}.warehouse-body .pagination{gap:7px;align-items:center;display:flex}.warehouse-body .pagination>span{font-size:12px}.warehouse-body .pagination button{min-width:40px;min-height:40px}
.portal-body .portal-header{height:82px;gap:26px;padding:0 4%;max-width:1600px}.portal-body .portal-container{padding:32px 4% 48px;max-width:1600px;margin:auto}.portal-body .admin-layout{grid-template-columns:184px minmax(0,1fr);gap:28px}.portal-body .admin-nav{position:sticky;top:20px;display:flex;flex-direction:column;overflow:visible;gap:4px;margin:0;padding:0;border:0}.portal-body .admin-nav a{min-height:40px;padding:10px;font-size:12px;white-space:normal;gap:8px}.portal-body .admin-nav .nav-separator{margin:8px 0}.portal-body .admin-main .portal-page-heading{margin-bottom:20px;gap:12px}.portal-body .admin-main .portal-page-heading h1{font:650 30px/1.2 system-ui,sans-serif;letter-spacing:-1px}.portal-body .admin-main .portal-page-heading p{font-size:13px;line-height:1.6}.portal-body .admin-main .portal-page-heading h1 br{display:none}.portal-body .admin-main .portal-filter{margin-bottom:20px;gap:10px;flex-wrap:wrap}.portal-body .admin-main .portal-filter select{max-width:100%;min-width:0;flex:1}.portal-body .admin-stats{gap:12px}.portal-body .admin-stat{display:flex;flex-direction:column;min-width:0;padding:18px;border-radius:12px;color:var(--portal-ink);border:1px solid var(--portal-line);background:var(--portal-panel)}.portal-body a.admin-stat:hover{border-color:var(--portal-accent);box-shadow:0 4px 18px #0001}.portal-body .admin-stat>span{font-size:12px}.portal-body .admin-stat strong{font:650 30px/1.25 system-ui,sans-serif;margin:10px 0}.portal-body .admin-stat small{font-size:11px;line-height:1.6}.portal-body .admin-stat .metric-link{font-size:11px;color:var(--portal-accent);margin-top:auto;padding-top:12px}.portal-body .admin-stat:focus-visible{outline:2px solid var(--portal-accent);outline-offset:3px}.portal-body .admin-table{width:100%;min-width:0;table-layout:fixed}.portal-body .admin-table :is(td,th){padding:13px 12px;overflow-wrap:anywhere;font-size:12px}.portal-body .table-scroll{max-width:100%;overflow:visible;border-radius:12px}.portal-body .admin-table a{color:var(--portal-accent);text-underline-offset:3px}.portal-body .admin-table a:hover{text-decoration:underline}.portal-body .users-table{table-layout:auto;min-width:0}.portal-body .users-summary{gap:8px;margin-bottom:16px}.portal-body .users-summary>span{padding:10px 14px}.portal-body .users-summary strong{font:650 22px system-ui,sans-serif}.portal-body .admin-main .availability-section{padding-bottom:20px}.portal-body .admin-main .section-heading h2{font:600 20px/1.3 system-ui,sans-serif}.portal-body .admin-main .record-card{padding:18px;border-radius:12px;min-width:0}.portal-body .record-card :is(p,h3){overflow-wrap:anywhere}.portal-body .record-actions{flex-shrink:0}.portal-body .calendar-layout{min-width:0}.portal-body .calendar-grid{min-width:0}.portal-body .calendar-cell{min-width:0}.portal-body .calendar-cell .availability-status{white-space:normal}.portal-body .portal-footer{padding:30px 4%}
.workspace-menu-toggle,.mobile-workspace-nav,.mobile-nav-heading{display:none}.workspace-menu-shade[hidden]{display:none}.workspace-menu-shade{position:fixed;inset:0;background:#08121bb3;z-index:80;backdrop-filter:blur(3px)}.warehouse-body :is(.team-table,.movement-table,.inventory-table){min-width:0;width:100%}.warehouse-body .table-wrap{max-width:100%;overflow-x:auto;scrollbar-width:thin}.warehouse-body .team-table :is(td,th){font-size:12px;overflow-wrap:anywhere}.warehouse-body .actor-tag{white-space:normal}.warehouse-body .team-tabs{gap:7px;flex-wrap:wrap}.warehouse-body .team-tabs button{padding:12px;font-size:12px}.warehouse-body .bulk-bar{gap:8px;flex-wrap:wrap}
body.has-workspace .dialog:not(.auth-dialog){max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);border-radius:16px}body.has-workspace .dialog:not(.auth-dialog)[open]{display:flex;flex-direction:column}body.has-workspace .dialog:not(.auth-dialog)>form{display:flex;flex-direction:column;min-height:0;max-height:inherit}body.has-workspace .dialog-content{overflow-y:auto;min-height:0;max-height:none;padding:22px}body.has-workspace .dialog-header{padding:18px 22px;flex-shrink:0}body.has-workspace .dialog-actions{padding:14px 22px;flex-wrap:wrap;gap:8px;flex-shrink:0}body.has-workspace .dialog .form-field{min-width:0}body.has-workspace .dialog :is(input,select,textarea){font-size:14px}.warehouse-body .detail-info{min-width:0}.warehouse-body .detail-facts dd{overflow-wrap:anywhere}
@media(max-height:740px) and (min-width:1001px){.warehouse-body .workspace-switch{display:none}.warehouse-body .sidebar{padding-top:16px}.warehouse-body .nav-caption{margin-top:18px}.warehouse-body .portal-back-links{margin-top:12px}.warehouse-body .profile{padding:10px 4px}}
@media(max-width:1200px){.portal-body .admin-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.warehouse-body #main{padding:24px}.warehouse-body .stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.warehouse-body .inventory-grid{grid-template-columns:repeat(auto-fill,minmax(180px,1fr))}}
@media(max-width:1000px){
 body.has-workspace{padding-bottom:calc(72px + env(safe-area-inset-bottom,0px))}.mobile-workspace-nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));position:fixed;inset:auto 0 0;z-index:45;padding:5px 8px calc(5px + env(safe-area-inset-bottom,0px));background:var(--surface,var(--portal-panel));border-top:1px solid var(--line,var(--portal-line));box-shadow:0 -6px 25px #00008}.mobile-workspace-nav :is(a,button){display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:54px;min-width:0;border-radius:10px;color:var(--muted,var(--portal-muted));font-size:11px}.mobile-workspace-nav :is(a,button).active{background:var(--mint,var(--portal-soft));color:var(--ink,var(--portal-ink))}.mobile-workspace-nav svg{width:22px;height:22px}.auth-pending .mobile-workspace-nav{visibility:hidden}
 .warehouse-body .app-shell{margin-left:0}.warehouse-body .sidebar{width:min(330px,90vw);transform:translateX(-105%);transition:transform .18s;z-index:70;box-shadow:10px 0 35px #0002;padding-bottom:12px}.warehouse-body .sidebar.open{transform:translateX(0)}.warehouse-body .sidebar-shade.open{display:block;position:fixed;inset:0;background:#08121bb3;z-index:60}.warehouse-body #navigation{display:grid;grid-template-columns:1fr 1fr;gap:4px;overflow:visible}.warehouse-body #navigation a{padding:10px 8px;min-height:50px;font-size:12px}.warehouse-body .mobile-menu{display:inline-flex}.warehouse-body .workspace-switch{margin-top:16px}.warehouse-body .nav-caption{margin-top:16px}.warehouse-body .topbar{padding:0 20px;height:60px}.warehouse-body .connection-pill{display:none}.warehouse-body .topbar-right{gap:8px}.warehouse-body .side-tip{display:none}.warehouse-body .sidebar-bottom{margin-top:20px}.warehouse-body .sidebar{overflow-y:auto;scrollbar-width:thin}.warehouse-body .overview-columns{grid-template-columns:1fr}
 .portal-body .admin-layout{display:block}.workspace-menu-toggle{display:flex;align-items:center;gap:10px;min-height:44px;margin:0 0 20px;padding:10px 14px;border:1px solid var(--portal-line);border-radius:9px;background:var(--portal-panel);width:100%;text-align:left;font-size:13px}.workspace-menu-toggle>small{margin-left:auto;color:var(--portal-muted);font-size:11px}.portal-body .admin-nav{position:fixed;inset:0 auto 0 0;width:min(340px,90vw);z-index:81;transform:translateX(-105%);visibility:hidden;transition:transform .18s;background:var(--portal-panel);padding:22px 18px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-content:start;gap:8px;overflow-y:auto;max-height:100dvh;border-right:1px solid var(--portal-line);scrollbar-width:thin}.admin-menu-open .admin-nav{transform:translateX(0);visibility:visible}.portal-body .admin-nav a{font-size:12px;min-height:52px;border:1px solid var(--portal-line);border-radius:8px;gap:4px}.portal-body .admin-nav a.active{background:var(--portal-soft)}.portal-body .admin-nav-caption,.portal-body .admin-nav .nav-separator{display:none}.mobile-nav-heading{display:flex;align-items:center;justify-content:space-between;grid-column:1/-1;margin-bottom:10px;font-weight:600}.portal-body .admin-main .portal-page-heading h1{font-size:28px}.portal-body .admin-main .portal-page-heading{align-items:start}.portal-body .portal-header{position:sticky;top:0;z-index:50;background:var(--portal-bg);height:auto;min-height:76px}.portal-body .portal-container{padding-top:24px}
}
@media(max-width:700px){
 .warehouse-body #main{padding:20px 14px}.warehouse-body .page-heading{align-items:start;gap:12px}.warehouse-body .page-heading h1{font-size:25px}.warehouse-body .page-heading p{font-size:12px;line-height:1.6}.warehouse-body .eyebrow{display:none}.warehouse-body .heading-actions .button{font-size:12px;padding:10px;min-height:44px}.warehouse-body .heading-actions{flex-shrink:0}.warehouse-body .inventory-summary{font-size:11px;gap:8px 14px;margin-bottom:16px}.inventory-summary strong{font-size:14px}.inventory-summary>button{font-size:11px;min-height:32px}.inventory-toolbar{padding:12px;gap:8px}.inventory-toolbar .view-toggle{display:none}.inventory-toolbar input{font-size:16px;padding-left:6px}.inventory-toolbar .search-box>svg{width:17px;margin-left:10px}.inventory-filter-box .filters{grid-template-columns:1fr 1fr;gap:10px;padding:0 12px 14px}.inventory-filter-box .filters label:last-of-type{grid-column:1/-1}.inventory-filter-box select{font-size:14px}.warehouse-body .stock-tabs{padding:8px 10px;gap:5px}.warehouse-body .stock-tabs button{font-size:10px;padding:6px 7px;min-height:36px}.warehouse-body .stock-tabs .tab-number{font-size:9px;margin-left:3px;padding:2px 4px}.warehouse-body .inventory-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:10px}.inventory-copy{padding:10px 9px 6px}.inventory-copy h2{font-size:14px}.inventory-copy .location-tag{padding:4px;font-size:10px}.inventory-slot-status{padding:6px 9px;font-size:11px;gap:5px}.inventory-slot-status .status{font-size:9px;padding:4px 6px}.inventory-slot-actions{padding:3px 5px;gap:0}.inventory-slot-actions .icon-button{width:40px;min-width:40px}.inventory-select span{display:none}.inventory-image img{padding:7px}.inventory-quantity{top:7px;right:7px;font-size:17px;padding:4px 7px}.inventory-category{font-size:9px}.inventory-summary>button svg{width:15px}.warehouse-body .stats-grid{gap:8px}.warehouse-body .stat-card{padding:13px}.warehouse-body .stat-value{font-size:24px}.warehouse-body .stat-sub{font-size:10px;line-height:1.5}.warehouse-body .stat-top{font-size:11px;gap:5px}.warehouse-body .stat-icon{display:none}.warehouse-body .topbar{padding:0 14px}.warehouse-body .breadcrumb-home,.warehouse-body .breadcrumb-divider,.warehouse-body #help-button{display:none}.warehouse-body .breadcrumb{gap:8px;min-width:0;font-size:13px}.warehouse-body .topbar-right{gap:4px}.warehouse-body .topbar-right .avatar{display:none}.warehouse-body .app-footer{padding:20px 14px}.warehouse-body .detail-layout{grid-template-columns:1fr;gap:20px}.warehouse-body .detail-main-photo{max-height:240px;object-fit:contain}.warehouse-body .cards-grid{grid-template-columns:1fr}.warehouse-body .entity-stats{gap:10px;flex-wrap:wrap}.warehouse-body .settings-columns{grid-template-columns:1fr}.warehouse-body .team-controls{padding:0 14px 14px}.warehouse-body .team-tabs{margin-bottom:16px}.warehouse-body .team-tabs button{min-height:44px;padding:10px}.warehouse-body .category-bar-row{grid-template-columns:100px minmax(0,1fr) auto;gap:8px}.warehouse-body .activity-item{padding:14px;gap:10px;flex-wrap:wrap}.warehouse-body .activity-item>div{min-width:0;flex:1}.warehouse-body .activity-time{margin-left:auto;font-size:10px}
 .portal-body .portal-header{padding:12px 16px 0;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 10px}.portal-body .portal-brand{min-width:0;font-size:22px}.portal-body .portal-header-actions{gap:8px}.portal-body .portal-account-button{max-width:120px;font-size:11px;padding:8px}.portal-body .portal-nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;width:100%;grid-column:1/-1;font-size:12px;justify-content:stretch}.portal-body .portal-nav a{display:flex;align-items:center;justify-content:center;min-height:44px}.portal-body .portal-nav a.active:after{left:20%;right:20%}.portal-body .portal-container{padding:20px 16px 32px}.portal-body .admin-main .portal-page-heading{gap:12px;flex-wrap:wrap;flex-direction:row}.portal-body .admin-main .portal-page-heading h1{font-size:25px}.portal-body .admin-main .portal-page-heading p{font-size:12px}.portal-body .admin-main .portal-page-actions .button{font-size:11px;padding:10px;min-height:44px}.portal-body .admin-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-bottom:24px}.portal-body .admin-stat{padding:13px}.portal-body .admin-stat strong{font-size:28px;margin:8px 0}.portal-body .admin-stat .metric-link{font-size:10px;padding-top:8px}.portal-body .admin-stat>span{font-size:11px}.portal-body .admin-stat small{font-size:10px}.portal-body .admin-main .availability-grid{gap:8px}.portal-body .availability-card{padding:13px}.portal-body .admin-main .record-card{padding:16px;flex-direction:column;gap:12px}.portal-body .record-actions{width:100%;flex-wrap:wrap}.portal-body .record-actions :is(button,select){min-height:44px}.portal-body .calendar-layout{grid-template-columns:1fr}.portal-body .calendar-header{flex-wrap:wrap;gap:12px}.portal-body .calendar-header h2{font-size:20px}.portal-body .calendar-cell{min-height:76px}.portal-body .calendar-cell .availability-status{font-size:8px}.portal-body .calendar-weekdays span{font-size:10px}.portal-body .calendar-aside{display:block}.portal-body .admin-main .portal-filter{gap:8px}.portal-body .admin-main .portal-filter input{flex-basis:100%;width:100%}.portal-body .admin-main .portal-filter select{font-size:13px;min-height:44px}.portal-body .users-summary>span{font-size:10px;white-space:normal;padding:10px}.portal-body .portal-footer{padding:24px 16px}.portal-body .portal-footer>div{gap:12px}.portal-body .account-layout{grid-template-columns:1fr}.portal-body .service-layout{grid-template-columns:1fr}.portal-body .shop-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.portal-body .shop-card-copy{padding:12px}.portal-body .shop-card h2{font-size:16px}.portal-body .shop-card .shop-price{font-size:19px}.portal-body .shop-card-bottom{flex-wrap:wrap;gap:10px}.portal-body .shop-card-bottom .button{width:100%;min-height:44px;font-size:11px}
 body.has-workspace .dialog:not(.auth-dialog){width:calc(100vw - 16px);max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px);margin:auto;border-radius:14px}body.has-workspace .dialog-content{padding:16px}body.has-workspace .dialog-header{padding:16px}body.has-workspace .dialog-actions{padding:12px 16px}body.has-workspace .dialog-actions .button{flex:1;justify-content:center;font-size:12px;white-space:normal}body.has-workspace .dialog .form-grid{grid-template-columns:1fr}body.has-workspace .dialog .span-2{grid-column:1}body.has-workspace .dialog :is(input,select,textarea){font-size:16px;min-height:44px}.warehouse-body .calculator-toggle{bottom:84px}.warehouse-body .calculator-panel{bottom:calc(82px + env(safe-area-inset-bottom,0px));max-height:calc(100dvh - 110px)}
}
@media(max-width:370px){.warehouse-body .page-heading{flex-wrap:wrap}.warehouse-body .heading-actions{width:100%}.warehouse-body .heading-actions .button{width:100%;justify-content:center}.inventory-summary>button{margin-left:0}.warehouse-body .stock-tabs{gap:4px}.warehouse-body .stock-tabs button{padding:6px;font-size:10px}.warehouse-body .stock-tabs .tab-number{display:none}.portal-body .shop-grid{grid-template-columns:1fr}.portal-body .portal-brand small{font-size:8px}.portal-body .portal-account-button{max-width:105px}.portal-body .admin-stat{padding:11px}}
@media(prefers-reduced-motion:reduce){.inventory-slot,.warehouse-body .sidebar,.portal-body .admin-nav{transition:none}}
.warehouse-body .calculator-dock{top:auto;bottom:22px;right:14px;transform:none;flex-direction:row-reverse;align-items:flex-end;gap:8px}.warehouse-body .calculator-tab{min-height:44px;width:auto;flex-direction:row;padding:10px 12px;gap:8px;border:1px solid #4c555f;border-radius:25px}.warehouse-body .calculator-tab span{writing-mode:horizontal-tb;font-size:11px}.warehouse-body .calculator-panel{border:1px solid #4c555f;border-radius:12px;width:min(290px,calc(100vw - 80px))}
@media(max-width:1000px){body.admin-menu-open,body.warehouse-menu-open{overflow:hidden}.warehouse-body .sidebar{visibility:hidden}.warehouse-body .sidebar.open{visibility:visible}.warehouse-body .calculator-dock{bottom:calc(82px + env(safe-area-inset-bottom,0px));right:10px}.warehouse-body .calculator-tab{width:44px;height:44px;padding:10px;justify-content:center}.warehouse-body .calculator-tab span{display:none}.warehouse-body .calculator-panel{max-height:calc(100dvh - 120px);overflow:auto}}
.inventory-slot{display:flex;flex-direction:column}.inventory-open{flex:1}.inventory-copy h2{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:42px}.inventory-toolbar .search-box input{padding-left:36px;padding-right:48px}
@media(max-width:700px){.warehouse-body .page-heading{flex-direction:row}.warehouse-body .page-heading>div:first-child{min-width:0;flex:1}.warehouse-body .stock-tabs{display:flex;flex-wrap:wrap;justify-content:space-between;gap:5px}.warehouse-body .stock-tabs button{font-size:10px;padding:6px 7px;min-height:40px;white-space:nowrap;overflow-wrap:normal;word-break:normal;flex-shrink:0}.warehouse-body .stock-tabs .tab-number{display:none}.inventory-copy h2{min-height:39px}.warehouse-body .inventory-summary{gap:8px 12px}.inventory-toolbar .search-box input{padding-left:34px;padding-right:46px}}

@media(min-width:371px) and (max-width:700px){.warehouse-body .heading-actions{width:auto;flex:0 0 auto}.warehouse-body .heading-actions .button{width:auto}.warehouse-body .page-heading>div:first-child{flex:1 1 0}}

@media(max-width:700px){.warehouse-body .page-heading{flex-direction:column;align-items:stretch}.warehouse-body .page-heading>div:first-child{flex:initial}.warehouse-body .heading-actions{width:100%;flex-wrap:wrap}.warehouse-body .heading-actions .button{flex:1}.warehouse-body .page-heading:has(+.inventory-summary){flex-direction:row;align-items:start}.warehouse-body .page-heading:has(+.inventory-summary)>div:first-child{flex:1 1 0}.warehouse-body .page-heading:has(+.inventory-summary) .heading-actions{width:auto;flex:0 0 auto}.warehouse-body .page-heading:has(+.inventory-summary) .button{flex:initial}.inventory-toolbar .search-box>svg{left:10px;margin-left:0}}
@media(max-width:370px){.warehouse-body .page-heading:has(+.inventory-summary){flex-direction:column}.warehouse-body .page-heading:has(+.inventory-summary) .heading-actions{width:100%}.warehouse-body .page-heading:has(+.inventory-summary) .button{width:100%}}

@media(max-width:370px){.warehouse-body .stock-tabs button{font-size:9px;white-space:nowrap;padding:6px 1px}}

@media(max-width:1000px){
 body.has-workspace :is(.table-wrap,.table-scroll){overflow:visible}.has-workspace table.responsive-table,.has-workspace table.responsive-table tbody{display:block;width:100%;min-width:0;table-layout:auto}.has-workspace table.responsive-table thead{display:none}.has-workspace table.responsive-table tbody tr{display:block;border:1px solid var(--line,var(--portal-line));border-radius:10px;margin:10px;padding:12px;background:var(--surface,var(--portal-panel));width:auto}.has-workspace table.responsive-table tbody td{display:grid;grid-template-columns:minmax(75px,.45fr) minmax(0,1fr);gap:12px;padding:8px 0;border:0;border-bottom:1px solid var(--line,var(--portal-line));width:auto;max-width:none!important;white-space:normal;font-size:12px;line-height:1.65;overflow-wrap:anywhere;align-items:start;text-align:left;min-width:0}.has-workspace table.responsive-table tbody td:last-child{border:0}.has-workspace table.responsive-table tbody td::before{content:attr(data-label);font-size:9px;font-weight:650;letter-spacing:.4px;color:var(--muted,var(--portal-muted));text-transform:uppercase;padding-top:3px}.has-workspace table.responsive-table td>*{min-width:0;max-width:100%}.has-workspace table.responsive-table td .nowrap{white-space:normal}.has-workspace table.responsive-table .audit-changes{max-width:none;font-size:12px}.has-workspace table.responsive-table .actor-tag{font-size:12px;white-space:normal}.has-workspace table.responsive-table .user-name{flex-wrap:wrap;gap:7px}.has-workspace table.responsive-table .user-name strong{font-size:12px}.has-workspace table.responsive-table .user-name small{overflow-wrap:anywhere}.has-workspace .responsive-table .permission-badge{font-size:9px;white-space:normal}
}

@media(min-width:701px) and (max-width:1000px){.warehouse-body .page-heading{flex-direction:column;align-items:stretch;text-align:left}.warehouse-body .page-heading h1{text-align:left}.warehouse-body .heading-actions{width:100%}.warehouse-body .page-heading:has(+.inventory-summary){flex-direction:row;align-items:center}.warehouse-body .page-heading:has(+.inventory-summary)>div:first-child{min-width:0;flex:1}.warehouse-body .page-heading:has(+.inventory-summary) .heading-actions{width:auto;flex:0 0 auto}}

.portal-body .portal-page-heading>div{min-width:0;max-width:100%}.portal-body .portal-page-heading h1{hyphens:auto}
@media(max-width:700px){.portal-body .portal-page-heading h1{font-size:clamp(28px,8vw,42px);line-height:1.18}.portal-body .admin-main .portal-page-heading h1{font-size:25px}}

@media(max-width:700px){.portal-body .portal-filter{flex-wrap:wrap;gap:8px}.portal-body .portal-filter input{flex-basis:100%;width:100%;font-size:16px}.portal-body .portal-filter select{min-width:0;max-width:100%;flex:1;font-size:14px}}

/* Keep short stock labels whole; move complete controls when space is tight. */
.warehouse-body .stock-tabs button,.warehouse-body .inventory-slot-status .status{white-space:nowrap;overflow-wrap:normal;word-break:normal;flex-shrink:0}
.warehouse-navigation-scroll{flex:1;min-height:0;overflow-y:auto;scrollbar-width:thin;overscroll-behavior:contain;padding-bottom:8px}.warehouse-body .warehouse-navigation-scroll #navigation{overflow:visible}.warehouse-admin-section{border-top:1px solid var(--line);margin-top:10px;padding-top:8px}.warehouse-admin-section[hidden]{display:none}.warehouse-admin-section>summary{display:flex;align-items:center;gap:10px;cursor:pointer;padding:12px;font-size:12px;font-weight:600;list-style:none;border-radius:7px}.warehouse-admin-section>summary::-webkit-details-marker{display:none}.warehouse-admin-section>summary:after{content:'⌄';margin-left:auto}.warehouse-admin-section[open]>summary:after{content:'⌃'}.warehouse-admin-section>summary:hover{background:var(--mint)}.warehouse-admin-section nav{padding:3px 0 0}.warehouse-admin-section nav a{min-height:38px;padding:9px 12px;font-size:11px;gap:8px;white-space:normal;overflow-wrap:normal}.warehouse-admin-section nav a>span{margin-left:auto;color:var(--muted)}.warehouse-body .warehouse-sale-dialog{width:min(620px,calc(100vw - 24px))}.warehouse-sale-dialog .calendar-note{font-size:12px;line-height:1.7;color:var(--muted)}
@media(max-width:1000px){.warehouse-body .warehouse-navigation-scroll{flex:none;overflow:visible}.warehouse-admin-section nav{display:grid;grid-template-columns:1fr 1fr;gap:4px}.warehouse-admin-section nav a{min-height:44px;padding:10px 8px}}
