Update elite.html

This commit is contained in:
jagrit007 2025-10-11 18:06:14 +00:00
parent 3ee4fc1d5a
commit fca2cf151e

View File

@ -10,558 +10,311 @@
box-sizing: border-box; box-sizing: border-box;
} }
@page {
margin: 0;
}
body { body {
font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
color: #1a1a2e; color: #2c3e50;
line-height: 1.6; line-height: 1.6;
background: linear-gradient(135deg, #f5f7fa 0%, #f0f2f5 100%); padding: 60px;
padding: 0; background: #ffffff;
margin: 0;
} }
.page-container { .container {
max-width: 900px; max-width: 850px;
margin: 0 auto; margin: 0 auto;
background: white;
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
} }
.top-accent { /* Header */
height: 8px; .header {
background: linear-gradient(90deg, {{highlightColor}} 0%, {{highlightColor}}dd 100%);
}
.header-section {
background: linear-gradient(135deg, {{highlightColor}}15 0%, {{highlightColorLight}} 100%);
padding: 48px 56px 40px;
position: relative;
overflow: hidden;
}
.header-section::before {
content: '';
position: absolute;
top: -50%;
right: -10%;
width: 400px;
height: 400px;
background: radial-gradient(circle, {{highlightColor}}20 0%, transparent 70%);
border-radius: 50%;
}
.header-section::after {
content: '';
position: absolute;
bottom: -30%;
left: -5%;
width: 300px;
height: 300px;
background: radial-gradient(circle, {{highlightColor}}15 0%, transparent 70%);
border-radius: 50%;
}
.header-content {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: flex-start; align-items: flex-start;
position: relative; margin-bottom: 60px;
z-index: 1; padding-bottom: 30px;
border-bottom: 2px solid {{highlightColor}};
} }
.company-branding { .company-info h1 {
flex: 1;
}
.company-logo-text {
font-size: 32px; font-size: 32px;
font-weight: 800; font-weight: 300;
background: linear-gradient(135deg, {{highlightColor}} 0%, {{highlightColor}}cc 100%); color: {{highlightColor}};
-webkit-background-clip: text; margin-bottom: 10px;
-webkit-text-fill-color: transparent;
background-clip: text;
margin-bottom: 12px;
letter-spacing: -0.5px; letter-spacing: -0.5px;
} }
.company-tagline { .company-info p {
font-size: 13px; font-size: 14px;
color: #64748b; color: #7f8c8d;
font-weight: 500; line-height: 1.8;
text-transform: uppercase; margin: 3px 0;
letter-spacing: 2px;
margin-bottom: 16px;
} }
.company-contact { .invoice-info {
font-size: 13px;
color: #475569;
line-height: 1.9;
}
.company-contact div {
display: flex;
align-items: center;
margin-bottom: 4px;
}
.invoice-badge {
text-align: right; text-align: right;
background: white;
padding: 24px 28px;
border-radius: 16px;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
border: 1px solid rgba(0, 0, 0, 0.04);
} }
.invoice-label { .invoice-title {
font-size: 13px; font-size: 48px;
text-transform: uppercase; font-weight: 200;
letter-spacing: 2.5px; color: #34495e;
color: #94a3b8; margin-bottom: 5px;
font-weight: 700; letter-spacing: -1px;
margin-bottom: 8px;
} }
.invoice-number { .invoice-number {
font-size: 28px; font-size: 18px;
font-weight: 800; color: #7f8c8d;
font-weight: 400;
}
.invoice-number strong {
color: {{highlightColor}}; color: {{highlightColor}};
margin-bottom: 16px; font-weight: 600;
letter-spacing: -0.5px;
} }
.invoice-status { /* Parties Section */
display: inline-block; .parties {
padding: 6px 16px;
background: linear-gradient(135deg, {{highlightColor}}20 0%, {{highlightColor}}10 100%);
color: {{highlightColor}};
font-size: 11px;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 1px;
border-radius: 20px;
border: 1px solid {{highlightColor}}40;
}
.details-section {
padding: 48px 56px;
background: white;
}
.info-grid {
display: flex; display: flex;
gap: 48px; justify-content: space-between;
margin-bottom: 48px; margin-bottom: 50px;
gap: 60px;
} }
.info-card { .party {
flex: 1; flex: 1;
padding: 28px;
background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
border-radius: 12px;
border-left: 4px solid {{highlightColor}};
position: relative;
} }
.info-card::before { .party-label {
content: '';
position: absolute;
top: 0;
right: 0;
width: 80px;
height: 80px;
background: radial-gradient(circle, {{highlightColor}}08 0%, transparent 70%);
border-radius: 50%;
}
.info-card-title {
font-size: 11px; font-size: 11px;
text-transform: uppercase; text-transform: uppercase;
letter-spacing: 2px;
color: #64748b;
font-weight: 700;
margin-bottom: 16px;
display: flex;
align-items: center;
}
.info-card-title::before {
content: '';
display: inline-block;
width: 6px;
height: 6px;
background: {{highlightColor}};
border-radius: 50%;
margin-right: 10px;
}
.info-card-content {
position: relative;
z-index: 1;
}
.client-name {
font-size: 20px;
font-weight: 700;
color: #1e293b;
margin-bottom: 12px;
letter-spacing: -0.3px;
}
.info-detail {
font-size: 14px;
color: #475569;
margin-bottom: 6px;
line-height: 1.6;
}
.date-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 12px;
margin-top: 12px;
}
.date-item {
background: white;
padding: 12px 16px;
border-radius: 8px;
border: 1px solid #e2e8f0;
}
.date-label {
font-size: 10px;
text-transform: uppercase;
letter-spacing: 1.5px; letter-spacing: 1.5px;
color: #94a3b8; color: #95a5a6;
font-weight: 600; font-weight: 600;
margin-bottom: 4px; margin-bottom: 15px;
} }
.date-value { .party-name {
font-size: 18px;
font-weight: 600;
color: #2c3e50;
margin-bottom: 8px;
}
.party-details {
font-size: 14px; font-size: 14px;
color: #1e293b; color: #7f8c8d;
font-weight: 600; line-height: 1.7;
} }
.items-section { /* Dates */
.dates {
display: flex;
justify-content: flex-end;
gap: 40px;
margin-bottom: 40px; margin-bottom: 40px;
} }
.section-title { .date-item {
font-size: 14px; text-align: right;
text-transform: uppercase;
letter-spacing: 2px;
color: #64748b;
font-weight: 700;
margin-bottom: 20px;
padding-bottom: 12px;
border-bottom: 2px solid {{highlightColor}}30;
} }
.date-label {
font-size: 11px;
text-transform: uppercase;
letter-spacing: 1.2px;
color: #95a5a6;
font-weight: 600;
margin-bottom: 5px;
}
.date-value {
font-size: 15px;
color: #2c3e50;
font-weight: 500;
}
/* Table */
.items-table { .items-table {
width: 100%; width: 100%;
border-collapse: separate; border-collapse: collapse;
border-spacing: 0; margin-bottom: 30px;
border-radius: 12px;
overflow: hidden;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
} }
.items-table thead { .items-table thead {
background: linear-gradient(135deg, {{highlightColor}} 0%, {{highlightColor}}dd 100%); border-bottom: 2px solid #34495e;
} }
.items-table th { .items-table th {
padding: 18px 20px; padding: 15px 12px;
text-align: left; text-align: left;
font-size: 11px; font-size: 11px;
text-transform: uppercase; text-transform: uppercase;
letter-spacing: 1.5px; letter-spacing: 1.2px;
color: white; color: #34495e;
font-weight: 700; font-weight: 700;
} }
.items-table th:last-child { .items-table th:nth-child(2),
.items-table th:nth-child(3),
.items-table th:nth-child(4) {
text-align: right; text-align: right;
width: 12%;
} }
.items-table tbody tr { .items-table tbody tr {
background: white; border-bottom: 1px solid #ecf0f1;
transition: all 0.2s ease;
}
.items-table tbody tr:nth-child(even) {
background: #f8fafc;
}
.items-table tbody tr:hover {
background: {{highlightColorLight}};
transform: scale(1.01);
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
} }
.items-table td { .items-table td {
padding: 20px; padding: 18px 12px;
font-size: 14px; font-size: 14px;
color: #334155; color: #2c3e50;
border-bottom: 1px solid #e2e8f0;
} }
.items-table tbody tr:last-child td { .items-table td:first-child {
border-bottom: none; font-weight: 500;
} }
.items-table td:last-child { .items-table td:nth-child(2),
.items-table td:nth-child(3),
.items-table td:nth-child(4) {
text-align: right; text-align: right;
font-weight: 600; color: #7f8c8d;
} }
.item-description { .items-table td:nth-child(4) {
font-weight: 600; font-weight: 600;
color: #1e293b; color: #2c3e50;
font-size: 15px;
} }
.summary-section { /* Summary */
.summary {
display: flex; display: flex;
justify-content: flex-end; justify-content: flex-end;
margin-top: 40px; margin-top: 30px;
} }
.totals-card { .summary-content {
width: 420px; width: 320px;
background: linear-gradient(135deg, #f8fafc 0%, white 100%);
border-radius: 16px;
padding: 32px;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
border: 1px solid #e2e8f0;
} }
.total-row { .summary-row {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
padding: 14px 0; padding: 12px 0;
font-size: 15px; font-size: 15px;
color: #475569;
} }
.total-row.subtotal { .summary-row.subtotal {
padding-bottom: 16px; color: #7f8c8d;
border-bottom: 2px solid #e2e8f0; border-bottom: 1px solid #ecf0f1;
padding-bottom: 15px;
margin-bottom: 5px;
} }
.total-row span:last-child { .summary-row.total {
font-weight: 600; border-top: 2px solid {{highlightColor}};
color: #1e293b;
}
.total-row.tax {
color: #64748b;
font-size: 14px;
}
.total-row.grand-total {
margin-top: 16px;
padding-top: 20px; padding-top: 20px;
border-top: 3px solid {{highlightColor}}; margin-top: 15px;
font-size: 24px; font-size: 20px;
font-weight: 800; font-weight: 600;
} }
.total-row.grand-total span:first-child { .summary-row.total .label {
color: #1e293b; color: #34495e;
} }
.total-row.grand-total span:last-child { .summary-row.total .amount {
background: linear-gradient(135deg, {{highlightColor}} 0%, {{highlightColor}}cc 100%); color: {{highlightColor}};
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
} }
.notes-container { /* Notes */
margin-top: 48px; .notes {
padding: 28px; margin-top: 60px;
background: linear-gradient(135deg, {{highlightColorLight}} 0%, {{highlightColor}}08 100%); padding-top: 30px;
border-radius: 12px; border-top: 1px solid #ecf0f1;
border-left: 4px solid {{highlightColor}};
position: relative;
overflow: hidden;
}
.notes-container::before {
content: '❝';
position: absolute;
top: 10px;
right: 20px;
font-size: 80px;
color: {{highlightColor}}15;
font-family: Georgia, serif;
line-height: 1;
} }
.notes-title { .notes-title {
font-size: 12px; font-size: 11px;
text-transform: uppercase; text-transform: uppercase;
letter-spacing: 2px; letter-spacing: 1.5px;
color: #64748b; color: #95a5a6;
font-weight: 700; font-weight: 600;
margin-bottom: 12px; margin-bottom: 12px;
} }
.notes-content { .notes-content {
font-size: 14px; font-size: 14px;
color: #475569; color: #7f8c8d;
line-height: 1.8; line-height: 1.8;
position: relative; max-width: 600px;
z-index: 1;
} }
.footer-section { /* Footer */
background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%); .footer {
padding: 40px 56px; margin-top: 80px;
color: white; padding-top: 25px;
position: relative; border-top: 1px solid #ecf0f1;
overflow: hidden;
}
.footer-section::before {
content: '';
position: absolute;
top: -50%;
right: -20%;
width: 500px;
height: 500px;
background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
border-radius: 50%;
}
.footer-content {
position: relative;
z-index: 1;
text-align: center; text-align: center;
}
.thank-you {
font-size: 20px;
font-weight: 700;
margin-bottom: 12px;
letter-spacing: -0.3px;
}
.footer-details {
font-size: 13px; font-size: 13px;
color: #94a3b8; color: #95a5a6;
line-height: 1.8;
}
.footer-tagline {
margin-top: 20px;
padding-top: 20px;
border-top: 1px solid rgba(255, 255, 255, 0.1);
font-size: 12px;
color: #64748b;
font-style: italic;
} }
@media print { @media print {
body { body {
background: white; padding: 40px;
}
.page-container {
box-shadow: none;
}
.items-table tbody tr:hover {
background: inherit;
transform: none;
box-shadow: none;
} }
} }
</style> </style>
</head> </head>
<body> <body>
<div class="page-container"> <div class="container">
<div class="top-accent"></div> <!-- Header -->
<div class="header">
<div class="header-section"> <div class="company-info">
<div class="header-content"> <h1>{{companyName}}</h1>
<div class="company-branding"> {{#companyAddress}}<p>{{companyAddress}}</p>{{/companyAddress}}
<div class="company-logo-text">{{companyName}}</div> {{#companyEmail}}<p>{{companyEmail}}</p>{{/companyEmail}}
<div class="company-tagline">Professional Services</div> {{#companyPhone}}<p>{{companyPhone}}</p>{{/companyPhone}}
<div class="company-contact"> </div>
{{#companyAddress}} <div class="invoice-info">
<div>📍 {{companyAddress}}</div> <div class="invoice-title">INVOICE</div>
{{/companyAddress}} <div class="invoice-number"><strong>#{{invoiceNumber}}</strong></div>
{{#companyEmail}}
<div>✉ {{companyEmail}}</div>
{{/companyEmail}}
{{#companyPhone}}
<div>📞 {{companyPhone}}</div>
{{/companyPhone}}
</div> </div>
</div> </div>
<div class="invoice-badge"> <!-- Bill To & From -->
<div class="invoice-label">Invoice</div> <div class="parties">
<div class="invoice-number">#{{invoiceNumber}}</div> <div class="party">
{{#status}} <div class="party-label">Bill To</div>
<div class="invoice-status">{{status}}</div> <div class="party-name">{{customerName}}</div>
{{/status}} <div class="party-details">
</div> {{#customerAddress}}<div>{{customerAddress}}</div>{{/customerAddress}}
</div> {{#customerEmail}}<div>{{customerEmail}}</div>{{/customerEmail}}
</div> {{#customerPhone}}<div>{{customerPhone}}</div>{{/customerPhone}}
<div class="details-section">
<div class="info-grid">
<div class="info-card">
<div class="info-card-title">Billed To</div>
<div class="info-card-content">
<div class="client-name">{{customerName}}</div>
{{#customerAddress}}
<div class="info-detail">{{customerAddress}}</div>
{{/customerAddress}}
{{#customerEmail}}
<div class="info-detail">{{customerEmail}}</div>
{{/customerEmail}}
{{#customerPhone}}
<div class="info-detail">{{customerPhone}}</div>
{{/customerPhone}}
</div> </div>
</div> </div>
<div class="info-card"> <div class="dates">
<div class="info-card-title">Payment Details</div>
<div class="info-card-content">
<div class="date-grid">
<div class="date-item"> <div class="date-item">
<div class="date-label">Issued</div> <div class="date-label">Issue Date</div>
<div class="date-value">{{issueDate}}</div> <div class="date-value">{{issueDate}}</div>
</div> </div>
{{#dueDate}} {{#dueDate}}
<div class="date-item"> <div class="date-item">
<div class="date-label">Due</div> <div class="date-label">Due Date</div>
<div class="date-value">{{dueDate}}</div> <div class="date-value">{{dueDate}}</div>
</div> </div>
{{/dueDate}} {{/dueDate}}
</div> </div>
</div> </div>
</div>
</div>
<div class="items-section"> <!-- Items Table -->
<div class="section-title">Items & Services</div>
<table class="items-table"> <table class="items-table">
<thead> <thead>
<tr> <tr>
<th>Description</th> <th>Description</th>
<th>Qty</th> <th>Quantity</th>
<th>Rate</th> <th>Rate</th>
<th>Amount</th> <th>Amount</th>
</tr> </tr>
@ -569,7 +322,7 @@
<tbody> <tbody>
{{#items}} {{#items}}
<tr> <tr>
<td class="item-description">{{description}}</td> <td>{{description}}</td>
<td>{{quantity}}</td> <td>{{quantity}}</td>
<td>{{unitPrice}}</td> <td>{{unitPrice}}</td>
<td>{{lineTotal}}</td> <td>{{lineTotal}}</td>
@ -577,54 +330,46 @@
{{/items}} {{/items}}
</tbody> </tbody>
</table> </table>
</div>
<div class="summary-section"> <!-- Summary -->
<div class="totals-card"> <div class="summary">
<div class="summary-content">
{{#subtotal}} {{#subtotal}}
<div class="total-row subtotal"> <div class="summary-row subtotal">
<span>Subtotal</span> <span class="label">Subtotal</span>
<span>{{subtotal}}</span> <span class="amount">{{subtotal}}</span>
</div> </div>
{{/subtotal}} {{/subtotal}}
{{#tax}} {{#tax}}
<div class="total-row tax"> <div class="summary-row">
<span>Tax</span> <span class="label">Tax</span>
<span>{{tax}}</span> <span class="amount">{{tax}}</span>
</div> </div>
{{/tax}} {{/tax}}
{{#discount}} {{#discount}}
<div class="total-row tax"> <div class="summary-row">
<span>Discount</span> <span class="label">Discount</span>
<span>-{{discount}}</span> <span class="amount">-{{discount}}</span>
</div> </div>
{{/discount}} {{/discount}}
<div class="total-row grand-total"> <div class="summary-row total">
<span>Total Due</span> <span class="label">Total</span>
<span>{{total}} {{currency}}</span> <span class="amount">{{total}} {{currency}}</span>
</div> </div>
</div> </div>
</div> </div>
<!-- Notes -->
{{#notes}} {{#notes}}
<div class="notes-container"> <div class="notes">
<div class="notes-title">Additional Notes</div> <div class="notes-title">Notes</div>
<div class="notes-content">{{notes}}</div> <div class="notes-content">{{notes}}</div>
</div> </div>
{{/notes}} {{/notes}}
</div>
<div class="footer-section"> <!-- Footer -->
<div class="footer-content"> <div class="footer">
<div class="thank-you">Thank You For Your Business!</div> Thank you for your business
<div class="footer-details">
{{companyName}}<br>
If you have any questions, please contact us
</div>
<div class="footer-tagline">
Invoice generated on {{issueDate}} • Powered by Excellence
</div>
</div>
</div> </div>
</div> </div>
</body> </body>