html, body { font-family: Pretendard, -apple-system, BlinkMacSystemFont, system-ui, sans-serif; }
.sidebar-link.active { background: rgba(99,102,241,.25); color: #fff; border-left: 3px solid #818cf8; }
.erp-table th { position: sticky; top: 0; background: #f8fafc; font-weight: 600; font-size: 12px; color: #475569; text-transform: uppercase; letter-spacing: .02em; }
.erp-table td, .erp-table th { padding: 8px 12px; border-bottom: 1px solid #e2e8f0; white-space: nowrap; }
.erp-table tbody tr:hover { background: #f1f5f9; }
.erp-table tbody tr.clickable { cursor: pointer; }
.erp-input { width: 100%; border: 1px solid #cbd5e1; border-radius: 6px; padding: 6px 10px; font-size: 14px; background: #fff; }
.erp-input:focus { outline: none; border-color: #6366f1; box-shadow: 0 0 0 2px rgba(99,102,241,.2); }
.erp-input[readonly] { background: #f8fafc; color: #64748b; }
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 6px; font-size: 13px; font-weight: 500; transition: all .15s; white-space: nowrap; }
.btn-primary { background: #4f46e5; color: #fff; } .btn-primary:hover { background: #4338ca; }
.btn-secondary { background: #fff; border: 1px solid #cbd5e1; color: #334155; } .btn-secondary:hover { background: #f1f5f9; }
.btn-danger { background: #fee2e2; color: #b91c1c; } .btn-danger:hover { background: #fecaca; }
.btn-success { background: #059669; color: #fff; } .btn-success:hover { background: #047857; }
.btn-warning { background: #f59e0b; color: #fff; } .btn-warning:hover { background: #d97706; }
.btn-sm { padding: 3px 8px; font-size: 12px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 9999px; font-size: 11px; font-weight: 600; }
.card { background: #fff; border-radius: 12px; box-shadow: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04); }
.modal-backdrop { position: fixed; inset: 0; background: rgba(15,23,42,.5); z-index: 50; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal-box { background: #fff; border-radius: 12px; width: 100%; max-height: 92vh; display: flex; flex-direction: column; box-shadow: 0 25px 50px -12px rgba(0,0,0,.4); animation: pop .15s ease-out; }
@keyframes pop { from { transform: scale(.96); opacity: 0 } to { transform: scale(1); opacity: 1 } }
.toast { padding: 10px 16px; border-radius: 8px; color: #fff; font-size: 14px; box-shadow: 0 4px 12px rgba(0,0,0,.15); animation: slide .2s ease-out; min-width: 240px; }
@keyframes slide { from { transform: translateX(20px); opacity: 0 } to { transform: none; opacity: 1 } }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.form-grid .col-span-2 { grid-column: span 2; }
label.erp-label { display: block; font-size: 12px; font-weight: 600; color: #475569; margin-bottom: 4px; }
label.erp-label .req { color: #ef4444; margin-left: 2px; }
.kpi-card { position: relative; overflow: hidden; }
.kpi-card i.bg-icon { position: absolute; right: -8px; bottom: -8px; font-size: 72px; opacity: .08; }
/* WMS map */
.wms-canvas { background: #f8fafc; background-image: linear-gradient(#e2e8f0 1px, transparent 1px), linear-gradient(90deg, #e2e8f0 1px, transparent 1px); border: 1px solid #cbd5e1; border-radius: 8px; position: relative; overflow: auto; user-select: none; }
.wms-zone { position: absolute; border-radius: 6px; border: 2px solid; box-sizing: border-box; }
.wms-zone .zone-title { position: absolute; top: 2px; left: 6px; font-size: 11px; font-weight: 700; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.4); pointer-events: none; }
.wms-zone.editable { cursor: move; }
.wms-zone .resize-handle { position: absolute; right: -4px; bottom: -4px; width: 12px; height: 12px; background: #fff; border: 2px solid #475569; border-radius: 3px; cursor: nwse-resize; }
.wms-loc { position: absolute; border-radius: 4px; border: 1px solid rgba(0,0,0,.25); font-size: 9px; font-weight: 600; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 2px; cursor: pointer; transition: transform .1s; box-sizing: border-box; overflow: hidden; }
.wms-loc:hover { transform: scale(1.08); z-index: 5; box-shadow: 0 2px 8px rgba(0,0,0,.3); }
.wms-loc.selected { outline: 3px solid #1e293b; z-index: 6; }
.wms-loc .fill { position: absolute; left: 0; right: 0; bottom: 0; opacity: .85; }
.wms-loc .lbl { position: relative; z-index: 1; color: #0f172a; }
.wms-tooltip { position: fixed; z-index: 90; background: #0f172a; color: #fff; font-size: 12px; padding: 8px 10px; border-radius: 6px; pointer-events: none; max-width: 260px; box-shadow: 0 4px 12px rgba(0,0,0,.3); }
.spin { animation: spin 1s linear infinite; } @keyframes spin { to { transform: rotate(360deg) } }
.menu-group > .menu-children { display: none; } .menu-group.open > .menu-children { display: block; }
::-webkit-scrollbar { width: 8px; height: 8px; } ::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
@media print { aside, header, .no-print { display: none !important; } }
