
/* ================================================================
   DENAH GUDANG (Dashboard, bagian paling bawah). Semua kelas berawalan wm-.
   Mengikuti mockup "Denah 3D Gudang CWH" (canvas Design, Novan 23 Nov 2026).
   ================================================================ */
#wmRoot { margin-top: 16px; }
.wm-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: 12px; display: flex; flex-direction: column; min-width: 0; font-family: var(--font); color: var(--gray-900); }
.wm-h { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 14px; padding: 14px 16px; border-bottom: 1px solid var(--gray-200); }
.wm-h h2 { margin: 0; font-size: 1rem; font-weight: 800; color: var(--gray-900); }
.wm-h p { margin: 2px 0 0; font-size: .74rem; color: var(--gray-500); }
.wm-hact { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.wm-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; padding: 12px 16px 0; }
.wm-kpi { border: 1px solid var(--gray-200); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wm-kpi span { font-size: .66rem; font-weight: 700; color: var(--gray-500); text-transform: uppercase; letter-spacing: .04em; }
.wm-kpi b { font-size: 1.25rem; font-weight: 800; color: var(--gray-900); }
.wm-kpi small { font-size: .7rem; color: var(--gray-500); }
.wm-kpi.is-bad b { color: #B91C1C; } .wm-kpi.is-warn b { color: #B45309; } .wm-kpi.is-ok b { color: #047857; }
[data-theme="dark"] .wm-kpi.is-bad b { color: #FCA5A5; } [data-theme="dark"] .wm-kpi.is-warn b { color: #FDBA74; } [data-theme="dark"] .wm-kpi.is-ok b { color: #6EE7B7; }
.wm-tools { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-end; padding: 12px 16px; }
.wm-f { display: flex; flex-direction: column; gap: 4px; font-size: .68rem; font-weight: 700; color: var(--gray-500); min-width: 0; }
.wm-f input { height: 34px; border: 1px solid var(--gray-300); border-radius: 8px; padding: 0 10px; font: inherit; font-size: .8rem; font-weight: 500; color: var(--gray-900); background: var(--white); width: 240px; max-width: 100%; box-sizing: border-box; }
.wm-seg { display: inline-flex; flex-wrap: wrap; gap: 3px; background: var(--gray-100); border-radius: 9px; padding: 3px; }
.wm-seg button { min-height: 28px; border: 0; border-radius: 7px; padding: 0 10px; font: inherit; font-size: .74rem; font-weight: 600; color: var(--gray-700); background: transparent; cursor: pointer; }
.wm-seg button.is-on { background: #0F2448; color: #FFFFFF; }
[data-theme="dark"] .wm-seg button.is-on { background: #3B82F6; }
.wm-btn { min-height: 34px; border: 1px solid var(--gray-300); border-radius: 8px; background: var(--white); color: var(--gray-900); font: inherit; font-size: .76rem; font-weight: 600; padding: 0 10px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.wm-btn:hover { filter: brightness(.97); }
.wm-btn:disabled { opacity: .5; cursor: wait; }
.wm-btn.is-dark { background: #0F2448; border-color: #0F2448; color: #FFFFFF; }
.wm-btn svg { width: 15px; height: 15px; flex: none; }
.wm-main { display: flex; flex-wrap: wrap; gap: 12px; padding: 0 16px 12px; align-items: flex-start; }
.wm-stagewrap { flex: 999 1 560px; min-width: 0; border: 1px solid var(--gray-200); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; }
.wm-info { display: flex; justify-content: space-between; gap: 4px 10px; flex-wrap: wrap; padding: 6px 10px; font-size: .72rem; color: var(--gray-500); border-bottom: 1px solid var(--gray-200); }
.wm-info b { color: var(--gray-900); font-weight: 700; }
.wm-stage { position: relative; height: 600px; overflow: hidden; perspective: 2600px; perspective-origin: 50% 30%; background: #E9EEF5; cursor: grab; user-select: none; -webkit-user-select: none; touch-action: none; }
.wm-msg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 20px; font-size: .82rem; color: var(--gray-500); }
.wm-scene { position: absolute; left: 50%; top: 50%; width: 1430px; height: 790px; margin-left: -715px; margin-top: -395px; background: #F7F9FC; border: 2px solid #0F2448; border-radius: 6px; transition: transform .4s ease; transform-style: preserve-3d; }
.wm-scene * { transform-style: preserve-3d; }
.wm-gate { position: absolute; width: 34px; height: 12px; border-radius: 3px; color: #FFFFFF; font: 700 6px/12px var(--font); text-align: center; overflow: hidden; white-space: nowrap; }
.wm-area { position: absolute; border: 1px solid rgba(15, 36, 72, .35); border-radius: 4px; display: flex; align-items: center; justify-content: center; text-align: center; font-weight: 700; white-space: pre-line; line-height: 1.15; box-sizing: border-box; padding: 1px; font-family: var(--font); overflow: hidden; }
.wm-zone { position: absolute; background: #FFFFFF; border: 1px solid; border-radius: 3px; box-sizing: border-box; }
.wm-zone > div { height: 11px; color: #FFFFFF; font: 800 7px/11px var(--font); text-align: center; letter-spacing: .03em; overflow: hidden; white-space: nowrap; }
.wm-zone.is-v > div { font-size: 6px; letter-spacing: 0; }
.wm-bin { position: absolute; display: block; padding: 0; margin: 0; border: 0; background: transparent; cursor: pointer; }
.wm-bin:focus-visible { outline: 2px solid #0F2448; }
.wm-bin.is-sel { z-index: 5; }
.wm-top.is-ring { border-radius: 3px; }
.wm-top { position: absolute; left: 0; top: 0; width: 100%; height: 100%; box-sizing: border-box; border: .5px solid rgba(15, 36, 72, .35); }
.wm-top.is-nocap { background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, .6) 0 2px, transparent 2px 4px) !important; }
.wm-front { position: absolute; left: 0; bottom: 0; width: 100%; transform-origin: bottom center; transform: rotateX(-90deg); }
.wm-sr { position: absolute; top: 0; right: 0; height: 100%; transform-origin: right center; transform: rotateY(90deg); }
.wm-sl { position: absolute; top: 0; left: 0; height: 100%; transform-origin: left center; transform: rotateY(-90deg); }
.wm-blab { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font: 700 8px/1 var(--font); color: #14213D; pointer-events: none; }
.wm-blab.is-bay { font-size: 6px; }
.wm-lvh { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 4px; padding: 6px 2px 2px; border-top: 1px solid var(--gray-200); font-size: .74rem; color: var(--gray-600); text-transform: none; }
.wm-lvh b { font-family: var(--mono); color: var(--gray-900); }
.wm-lvh strong { font-size: .82rem; color: var(--gray-900); }
.wm-stamp { position: absolute; pointer-events: none; display: flex; align-items: center; justify-content: center; z-index: 6; }
.wm-stamp > div { transform: rotate(-62deg); text-align: center; white-space: nowrap; color: #C62828; border: 1.5px solid #C62828; border-radius: 3px; padding: 1px 4px; background: rgba(255, 255, 255, .78); font-family: var(--mono, monospace); line-height: 1.1; }
.wm-stamp b { display: block; font-size: 8px; letter-spacing: .04em; }
.wm-stamp i { display: block; font-style: normal; font-size: 5.5px; letter-spacing: .08em; border-top: 1px solid #C62828; margin-top: 1px; padding-top: 1px; }
.wm-pair { position: absolute; left: 0; top: 0; width: 100%; height: 100%; background: repeating-linear-gradient(90deg, rgba(15, 36, 72, .6) 0 1.2px, transparent 1.2px 3.5px); pointer-events: none; }
.wm-inact { position: absolute; left: 0; top: 0; width: 100%; height: 100%; background: repeating-linear-gradient(135deg, rgba(15, 36, 72, .7) 0 1.5px, transparent 1.5px 4px); }
.wm-stripe.is-over { background: repeating-linear-gradient(45deg, rgba(200, 30, 30, .95) 0 2px, transparent 2px 5px); }
.wm-stripe { position: absolute; left: 0; top: 0; width: 100%; height: 100%; background: repeating-linear-gradient(45deg, rgba(15, 36, 72, .6) 0 2px, transparent 2px 5px); }
.wm-zl { position: absolute; width: 46px; height: 15px; transform-origin: 50% 100%; color: #FFFFFF; font: 800 8px/13px var(--font); text-align: center; border-radius: 4px; border: 1px solid #FFFFFF; box-shadow: 0 2px 4px rgba(15, 36, 72, .35); pointer-events: none; box-sizing: border-box; }
.wm-legend { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 10px; border-top: 1px solid var(--gray-200); align-items: center; }
.wm-lg { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 2px 9px; border: 1px solid var(--gray-200); border-radius: 999px; background: var(--white); color: var(--gray-700); font: inherit; font-size: .7rem; font-weight: 500; cursor: default; }
.wm-lg.is-btn { cursor: pointer; }
.wm-lg.is-on { background: #0F2448; color: #FFFFFF; border-color: #0F2448; }
.wm-lg i { width: 13px; height: 13px; border-radius: 3px; border: 1px solid rgba(15, 36, 72, .25); display: inline-block; flex: none; }
.wm-lgnote { font-size: .68rem; color: var(--gray-500); }
.wm-side { flex: 1 1 280px; min-width: 0; border: 1px solid var(--gray-200); border-radius: 10px; padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.wm-side .wm-cap { font-size: .66rem; font-weight: 700; color: var(--gray-500); text-transform: uppercase; letter-spacing: .04em; }
.wm-code { font-family: var(--mono); font-size: 1.5rem; font-weight: 700; color: var(--gray-900); line-height: 1.2; }
.wm-where { font-size: .76rem; color: var(--gray-500); }
.wm-pill { font-size: .7rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.wm-pill.is-empty { background: var(--gray-100); color: var(--gray-700); } .wm-pill.is-ok { background: #DCFCE7; color: #166534; }
.wm-pill.is-warn { background: #FFEDD5; color: #9A3412; } .wm-pill.is-bad { background: #FEE2E2; color: #991B1B; } .wm-pill.is-gray { background: #E2E8F0; color: #334155; } .wm-pill.is-pair { background: #DBEAFE; color: #1E3A8A; }
.wm-bar { height: 9px; border-radius: 999px; background: var(--gray-200); overflow: hidden; }
.wm-bar > div { height: 100%; }
.wm-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.wm-stats > div { background: var(--gray-50); border-radius: 8px; padding: 8px 10px; min-width: 0; }
.wm-stats span { display: block; font-size: .66rem; color: var(--gray-500); }
.wm-stats b { font-size: 1rem; font-weight: 800; }
.wm-note { border-radius: 8px; padding: 8px 10px; font-size: .74rem; font-weight: 500; display: flex; gap: 8px; align-items: flex-start; }
.wm-note.is-info { background: #EFF6FF; color: #1E3A8A; } .wm-note.is-bad { background: #FEE2E2; color: #7F1D1D; } .wm-note.is-warn { background: #FFF7ED; color: #7C2D12; }
.wm-note i { flex: 0 0 18px; height: 18px; border-radius: 4px; border: 1px solid #0F2448; background: repeating-linear-gradient(45deg, #0F2448 0 2px, #FFFFFF 2px 5px); }
.wm-sku { border: 1px solid var(--gray-200); border-radius: 8px; padding: 8px 10px; display: flex; justify-content: space-between; gap: 10px; min-width: 0; }
.wm-sku > div { min-width: 0; }
.wm-sku b { font-family: var(--mono); font-size: .82rem; }
.wm-sku p { margin: 1px 0 0; font-size: .7rem; color: var(--gray-500); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wm-sku strong { font-size: 1rem; font-weight: 800; white-space: nowrap; }
.wm-empty { font-size: .76rem; color: var(--gray-500); background: var(--gray-50); border-radius: 8px; padding: 10px; }
.wm-out { padding: 0 16px 14px; }
.wm-out summary { cursor: pointer; font-size: .78rem; font-weight: 700; color: var(--gray-700); padding: 6px 0; }
.wm-out .wm-tbl { overflow-x: auto; max-height: 320px; border: 1px solid var(--gray-200); border-radius: 8px; }
.wm-out table { border-collapse: collapse; width: 100%; font-size: .74rem; }
.wm-out th, .wm-out td { padding: 6px 10px; border-bottom: 1px solid var(--gray-200); text-align: left; white-space: nowrap; }
.wm-out th { font-size: .66rem; text-transform: uppercase; letter-spacing: .04em; color: var(--gray-500); background: var(--gray-50); position: sticky; top: 0; }
.wm-out td.r, .wm-out th.r { text-align: right; }
.wm-card.is-full { position: fixed; left: 0; top: 0; right: 0; bottom: 0; z-index: 1000; border-radius: 0; border: 0; overflow: auto; }
.wm-card.is-full .wm-stage { height: calc(100vh - 250px); min-height: 360px; }
[data-theme="dark"] .wm-stage { background: #0B1220; }
[data-theme="dark"] .wm-scene { background: #1E293B; border-color: #94A3B8; }
[data-theme="dark"] .wm-zone { background: #0F172A; }
[data-theme="dark"] .wm-note.is-info { background: rgba(59, 130, 246, .15); color: #BFDBFE; }
[data-theme="dark"] .wm-note.is-bad { background: rgba(239, 68, 68, .15); color: #FECACA; }
[data-theme="dark"] .wm-note.is-warn { background: rgba(249, 115, 22, .15); color: #FED7AA; }
@media (max-width: 760px) {
  .wm-stage { height: 420px; }
  .wm-f, .wm-f input { width: 100%; }
  .wm-only3d { display: none !important; }
}
@media (prefers-reduced-motion: reduce) { .wm-scene { transition: none; } }
