.receipt-generator{max-width:var(--tool-container-max-width, 1600px);margin:0 auto;padding:2rem}.receipt-generator .tool-header{text-align:center;margin-bottom:2rem}.receipt-generator .tool-header h1{font-size:2.5rem;color:var(--primary-color);margin-bottom:.5rem}.receipt-generator .tool-header p{color:#666;font-size:1.1rem}.receipt-content{display:grid;grid-template-columns:1fr 400px;gap:var(--tool-content-gap, 2rem);align-items:start}.receipt-form{display:flex;flex-direction:column;gap:1.5rem}.form-section h3{font-size:1.15rem;font-weight:700;color:var(--gray-900);margin-bottom:1.25rem;padding-bottom:.75rem;border-bottom:2px solid var(--primary);letter-spacing:.03em}.form-section{background:var(--white);padding:1.5rem;border-radius:12px;box-shadow:0 2px 8px #00000014}.form-section h2{font-size:1.2rem;color:#333;margin-bottom:1rem;padding-bottom:.5rem;border-bottom:2px solid #f0f0f0}.template-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:.75rem}.template-btn{padding:1rem;background:#f8f9fa;border:2px solid #e0e0e0;border-radius:8px;cursor:pointer;text-align:center;transition:all .2s}.template-btn:hover{border-color:var(--primary-color);background:#f0f4ff}.template-btn.active{border-color:var(--primary-color);background:var(--primary-color);color:var(--white)}.template-btn.active .template-desc{color:#ffffffe6}.template-name{display:block;font-weight:600;font-size:.95rem;margin-bottom:.25rem}.template-desc{font-size:.75rem;color:#666}.logo-upload{margin-bottom:1rem;display:flex;flex-direction:column;gap:.5rem}.checkbox-label{display:flex;align-items:center;gap:.5rem;font-size:1rem;cursor:pointer}.checkbox-label input[type=checkbox]{width:18px;height:18px;cursor:pointer}.file-input{font-size:.875rem;padding:.5rem;border:1px dashed #ccc;border-radius:6px;background:#fafafa}.form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:1rem}.form-group{display:flex;flex-direction:column;gap:.4rem}.form-group.full-width{grid-column:1 / -1}.form-group label{font-size:1rem;color:var(--gray-900);font-weight:600;margin-bottom:.5rem;line-height:1.5;letter-spacing:.3px}.form-group input,.form-group select,.form-section textarea{padding:.6rem .8rem;border:1px solid #ddd;border-radius:6px;font-size:.95rem;transition:border-color .2s,box-shadow .2s}.form-group input:focus,.form-group select:focus,.form-section textarea:focus{border-color:var(--primary-color);box-shadow:0 0 0 3px #0066ff1a;outline:none}.form-section textarea{resize:vertical;width:100%}.form-section:last-child{margin-bottom:0;padding-bottom:0;border-bottom:none}.input-with-button{display:flex;gap:.5rem}.input-with-button input{flex:1}.generate-btn{padding:.6rem .8rem;background:#f0f0f0;border:1px solid #ddd;border-radius:6px;cursor:pointer;font-size:1rem;transition:background .2s}.generate-btn:hover{background:#e0e0e0}.small-input{width:80px!important;margin-top:.5rem}.items-list{display:flex;flex-direction:column;gap:.75rem}.item-row{display:flex;align-items:center;gap:.5rem;padding:.75rem;background:#f8f9fa;border-radius:8px}.item-number{width:24px;height:24px;display:flex;align-items:center;justify-content:center;background:var(--primary-color);color:var(--white);border-radius:50%;font-size:.75rem;font-weight:600;flex-shrink:0}.sku-input{width:80px;flex-shrink:0}.desc-input{flex:1;min-width:150px}.qty-input{width:60px;text-align:center;flex-shrink:0}.times{color:#888;flex-shrink:0}.price-input-wrapper{display:flex;align-items:center;background:var(--white);border:1px solid #ddd;border-radius:6px;padding-left:.5rem;flex-shrink:0}.currency-symbol{color:#666;font-size:.875rem}.price-input{width:80px;border:none!important;padding-left:.25rem!important}.price-input:focus{box-shadow:none!important}.item-total{width:90px;text-align:right;font-weight:600;color:#333;flex-shrink:0}.remove-item-btn{width:28px;height:28px;display:flex;align-items:center;justify-content:center;background:#f44;color:var(--white);border:none;border-radius:50%;font-size:1.2rem;cursor:pointer;transition:background .2s;flex-shrink:0}.remove-item-btn:hover:not(:disabled){background:#c00}.remove-item-btn:disabled{background:#ccc;cursor:not-allowed}.add-item-btn{padding:.75rem 1rem;background:#f0f4ff;border:2px dashed var(--primary-color);border-radius:8px;color:var(--primary-color);font-weight:600;cursor:pointer;transition:all .2s;margin-top:.5rem}.add-item-btn:hover{background:var(--primary-color);border-style:solid;color:var(--white)}.discount-inputs{display:flex;gap:.5rem}.discount-inputs select{width:60px;flex-shrink:0}.discount-inputs input{flex:1}.receipt-preview-container{position:sticky;top:2rem}.preview-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem}.preview-header h2{font-size:1.2rem;color:#333;margin:0}.preview-actions{display:flex;gap:.5rem}.action-btn{padding:.5rem 1rem;background:#f0f0f0;border:1px solid #ddd;border-radius:6px;cursor:pointer;font-size:.875rem;display:flex;align-items:center;gap:.4rem;transition:all .2s}.action-btn:hover{background:#e0e0e0}.action-btn.primary{background:var(--primary-color);color:var(--white);border-color:var(--primary-color)}.action-btn.primary:hover{background:#0052cc}.receipt-paper{background:var(--white);border-radius:4px;box-shadow:0 4px 20px #00000026;overflow:hidden}.receipt-template{padding:1.5rem;font-family:Courier New,monospace;font-size:.85rem;line-height:1.6;color:#333}.receipt-header{text-align:center;margin-bottom:1rem}.receipt-logo{max-width:100px;max-height:60px;margin-bottom:.5rem}.receipt-header .business-name{font-size:1.2rem;font-weight:700;margin:0 0 .5rem;text-transform:uppercase}.receipt-header p{margin:.15rem 0;font-size:.8rem;color:#555}.receipt-divider{text-align:center;color:#888;margin:.75rem 0;font-size:.7rem;letter-spacing:-1px;overflow:hidden}.receipt-info{margin-bottom:.5rem}.info-row{display:flex;justify-content:space-between;padding:.15rem 0;font-size:.8rem}.info-row span:first-child{color:#666}.receipt-items{margin:.5rem 0}.items-header{display:flex;font-weight:600;font-size:.75rem;padding-bottom:.25rem;border-bottom:1px dashed #ccc;margin-bottom:.25rem}.item-line{display:flex;padding:.25rem 0;font-size:.8rem}.sku-col{width:50px;flex-shrink:0}.desc-col{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.qty-col{width:35px;text-align:center;flex-shrink:0}.price-col{width:60px;text-align:right;flex-shrink:0}.total-col{width:70px;text-align:right;flex-shrink:0}.receipt-totals{margin:.5rem 0}.total-row{display:flex;justify-content:space-between;padding:.2rem 0;font-size:.85rem}.total-row.discount{color:#2a2}.total-row.grand-total{font-size:1.1rem;font-weight:700;padding:.5rem 0}.receipt-payment{margin:.5rem 0}.payment-row{display:flex;justify-content:space-between;padding:.15rem 0;font-size:.8rem}.payment-row span:first-child{color:#666}.receipt-notes{margin:.5rem 0;font-size:.75rem;color:#666;font-style:italic;text-align:center}.receipt-footer{text-align:center;margin-top:1rem}.thank-you{font-size:1.1rem;font-weight:700;margin:.75rem 0 .25rem}.footer-text{font-size:.75rem;color:#666;margin:.15rem 0}.receipt-template.restaurant .receipt-header .business-name{font-style:italic}.receipt-template.retail .receipt-header .business-name{letter-spacing:2px}.receipt-template.service{font-family:Arial,sans-serif}.receipt-template.service .receipt-header .business-name{font-family:Georgia,serif}.tips-section{margin-top:3rem;padding:2rem;background:#f8f9fa;border-radius:12px}.tips-section h2{text-align:center;color:#333;margin-bottom:1.5rem}.tips-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1.5rem}.tip-card{background:var(--white);padding:1.5rem;border-radius:10px;text-align:center;box-shadow:0 2px 6px #0000000d}.tip-icon{font-size:2rem;display:block;margin-bottom:.75rem}.tip-card h3{font-size:1rem;color:#333;margin-bottom:.5rem}.tip-card p{font-size:.85rem;color:#666;line-height:1.6}.cta-section{margin-top:2rem;padding:3rem;background:linear-gradient(135deg,var(--primary-color),#0052cc);border-radius:12px;text-align:center;color:var(--white)}.cta-section h2{font-size:1.8rem;margin-bottom:.75rem}.cta-section p{font-size:1.1rem;opacity:.95;margin-bottom:1.5rem;max-width:600px;margin-left:auto;margin-right:auto}.cta-button{display:inline-block;padding:1rem 2rem;background:var(--white);color:var(--primary-color);text-decoration:none;border-radius:8px;font-weight:600;font-size:1.1rem;transition:transform .2s,box-shadow .2s}.cta-button:hover{transform:translateY(-2px);box-shadow:0 6px 20px #0003}@media print{.receipt-generator{padding:0}.receipt-generator .tool-header,.receipt-form,.preview-header,.tips-section,.cta-section{display:none!important}.receipt-content{display:block}.receipt-preview-container{position:static}.receipt-paper{box-shadow:none;border:none}}@media (max-width: 1200px){.receipt-content{grid-template-columns:1fr}.receipt-preview-container{position:static;order:-1}.tips-grid{grid-template-columns:repeat(2,1fr)}}@media (max-width: 768px){.receipt-generator{padding:1rem}.template-grid{grid-template-columns:repeat(2,1fr)}.form-grid{grid-template-columns:1fr}.item-row{flex-wrap:wrap;gap:.5rem}.desc-input{order:1;flex-basis:100%;min-width:auto}.item-number{order:0}.sku-input{order:2}.qty-input,.times,.price-input-wrapper,.item-total,.remove-item-btn{order:3}.tips-grid{grid-template-columns:1fr}.cta-section{padding:2rem 1.5rem}.cta-section h2{font-size:1.4rem}}.currency-select{margin-top:1rem}.currency-select select{width:100%;padding:.75rem;border-radius:8px;border:1px solid #ddd;font-size:1rem;background:var(--white)}
