484 lines
6.8 KiB
SCSS
484 lines
6.8 KiB
SCSS
|
|
/* TaxInvoice.scss - Exact Match Design */
|
||
|
|
|
||
|
|
.invoice-container {
|
||
|
|
width: 100%;
|
||
|
|
max-width: 210mm;
|
||
|
|
margin: 0 auto;
|
||
|
|
background: white;
|
||
|
|
padding: 8px;
|
||
|
|
font-family: 'Arial', sans-serif;
|
||
|
|
font-size: 9px;
|
||
|
|
line-height: 1.1;
|
||
|
|
color: #000;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* Header */
|
||
|
|
.invoice-header {
|
||
|
|
text-align: center;
|
||
|
|
margin-bottom: 0;
|
||
|
|
padding: 3px 0;
|
||
|
|
}
|
||
|
|
|
||
|
|
.overall-container {
|
||
|
|
border: 1px solid #000;
|
||
|
|
background: white;
|
||
|
|
}
|
||
|
|
|
||
|
|
.invoice-title {
|
||
|
|
font-size: 12px;
|
||
|
|
font-weight: bold;
|
||
|
|
text-align: center;
|
||
|
|
margin-bottom: 1px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.original-text {
|
||
|
|
text-align: center;
|
||
|
|
font-size: 7px;
|
||
|
|
font-weight: normal;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* Company Section */
|
||
|
|
.company-section {
|
||
|
|
display: grid;
|
||
|
|
grid-template-columns: 1fr 1fr;
|
||
|
|
gap: 32px;
|
||
|
|
margin-bottom: 24px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.seller-details {
|
||
|
|
// border: 1px solid black;
|
||
|
|
padding: 12px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.company-name {
|
||
|
|
font-weight: bold;
|
||
|
|
margin-bottom: 8px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.company-info {
|
||
|
|
font-size: 10px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.company-info>div {
|
||
|
|
margin-bottom: 4px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.invoice-details {
|
||
|
|
display: flex;
|
||
|
|
flex-direction: column;
|
||
|
|
// gap: 16px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.detail-row {
|
||
|
|
display: grid;
|
||
|
|
grid-template-columns: 1fr 1fr;
|
||
|
|
gap: 16px;
|
||
|
|
font-size: 10px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.detail-label {
|
||
|
|
font-weight: 600;
|
||
|
|
margin-bottom: 2px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.terms-delivery {
|
||
|
|
font-size: 10px;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* Buyer Details */
|
||
|
|
.buyer-details {
|
||
|
|
border: 1px solid black;
|
||
|
|
padding: 12px;
|
||
|
|
margin-bottom: 24px;
|
||
|
|
font-size: 10px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.buyer-title {
|
||
|
|
font-weight: bold;
|
||
|
|
margin-bottom: 4px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.buyer-name {
|
||
|
|
font-weight: bold;
|
||
|
|
}
|
||
|
|
|
||
|
|
.buyer-details>div {
|
||
|
|
margin-bottom: 2px;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* Items Table */
|
||
|
|
.items-table {
|
||
|
|
border: 1px solid black;
|
||
|
|
margin-bottom: 16px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.table-header {
|
||
|
|
display: grid;
|
||
|
|
grid-template-columns: 8% 42% 12% 12% 16% 10%;
|
||
|
|
background-color: #f5f5f5;
|
||
|
|
border-bottom: 1px solid black;
|
||
|
|
font-size: 10px;
|
||
|
|
font-weight: 600;
|
||
|
|
}
|
||
|
|
|
||
|
|
.table-header>div {
|
||
|
|
padding: 8px;
|
||
|
|
border-right: 1px solid black;
|
||
|
|
}
|
||
|
|
|
||
|
|
.table-header>div:last-child {
|
||
|
|
border-right: none;
|
||
|
|
}
|
||
|
|
|
||
|
|
.table-row {
|
||
|
|
display: grid;
|
||
|
|
grid-template-columns: 8% 42% 12% 12% 16% 10%;
|
||
|
|
border-bottom: 1px solid black;
|
||
|
|
font-size: 10px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.table-row>div {
|
||
|
|
padding: 8px;
|
||
|
|
border-right: 1px solid black;
|
||
|
|
}
|
||
|
|
|
||
|
|
.table-row>div:last-child {
|
||
|
|
border-right: none;
|
||
|
|
text-align: right;
|
||
|
|
}
|
||
|
|
|
||
|
|
.col-si {
|
||
|
|
text-align: center;
|
||
|
|
}
|
||
|
|
|
||
|
|
.col-amount {
|
||
|
|
text-align: right;
|
||
|
|
}
|
||
|
|
|
||
|
|
.item-name {
|
||
|
|
font-weight: 600;
|
||
|
|
margin-bottom: 2px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.item-code {
|
||
|
|
font-size: 9px;
|
||
|
|
color: #666;
|
||
|
|
}
|
||
|
|
|
||
|
|
.subtotal-row {
|
||
|
|
display: grid;
|
||
|
|
grid-template-columns: 90% 10%;
|
||
|
|
font-size: 10px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.col-spacer {
|
||
|
|
padding: 8px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.subtotal-row .col-amount {
|
||
|
|
padding: 8px;
|
||
|
|
text-align: right;
|
||
|
|
border-top: 1px solid black;
|
||
|
|
}
|
||
|
|
|
||
|
|
.tax-row {
|
||
|
|
display: grid;
|
||
|
|
grid-template-columns: 90% 10%;
|
||
|
|
font-size: 10px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.tax-label {
|
||
|
|
padding: 8px;
|
||
|
|
text-align: right;
|
||
|
|
}
|
||
|
|
|
||
|
|
.tax-row .col-amount {
|
||
|
|
padding: 8px;
|
||
|
|
text-align: right;
|
||
|
|
}
|
||
|
|
|
||
|
|
.rounding-row {
|
||
|
|
display: grid;
|
||
|
|
grid-template-columns: 58% 32% 10%;
|
||
|
|
font-size: 10px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.rounding-text {
|
||
|
|
padding: 8px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.rounding-label {
|
||
|
|
padding: 8px;
|
||
|
|
text-align: right;
|
||
|
|
}
|
||
|
|
|
||
|
|
.rounding-row .col-amount {
|
||
|
|
padding: 8px;
|
||
|
|
text-align: right;
|
||
|
|
}
|
||
|
|
|
||
|
|
.total-row {
|
||
|
|
display: grid;
|
||
|
|
grid-template-columns: 66% 14% 20%;
|
||
|
|
background-color: #f5f5f5;
|
||
|
|
border-top: 2px solid black;
|
||
|
|
font-size: 10px;
|
||
|
|
font-weight: bold;
|
||
|
|
}
|
||
|
|
|
||
|
|
.total-text {
|
||
|
|
padding: 8px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.total-quantity {
|
||
|
|
padding: 8px;
|
||
|
|
text-align: center;
|
||
|
|
}
|
||
|
|
|
||
|
|
.total-amount {
|
||
|
|
padding: 8px;
|
||
|
|
text-align: right;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* Amount in Words */
|
||
|
|
.amount-words {
|
||
|
|
font-size: 10px;
|
||
|
|
margin-bottom: 16px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.amount-words-label {
|
||
|
|
font-weight: 600;
|
||
|
|
}
|
||
|
|
|
||
|
|
.amount-words-text {
|
||
|
|
font-weight: bold;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* Tax Details Table */
|
||
|
|
.tax-table {
|
||
|
|
border: 1px solid black;
|
||
|
|
margin-bottom: 24px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.tax-table-header {
|
||
|
|
display: grid;
|
||
|
|
grid-template-columns: 14% 14% 10% 14% 10% 19% 19%;
|
||
|
|
background-color: #f5f5f5;
|
||
|
|
border-bottom: 1px solid black;
|
||
|
|
font-size: 10px;
|
||
|
|
font-weight: 600;
|
||
|
|
}
|
||
|
|
|
||
|
|
.tax-table-header>div {
|
||
|
|
padding: 8px;
|
||
|
|
border-right: 1px solid black;
|
||
|
|
}
|
||
|
|
|
||
|
|
.tax-table-header>div:last-child {
|
||
|
|
border-right: none;
|
||
|
|
}
|
||
|
|
|
||
|
|
.tax-table-row {
|
||
|
|
display: grid;
|
||
|
|
grid-template-columns: 14% 14% 10% 14% 10% 19% 19%;
|
||
|
|
border-bottom: 1px solid black;
|
||
|
|
font-size: 10px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.tax-table-row>div {
|
||
|
|
padding: 8px;
|
||
|
|
border-right: 1px solid black;
|
||
|
|
}
|
||
|
|
|
||
|
|
.tax-table-row>div:last-child {
|
||
|
|
border-right: none;
|
||
|
|
}
|
||
|
|
|
||
|
|
.tax-table-total {
|
||
|
|
display: grid;
|
||
|
|
grid-template-columns: 14% 14% 10% 14% 10% 19% 19%;
|
||
|
|
background-color: #f5f5f5;
|
||
|
|
font-size: 10px;
|
||
|
|
font-weight: bold;
|
||
|
|
}
|
||
|
|
|
||
|
|
.tax-table-total>div {
|
||
|
|
padding: 8px;
|
||
|
|
border-right: 1px solid black;
|
||
|
|
}
|
||
|
|
|
||
|
|
.tax-table-total>div:last-child {
|
||
|
|
border-right: none;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* Tax Amount in Words */
|
||
|
|
.tax-amount-words {
|
||
|
|
font-size: 10px;
|
||
|
|
margin-bottom: 24px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.tax-amount-label {
|
||
|
|
font-weight: 600;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* Bottom Section */
|
||
|
|
.bottom-section {
|
||
|
|
display: grid;
|
||
|
|
grid-template-columns: 1fr 1fr;
|
||
|
|
gap: 32px;
|
||
|
|
margin-bottom: 24px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.bank-details {
|
||
|
|
font-size: 10px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.bank-title {
|
||
|
|
font-weight: 600;
|
||
|
|
margin-bottom: 8px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.bank-label {
|
||
|
|
font-weight: 600;
|
||
|
|
}
|
||
|
|
|
||
|
|
.bank-details>div {
|
||
|
|
margin-bottom: 2px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.signature-section {
|
||
|
|
text-align: right;
|
||
|
|
}
|
||
|
|
|
||
|
|
.signature-text {
|
||
|
|
font-size: 10px;
|
||
|
|
margin-bottom: 16px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.signature-stamp {
|
||
|
|
display: flex;
|
||
|
|
justify-content: center;
|
||
|
|
align-items: flex-end;
|
||
|
|
height: 64px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.stamp-circle {
|
||
|
|
width: 80px;
|
||
|
|
height: 80px;
|
||
|
|
border-radius: 50%;
|
||
|
|
border: 2px solid #2563eb;
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
justify-content: center;
|
||
|
|
}
|
||
|
|
|
||
|
|
.stamp-text {
|
||
|
|
font-size: 10px;
|
||
|
|
text-align: center;
|
||
|
|
color: #2563eb;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* Declaration */
|
||
|
|
.declaration {
|
||
|
|
font-size: 10px;
|
||
|
|
margin-bottom: 16px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.declaration-title {
|
||
|
|
font-weight: 600;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* Footer */
|
||
|
|
.footer {
|
||
|
|
text-align: center;
|
||
|
|
font-size: 10px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.invoice-details {
|
||
|
|
border: 1px solid #000; // outer border
|
||
|
|
// padding: 12px;
|
||
|
|
width: 100%;
|
||
|
|
font-size: 14px;
|
||
|
|
|
||
|
|
.detail-row {
|
||
|
|
display: flex;
|
||
|
|
justify-content: space-between;
|
||
|
|
border-top: 1px solid #000;
|
||
|
|
// padding: 8px 0;
|
||
|
|
height: 2.5rem;
|
||
|
|
|
||
|
|
&:first-of-type {
|
||
|
|
border-top: none; // remove border for the first row
|
||
|
|
}
|
||
|
|
|
||
|
|
>div {
|
||
|
|
width: 48%;
|
||
|
|
border-left: 1px solid #000;
|
||
|
|
padding-left: 8px;
|
||
|
|
|
||
|
|
&:first-child {
|
||
|
|
border-left: none;
|
||
|
|
}
|
||
|
|
|
||
|
|
.detail-label {
|
||
|
|
font-weight: 600;
|
||
|
|
margin-bottom: 4px;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
.terms-delivery {
|
||
|
|
border-top: 1px solid #000;
|
||
|
|
// margin-top: 8px;
|
||
|
|
padding-top: 8px;
|
||
|
|
|
||
|
|
.detail-label {
|
||
|
|
font-weight: 600;
|
||
|
|
margin-bottom: 4px;
|
||
|
|
}
|
||
|
|
|
||
|
|
>div {
|
||
|
|
padding-left: 4px;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
/* Print Styles */
|
||
|
|
@media print {
|
||
|
|
@page {
|
||
|
|
size: A4;
|
||
|
|
margin: 1cm;
|
||
|
|
}
|
||
|
|
|
||
|
|
body {
|
||
|
|
-webkit-print-color-adjust: exact;
|
||
|
|
print-color-adjust: exact;
|
||
|
|
}
|
||
|
|
|
||
|
|
.invoice-container {
|
||
|
|
max-width: none;
|
||
|
|
padding: 0;
|
||
|
|
font-size: 11px;
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
}
|
||
|
|
|
||
|
|
/* Responsive adjustments */
|
||
|
|
@media screen and (max-width: 768px) {
|
||
|
|
.invoice-container {
|
||
|
|
padding: 10px;
|
||
|
|
font-size: 10px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.company-section {
|
||
|
|
grid-template-columns: 1fr;
|
||
|
|
gap: 16px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.bottom-section {
|
||
|
|
grid-template-columns: 1fr;
|
||
|
|
gap: 16px;
|
||
|
|
}
|
||
|
|
}
|