/* Keep the current warehouse readable without widening the navigation. */
.side-brand { height: auto; min-height: 68px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.side-brand-meta { flex: 1 1 100%; grid-template-columns: minmax(0, 1fr); gap: 5px; }
.side-brand #roleLabel { display: block; color: #344054; font-size: 12px; font-weight: 600; line-height: 1.5; white-space: normal; overflow-wrap: anywhere; }
.sidebar-userbar { flex-wrap: nowrap; gap: 4px; }
.sidebar-userbar #userBadge { display: block; flex: 1; width: auto; min-width: 0; padding: 5px 2px; border: 0; background: transparent; text-align: left; font-size: 12px; line-height: 1.6; white-space: normal; overflow-wrap: anywhere; color: #344054; cursor: pointer; }
.sidebar-userbar #userBadge:hover { color: #155eef; background: #f5f8ff; }
.sidebar-userbar #logoutBtn { margin-left: auto; min-height: 28px; }
.sidebar-userbar #userBadge:focus-visible, .warehouse-sidebar-panel :focus-visible { outline: 2px solid #155eef; outline-offset: 2px; }
.warehouse-sidebar-panel { position: fixed; z-index: 1300; width: min(340px, calc(100vw - 16px)); max-height: calc(100dvh - 16px); overflow: auto; padding: 16px; box-sizing: border-box; background: #fff; color: #344054; border: 1px solid #e4e7ec; border-radius: 10px; box-shadow: 0 12px 32px #10182824; font-size: 13px; }
.warehouse-sidebar-panel[hidden] { display: none; }
.warehouse-sidebar-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.warehouse-sidebar-head strong { min-width: 0; overflow-wrap: anywhere; }
.warehouse-sidebar-head select { min-width: 0; flex: 1; }
.warehouse-sidebar-head [data-sidebar-close] { border: 0; background: transparent; font-size: 20px; padding: 0 6px; flex: 0 0 auto; }
.warehouse-sidebar-panel dl { display: grid; gap: 14px; margin: 0; }
.warehouse-sidebar-panel dt { color: #667085; font-size: 12px; margin-bottom: 5px; }
.warehouse-sidebar-panel dd { display: flex; gap: 8px; align-items: center; margin: 0; }
.warehouse-sidebar-panel .warehouse-sidebar-balance dd { font-size: 23px; font-weight: 600; font-variant-numeric: tabular-nums; }
.warehouse-sidebar-code { flex: 1; min-width: 0; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; user-select: text; }
.warehouse-sidebar-panel input { flex: 1; min-width: 0; width: 0; font-size: 12px; }
.warehouse-sidebar-panel button { flex-shrink: 0; min-height: 30px; }
.warehouse-sidebar-status { color: #667085; line-height: 1.8; margin-top: 10px; }
@media (max-width: 980px) {
  .sidebar-userbar #userBadge { display: block; }
}
@media (pointer: coarse) {
  .warehouse-sidebar-panel button, .warehouse-sidebar-panel select, .sidebar-userbar #userBadge { min-height: 44px; }
}
#appView .side-brand { grid-template-columns: 82px minmax(0, 1fr); padding-left: 12px; padding-right: 12px; }
#appView .side-brand-logo { width: 82px; }
#appView .side-brand-role { min-width: 0; text-align: right; }
@media (max-width: 860px) {
  body:not(.tablet-mode) #appView .side-brand { padding-right: 12px; }
  .sidebar-userbar { position: static; width: auto; padding: 6px 12px; flex-wrap: nowrap; }
  .sidebar-userbar #userBadge { flex: 1; }
}
