.scope-label{font-size:15px;font-weight:600;color:#284c70}.role-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.role-choices button{min-height:72px;text-align:left}.role-choices small{display:block;margin-top:5px}.role-warehouse{height:100%;min-height:0;display:flex;flex-direction:column;gap:8px}.role-body{flex:1;min-height:0;overflow:auto}.role-tools{flex-shrink:0}.role-body .wh-workspace{height:100%}.role-body .panel .table-wrap{max-height:48vh;overflow:auto}.role-body input[type=number],.pc-edit-lines input[type=number],.wh-quantity input{min-width:100px;width:110px}.login-person{flex-wrap:wrap;gap:8px;align-items:center;display:flex}.page-head{flex-wrap:wrap;gap:8px}.role-choices [aria-pressed=true]{border:2px solid #1763ac;background:#eaf3ff}.audit-details{max-height:60vh;overflow:auto}.audit-details pre{white-space:pre-wrap;word-break:break-word} .audit-scroll{overflow:auto;max-height:62vh}
@media(max-width:700px){.app-shell[data-role=库管]{display:flex;flex-direction:column;height:100dvh}.app-shell[data-role=库管] .workspace{height:100%;min-height:0;overflow:hidden}.app-shell[data-role=库管] .topbar{height:auto;padding:8px;flex-wrap:wrap}.app-shell[data-role=库管] .topbar>span:first-child{display:none}.app-shell[data-role=库管] .page-head .toolbar{display:none}.app-shell[data-role=库管] .page-head{padding:8px}.app-shell[data-role=库管] .page-head h1{font-size:22px}.app-shell[data-role=库管] #page{overflow:auto}.role-choices{grid-template-columns:1fr}.role-tools button{padding:10px;font-size:17px}.scope-label{font-size:14px}}

/* Daily work: dense lists inside a fixed viewport, readable primary actions. */
.owner-home{display:flex;flex-direction:column;gap:10px;min-height:0;height:100%;overflow:hidden}.owner-home>.page-scroll{flex:1;min-height:160px;overflow:auto}.owner-task-cards{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}.owner-task-cards button{display:flex;flex-direction:column;align-items:flex-start;padding:10px 12px;text-align:left;min-height:78px}.owner-task-cards button[aria-pressed=true]{border:2px solid #1469be;background:#edf5ff}.owner-task-cards strong{font-size:28px}.owner-task-cards small{font-size:14px;margin-left:4px}.owner-summary{display:flex;flex-wrap:wrap;gap:8px 18px;padding:8px 12px;background:#fff;border:1px solid #d9e1ec;border-radius:6px}.owner-summary small{width:100%;color:#52647d}.order-two-status{display:grid;grid-template-columns:1fr 1fr;gap:10px;background:#edf4fc;padding:12px;border-radius:8px}.order-primary-actions{padding:12px 0;gap:8px;flex-wrap:wrap}.order-report{display:flex;justify-content:space-between;align-items:center;padding:10px;border-bottom:1px solid #d8e2ef;gap:12px}.order-report small{display:block}.order-site{color:#51627a}.wh-check-warning{font-size:21px!important;font-weight:800;color:#bd2020;background:#fff1ef;border:2px solid #d2392d;padding:12px;border-radius:8px}.wh-pick-fill button{font-size:21px;min-height:52px;padding:10px 24px}.wh-verify-quantity{font-size:20px}.order-edit-embedded{width:min(1100px,85vw);height:65vh;overflow:auto}.owner-home table td{padding:9px 10px;vertical-align:top}.owner-home table thead{position:sticky;top:0;background:#edf3fa;z-index:1}
@media(max-width:850px){.owner-task-cards{grid-template-columns:repeat(3,1fr)}.order-two-status{grid-template-columns:1fr}.owner-home{height:calc(100dvh - 230px);min-height:480px}.wh-check-warning{font-size:19px!important}.order-edit-embedded{width:85vw}}

@media(min-width:761px){.app-shell:has(.owner-home){height:100dvh;overflow:hidden}.workspace:has(.owner-home){display:flex;flex-direction:column;min-height:0}.workspace:has(.owner-home)>.topbar,.workspace:has(.owner-home)>.sync-state,.workspace:has(.owner-home)>.page-head{flex-shrink:0}.workspace:has(.owner-home)>#page{flex:1;min-height:0;overflow:hidden}.owner-home{height:min(100%,var(--frame))}.owner-home>.page-scroll{min-height:0}.owner-home table td{padding:7px 9px}}
dialog:has(.order-edit-embedded){width:min(1180px,96vw)}
.keeper-notice{flex-shrink:0;display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 14px;background:#fff3d7;border:1px solid #e6b858;border-radius:8px;font-size:19px}.keeper-notice button{font-size:18px;min-height:42px}.count-difference{color:#b52020;font-weight:800;white-space:nowrap}.location-guide{padding:12px;background:#eef5f2;border:1px solid #cadbd2;margin:8px 0}.location-guide p{margin:5px 0}.warehouse-rights td,.warehouse-rights th{white-space:nowrap}.warehouse-rights input{width:22px;height:22px}


.nav-settings{margin-top:14px;border-top:1px solid #ffffff30;padding-top:8px}.nav-settings>summary{padding:12px 10px;color:#dbeae2;font-size:15px;cursor:pointer}.mover-guide{font-size:21px;line-height:1.8}.mover-guide li{margin:12px 0}

/* A closed settings menu must not squeeze into a vertical strip on phones. */
@media(max-width:760px){
 .sidebar nav{align-items:flex-start}
 .sidebar nav>button{min-height:44px}
 .sidebar nav>.nav-settings{flex-shrink:0;margin:0;padding:0;border:0}
 .sidebar nav>.nav-settings>summary{white-space:nowrap;padding:11px 10px;min-height:44px;font-size:14px}
 .owner-task-cards{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
 .owner-task-cards button{min-width:0;min-height:80px;padding:6px 8px;white-space:normal;gap:3px;justify-content:space-between}
 .owner-task-cards button>span{font-size:13px;line-height:1.3;overflow-wrap:anywhere}
 .owner-task-cards strong{font-size:26px;line-height:1.1}
}

/* Counting is a compact comparison list; extra bag inputs belong to that SKU only. */
.keeper-count-table{table-layout:fixed;min-width:0}
.keeper-count-table th:first-child{width:38%}
.keeper-count-table td:first-child{white-space:normal;overflow-wrap:anywhere}
.keeper-count-table th:nth-child(2){width:18%}
.keeper-count-table th:nth-child(3){width:26%}
.count-product strong{font-size:18px;line-height:1.35}
.count-mobile-book{display:none}
.count-actual .count-unit{display:inline-flex;gap:4px;align-items:center;max-width:100%}
.count-actual .count-unit input{width:98px;min-width:0;max-width:100%;padding:6px;font-size:20px;min-height:42px;font-variant-numeric:tabular-nums}
.count-unit>span{font-size:14px;color:#50675c}
.count-actual .count-add-bags{font-size:14px;padding:6px;min-height:38px;margin:0 4px;border:0;color:#18654d;background:transparent}
.count-actual .count-bags{margin-left:6px}
.keeper-count-table [data-delta]{font-size:16px;white-space:normal;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.count-hint{font-size:13px;color:#53675b;margin:6px 0}
.count-footer{background:white;padding-top:6px}
.count-note>summary,.count-history>summary{cursor:pointer;font-size:13px;color:#52685c;padding:4px 0}
.count-note .field{margin:3px 0}
.count-footer p:empty{display:none}
.count-footer p{margin:4px 0;padding:0;font-size:13px}
.count-submit{display:flex;align-items:stretch;gap:8px;margin-top:4px}
.count-submit .wh-verify-quantity{display:flex;flex:1;justify-content:flex-start;gap:6px;padding:6px 8px;border-width:1px}
.count-submit .wh-verify-quantity>input{width:22px;height:22px;flex-shrink:0}
.count-submit .wh-verify-quantity>span{font-size:16px;line-height:1.3}
.count-submit button{min-height:44px;font-size:16px;font-weight:650}
.count-history>div{max-height:35dvh;overflow:auto}
.count-history p{margin:4px 0}

@media(max-width:760px){
 /* Apply by working page, so the owner's narrow preview follows the same layout. */
 .app-shell:has(.role-warehouse){height:100dvh;min-height:0;display:flex;flex-direction:column;overflow:hidden}
 .app-shell:has(.role-warehouse) .sidebar{flex-shrink:0;padding:4px 8px}
 .app-shell:has(.role-warehouse) .brand{display:none}
 .app-shell:has(.role-warehouse) .sidebar nav{align-items:center}
 .app-shell:has(.role-warehouse) .sidebar nav button{min-height:40px;padding:6px 9px}
 .app-shell:has(.role-warehouse) .nav-settings{border:0;margin:0;padding:0;flex-shrink:0}
 .app-shell:has(.role-warehouse) .nav-settings>summary{font-size:13px;padding:9px}
 .app-shell:has(.role-warehouse) .nav-settings[open]{position:relative}
 .app-shell:has(.role-warehouse) .workspace{display:flex;flex-direction:column;flex:1;height:auto;min-height:0;overflow:hidden;padding:0 8px 6px}
 .app-shell:has(.role-warehouse) .topbar{flex-shrink:0;padding:4px 0;min-height:32px;gap:3px}
 .app-shell:has(.role-warehouse) .topbar button,.app-shell:has(.role-warehouse) .topbar .button{padding:4px 7px}
 .app-shell:has(.role-warehouse) .sync-state{flex-shrink:0;padding:3px 6px;min-height:0;font-size:11px}
 .app-shell:has(.role-warehouse) .sync-state button{padding:2px 8px}
 .app-shell:has(.role-warehouse) .page-head{flex-shrink:0;padding:0;margin:5px 0;gap:6px}
 .app-shell:has(.role-warehouse) .page-head .scope-label{font-size:13px;max-width:70%}
 .app-shell:has(.role-warehouse) .page-head select{padding:5px 7px;max-width:100%}
 .app-shell:has(.role-warehouse) .page-head .toolbar{display:none}
 .app-shell:has(.role-warehouse) #page{flex:1;min-height:0;overflow:hidden}
 .role-warehouse{gap:5px}
 .keeper-notice{padding:4px 9px;font-size:17px;gap:6px}
 .keeper-notice button{font-size:16px;min-height:38px;padding:5px 9px}
 .role-tools{gap:5px;flex-wrap:nowrap}
 .role-tools button{flex:1;min-width:0;min-height:42px;padding:6px 5px;font-size:16px}
 .role-tools button[aria-pressed=true]{background:#e4f0e9;border-color:#8bb39d;color:#174d35}
 .role-body .wh-workspace{min-height:0}
 .role-body:has(.keeper-count-panel){overflow:hidden}
 .keeper-count-panel{height:100%;min-height:0;display:flex;flex-direction:column;padding:6px!important}
 .keeper-count-panel .ledger-filter{display:flex;flex-wrap:nowrap;gap:5px;flex-shrink:0}
 .keeper-count-panel .ledger-filter label{display:flex;align-items:center;gap:4px;min-width:0;flex:1;font-size:13px;white-space:nowrap}
 .keeper-count-panel .ledger-filter select{min-width:0;flex:1;width:100%;font-size:14px;padding:7px 5px;min-height:40px}
 .keeper-count-panel .ledger-filter>input{min-width:0;width:40%;font-size:15px;padding:7px;min-height:40px}
 .keeper-count-panel [data-ledger],.keeper-count-panel [data-count]{display:flex;flex-direction:column;flex:1;min-height:0}
 .keeper-count-panel .count-scroll{flex:1;min-height:0;max-height:none!important;overflow:auto;overscroll-behavior:contain}
 .keeper-count-panel .count-footer,.count-history,.count-hint{flex-shrink:0}
 .keeper-count-table,.keeper-count-table thead,.keeper-count-table tbody{display:block;width:100%;min-width:0!important}
 .keeper-count-table thead{position:sticky;top:0;z-index:2;background:#edf3ef}
 .keeper-count-table tr{display:grid;grid-template-columns:minmax(0,1fr) 98px 68px;gap:0;align-items:center;border-bottom:1px solid #dbe4de}
 .keeper-count-table th,.keeper-count-table td{position:static;width:auto!important;min-width:0;padding:var(--row-pad) 5px;border:0}
 .keeper-count-table .count-book{display:none}
 .keeper-count-table th{font-size:12px;padding-block:4px;background:#edf3ef}
 .keeper-count-table .count-product{align-self:center}
 .count-product strong{font-size:20px;line-height:1.3}
 .count-mobile-book{display:block;font-size:15px;color:#526c5d;margin-top:3px;line-height:1.35;font-variant-numeric:tabular-nums}
 .count-actual .count-unit{display:flex;gap:3px}
 .count-actual .count-unit input{width:72px;flex:1;min-width:0;font-size:20px;min-height:42px;padding:6px 4px;appearance:textfield;-moz-appearance:textfield}
 .count-actual input::-webkit-inner-spin-button,.count-actual input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
 .count-actual .count-add-bags{display:block;margin:0;padding:1px 3px;min-height:28px;font-size:13px}
 .count-actual .count-bags{margin:3px 0 0}
 .keeper-count-table [data-delta]{font-size:16px;line-height:1.35}
 .count-submit{gap:5px}
 .count-submit .wh-verify-quantity{padding:5px;gap:5px}
 .count-submit .wh-verify-quantity>span{font-size:15px}
 .count-submit button{padding:6px 9px;font-size:15px}
 /* Expanding old counts must not squeeze the current count list away. */
 .role-body:has(.count-history[open]){overflow:auto}
 .keeper-count-panel:has(.count-history[open]){height:auto;min-height:100%}
 .keeper-count-panel:has(.count-history[open]) .count-scroll{flex:none;height:40dvh}
}
@media(max-width:760px) and (max-height:650px){
 /* A short window needs a scrollable work panel to keep inputs and submit reachable. */
 .role-body:has(.keeper-count-panel){overflow:auto}
 .keeper-count-panel{height:auto;min-height:100%}
 .keeper-count-panel [data-ledger],.keeper-count-panel [data-count]{flex:none}
 .keeper-count-panel .count-scroll{flex:none;height:40dvh;min-height:150px}
}

/* Main warehouse work is prominent; categories underneath are smaller filters. */
.role-tools{padding:5px;background:#e7efe9;border:1px solid #cddcd2;border-radius:8px;gap:6px}
.role-tools button{font-size:17px;font-weight:700;min-height:44px;padding:8px 16px;border-color:#b7cbbf;color:#315846}
.role-tools button[aria-pressed=true]{background:#18654d;color:#fff;border-color:#18654d;box-shadow:0 1px 3px #193f3320}
.role-body .wh-subnav{gap:6px;justify-content:flex-start;flex-wrap:nowrap;padding:3px 0 6px;border-bottom:1px solid #dbe4de;flex-shrink:0}
.wh-subnav-label{font-size:12px;color:#697b71;flex-shrink:0}
.role-body .wh-subnav>.tabs{flex:1;min-width:0;gap:3px}
.role-body .wh-subnav>.tabs button,.role-body .pc-page>.toolbar .tabs button{font-size:13px;font-weight:500;min-height:34px;padding:4px 9px;background:transparent;border-color:transparent;border-radius:5px;color:#586b60}
.role-body .wh-subnav>.tabs button[aria-pressed=true],.role-body .pc-page>.toolbar .tabs button[aria-pressed=true]{background:#e4eee7;color:#18593b;border-color:#bad0c1;font-weight:700}
.role-body .wh-subnav>small{display:none}
.order-detail .order-site{font-size:13px;margin:6px 0}
.order-detail .order-two-status{padding:9px 10px;gap:8px;font-size:14px}
.order-detail .order-primary-actions{padding:10px 0;gap:6px}
.order-detail .order-primary-actions button{font-size:14px;padding:7px 10px;min-height:38px}
.order-detail [data-detail-order]>p{margin:6px 0;font-size:14px}
.order-record-heading{font-size:15px;margin:12px 0 5px;padding-top:10px;border-top:1px solid #d9e3dc}
.order-detail .business-timeline{list-style:none;margin:0;padding:0 0 0 10px;border-left:2px solid #d7e3db}
.order-detail .business-timeline li{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 8px;padding:5px 0;border-bottom:1px solid #edf1ee;font-size:13px}
.order-detail .business-timeline time{font-size:12px;color:#657a6c}
.order-detail .business-timeline p{flex-basis:100%;margin:0;color:#4d6256;overflow-wrap:anywhere;line-height:1.45}
.owner-messages{display:inline-flex;align-items:center;gap:5px;white-space:nowrap}
.message-count{display:inline-grid;place-items:center;min-width:21px;min-height:21px;padding:0 5px;border-radius:12px;background:#e7ece9;color:#4d6256;font-variant-numeric:tabular-nums}
.message-count.has-new{background:#b83324;color:white}
[data-message-center]{width:100%;min-width:0}
dialog:has([data-message-center]){width:min(740px,calc(100vw - 24px));max-width:calc(100vw - 24px)}
.message-item>*{min-width:0;max-width:100%}
.message-tabs{gap:6px}.message-tabs button[aria-pressed=true]{background:#e4eee7;border-color:#9ebfac;color:#18593b;font-weight:bold}
.message-help{font-size:13px;margin:8px 0;line-height:1.5}
.message-list{display:flex;flex-direction:column;gap:5px;max-height:62dvh;overflow:auto}
.message-item{display:flex;flex-direction:column;align-items:stretch;gap:4px;text-align:left;padding:10px 12px;border:1px solid #dbe4de;border-radius:7px;font-size:14px;white-space:normal}
.message-item.is-unread{border-left:4px solid #b83324;background:#fff9f4}
.message-item-top,.message-item-bottom{display:flex;justify-content:space-between;align-items:baseline;gap:8px;flex-wrap:wrap}
.message-item-top strong{font-size:16px}.message-state{font-size:12px;color:#6c776f}.is-unread .message-state{color:#ad3326;font-weight:bold}
.message-summary{font-weight:700;color:#254c3a}.message-note{color:#506257;line-height:1.45;overflow-wrap:anywhere}
.message-item-bottom{font-size:12px;color:#6a7b70}
.warehouse-mode{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:7px 10px;background:#edf2ef;border:1px solid #d1ded5;border-radius:7px;flex-shrink:0}
.warehouse-mode small{display:block;font-size:12px;color:#607568}.warehouse-mode button{min-height:38px;font-size:14px;padding:5px 10px}
.warehouse-mode.is-proxy,.warehouse-proxy-notice{background:#fff4dc;border:1px solid #d9a04b;color:#69451c}
.warehouse-proxy-notice{display:flex;flex-direction:column;gap:4px;padding:9px 10px;border-radius:6px;margin:6px 0}
.warehouse-proxy-notice span{font-size:14px;overflow-wrap:anywhere}.warehouse-proxy-notice small{font-size:12px}
.warehouse-proxy-check{display:flex;align-items:center;gap:8px;font-weight:700;font-size:16px;color:#9c3321;padding:8px 0}
.warehouse-proxy-check input{width:23px;height:23px;flex-shrink:0}
.order-warehouse-proxy{border-top:1px solid #d5dfd8;padding-top:8px;margin-top:6px}
@media(max-width:760px){
 .role-tools{padding:4px;gap:4px}
 .role-tools button{font-size:16px;padding:6px 4px;min-height:42px}
 .role-body .wh-subnav>.tabs{flex-wrap:wrap}
 .role-body .wh-subnav>.tabs button{font-size:14px;padding:4px 8px;min-height:34px}
 .order-detail-lines{min-width:0;table-layout:fixed;font-size:13px}
 .order-detail-lines th,.order-detail-lines td{padding:6px 4px;white-space:normal!important;overflow-wrap:anywhere}
 .order-detail-lines th:first-child{width:36%}
 .order-detail-lines th:nth-child(2){width:14%}
 .order-detail-lines td strong{font-size:16px}
 .order-detail .order-two-status{grid-template-columns:1fr;gap:4px}
 .order-detail .order-primary-actions button{font-size:16px;min-height:42px}
}

.warehouse-proxy-entry{border-top:1px solid #d5dfd8;padding-top:8px;margin-top:8px}
.warehouse-proxy-entry>summary{cursor:pointer;color:#695438;font-size:14px;font-weight:600;padding:6px 0}
.order-physical-actions{padding:6px 0;gap:6px}

.message-pending{font-size:14px;color:#a3491c;font-weight:700;white-space:normal}
.owner-mobile-orders{display:none}
@media(max-width:760px){
 .owner-home .owner-desktop-orders{display:none}
 .owner-home .owner-mobile-orders{display:flex;flex-direction:column;gap:5px}
 .owner-order-card{border:1px solid #d0ded5;background:#fff;border-radius:6px;padding:9px;min-width:0}
 .owner-order-card.flow-exception{border-left:4px solid #ba3926;background:#fff6ed}
 .owner-order-identity{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 8px;align-items:baseline}
 .owner-order-identity>strong{font-size:18px;line-height:1.3;overflow-wrap:anywhere}
 .owner-order-identity>span{font-size:12px;max-width:110px;overflow-wrap:anywhere;color:#516b5c;text-align:right}
 .owner-order-identity>small{grid-column:1/-1;font-size:12px;color:#65776c;overflow-wrap:anywhere}
 .owner-order-work{display:flex;align-items:center;gap:8px;margin-top:5px}
 .owner-order-status{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px;font-size:14px;line-height:1.35;overflow-wrap:anywhere}
 .owner-order-status strong{font-size:21px;font-variant-numeric:tabular-nums}
 .owner-order-work>button{flex-shrink:0;min-height:46px;padding:8px 12px;font-size:17px}
 .owner-goods-status{font-weight:650;color:#345c46}
 .owner-goods-status.flow-alert{color:#a43020}
 .owner-home [data-home-list]{border:0;background:transparent;min-width:0}
 .owner-home>.toolbar>span{font-size:12px}
 .owner-home [data-home-search]{width:100%;min-width:0}
}
.owner-home-more>details>summary{cursor:pointer;padding:7px 10px;font-size:14px}
.owner-home-more>details[open]{flex-basis:100%;padding:5px;background:#eef4f0;border-radius:6px}
@media(max-width:760px){
 .app-shell:has(.owner-home){height:100dvh;min-height:0;display:flex;flex-direction:column;overflow:hidden}
 .app-shell:has(.owner-home) .sidebar{padding:4px 8px;flex-shrink:0}
 .app-shell:has(.owner-home) .brand{display:none}
 .app-shell:has(.owner-home) .workspace{display:flex;flex-direction:column;flex:1;min-height:0;padding:0 8px 6px;overflow:hidden}
 .app-shell:has(.owner-home) .topbar{min-height:0;padding:5px 0;gap:4px;flex-shrink:0}
 .app-shell:has(.owner-home) .sync-state{padding:4px 7px;flex-shrink:0;font-size:12px}
 .app-shell:has(.owner-home) .sync-state button{font-size:12px;min-height:30px;padding:4px 7px}
 .app-shell:has(.owner-home) .page-head{margin:5px 0;align-items:center;flex-shrink:0}
 .app-shell:has(.owner-home) .page-head h1{font-size:20px}
 .app-shell:has(.owner-home) .page-head .toolbar{display:none}
 .app-shell:has(.owner-home) #page{flex:1;min-height:0;overflow:hidden}
 #page>.owner-home{height:100%;min-height:0;gap:6px}
 .owner-home>.owner-home-controls{gap:5px;flex-wrap:nowrap}
 .owner-home-controls>label{display:flex;gap:4px;align-items:center;min-width:0;font-size:12px}
 .owner-home-controls select{max-width:108px;min-height:38px;padding:5px;font-size:14px}
 .owner-home-controls>.toolbar{gap:4px;flex-wrap:nowrap}
 .owner-home-controls button{min-height:40px;padding:5px 7px;font-size:14px}
 .owner-home .owner-task-cards button{min-height:67px;padding:5px 7px}
 .owner-home .owner-summary{padding:6px 8px;font-size:13px;gap:2px 8px}
 .owner-home .owner-summary small{font-size:11px}
 .owner-home>.owner-home-search{gap:3px}
 .owner-home-search input{font-size:16px;min-height:40px;padding:6px 9px}
 .owner-home>.page-scroll{flex:1;min-height:100px;max-height:none}
 .owner-home>.owner-home-more{gap:4px;flex-shrink:0}
 .owner-home-more button{min-height:38px;padding:5px 8px;font-size:13px}
}
@media(max-width:760px) and (max-height:600px){
 .app-shell:has(.owner-home) #page{overflow:auto}
 #page>.owner-home{height:auto;min-height:100%}
 .owner-home>.page-scroll{flex:none;height:42dvh;min-height:140px}
}
@media(max-width:760px){
 .order-detail .order-primary-actions button{min-height:44px}
}
/* Keep each role's work and unread-message entry visible while the page scrolls. */
.topbar:has(.role-feed-buttons){position:sticky;top:0;z-index:25}
.role-feed-buttons{display:inline-flex;align-items:center;gap:4px;flex-shrink:0}
.message-item.flow-exception .message-summary{color:#9e3025}
/* Warehouse primary work and secondary filters use one hierarchy without stacked frames. */
.role-tools{padding:0 0 5px;border:0;border-bottom:1px solid #cbdcd1;border-radius:0;background:transparent}
.role-tools button{border:0;box-shadow:none;min-height:42px}
.role-tools button[aria-pressed=true]{box-shadow:none}
.role-body,.role-body>*{min-width:0;max-width:100%}
.role-body:has(.sw-page){overflow:hidden}
.keeper-check-panel,.keeper-count-panel{border:0;border-radius:0;background:transparent;padding:0!important}
.keeper-check-panel{height:100%;min-height:0;display:flex;flex-direction:column}
.keeper-check-panel .ledger-filter{flex-shrink:0;margin-bottom:5px;gap:5px}
.keeper-check-panel [data-ledger]{min-height:0;flex:1;overflow:auto}
.keeper-check-panel [data-ledger]>p{font-size:13px;line-height:1.45;margin:5px 0}
.keeper-check-panel [data-ledger]>.table-wrap{max-height:none;margin:6px 0;border:0}
.keeper-check-table{font-variant-numeric:tabular-nums;table-layout:fixed;width:100%}
.keeper-check-table th:first-child{width:36%}.keeper-check-table td:first-child{font-weight:700;white-space:normal;overflow-wrap:anywhere}
.keeper-check-table th,.keeper-check-table td{padding:6px;font-size:14px}
.keeper-check-table td:not(:first-child){text-align:right;white-space:normal}
@media(max-width:900px){
 .role-tools{gap:3px;padding-bottom:4px;display:flex;flex-wrap:nowrap}
 .role-tools button{flex:1;min-width:0;min-height:42px;font-size:15px;padding:5px 4px}
 .role-body .sw-tabs{margin:0 0 4px}.role-body .sw-tabs button{font-size:14px;min-height:35px}
 .keeper-check-panel .ledger-filter{display:grid;grid-template-columns:1fr auto auto;gap:5px}
 .keeper-check-panel .ledger-filter>label{display:flex;gap:5px;min-width:0;align-items:center;font-size:13px}
 .keeper-check-panel .ledger-filter select{min-width:0;width:100%;font-size:14px;min-height:38px;padding:5px}
 .keeper-check-panel .ledger-filter>input[data-query]{width:100%;min-width:0;grid-column:2/-1;font-size:16px;padding:5px 7px;min-height:38px}
 .keeper-check-panel .ledger-filter>input[data-date]{width:100%;min-width:0;font-size:13px;padding:5px;min-height:38px}
 .keeper-check-panel .ledger-filter button{min-height:38px;padding:5px 9px;font-size:14px}
 .keeper-check-table,.keeper-check-table tbody{display:block;min-width:0;width:100%}
 .keeper-check-table thead{display:none}
 .keeper-check-table tr{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:3px 5px;border-bottom:1px solid #d5e1d9;padding:5px 3px}
 .keeper-check-table td{border:0;padding:0;font-size:17px;font-variant-numeric:tabular-nums;text-align:right}
 .keeper-check-table td:first-child{grid-column:1/-1;text-align:left;font-size:17px;line-height:1.3}
 .keeper-check-table td[data-label]::before{content:attr(data-label);display:block;font-size:11px;color:#65796b;text-align:right;font-weight:400}
 .keeper-check-table td button{font-size:18px;font-weight:700;padding:0 2px;min-height:28px}
 .keeper-check-panel [data-ledger]>.toolbar{gap:6px;padding:5px 0}
 .keeper-check-panel [data-ledger]>.toolbar button{min-height:44px;font-size:17px;flex:1}
 .keeper-truck-table,.keeper-truck-table tbody{display:block;min-width:0;width:100%}
 .keeper-truck-table thead{display:none}.keeper-truck-table tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px;padding:6px;border-bottom:1px solid #d4dfd7}
 .keeper-truck-table td{padding:2px;border:0;white-space:normal;overflow-wrap:anywhere;font-size:14px}
 .keeper-truck-table td:first-child{font-size:17px;font-weight:700}.keeper-truck-table td:nth-child(2){font-size:20px;text-align:right}
 .keeper-event-table{width:100%;min-width:0;table-layout:fixed;font-size:13px}
 .keeper-event-table th,.keeper-event-table td{padding:5px;white-space:normal;overflow-wrap:anywhere}
 .keeper-event-table th:first-child{width:18%}.keeper-event-table th:nth-child(2){width:20%}.keeper-event-table th:nth-child(3){width:18%}
 .role-body .keeper-count-table .count-unit input{min-width:0;width:72px;max-width:100%}
}
