/* HQ1 kho - khung quy trình dưới form chi tiết + trang module */
.wh-panel { margin-top: 12px; border-left: 4px solid #02786a !important; }
.wh-panel > .panel-heading { background: #f3faf8 !important; }
/* tiêu đề khung: tên quy trình + trạng thái + link sơ đồ; màn hình hẹp thì link xuống dòng gọn, không chồng lên tiêu đề */
.wh-panel > .panel-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.wh-panel > .panel-heading > a.pull-right { float: none !important; margin-left: auto; }
.wh-panel .wh-status { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 10px; background: #02786a; color: #fff; font-size: 12px; }
.wh-panel .wh-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; }
.wh-panel .wh-action { max-width: 100%; }
.wh-panel .wh-form { margin-top: 6px; min-width: 320px; max-width: 980px; background: #fff; }
.wh-panel .wh-form .form-group { margin-bottom: 8px; }
.wh-mini { font-size: 12px; margin-bottom: 8px; background: #fff; }
.wh-mini th { background: #f5f5f5; white-space: nowrap; }
.wh-mini input.form-control, .wh-mini select.form-control, .wh-mini textarea.form-control { min-width: 80px; }
.wh-result .alert { margin: 10px 0 0; padding: 8px 12px; }
.wh-kpi { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.wh-proc { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.wh-proc .hqms-card { margin: 0; }
.wh-proc h4 .label { margin-right: 6px; }
.wh-todo td { vertical-align: middle !important; }
.wh-neg { color: #c0392b; font-weight: bold; }

/* điện thoại: bảng của module kho (khung quy trình, tồn kho, truy vết) cuộn ngang trong khung thay vì làm tràn cả trang;
   không ép chữ xuống nhiều dòng (mã hàng / số phiếu bị bẻ vụn khó đọc) */
@media (max-width: 767px) {
	table.wh-mini { display: block; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
	table.wh-mini th, table.wh-mini td { white-space: nowrap; }
	.wh-panel .wh-form { min-width: 0; width: 100%; }
	.wh-panel .wh-action { width: 100%; }
}
