/* 生产管理 — 与 WMS/BOM 统一 */
:root {
  --gy-radius: 8px;
  --gy-border: #e8eef4;
  --gy-border2: #f0f2f5;
  --gy-text: #1e293b;
  --gy-text3: #94a3b8;
  --gy-blue: #1890ff;
  --gy-blue-light: #e8f4fd;
  --gy-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

body { background: #f4f7fb; font-size: 13px; color: var(--gy-text); }

.gy-wrap { padding: 10px 14px 16px; max-width: none; margin: 0; min-height: 100vh; box-sizing: border-box; }
.gy-page-title { font-size: 16px; font-weight: 700; color: var(--gy-text); margin-bottom: 10px; line-height: 1.3; }
.gy-page-title .desc { font-size: 12px; font-weight: 400; color: var(--gy-text3); margin-left: 8px; }

.gy-toolbar, .gy-search-panel {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  background: #fff; border: 1px solid var(--gy-border2); border-radius: var(--gy-radius);
  padding: 10px 12px; margin-bottom: 10px; box-shadow: var(--gy-shadow);
}
.gy-panel {
  background: #fff; border: 1px solid var(--gy-border2); border-radius: var(--gy-radius);
  padding: 12px 14px; box-shadow: var(--gy-shadow); margin-bottom: 10px;
}
.gy-hint { font-size: 12px; color: var(--gy-text3); margin-top: 6px; }

html.gy-in-iframe body { background: #f4f7fb; margin: 0; min-height: auto; }
html.gy-in-iframe .gy-wrap { padding: 10px 14px 16px; }
html.gy-in-iframe .gy-page-title .desc { display: none; }

.gy-home { padding: 0; }
.gy-stat-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 10px;
}
@media (max-width: 1100px) { .gy-stat-grid { grid-template-columns: repeat(2, 1fr); } }

.gy-stat-mini {
  background: #fff; border: 1px solid var(--gy-border2); border-radius: 6px;
  padding: 10px 12px; cursor: pointer; transition: box-shadow .15s, border-color .15s;
  display: flex; align-items: center; gap: 10px;
}
.gy-stat-mini:hover { border-color: #91caff; box-shadow: 0 2px 8px rgba(24,144,255,0.08); }
.gy-stat-mini .ico { width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.gy-stat-mini .num { font-size: 20px; font-weight: 700; line-height: 1.2; }
.gy-stat-mini .lbl { font-size: 11px; color: var(--gy-text3); }
.gy-stat-mini.c-blue .ico { background: #e8f4fd; color: #1890ff; }
.gy-stat-mini.c-green .ico { background: #f0faf0; color: #52c41a; }
.gy-stat-mini.c-orange .ico { background: #fff8e6; color: #fa8c16; }
.gy-stat-mini.c-red .ico { background: #fff1f0; color: #ff4d4f; }
.gy-stat-mini.c-purple .ico { background: #f9f0ff; color: #722ed1; }
.gy-stat-mini.c-cyan .ico { background: #e6fffb; color: #13c2c2; }

.gy-notice-bar {
  background: #e8f4fd; border: 1px solid #91caff; border-radius: 6px;
  padding: 10px 14px; font-size: 12px; color: #0958d9; margin-bottom: 12px; line-height: 1.6;
}
.gy-notice-bar.warn { background: #fffbe6; border-color: #ffe58f; color: #ad6800; }

.gy-split { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: start; }
@media (max-width: 900px) { .gy-split { grid-template-columns: 1fr; } }

.gy-panel { overflow: hidden; min-width: 0; }
.gy-panel .layui-table-view { margin: 0; max-width: 100%; }
.gy-panel .layui-table-box { overflow-x: auto; }
.gy-panel .layui-table { table-layout: fixed; width: 100% !important; }
.gy-panel .layui-table-cell { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.gy-section-title { font-size: 13px; font-weight: 600; color: #334155; margin-bottom: 8px; }

.gy-wip-split { align-items: start; }
.gy-wip-panel { overflow: hidden; min-width: 0; }
.gy-wip-panel .layui-table-view { margin: 0; }
.gy-wip-panel .layui-table { table-layout: fixed; width: 100% !important; }
.gy-wip-panel .layui-table-cell { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.layui-table th { background: #fafbfc !important; font-weight: 600; font-size: 12px; }
.layui-table td { font-size: 12px; }
.layui-table tbody tr:hover { background: var(--gy-blue-light) !important; }
