:root{--bg: #f5f7f9;--panel: #ffffff;--line: #e2e8f0;--ink: #1f2937;--muted: #6b7280;--accent: #2563eb;--accent-ink: #1e40af;--danger: #dc2626;--indigo: #4f46e5}*{box-sizing:border-box}html,body,#root{height:100%;margin:0}body{font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;color:var(--ink);background:var(--bg)}kbd{background:#eef1f4;border:1px solid var(--line);border-radius:3px;padding:0 4px;font-size:10px}.app{display:flex;flex-direction:column;height:100vh}.topbar{display:flex;align-items:center;gap:14px;padding:0 16px;height:52px;background:#0f172a;color:#fff;flex-shrink:0}.brand{font-weight:700;font-size:17px;white-space:nowrap}.brand span{color:#60a5fa}.tagline{color:#94a3b8;font-size:12px;white-space:nowrap}.toolbar{display:flex;align-items:center;gap:6px;margin-left:8px;flex-wrap:wrap}.tbtn{display:inline-flex;align-items:center;gap:5px;padding:6px 10px;border:1px solid #334155;background:#1e293b;color:#cbd5e1;border-radius:7px;font-size:13px;cursor:pointer;white-space:nowrap}.tbtn:hover{background:#273549;color:#fff}.tbtn.active{background:var(--accent);border-color:var(--accent);color:#fff;font-weight:600}.tbtn.danger{color:#fca5a5;border-color:#7f1d1d;background:#3b1717}.tbtn.danger:hover{background:#4c1d1d;color:#fff}.tsep{width:1px;height:22px;background:#334155;margin:0 2px}.tbtn.ai{background:linear-gradient(135deg,#7c3aed,#2563eb);border-color:transparent;color:#fff;font-weight:700}.tbtn.ai:hover{background:linear-gradient(135deg,#8b5cf6,#3b82f6);color:#fff}.ai-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:150;background:#0f172a8c;display:flex;align-items:center;justify-content:center;padding:20px}.ai-card{background:#fff;border-radius:14px;width:400px;max-width:100%;max-height:92vh;overflow-y:auto;padding:18px;display:flex;flex-direction:column;gap:10px;box-shadow:0 24px 60px #02061759}.ai-title{font-size:18px;font-weight:800;color:#0f172a}.ai-sub{font-size:12px;color:var(--muted);margin-top:-6px}.ai-dim{display:flex;flex-direction:column;gap:4px;font-size:11px;color:var(--muted)}.ai-dim .num{width:100%}.ai-obj{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}.btn.big{padding:12px;font-size:14px;font-weight:700}.chip:disabled{opacity:.45;cursor:not-allowed}.body{flex:1;display:flex;overflow:hidden}.side{width:232px;background:var(--panel);display:flex;flex-direction:column;flex-shrink:0}.side.left{border-right:1px solid var(--line)}.side.right{width:248px;border-left:1px solid var(--line)}.side-title{padding:10px 12px;font-size:12px;font-weight:700;color:#334155;border-bottom:1px solid var(--line);text-transform:uppercase;letter-spacing:.3px}.panel-empty{padding:20px 14px;text-align:center;color:var(--muted);font-size:12px;line-height:1.5}.panel-empty.err{color:var(--danger)}.library{display:flex;flex-direction:column;min-height:0;flex:1}.lib-tabs{display:flex;padding:8px;gap:4px;flex-wrap:wrap}.lib-tab{flex:1;display:flex;align-items:center;gap:5px;justify-content:center;padding:6px 4px;border:1px solid var(--line);background:#fff;border-radius:7px;font-size:11px;cursor:pointer;color:var(--ink);min-width:0}.lib-tab.active{background:#eff6ff;border-color:var(--accent);color:var(--accent-ink);font-weight:600}.lib-tab .dot{width:8px;height:8px;border-radius:50%;flex-shrink:0}.lib-tab .count{font-size:9px;color:var(--muted);background:#f1f5f9;padding:0 4px;border-radius:8px}.lib-search{margin:0 8px 8px;padding:7px 9px;border:1px solid var(--line);border-radius:7px;font-size:12px;outline:none}.lib-search:focus{border-color:var(--accent)}.lib-list{flex:1;overflow-y:auto;padding:0 8px 8px;display:flex;flex-direction:column;gap:5px}.lib-item{text-align:left;padding:8px 10px;border:1px solid var(--line);background:#fff;border-radius:8px;cursor:pointer}.lib-item:hover{background:#f8fafc;border-color:var(--accent)}.lib-item-label{font-size:12px;font-weight:600;color:#0f172a;display:flex;align-items:center;gap:6px}.lib-item-dims{font-size:10px;color:var(--muted);margin-top:2px}.pallet-tag{font-size:8px;font-weight:700;text-transform:uppercase;color:#b45309;background:#fef3c7;padding:1px 4px;border-radius:3px}.inspector{padding:12px;display:flex;flex-direction:column;gap:10px;overflow-y:auto}.insp-title{font-size:13px;font-weight:700;color:#0f172a;display:flex;align-items:center;gap:6px;flex-wrap:wrap}.link-tag{font-size:8px;font-weight:700;color:#1d4ed8;background:#dbeafe;padding:2px 5px;border-radius:4px}.insp-hint{font-size:11px;color:var(--muted)}.insp-dims{display:grid;grid-template-columns:1fr 1fr;gap:4px 8px;background:#f8fafc;border:1px solid var(--line);border-radius:8px;padding:8px;font-size:11px;color:var(--muted)}.insp-dims b{color:var(--ink)}.insp-group{display:flex;flex-direction:column;gap:5px}.insp-label{font-size:10px;text-transform:uppercase;letter-spacing:.3px;color:var(--muted);font-weight:600}.rot-row{display:grid;grid-template-columns:repeat(4,1fr);gap:4px}.chip{padding:6px 0;border:1px solid var(--line);background:#fff;border-radius:6px;font-size:12px;cursor:pointer;color:var(--ink)}.chip.active{background:var(--accent);border-color:var(--accent);color:#fff;font-weight:600}.two{display:grid;grid-template-columns:1fr 1fr;gap:6px}.btn{padding:8px 10px;border:1px solid var(--line);background:#fff;border-radius:8px;font-size:13px;cursor:pointer;color:var(--ink)}.btn:hover{background:#f1f5f9}.btn.indigo{background:#eef2ff;border-color:#c7d2fe;color:var(--indigo);font-weight:600}.btn.indigo:hover{background:#e0e7ff}.btn.danger{background:#fef2f2;border-color:#fecaca;color:var(--danger)}.btn.danger:hover{background:#fee2e2}.insp-keys{display:flex;flex-wrap:wrap;gap:6px 12px;font-size:10px;color:var(--muted);margin-top:2px}.layout-panel{border-top:1px dashed var(--line);padding-top:10px}.sel{width:100%;padding:7px 8px;border:1px solid var(--line);border-radius:7px;font-size:12px;background:#fff;color:var(--ink);outline:none;cursor:pointer}.sel:focus{border-color:var(--accent)}.layout-result{background:#f0fdf4;border:1px solid #bbf7d0;border-radius:8px;padding:8px 10px;font-size:11px;color:#14532d;display:flex;flex-direction:column;gap:3px}.layout-result .muted-note{color:#6b7280;font-size:10px}.aisle-row{display:flex;align-items:center;gap:8px;font-size:11px;color:var(--muted)}.aisle-row .num{width:72px;flex:none}.price-note.cap{color:#334155;background:#f8fafc;border:1px solid var(--line)}.scn-list{display:flex;flex-direction:column;gap:8px}.scn-card{border:1px solid var(--line);border-radius:9px;padding:9px;display:flex;flex-direction:column;gap:7px;background:#fff}.scn-head{display:flex;justify-content:space-between;align-items:baseline;gap:6px}.scn-head b{font-size:12px;color:#0f172a}.scn-head span{font-size:10px;color:var(--muted)}.scn-grid{display:grid;grid-template-columns:auto 1fr;gap:2px 10px;font-size:11px;color:var(--muted)}.scn-grid b{color:var(--ink);text-align:right}.topbar-user{margin-left:auto;display:flex;align-items:center;padding-left:10px}.auth-screen{position:fixed;top:0;right:0;bottom:0;left:0;z-index:300;background:radial-gradient(1100px 500px at 70% -10%,rgba(37,99,235,.28),transparent 60%),linear-gradient(rgba(148,163,184,.07) 1px,transparent 1px),linear-gradient(90deg,rgba(148,163,184,.07) 1px,transparent 1px),#0b1220;background-size:auto,32px 32px,32px 32px,auto;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;padding:24px;overflow-y:auto}.auth-screen .w-mark{font-size:40px}.auth-sub{font-size:15px;color:#94a3b8;font-weight:600;margin-top:-10px}.auth-note{font-size:13px;color:#94a3b8}.auth-foot{font-size:11px;color:#475569}.welcome{position:fixed;top:0;right:0;bottom:0;left:0;z-index:200;background:radial-gradient(1100px 500px at 70% -10%,rgba(37,99,235,.28),transparent 60%),linear-gradient(rgba(148,163,184,.07) 1px,transparent 1px),linear-gradient(90deg,rgba(148,163,184,.07) 1px,transparent 1px),#0b1220;background-size:auto,32px 32px,32px 32px,auto;display:flex;align-items:center;justify-content:center;padding:24px}.w-card{max-width:620px;text-align:center;color:#e2e8f0;display:flex;flex-direction:column;gap:18px;align-items:center}.w-mark{font-size:54px;font-weight:800;letter-spacing:-1px;color:#fff}.w-mark span{color:#60a5fa}.w-sub{font-size:17px;color:#94a3b8;font-weight:600;margin-top:-10px}.w-desc{font-size:14px;color:#cbd5e1;line-height:1.65;max-width:480px}.w-desc b{color:#fff}.w-actions{display:flex;gap:12px;margin-top:6px;flex-wrap:wrap;justify-content:center}.w-btn{padding:13px 26px;border-radius:10px;font-size:15px;font-weight:600;cursor:pointer;border:1px solid #334155;background:#1e293b;color:#e2e8f0}.w-btn:hover{background:#273549}.w-btn.primary{background:var(--accent);border-color:var(--accent);color:#fff}.w-btn.primary:hover{background:#1d4ed8}.w-feats{display:flex;gap:14px;flex-wrap:wrap;justify-content:center;font-size:12px;color:#94a3b8}.w-foot{font-size:11px;color:#475569;margin-top:8px}.stage-area{flex:1;position:relative;overflow:hidden;background:#fbfcfd}.canvas-wrap{position:absolute;top:0;right:0;bottom:0;left:0}.statusbar{display:flex;align-items:center;gap:18px;padding:0 16px;height:32px;background:var(--panel);border-top:1px solid var(--line);font-size:12px;color:var(--muted);flex-shrink:0}.statusbar .grow{flex:1}.statusbar .ov-warn{color:#dc2626;font-weight:700}.quote-sheet+.quote-sheet{margin-top:16px}.qs-break{page-break-after:always;break-after:page}.sunum-page{display:flex;flex-direction:column}.sunum-cover-head{display:flex;justify-content:space-between;align-items:flex-start}.sunum-tarih{font-size:12px;color:#6b7280}.sunum-cover-title{margin-top:34mm;text-align:center}.sunum-kicker{font-size:12px;letter-spacing:4px;color:#6b7280;font-weight:600}.sunum-cover-title h1{font-size:30px;margin:8px 0 4px;color:#0f172a}.sunum-musteri{font-size:14px;color:#374151}.sunum-hero{width:100%;max-height:120mm;object-fit:contain;margin-top:14mm;border:1px solid #e5e7eb;border-radius:6px;background:#f8fafc}.sunum-page .qs-foot{margin-top:auto}.sunum-sec-title{font-size:16px;font-weight:700;color:#0f172a;border-bottom:2px solid #0f172a;padding-bottom:6px;margin-bottom:10mm}.sunum-cap{font-size:12px;color:#1f2937;background:#f8fafc;border:1px solid #e5e7eb;border-radius:6px;padding:8px 10px;margin:-6mm 0 6mm}.sunum-grid{display:grid;grid-template-columns:1fr 1fr;gap:8mm}.sunum-grid figure{margin:0}.sunum-grid img{width:100%;aspect-ratio:4/3;object-fit:contain;border:1px solid #e5e7eb;border-radius:6px;background:#f8fafc}.sunum-grid figcaption{text-align:center;font-size:11px;color:#374151;margin-top:4px;font-weight:600}.qb-fields label.chk{flex-direction:row;align-items:center;gap:8px}.qb-fields label.chk input{width:16px;height:16px;accent-color:#4f46e5}.statusbar .muted{color:#94a3b8;font-size:11px}.rtabs{display:flex;border-bottom:1px solid var(--line)}.rtab{flex:1;padding:10px 8px;border:none;background:#f8fafc;font-size:12px;font-weight:600;color:var(--muted);cursor:pointer;border-bottom:2px solid transparent}.rtab:hover{color:var(--ink)}.rtab.active{background:#fff;color:var(--ink);border-bottom-color:var(--accent)}.rtab-badge{font-size:9px;background:#eff6ff;color:var(--accent-ink);padding:1px 6px;border-radius:8px;font-weight:700}.pricing{display:flex;flex-direction:column;min-height:0;flex:1}.price-lines{flex:1;overflow-y:auto;padding:8px;display:flex;flex-direction:column;gap:5px}.price-row{display:flex;justify-content:space-between;gap:8px;padding:8px;border:1px solid var(--line);border-radius:8px;background:#fff}.price-row.missing{border-color:#fde68a;background:#fffbeb}.pr-main{min-width:0}.pr-label{font-size:12px;font-weight:600;color:#0f172a}.pr-sku{font-size:9px;color:var(--muted);font-family:ui-monospace,monospace;margin-top:2px;word-break:break-all}.pr-nums{text-align:right;white-space:nowrap;flex-shrink:0}.pr-qty{font-size:10px;color:var(--muted)}.pr-total{font-size:13px;font-weight:700;color:#0f172a}.pr-unit{font-size:9px;color:var(--muted)}.pr-disc{font-size:9px;color:#16a34a;font-weight:600}.pr-warn{font-size:11px;color:#b45309;font-weight:600}.price-foot{border-top:1px solid var(--line);padding:10px;display:flex;flex-direction:column;gap:6px;background:#fff}.price-note{font-size:10px;line-height:1.4;padding:6px 8px;border-radius:6px}.price-note.warn{color:#b45309;background:#fffbeb;border:1px solid #fde68a}.price-note.info{color:#1e40af;background:#eff6ff;border:1px solid #bfdbfe}.price-tot{display:flex;justify-content:space-between;font-size:13px}.price-tot.muted{color:var(--muted);font-size:12px}.price-tot.grand{font-size:15px;font-weight:700;color:#0f172a;padding-top:4px;border-top:1px dashed var(--line)}.price-foot .btn{margin-top:4px}.price-foot .btn:disabled{opacity:.5;cursor:not-allowed}.quote-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:100;background:#0f172a8c;overflow:auto;display:flex;flex-direction:column;align-items:center;padding:16px}.quote-bar{width:210mm;max-width:100%;background:#0f172a;color:#fff;border-radius:10px;padding:12px;display:flex;gap:12px;align-items:flex-end;margin-bottom:14px;flex-wrap:wrap}.qb-fields{display:flex;gap:10px;flex:1;flex-wrap:wrap}.qb-fields label{display:flex;flex-direction:column;gap:3px;font-size:10px;color:#94a3b8;text-transform:uppercase;letter-spacing:.3px}.qb-fields label.sm{width:90px}.qb-fields label.grow{flex:1;min-width:200px}.qb-fields input,.qb-fields textarea{background:#1e293b;border:1px solid #334155;color:#fff;border-radius:6px;padding:6px 8px;font-size:13px;outline:none;font-family:inherit;resize:vertical}.qb-fields input:focus,.qb-fields textarea:focus{border-color:#60a5fa}.qb-actions{display:flex;gap:8px}.qb-brand{display:flex;gap:4px;align-items:center;padding-right:10px;border-right:1px solid #334155}.qb-brand .chip{background:#1e293b;border-color:#334155;color:#cbd5e1;padding:6px 12px}.qb-brand .chip.active{background:var(--accent);border-color:var(--accent);color:#fff}.qs-logo-img{height:42px;max-width:180px;object-fit:contain;display:block}.quote-sheet{width:210mm;max-width:100%;min-height:297mm;background:#fff;color:#1f2937;padding:16mm;box-shadow:0 10px 40px #0000004d;font-size:12px}.qs-head{display:flex;justify-content:space-between;align-items:flex-start;border-bottom:2px solid #0f172a;padding-bottom:12px}.qs-logo{font-size:26px;font-weight:800;color:#0f172a;letter-spacing:-.5px}.qs-logo:first-letter{color:#2563eb}.qs-firma{font-size:12px;font-weight:600;margin-top:2px}.qs-slogan{font-size:11px;color:#6b7280}.qs-firma-iletisim{text-align:right;font-size:10px;color:#6b7280;line-height:1.6}.qs-title{text-align:center;font-size:16px;font-weight:700;letter-spacing:2px;color:#0f172a;margin:18px 0}.qs-meta{display:flex;justify-content:space-between;gap:20px;margin-bottom:14px}.qs-musteri{background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;padding:10px 12px;min-width:45%}.qs-lbl{font-size:9px;color:#94a3b8;font-weight:700;letter-spacing:.5px}.qs-val{font-size:14px;font-weight:700;color:#0f172a}.qs-sub{font-size:11px;color:#6b7280}.qs-info{text-align:right;font-size:11px}.qs-info div{display:flex;justify-content:space-between;gap:18px;padding:2px 0}.qs-info span{color:#6b7280}.qs-info b{color:#0f172a}.qs-table{width:100%;border-collapse:collapse;margin-top:6px}.qs-table thead th{background:#0f172a;color:#fff;font-size:10px;text-transform:uppercase;letter-spacing:.4px;padding:8px;text-align:left}.qs-table th.c,.qs-table td.c{text-align:center}.qs-table th.r,.qs-table td.r{text-align:right}.qs-table tbody td{padding:8px;border-bottom:1px solid #eef1f4;vertical-align:top}.qs-plabel{font-weight:600;color:#0f172a}.qs-table .qs-sku{font-family:ui-monospace,monospace;font-size:9px;color:#94a3b8}.qs-table td.muted{color:#94a3b8}.qs-totals{margin-left:auto;width:50%;margin-top:12px}.qs-totals div{display:flex;justify-content:space-between;padding:4px 0;font-size:12px}.qs-totals span{color:#6b7280}.qs-totals b{color:#0f172a}.qs-grand{border-top:2px solid #0f172a;margin-top:4px;padding-top:8px!important;font-size:15px!important}.qs-grand span,.qs-grand b{font-weight:800;color:#0f172a}.qs-warn{margin-top:14px;font-size:10px;color:#b45309;background:#fffbeb;border:1px solid #fde68a;border-radius:6px;padding:6px 8px}.qs-terms{margin-top:18px;font-size:10px;color:#4b5563;line-height:1.6;border-top:1px dashed #e2e8f0;padding-top:10px;white-space:pre-wrap}.qs-foot{margin-top:22px;font-size:9px;color:#94a3b8;text-align:center;border-top:1px solid #e2e8f0;padding-top:10px}@media print{body{background:#fff}body *{visibility:hidden}.quote-overlay,.quote-overlay *{visibility:visible}.quote-overlay{position:absolute;top:0;right:0;bottom:0;left:0;background:#fff;padding:0;display:block;overflow:visible}.no-print{display:none!important}.quote-sheet{width:auto;min-height:auto;box-shadow:none;padding:12mm}}
