/* DT40 recovery: explicit page scopes, no dependency on :has or min-content columns. */
.app-header { width: 100%; max-width: 544px; }
.app-header .brand, .app-header .menu-toggle, .app-header .header-action { flex-shrink: 0; }
.employee-name { flex: 1 1 0; min-width: 0; max-width: none; overflow: hidden; }
.employee-name > span { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.employee-name small { overflow: hidden; text-overflow: ellipsis; }
.employee-name svg { flex-shrink: 0; }
.orders-page, .order-detail-page { width: 100%; max-width: 544px; min-width: 0; padding: 6px 10px 16px; }
.orders-page { padding-bottom: 84px; }
.orders-page .orders-filters { grid-template-columns: minmax(0, 1fr); gap: 6px; }
.orders-page .queue-filter select { margin-top: 2px; }
.orders-page .channel-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.orders-page .channel-tabs a { min-width: 0; padding: 12px 1px; font-size: 12px; }
.orders-page .orders { display: block; width: 100%; min-width: 0; }
.orders-page .queue-card { display: block; width: 100%; min-width: 0; padding: 10px 24px 10px 12px; }
.orders-page .queue-main { display: flex; width: 100%; min-width: 0; gap: 4px; }
.orders-page .order-number { display: block; width: 100%; min-width: 0; font-size: 20px; line-height: 1.2; white-space: nowrap; word-break: normal; overflow-wrap: normal; overflow: hidden; text-overflow: ellipsis; }
.orders-page .queue-state { max-width: 100%; font-size: 12px; overflow-wrap: break-word; }
.ms-state { display: block; color: #657080; font-size: 12px; line-height: 1.3; overflow-wrap: break-word; }
.orders-page .queue-meta { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; width: 100%; padding: 0; margin-top: 6px; gap: 4px; }
.orders-page .channel-badge { min-width: 0; padding: 3px 7px; font-size: 12px; }
.orders-page .queue-card time { max-width: none; text-align: left; font-size: 11px; }
.orders-page .demand-badge { display: block; margin-top: 6px; overflow-wrap: break-word; }
.orders-page .list-summary { flex-wrap: wrap; margin: 8px 0; }
.order-detail-page .order-back { padding: 0; }
.order-detail-page .order-header { padding: 8px 10px; margin: 0 0 8px; }
.order-detail-page .order-title { display: block; }
.order-detail-page .order-title h1 { font-size: 20px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.order-detail-page .detail-status { display: inline-block; margin-top: 4px; max-width: 100%; font-size: 12px; }
.order-detail-page .order-header p { font-size: 12px; margin: 4px 0; }
.order-detail-page .order-header summary { min-height: 28px; padding: 4px 0; font-size: 13px; }
.order-detail-page .detail-product { display: block; width: 100%; min-width: 0; padding: 10px; margin: 8px 0; }
.order-detail-page .detail-product img, .order-detail-page .detail-product .image-placeholder { width: 100%; height: 150px; max-height: 150px; aspect-ratio: auto; object-fit: contain; margin: 0 0 6px; }
.order-detail-page .detail-product h2 { font-size: 15px; font-weight: 500; line-height: 20px; max-height: 60px; margin: 4px 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: break-word; }
.order-detail-page .detail-product p, .order-detail-page .detail-product .wide { font-size: 12px; line-height: 1.35; margin: 3px 0; overflow-wrap: anywhere; }
.order-detail-page .detail-product details p { max-height: 120px; overflow-y: auto; }
/* This detail route has no bottom navigation. Reserve its own single action bar. */
.start-action { position: fixed; z-index: 16; left: 0; right: 0; bottom: 0; width: 100%; max-width: 544px; margin: 0 auto; padding: 8px 10px; padding-bottom: max(8px, env(safe-area-inset-bottom)); background: #f7f9fc; border-top: 1px solid #d4dce7; }
.start-action button { min-height: 48px; font-size: 16px; }
.start-action-spacer { height: 80px; height: calc(80px + env(safe-area-inset-bottom)); }
@media (max-width: 280px) {
  .app-header { padding: 0 4px; gap: 0; }
  .app-header .brand { font-size: 18px; }
  .employee-name svg { display: none; }
  .order-detail-page .detail-product img, .order-detail-page .detail-product .image-placeholder { height: 130px; max-height: 130px; }
}
