/* Shared employee fixes: keep readable text; let the container, not field order, size rows. */
.weihu-app *, .weihu-order-page *, .ops-page * { box-sizing: border-box; }
.weihu-main, .portal-view, .order-layout > *, .ops-page, .ops-card { min-width: 0; max-width: 100%; }
.order-layout, .order-layout--standalone { grid-template-columns: minmax(0, 1fr); gap: 16px; }
.order-summary, .order-summary--standalone { position: static; order: initial; }
.order-layout .form-section { padding: 18px; }
.order-layout .form-section h2 { font-size: 22px; }
.order-line, .weihu-order-page .order-line {
  grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
  align-items: start; gap: 12px; padding: 14px;
}
.order-line > *, .order-line label, .order-line input, .order-line select { min-width: 0; max-width: 100%; }
.order-line .line-product, .weihu-order-page .order-line .line-product { grid-column: 1 / -1; }
.order-line label:nth-of-type(4) { grid-column: auto; }
.order-line .line-product strong { font-size: 16px; }
.order-line .line-product small, .order-line label small { font-size: 13px; line-height: 1.45; }
.order-line label span { font-size: 14px; }
.order-line input, .order-line select { width: 100%; min-height: 42px; font-size: 15px; }
.order-line .line-master-facts, .order-line [data-weight-packaging] { grid-column: 1 / -1; }
.order-line .remove-line { align-self: end; width: 42px; height: 42px; }
.order-line-progress-card { padding: 12px; }
.order-line-progress-card__facts { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.action-hero { padding: 20px 24px; gap: 18px; box-shadow: none; }
.action-hero h2 { color: #fff; font-size: 26px; }
.hero-action { min-height: 48px; padding: 12px 18px; }
.weihu-header h1 { font-size: 32px; }
.work-queue__item { min-height: 0; padding: 16px; }
.ops-page { width: 100%; }
.ops-table-wrap { max-width: 100%; max-height: 65vh; overflow: auto; border: 1px solid #d7cebd; }
.ops-table-wrap:focus { outline: 2px solid #42665c; outline-offset: 2px; }
.ops-page th { position: sticky; top: 0; z-index: 1; }
.ops-page td.ledger-pending { color: #9b321f; background: #fff1e5; font-weight: 700; }
.ops-page th, .ops-page td { padding: 10px 12px; }
.operations-hero { padding: 18px 22px; gap: 16px; box-shadow: none; }
.operations-hero h3 { color: #fff; font-size: 26px; }
.workspace { min-width: 0; padding: 22px 24px 48px; }
.workspace-header { padding-bottom: 16px; }
.workspace-header h2 { font-size: 32px; }
.status-metric { min-height: 0; padding: 14px 18px; }
.status-metric strong { margin-top: 8px; }
.opening-count-panel { padding: 18px; }
.opening-count-panel header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.opening-count-panel h2 { font-size: 22px; margin: 4px 0; }
.opening-count-summary { margin: 14px 0; padding: 12px 14px; border-left: 4px solid #b7c867; background: #f6f7ed; font-weight: 700; }
.opening-count-details { border: 1px solid #d7cebd; }
.opening-count-details summary { cursor: pointer; padding: 12px 14px; font-weight: 700; }
.opening-count-rows { max-height: 52vh; overflow: auto; }
.opening-count-row { display: grid; grid-template-columns: minmax(180px, 1fr) 110px minmax(140px, 0.6fr); gap: 12px; align-items: center; padding: 9px 14px; border-top: 1px solid #e8e1d4; font-size: 14px; }
.opening-count-row span small { display: block; color: #66736f; }
.opening-count-row > small { color: #66736f; }
.opening-count-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.opening-count-actions label { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.stock-adjustment-panel { margin-top: 16px; padding: 18px; }
.stock-adjustment-panel header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.stock-adjustment-panel h2 { font-size: 22px; margin: 4px 0; }
.stock-adjustment-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 14px 0; }
.stock-adjustment-fields label { display: grid; gap: 5px; min-width: 0; }
.stock-adjustment-fields input, .stock-adjustment-fields select { min-height: 42px; width: 100%; }
.stock-adjustment-fields .field-wide { grid-column: 1 / -1; }
.stock-adjustment-result { display: flex; flex-direction: column; width: 100%; padding: 8px 10px; text-align: left; border: 1px solid #d7cebd; background: #fff; }
.stock-adjustment-result small { color: #66736f; }
.stock-adjustment-draft { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px; border-top: 1px solid #d7cebd; }
.stock-adjustment-draft p { margin: 4px 0; }
.stock-adjustment-draft > div:last-child { display: flex; gap: 8px; flex-wrap: wrap; }
@media(max-width:650px) { .opening-count-row { grid-template-columns: minmax(0,1fr) 90px; } .opening-count-row > small { grid-column: 1 / -1; } }
@media(max-width:650px) { .stock-adjustment-fields { grid-template-columns: minmax(0,1fr); } .stock-adjustment-draft { align-items: stretch; flex-direction: column; } }
@media(min-width:1281px) {
  .app-shell { grid-template-columns: 238px minmax(0, 1fr); }
  .inbox-panel { display: none; } /* Full inbox remains in the navigation, not a permanent third column. */
}
@media(max-width:650px) {
  .order-line, .weihu-order-page .order-line { grid-template-columns: minmax(0, 1fr); }
  .action-hero { grid-template-columns: minmax(0, 1fr); padding: 16px; }
}
