:root{--primary:#2563eb;--bg-color:#f8fafc;--card-bg:#fff;--border-color:#e2e8f0;--text-main:#1e293b;--text-muted:#64748b;--error-color:#ef4444;--success-color:#10b981}.placement-control,.placement-summary{flex-wrap:wrap;align-items:center;gap:7px;width:100%;display:flex}.placement-control>span{width:100%;font-size:12px;font-weight:700}.placement-control button{cursor:pointer;background:#fff;border:1px solid #b9c0ca;border-radius:6px;padding:6px 9px}.placement-control button.active{background:#eaf1ff;border-color:#175cd3;box-shadow:0 0 0 2px #175cd326}.placement-summary{color:#374151;font-size:12px}*{box-sizing:border-box}[hidden]{display:none!important}body{background:var(--bg-color);color:var(--text-main);margin:0;padding:40px 20px;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif}body.dialog-open{overflow:hidden}.customer-form-fields{border:0;min-width:0;margin:0;padding:0}.locked-message{color:#92400e;background:#fffbeb;border-color:#f59e0b}.customer-form-fields:disabled{opacity:.72}.main-wrapper{grid-template-columns:1fr 420px;align-items:start;gap:30px;max-width:1250px;margin:0 auto;display:grid}.card{background:var(--card-bg);border:1px solid var(--border-color);border-radius:12px;padding:30px;box-shadow:0 4px 6px -1px #0000000d}h2{margin:0 0 24px;font-size:22px;font-weight:600}.form-group{margin-bottom:20px}label{margin-bottom:6px;font-size:14px;font-weight:500;display:block}input[type=text],textarea,select{border:1px solid var(--border-color);width:100%;color:var(--text-main);background:#fff;border-radius:6px;padding:6px 10px;font-size:13px;transition:border-color .2s}input:focus,textarea:focus,select:focus{border-color:var(--primary);outline:none;box-shadow:0 0 0 3px #2563eb1a}.items-header{justify-content:space-between;align-items:center;margin-bottom:15px;display:flex}.items-header label{margin:0;font-weight:600}.btn{background:var(--primary);color:#fff;cursor:pointer;border:0;border-radius:8px;padding:10px 16px;font-size:14px;font-weight:500}.btn:hover{background:#1d4ed8}.btn:focus-visible,.dialog-close:focus-visible,.product-choice:focus-visible,.color-choice-trigger:focus-visible,.color-tile:focus-visible{outline-offset:2px;outline:3px solid #2563eb59}.btn-wide,.submit-btn{width:100%}.submit-btn{margin-top:10px;padding:12px;font-size:15px}.btn-bottom-container{text-align:center;margin-top:15px}.notes-group{margin-top:25px}.empty-state{text-align:center;color:var(--text-muted);border:2px dashed var(--border-color);border-radius:8px;margin-bottom:15px;padding:30px;font-size:14px}.item-row{cursor:pointer;background:#fff;border:2px solid;border-radius:8px;margin-bottom:12px;padding:12px 14px;transition:all .2s}.item-row.incomplete{border-color:var(--error-color);background:#fef2f2}.item-row.incomplete.active{box-shadow:0 0 0 4px #ef444459}.item-row.complete{border-color:var(--success-color);background:#f0fdf4}.item-row.complete.active{box-shadow:0 0 0 4px #10b98159}.row-top{flex-wrap:nowrap;align-items:flex-end;gap:8px;display:flex}.row-top select,.row-top input[type=number]{height:32px;padding:4px 8px;font-size:12px}.product-badge{color:#1d4ed8;white-space:nowrap;background:#e8efff;border-radius:5px;align-items:center;height:26px;padding:0 8px;font-size:10px;font-weight:700;display:inline-flex}.input-qty{text-align:center;flex-shrink:0;width:50px}.size-select{width:66px}.mode-select{width:82px}.side-select{width:100px}.variant-field{flex:none;gap:3px;display:grid}.variant-field>label{color:var(--text-muted);margin:0;font-size:11px;font-weight:400;line-height:1}.variant-color-field{min-width:126px}.btn-clone{border:1px solid var(--primary);color:var(--primary);cursor:pointer;white-space:nowrap;background:#fff;border-radius:6px;padding:6px 10px;font-size:12px}.btn-clone:disabled{color:#94a3b8;cursor:not-allowed;border-color:#cbd5e1}.btn-danger{background:var(--error-color);color:#fff;cursor:pointer;white-space:nowrap;border:0;border-radius:6px;margin-left:auto;padding:6px 12px;font-size:12px}.btn-danger:hover{background:#dc2626}.color-choice-trigger{border:1px solid var(--border-color);min-width:126px;max-width:155px;height:32px;color:var(--text-main);cursor:pointer;white-space:nowrap;background:#fff;border-radius:6px;align-items:center;gap:6px;padding:4px 8px;font-size:11px;display:inline-flex;overflow:hidden}.trigger-swatch{border:1px solid #0003;border-radius:3px;flex:none;width:15px;height:15px}.trigger-label{text-overflow:ellipsis;overflow:hidden}.trigger-caret{color:var(--text-muted);margin-left:auto}.row-content-section{border-top:1px solid #0000000f;margin-top:8px;padding-top:8px}.row-files,.row-texts,.slot-sections{grid-template-columns:1fr 1fr;gap:8px;display:grid}.personalization-slot{border:1px solid var(--border-color);background:#ffffffb3;border-radius:7px;min-width:0;padding:7px}.slot-heading{justify-content:space-between;align-items:center;gap:8px;margin-bottom:7px;font-size:12px;display:flex}.slot-heading select{width:90px}.slot-status{color:#b45309;font-size:10px;font-weight:600}.slot-complete .slot-status{color:#15803d}.slot-mode-buttons{background:#eef2f7;border-radius:7px;grid-template-columns:repeat(2,1fr);gap:4px;margin-bottom:7px;padding:3px;display:grid}.slot-mode-buttons button{color:#475569;cursor:pointer;background:0 0;border:0;border-radius:5px;padding:6px;font-size:11px}.slot-mode-buttons button.active{color:var(--primary);background:#fff;font-weight:700;box-shadow:0 1px 3px #0f172a26}.slot-error{color:#b91c1c;min-height:13px;margin-top:4px;font-size:10px;display:block}.slot-complete .slot-error{display:none}.file-upload-label{border:1px dashed var(--border-color);cursor:pointer;background:#fff;border-radius:6px;justify-content:space-between;align-items:center;padding:5px 8px;font-size:11px;display:flex}.file-upload-label:hover{border-color:var(--primary)}.file-upload-label input{display:none}.file-name{color:var(--text-muted);text-overflow:ellipsis;white-space:nowrap;vertical-align:bottom;max-width:110px;display:inline-block;overflow:hidden}.text-input-group{border:1px solid var(--border-color);background:#fff;border-radius:6px;padding:6px 8px;font-size:11px}.text-input-group input{margin-top:3px}.btn-copy{width:100%;color:var(--text-muted);cursor:pointer;background:#f1f5f9;border:1px dashed #cbd5e1;border-radius:6px;margin-top:10px;padding:6px;font-size:12px;font-weight:500;display:block}.btn-copy:hover{color:var(--text-main);border-color:var(--primary);background:#e2e8f0}.preview-sticky{z-index:20;position:sticky;top:20px}.preview-card{z-index:20;padding:20px;position:relative;overflow:visible}.preview-title{margin-bottom:15px;font-size:16px}.preview-box{border:1px solid var(--border-color);z-index:10;background:#fff;border-radius:12px;justify-content:center;align-items:center;width:100%;height:400px;display:flex;position:relative;overflow:visible;box-shadow:0 4px 6px -1px #0000000d}.preview-placeholder{color:var(--text-muted);text-align:center;padding:20px;font-size:14px}.preview-zoom-container{aspect-ratio:16/10;transform-origin:50%;cursor:zoom-in;z-index:20;width:100%;max-width:340px;margin:auto;transition:transform .15s ease-out,transform-origin 50ms ease-out;position:relative}.preview-content{width:100%}.preview-background{object-fit:contain;width:100%;height:100%;display:block}.print-layer{pointer-events:none;text-align:center;white-space:pre-wrap;overflow-wrap:anywhere;justify-content:center;align-items:center;font-weight:700;line-height:1.05;display:flex;position:absolute;overflow:hidden}.print-layer img{object-fit:contain;width:100%;height:100%}.modal-backdrop{z-index:1000;background:#0f172a85;place-items:center;padding:20px;display:grid;position:fixed;inset:0}.modal-backdrop[hidden]{display:none}.selection-dialog{border:1px solid var(--border-color);background:#fff;border-radius:12px;width:min(92vw,520px);max-height:min(86vh,720px);padding:20px;overflow:auto;box-shadow:0 24px 60px #0f172a40}.color-dialog{width:min(94vw,760px)}.dialog-header{justify-content:space-between;align-items:flex-start;gap:18px;margin-bottom:16px;display:flex}.dialog-header h2{margin:0;font-size:19px}.dialog-subtitle{color:var(--text-muted);margin:3px 0 0;font-size:12px}.dialog-close{color:var(--text-main);cursor:pointer;background:#f1f5f9;border:0;border-radius:7px;width:32px;height:32px;font-size:22px;line-height:1}.product-choice-grid{grid-template-columns:repeat(2,1fr);gap:12px;display:grid}.product-choice{border:1px solid var(--border-color);min-height:120px;color:var(--text-main);cursor:pointer;background:#fff;border-radius:10px;align-content:center;place-items:center;gap:8px;font-size:15px;display:grid}.product-choice:hover{border-color:var(--primary);background:#eff6ff}.product-choice-icon{width:48px;height:48px;color:var(--primary);background:#e8efff;border-radius:50%;place-items:center;font-size:21px;font-weight:800;display:grid}.color-tile-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;display:grid}.color-tile{color:var(--text-main);cursor:pointer;background:#f8fafc;border:2px solid #0000;border-radius:9px;min-width:0;padding:7px}.color-tile:hover{border-color:#93b9ef;transform:translateY(-1px)}.color-tile.selected{border-color:var(--primary);background:#eff6ff;box-shadow:0 0 0 2px #2563eb1f}.color-sample{aspect-ratio:1.55;border:1px solid #0f172a29;border-radius:5px;width:100%;margin-bottom:7px;display:block}.color-name{font-size:11px;font-weight:700;line-height:1.15;display:block}.color-code{color:var(--text-muted);margin-top:2px;font-size:10px;display:block}.form-message{border-radius:8px;margin-bottom:18px;padding:11px 13px;font-size:13px}.form-message ul{margin:7px 0 0;padding-left:18px}.success-message{color:#166534;background:#effcf3;border:1px solid #a7e6bd}.error-message{color:#991b1b;background:#fff1f2;border:1px solid #fecaca}.edit-link-box{overflow-wrap:anywhere;margin-top:7px}.edit-link-box a{color:#1d4ed8}.allegro-allocation-panel{background:#f7f9fb;border:1px solid #d7dce3;border-radius:8px;margin:12px 0;padding:12px}.allocation-counter{justify-content:space-between;gap:12px;padding-top:7px;font-size:14px;display:flex}.allocation-counter.allocation-invalid [data-remaining]{color:#b42318}.allocation-error-message{color:#991b1b;background:#fff1f2;border:1px solid #fca5a5;border-radius:7px;margin-top:9px;padding:9px 11px;font-size:12px;font-weight:650;line-height:1.4}.allocation-error-message:focus{outline-offset:2px;outline:3px solid #dc262633}.allegro-allocation-panel.allocation-over-limit{background:#fff7f7;border-color:#f87171}.input-qty.quantity-allocation-error{color:#991b1b;background:#fff1f2;border-color:#dc2626;box-shadow:0 0 0 2px #dc26261f}.allocation-progress{background:#e2e8f0;border-radius:99px;height:7px;margin:9px 0 12px;overflow:hidden}.allocation-progress span{border-radius:inherit;background:var(--primary);width:0;height:100%;transition:width .2s;display:block}.summary-dialog{width:min(94vw,620px)}.order-summary-list{gap:9px;max-height:55vh;display:grid;overflow:auto}.order-summary-item{border:1px solid var(--border-color);background:#f8fafc;border-radius:8px;gap:5px;padding:11px;font-size:12px;display:grid}.order-summary-item span{color:var(--text-muted)}.order-summary-item ul{margin:0;padding-left:18px}.summary-actions{justify-content:flex-end;gap:8px;margin-top:15px;display:flex}.summary-back{color:var(--text-main);background:#e2e8f0}@media (width<=700px){.allocation-counter{flex-direction:column;gap:2px}}.order-history{border:1px solid var(--border-color);border-radius:8px;margin-top:20px;padding:12px;font-size:12px}.order-history summary{cursor:pointer;font-weight:700}.history-entry{border-top:1px solid var(--border-color);margin-top:10px;padding-top:10px}.history-entry strong,.history-entry small{display:block}.history-entry small{color:var(--text-muted);margin-top:2px}.history-entry ul{margin:7px 0 0;padding-left:18px}@media (width<=950px){.main-wrapper{grid-template-columns:1fr}.preview-sticky{position:static}}@media (width<=720px){body{padding:20px 12px}.card{padding:20px}.row-top{flex-wrap:wrap}.btn-danger{margin-left:0}.color-tile-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (width<=480px){.product-choice-grid{grid-template-columns:1fr}.color-tile-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.row-files,.row-texts,.slot-sections{grid-template-columns:1fr}.preview-box{height:330px}}
