*{box-sizing:border-box;margin:0;padding:0}body{color:#1e293b;background:#f0f4f8;font-family:Segoe UI,Meiryo,Yu Gothic,sans-serif;font-size:13px}a{cursor:pointer;color:inherit;text-decoration:none}.main-nav{color:#fff;z-index:100;background:linear-gradient(135deg,#0f172a,#1e3a5f);align-items:center;height:52px;padding:0 20px;display:flex;position:sticky;top:0;box-shadow:0 2px 8px #0000004d}.nav-brand{color:#60a5fa;white-space:nowrap;flex-shrink:0;margin-right:16px;font-size:16px;font-weight:700}.nav-links{flex:1;gap:2px;display:flex;overflow-x:auto}.nav-links a{color:#94a3b8;white-space:nowrap;border-radius:6px;padding:6px 10px;font-size:11px;font-weight:500;transition:all .2s}.nav-links a:hover{color:#fff;background:#ffffff1a}.nav-links a.active{color:#fff;background:#2563eb}.nav-right{flex-shrink:0;align-items:center;gap:6px;padding-left:12px;display:flex}.nav-user{color:#94a3b8;white-space:nowrap;font-size:11px}.nav-btn{color:#cbd5e1;cursor:pointer;white-space:nowrap;background:#ffffff1a;border:1px solid #ffffff26;border-radius:5px;padding:4px 9px;font-size:11px}.nav-btn:hover{background:#fff3}.nav-btn-logout{color:#fca5a5;background:#ef444426;border:1px solid #ef44444d}.nav-btn-logout:hover{background:#ef44444d}.main-content{max-width:1600px;margin:0 auto;padding:16px}@keyframes skeleton-shimmer{0%{background-position:-400px 0}to{background-position:400px 0}}.skel{background:#e9eef3 linear-gradient(90deg,#e9eef3 0,#f5f8fb 200px,#e9eef3 400px) 0 0/800px 100%;border-radius:6px;animation:1.2s linear infinite skeleton-shimmer}.skel-bar{height:14px;margin:6px 0}.skel-title{width:220px;height:22px;margin-bottom:16px}.page-header{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;margin-bottom:16px;display:flex}.page-header h2{color:#0f172a;font-size:18px;font-weight:700}.card-grid{grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:12px;margin-bottom:16px;display:grid}.card{background:#fff;border-radius:10px;padding:16px;box-shadow:0 1px 4px #00000014}.card-title{color:#64748b;text-transform:uppercase;letter-spacing:.5px;margin-bottom:8px;font-size:11px;font-weight:600}.card-value{color:#0f172a;font-size:22px;font-weight:700}.card-sub{color:#64748b;margin-top:4px;font-size:11px}.card-accent{border-left:4px solid #3b82f6}.tabs{border-bottom:2px solid #e2e8f0;flex-wrap:wrap;gap:4px;margin-bottom:12px;padding-bottom:4px;display:flex}.tab-btn{color:#64748b;cursor:pointer;background:#f1f5f9;border:none;border-radius:6px 6px 0 0;padding:6px 14px;font-size:12px;font-weight:500;transition:all .2s}.tab-btn:hover{color:#334155;background:#e2e8f0}.tab-btn.active{color:#fff;background:#2563eb}.table-container{border-radius:8px;overflow-x:auto;box-shadow:0 1px 4px #00000014}.order-table,.product-table,.revenue-table{border-collapse:collapse;background:#fff;width:100%;font-size:12px}.order-table th,.product-table th{color:#e2e8f0;text-align:left;white-space:nowrap;background:#1e293b;padding:8px 10px}.order-table td,.product-table td{vertical-align:middle;border-bottom:1px solid #f1f5f9;padding:6px 10px}.order-table tr:hover td,.product-table tr:hover td{background:#f8fafc}.order-table .empty{text-align:center;color:#94a3b8;padding:32px;font-style:italic}.revenue-table th{color:#e2e8f0;text-align:right;white-space:nowrap;background:#1e293b;padding:8px 10px}.revenue-table th:first-child{text-align:left;min-width:100px}.revenue-table td{text-align:right;white-space:nowrap;border-bottom:1px solid #f1f5f9;padding:6px 10px}.revenue-table td:first-child{text-align:left;color:#334155;font-weight:600}.revenue-table .total-row td{background:#f1f5f9;font-weight:700}.revenue-table tr:hover td{background:#f8fafc}.status-badge{border-radius:10px;padding:3px 12px;font-size:11px;font-weight:600;display:inline-block}.s-received{color:#1d4ed8;background:#dbeafe}.s-completed{color:#166534;background:#dcfce7}.s-quote{color:#475569;background:#f1f5f9}.s-stock{color:#0e7490;background:#cffafe}.s-waiting{color:#b45309;background:#fef3c7}.s-prod-sched{color:#6d28d9;background:#ede9fe}.s-in-prod{color:#be185d;background:#fce7f3}.s-ship-sched{color:#0f766e;background:#ccfbf1}.btn-primary{color:#fff;cursor:pointer;background:#2563eb;border:none;border-radius:6px;padding:8px 16px;font-size:13px;font-weight:600}.btn-primary:hover{background:#1d4ed8}.btn-secondary{color:#334155;cursor:pointer;background:#f1f5f9;border:1px solid #e2e8f0;border-radius:6px;padding:8px 16px;font-size:13px}.btn-secondary:hover{background:#e2e8f0}.btn-add{color:#fff;cursor:pointer;background:#16a34a;border:none;border-radius:6px;padding:7px 14px;font-size:12px;font-weight:600;display:inline-block}.btn-add:hover{background:#15803d}.btn-sm{color:#475569;cursor:pointer;background:#f1f5f9;border:1px solid #e2e8f0;border-radius:4px;margin:1px;padding:3px 8px;font-size:11px}.btn-sm:hover{background:#e2e8f0}.form-grid{grid-template-columns:1fr 1fr;gap:12px;display:grid}.form-group{flex-direction:column;gap:4px;display:flex}.form-group.full-width{grid-column:1/-1}.form-group label{color:#475569;text-transform:uppercase;letter-spacing:.4px;font-size:11px;font-weight:600}.form-input{background:#fff;border:1px solid #d1d5db;border-radius:6px;width:100%;padding:7px 10px;font-family:inherit;font-size:13px}.form-input:focus{border-color:#2563eb;outline:none;box-shadow:0 0 0 3px #2563eb1a}.kanban-board{grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px;display:grid;overflow-x:auto}.kanban-flat{grid-template-columns:repeat(var(--kanban-cols,6),minmax(0,1fr));gap:8px}.kanban-col{background:#f8fafc;border-radius:8px;min-width:0;padding:8px}.kanban-col-header{text-transform:uppercase;letter-spacing:.5px;text-align:center;border-radius:4px;margin-bottom:8px;padding:4px 8px;font-size:11px;font-weight:700}.kanban-card{background:#fff;border-left:3px solid #3b82f6;border-radius:6px;margin-bottom:6px;padding:8px;font-size:11px;box-shadow:0 1px 3px #00000014}.kanban-card .kc-company{color:#0f172a;margin-bottom:2px;font-weight:700}.kanban-card .kc-product{color:#475569;white-space:nowrap;text-overflow:ellipsis;max-width:180px;margin-bottom:2px;overflow:hidden}.kanban-card .kc-product-full{color:#0f172a;word-break:break-all;margin:2px 0;font-size:12px;font-weight:600;line-height:1.35}.kc-cust-dot{border-radius:50%;width:8px;height:8px;margin-right:5px;display:inline-block}.kc-meta{justify-content:space-between;align-items:center;gap:4px;margin-top:4px;display:flex}.kc-due{color:#334155;white-space:nowrap;background:#f1f5f9;border-radius:4px;padding:2px 6px;font-size:10.5px;font-weight:600}.kc-due-late{color:#b91c1c;background:#fee2e2}.kc-due-soon{color:#b45309;background:#fef3c7}.kc-qty{color:#0f172a;white-space:nowrap;font-size:12px;font-weight:700}.kanban-card .kc-amount{color:#2563eb;font-weight:600}.kanban-card .kc-delivery{color:#94a3b8;margin-top:2px;font-size:10px}.kanban-card.kc-draggable{cursor:grab;touch-action:none;transition:box-shadow .12s,opacity .12s}.kanban-card.kc-draggable:active{cursor:grabbing}.kanban-card.kc-dragging{opacity:.4}.kanban-col.kc-col-over{outline-offset:-2px;background:#eef2ff;outline:2px dashed #6366f1}.kc-drop-hint{color:#6366f1;text-align:center;border:1px dashed #c7d2fe;border-radius:6px;padding:10px;font-size:11px;font-weight:700}.kc-saving{color:#fff;z-index:50;background:#0f172a;border-radius:8px;padding:8px 14px;font-size:12px;position:fixed;bottom:16px;right:16px;box-shadow:0 4px 12px #0003}@media (hover:none){.kanban-card.kc-draggable{cursor:default}}.customer-grid{grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:12px;display:grid}.customer-card{background:#fff;border-left:4px solid #3b82f6;border-radius:10px;padding:16px;box-shadow:0 1px 4px #00000014}.customer-card h3{color:#0f172a;margin-bottom:10px;font-size:14px;font-weight:700}.customer-detail{color:#64748b;justify-content:space-between;margin-bottom:4px;font-size:12px;display:flex}.customer-detail span{color:#334155;font-weight:500}.settings-section{background:#fff;border-radius:10px;margin-bottom:16px;padding:20px;box-shadow:0 1px 4px #00000014}.settings-section h3{color:#0f172a;border-bottom:1px solid #e2e8f0;margin-bottom:12px;padding-bottom:8px;font-size:14px;font-weight:700}.cost-lbl{color:#475569;flex-direction:column;gap:4px;font-size:12px;display:flex}.cost-lbl input{padding:5px 8px}.pf-tbl.cg td{border-bottom:1px solid #f1f5f9;height:30px;padding:0}.pf-tbl.cg td.c{text-align:center}.cg-cell{background:0 0;border:0;width:100%;height:100%;padding:5px 8px;font-family:inherit;font-size:12.5px}.cg-cell.r{text-align:right}.cg-cell.c{text-align:center}.cg-cell:focus{outline-offset:-2px;background:#eff6ff;outline:2px solid #2563eb}.cg-amt{color:#334155;font-variant-numeric:tabular-nums;background:#fafbff;padding:5px 8px}.pf-tbl.cg td.cg-sec{background:#eef2f7;padding:4px 8px}.cg-secname{color:#1e293b;background:0 0;border:0;min-width:180px;padding:2px 4px;font-family:inherit;font-size:12.5px;font-weight:700}.cg-secname:focus{background:#fff;outline:1px solid #2563eb}.cg-del{color:#cbd5e1;cursor:pointer;background:0 0;border:0;font-size:13px}.cg-del:hover{color:#dc2626}.cg-secdel{color:#dc2626;cursor:pointer;background:#fff;border:1px solid #fecaca;border-radius:6px;padding:2px 10px;font-size:11px}.cg-secdel:hover{background:#fef2f2}.cg-add{color:#2563eb;cursor:pointer;background:#eff6ff;border:1px dashed #bfdbfe;border-radius:6px;padding:4px 12px;font-size:12px}.cg-add:hover{background:#dbeafe}.cg-diff-up{color:#16a34a;font-weight:700}.cg-diff-dn{color:#dc2626;font-weight:700}.cg-pricewrap{align-items:center;gap:2px;width:100%;height:100%;display:flex}.cg-pricewrap .cg-cell{flex:1;min-width:0}.cg-preset{color:#4338ca;cursor:pointer;background:#eef2ff;border:1px solid #c7d2fe;border-radius:5px;flex:none;width:34px;padding:2px 1px;font-family:inherit;font-size:11px}.cg-preset:hover{background:#e0e7ff}.price-badge{color:#1d4ed8;background:#eff6ff;border:1px solid #bfdbfe;border-radius:4px;margin-right:4px;padding:2px 7px;font-size:11px;font-weight:600;display:inline-block}.stock-badge{color:#166534;background:#f0fdf4;border:1px solid #86efac;border-radius:4px;padding:2px 8px;font-size:11px;font-weight:600;display:inline-block}.stock-zero{color:#c2410c;background:#fff7ed;border-color:#fdba74}.muted{color:#94a3b8}.login-screen{background:linear-gradient(135deg,#0f172a,#1e3a5f);justify-content:center;align-items:center;min-height:100vh;padding:16px;display:flex}.login-card{text-align:center;background:#fff;border-radius:16px;width:400px;max-width:94vw;padding:40px;box-shadow:0 20px 60px #00000080}.login-eyebrow{color:#94a3b8;letter-spacing:2px;text-transform:uppercase;margin-bottom:8px;font-size:11px;font-weight:600}.login-title{color:#0f172a;font-size:22px;font-weight:700}.login-subtitle{color:#64748b;margin-top:4px;margin-bottom:32px;font-size:12px}.login-ms-btn{cursor:pointer;color:#1f2937;background:#fff;border:1px solid #d1d5db;border-radius:10px;justify-content:center;align-items:center;gap:12px;width:100%;padding:14px 20px;font-size:15px;font-weight:600;transition:all .2s;display:flex;box-shadow:0 1px 3px #00000014}.login-ms-btn:hover{background:#f8fafc;box-shadow:0 2px 8px #0000001f}.login-error{color:#b91c1c;text-align:left;background:#fee2e2;border:1px solid #fca5a5;border-radius:6px;margin-bottom:16px;padding:10px 14px;font-size:12px;line-height:1.6}@media (max-width:768px){.form-grid{grid-template-columns:1fr}.kanban-board{grid-template-columns:repeat(2,1fr)}.kanban-flat{grid-template-columns:repeat(2,minmax(0,1fr))}.card-grid{grid-template-columns:repeat(2,1fr)}}.pf-gauge{background:linear-gradient(90deg,#fee2e2 0 72%,#fef3c7 72% 82%,#dcfce7 82% 100%);border:1px solid #e2e8f0;border-radius:6px;height:30px;margin:28px 4px 36px;position:relative}.pf-gauge .mk{background:#94a3b8;width:2px;position:absolute;top:-18px;bottom:-18px}.pf-gauge .mk .lb{color:#64748b;white-space:nowrap;font-size:10px;position:absolute;top:-4px;left:5px}.pf-gauge .mk.goal{background:#16a34a}.pf-gauge .mk.goal .lb{color:#166534;font-weight:700}.pf-gauge .nd{background:#2563eb;border-radius:2px;width:4px;position:absolute;top:-6px;bottom:-6px;box-shadow:0 0 0 2px #fff}.pf-gauge .nd .lb{color:#2563eb;white-space:nowrap;font-size:12px;font-weight:700;position:absolute;bottom:-22px;left:-28px}.pf-chart{gap:6px;height:220px;margin:12px 0 4px;display:flex}.pf-col{flex-direction:column;flex:1;height:100%;display:flex}.pf-up{flex-direction:column;flex:1;justify-content:flex-end;display:flex}.pf-dn{flex-direction:column;flex:1;justify-content:flex-start;display:flex}.pf-bar{width:64%;margin:0 auto}.pf-bar.up{background:#16a34a;border-radius:3px 3px 0 0}.pf-bar.dn{background:#dc2626;border-radius:0 0 3px 3px}.pf-base{border-top:2px solid #94a3b8;height:0}.pf-lab{text-align:center;height:12px;font-size:9px}.pf-lab.up{color:#166534;font-weight:700}.pf-lab.dn{color:#b91c1c;font-weight:700}.pf-mm{color:#64748b;text-align:center;margin-top:3px;font-size:10px}.pf-rank .row{align-items:center;gap:8px;margin:4px 0;display:flex}.pf-rank .lb{white-space:nowrap;text-overflow:ellipsis;width:300px;min-width:300px;font-size:11px;overflow:hidden}.pf-rank .rn{color:#94a3b8;text-align:right;width:18px;margin-right:6px;font-weight:700;display:inline-block}.pf-rank .co{color:#94a3b8;margin-left:6px;font-size:10px}.pf-rank .barwrap{flex:1;align-items:center;gap:8px;min-width:0;display:flex}.pf-rank .bar{border-radius:0 3px 3px 0;height:14px}.pf-rank .val{white-space:nowrap;color:#334155;font-size:11px;font-weight:700}.pf-tbl{border-collapse:collapse;background:#fff;width:100%;font-size:11.5px}.pf-tbl th{color:#e2e8f0;text-align:right;white-space:nowrap;background:#1e293b;padding:6px 8px;font-weight:600}.pf-tbl th.l{text-align:left}.pf-tbl td{text-align:right;white-space:nowrap;border-bottom:1px solid #f1f5f9;padding:5px 8px}.pf-tbl td.l{text-align:left}.pf-tbl tr:hover td{background:#f8fafc}.pf-tbl .tot td{background:#eef2f7;font-weight:700}.pf-tbl td.ty{background:#eff6ff}.pf-neg{color:#dc2626;font-weight:600}.pf-up-t{color:#16a34a;font-weight:700}.pf-badge{border-radius:10px;padding:2px 9px;font-size:10.5px;font-weight:700;display:inline-block}.pf-b-CONFIRMED{color:#166534;background:#dcfce7}.pf-b-NEGOTIATING{color:#1d4ed8;background:#dbeafe}.pf-b-QUOTING{color:#475569;background:#f1f5f9}.pf-b-TO_NEGOTIATE{color:#b45309;background:#fef3c7}.pf-legend{color:#64748b;margin:6px 0;font-size:11px}.pf-dot{vertical-align:middle;border-radius:2px;width:9px;height:9px;margin:0 3px 0 10px;display:inline-block}.pf-note{color:#64748b;margin:8px 0;font-size:11px}.pf-a{color:#94a3b8;font-size:10px}.pf-bk{color:#166534;font-weight:700}.pf-bn{color:#1d4ed8;font-weight:700}.un-reopen{z-index:60;color:#334155;cursor:pointer;background:#fff;border:1px solid #e2e8f0;border-radius:999px;padding:7px 12px;font-size:12px;font-weight:600;position:fixed;bottom:16px;right:16px;box-shadow:0 2px 10px #0000001f}.un-reopen:hover{background:#f8fafc;border-color:#cbd5e1}@media (max-width:768px){.un-reopen{padding:6px 10px;font-size:11px;bottom:12px;right:12px}}.un-banner{z-index:200;color:#fff;background:linear-gradient(135deg,#0f172a,#1e3a5f);border:1px solid #f5b32280;border-radius:12px;align-items:center;gap:12px;max-width:min(680px,100vw - 24px);padding:12px 16px;display:flex;position:fixed;bottom:20px;left:50%;transform:translate(-50%);box-shadow:0 8px 28px #00000059}.un-banner-dot{background:#f5b322;border-radius:50%;flex-shrink:0;width:9px;height:9px;box-shadow:0 0 0 4px #f5b32240}.un-banner-text{font-size:13px;font-weight:600;line-height:1.5}.un-banner-sub{color:#cbd5e1;margin-top:2px;font-size:11px;font-weight:400;display:block}.un-banner-btn{color:#1a1200;cursor:pointer;background:#f5b322;border:none;border-radius:8px;flex-shrink:0;padding:8px 16px;font-size:13px;font-weight:700}.un-banner-btn:hover{background:#ffc53d}.un-banner-later{color:#94a3b8;cursor:pointer;background:0 0;border:none;flex-shrink:0;padding:6px;font-size:12px}.un-banner-later:hover{color:#fff}@media (max-width:768px){.un-banner{flex-wrap:wrap;bottom:12px}}.un-overlay{z-index:300;background:#0f172a8c;justify-content:center;align-items:center;padding:16px;display:flex;position:fixed;inset:0}.un-modal{background:#fff;border-radius:14px;flex-direction:column;width:100%;max-width:520px;max-height:85vh;display:flex;overflow:hidden;box-shadow:0 20px 60px #0006}.un-modal-head{color:#fff;background:linear-gradient(135deg,#0f172a,#1e3a5f);align-items:center;gap:10px;padding:16px 20px;display:flex}.un-modal-head h3{margin:0;font-size:16px;font-weight:700}.un-modal-badge{color:#1a1200;letter-spacing:.5px;background:#f5b322;border-radius:6px;padding:3px 8px;font-size:10px;font-weight:800}.un-modal-body{padding:18px 20px;overflow-y:auto}.un-note+.un-note{border-top:1px solid #eef2f7;margin-top:18px;padding-top:18px}.un-note-head{justify-content:space-between;align-items:baseline;gap:8px;margin-bottom:8px;display:flex}.un-note-head strong{color:#0f172a;font-size:14px}.un-note-date{color:#94a3b8;flex-shrink:0;font-size:11px}.un-note-list{margin:0;padding-left:20px}.un-note-list li{color:#334155;margin:3px 0;font-size:13px;line-height:1.7}.un-note-usage-title{color:#1d4ed8;margin:12px 0 4px;font-size:11px;font-weight:700}.un-note-usage li{color:#475569}.un-modal-foot{border-top:1px solid #eef2f7;justify-content:flex-end;padding:14px 20px;display:flex}.un-modal-ok{color:#fff;cursor:pointer;background:#2563eb;border:none;border-radius:8px;padding:9px 22px;font-size:13px;font-weight:700}.un-modal-ok:hover{background:#1d4ed8}
