```css
/* =========================================================
   Base
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    margin: 0;
    padding: 0;
    background: #f1f5f9;
    color: #172033;
    font-family:
        "Noto Sans Bengali",
        "Nirmala UI",
        "Segoe UI",
        Arial,
        sans-serif;
    line-height: 1.55;
}

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

.hidden {
    display: none !important;
}


/* =========================================================
   Application Header
   ========================================================= */

.app {
    min-height: 100vh;
}

.app-header {
    background: #0f172a;
    color: #ffffff;
    padding: 24px 20px;
}

.app-header > div {
    max-width: 1180px;
    margin: auto;
}

.app-header h1 {
    margin: 0 0 5px;
    font-size: 26px;
}

.app-header p {
    margin: 0;
    color: #cbd5e1;
}


/* =========================================================
   Main Container
   ========================================================= */

.container {
    max-width: 1180px;
    margin: 25px auto 60px;
    padding: 0 18px;
}


/* =========================================================
   Cards
   ========================================================= */

.card {
    background: #ffffff;
    border: 1px solid #dbe2ea;
    border-radius: 12px;
    padding: 22px;
    margin-bottom: 22px;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.section-title h2 {
    margin: 0 0 4px;
    font-size: 21px;
}

.section-title p {
    margin: 0;
    color: #64748b;
}


/* =========================================================
   Forms
   ========================================================= */

.product-form,
.quotation-controls {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 220px auto;
    gap: 15px;
    align-items: end;
    margin-bottom: 22px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.form-group label {
    font-weight: 700;
    color: #334155;
    font-size: 14px;
}

.form-group input,
.form-group select {
    width: 100%;
    min-height: 44px;
    padding: 9px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    background: #ffffff;
    color: #172033;
    outline: none;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.form-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}


/* =========================================================
   Buttons
   ========================================================= */

.btn {
    border: 0;
    border-radius: 7px;
    padding: 10px 17px;
    min-height: 43px;
    font-weight: 700;
    transition: 0.15s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: #2563eb;
    color: #ffffff;
}

.btn-primary:hover {
    background: #1d4ed8;
}

.btn-success {
    background: #059669;
    color: #ffffff;
}

.btn-success:hover {
    background: #047857;
}

.btn-secondary {
    background: #64748b;
    color: #ffffff;
}

.btn-danger-outline {
    background: #ffffff;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.btn-danger-outline:hover {
    background: #fef2f2;
}

.btn-large {
    padding: 13px 24px;
}

.btn-print {
    background: #0f172a;
    color: #ffffff;
    min-width: 180px;
    font-size: 16px;
}


/* =========================================================
   Product Tables
   ========================================================= */

.table-wrapper,
.draft-table-wrapper {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 650px;
}

.data-table th,
.data-table td {
    padding: 11px 12px;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
    vertical-align: middle;
}

.data-table th {
    background: #f8fafc;
    color: #334155;
    font-size: 14px;
}

.data-table tbody tr:hover {
    background: #f8fafc;
}

.action-column {
    width: 150px;
}

.table-btn {
    border: 0;
    border-radius: 5px;
    padding: 6px 10px;
    margin-right: 5px;
    font-size: 13px;
    font-weight: 700;
}

.edit-btn {
    background: #dbeafe;
    color: #1d4ed8;
}

.delete-btn {
    background: #fee2e2;
    color: #b91c1c;
}

.empty-message {
    text-align: center !important;
    color: #64748b;
    padding: 25px !important;
}


/* =========================================================
   Draft Quotation
   ========================================================= */

.quotation-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

.draft-total {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
}

.total-label {
    text-align: right !important;
    font-weight: 800;
}


/* =========================================================
   Printable Quotation - Screen
   ========================================================= */

.quotation-paper {
    width: 210mm;
    min-height: 297mm;
    margin: 30px auto;
    padding: 15mm 14mm;
    background: #ffffff;
    border: 1px solid #d1d5db;
    box-shadow: 0 8px 35px rgba(15, 23, 42, 0.10);
    color: #111827;
}

.quotation-header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 3px solid #111827;
    padding-bottom: 12px;
    margin-bottom: 15px;
}

.business-info {
    flex: 1;
}

.business-info h1 {
    font-size: 25px;
    margin: 0 0 6px;
}

.business-info p {
    margin: 2px 0;
    font-size: 13px;
}

.quotation-meta {
    min-width: 230px;
}

.quotation-meta h2 {
    margin: 0 0 10px;
    text-align: right;
    font-size: 21px;
}

.meta-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 13px;
    margin-bottom: 4px;
}


/* =========================================================
   Customer Information
   ========================================================= */

.customer-section {
    border: 1px solid #9ca3af;
    padding: 10px 12px;
    margin-bottom: 16px;

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px 20px;
}

.customer-field {
    display: flex;
    gap: 6px;
    font-size: 13px;
}

.customer-field:last-child {
    grid-column: 1 / -1;
}

.print-line {
    flex: 1;
    border-bottom: 1px dotted #6b7280;
    min-height: 21px;
}


/* =========================================================
   Printable Quotation Table
   ========================================================= */

.quotation-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.quotation-table th,
.quotation-table td {
    border: 1px solid #374151;

    /*
     * বড় print text
     */
    padding: 8px 7px;
    font-size: 14px;

    vertical-align: middle;
}

.quotation-table th {
    text-align: center;
    background: #f3f4f6;
    font-weight: 800;
}

.quotation-table td:nth-child(1),
.quotation-table td:nth-child(3),
.quotation-table td:nth-child(4),
.quotation-table td:nth-child(5) {
    text-align: center;
}


/* Column Width */

.sl-column {
    width: 9%;
}

.price-column {
    width: 18%;
}

.qty-column {
    width: 12%;
}

.subtotal-column {
    width: 20%;
}


/* Grand Total */

.grand-total-label {
    text-align: right !important;
    font-weight: 900;
    font-size: 15px !important;
}

.grand-total {
    text-align: center !important;
    font-weight: 900;
    font-size: 16px !important;
}

.empty-print-message {
    text-align: center !important;
    padding: 20px !important;
    color: #6b7280;
}


/* =========================================================
   Amount In Words
   ========================================================= */

.amount-words {
    margin-top: 12px;
    border: 1px solid #d1d5db;
    padding: 9px 11px;
    font-size: 13px;
}


/* =========================================================
   Terms
   ========================================================= */

.terms {
    margin-top: 20px;
    font-size: 12px;
}

.terms h3 {
    margin: 0 0 5px;
    font-size: 15px;
}

.terms ol {
    margin: 0;
    padding-left: 25px;
}

.terms li {
    margin-bottom: 3px;
}


/* =========================================================
   Signature
   ========================================================= */

.signature-section {
    display: flex;
    justify-content: space-between;
    margin-top: 55px;
}

.signature-box {
    width: 180px;
    text-align: center;
}

.signature-line {
    border-top: 1px solid #111827;
    margin-bottom: 6px;
}

.signature-box p {
    margin: 0;
    font-size: 12px;
}


/* =========================================================
   Footer
   ========================================================= */

.quotation-footer {
    border-top: 1px solid #d1d5db;
    margin-top: 25px;
    padding-top: 8px;
    text-align: center;
    font-size: 11px;
    color: #4b5563;
}


/* =========================================================
   Bottom Controls
   ========================================================= */

.bottom-controls {
    max-width: 900px;
    margin: 0 auto;
    background: #ffffff;
    padding: 18px;
    border: 1px solid #dbe2ea;
    border-radius: 10px;
}

.customer-inputs {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr;
    gap: 12px;
    margin-bottom: 15px;
}

.bottom-controls .btn-print {
    display: block;
    margin-left: auto;
}


/* =========================================================
   Toast
   ========================================================= */

.toast {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 9999;

    background: #0f172a;
    color: #ffffff;

    padding: 12px 18px;
    border-radius: 7px;

    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);

    opacity: 0;
    transform: translateY(15px);

    pointer-events: none;

    transition: 0.25s ease;

    max-width: 360px;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast.error {
    background: #b91c1c;
}

.toast.success {
    background: #047857;
}


/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 800px) {

    .product-form,
    .quotation-controls {
        grid-template-columns: 1fr;
    }

    .customer-inputs {
        grid-template-columns: 1fr;
    }

    .quotation-paper {
        width: 100%;
        min-height: auto;
        padding: 20px;
    }

    .quotation-header {
        flex-direction: column;
    }

    .quotation-meta {
        min-width: 0;
    }

    .quotation-meta h2 {
        text-align: left;
    }

    .customer-section {
        grid-template-columns: 1fr;
    }

    .customer-field:last-child {
        grid-column: auto;
    }

    .quotation-actions {
        flex-direction: column;
    }

    .quotation-actions .btn {
        width: 100%;
    }
}


/* =========================================================
   A4 PRINT SETTINGS
   ========================================================= */

@page {
    size: A4 portrait;
    margin: 8mm;
}


@media print {

    /*
     * Browser page setup
     */

    html,
    body {
        width: 210mm;
        min-height: 297mm;

        margin: 0;
        padding: 0;

        background: #ffffff !important;
    }


    body {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }


    /*
     * Hide application controls
     */

    .no-print,
    .app-header,
    .product-management,
    .quotation-builder,
    .bottom-controls,
    .toast {
        display: none !important;
    }


    /*
     * Remove screen layout restrictions
     */

    .app,
    .container {
        width: auto;
        max-width: none;

        margin: 0;
        padding: 0;
    }


    /*
     * A4 quotation paper
     */

    .quotation-paper {

        display: block !important;

        width: 194mm;
        min-height: 281mm;

        margin: 0;

        padding: 4mm 5mm;

        border: 0;
        box-shadow: none;

        background: #ffffff;
    }


    /* =====================================================
       PRINT HEADER
       ===================================================== */

    .quotation-header {

        display: flex;

        gap: 15px;

        margin-bottom: 9px;

        padding-bottom: 8px;

        border-bottom: 2px solid #111827;
    }


    .business-info h1 {
        font-size: 25px;
        line-height: 1.3;
        margin-bottom: 5px;
    }


    .business-info p {
        font-size: 13px;
        line-height: 1.4;
        margin: 1px 0;
    }


    .quotation-meta {
        min-width: 225px;
    }


    .quotation-meta h2 {

        font-size: 21px;

        line-height: 1.3;

        margin-bottom: 8px;
    }


    .meta-row {

        font-size: 13px;

        line-height: 1.4;

        margin-bottom: 3px;
    }


    /* =====================================================
       CUSTOMER INFORMATION
       ===================================================== */

    .customer-section {

        margin-bottom: 10px;

        padding: 7px 9px;

        gap: 5px 15px;
    }


    .customer-field {

        font-size: 13px;

        line-height: 1.45;
    }


    .print-line {
        min-height: 20px;
    }


    /* =====================================================
       MAIN TABLE
       ===================================================== */

    .quotation-table {

        width: 100%;

        table-layout: fixed;

        border-collapse: collapse;
    }


    .quotation-table th,
    .quotation-table td {

        font-size: 14px;

        line-height: 1.4;

        padding: 7px 6px;

        border: 1px solid #111827;

        vertical-align: middle;
    }


    .quotation-table th {

        font-size: 14px;

        font-weight: 800;

        background: #f3f4f6;
    }


    /*
     * Column sizes
     */

    .sl-column {
        width: 9%;
    }

    .price-column {
        width: 18%;
    }

    .qty-column {
        width: 12%;
    }

    .subtotal-column {
        width: 20%;
    }


    /*
     * Grand total
     */

    .grand-total-label {

        font-size: 15px !important;

        font-weight: 900;
    }


    .grand-total {

        font-size: 16px !important;

        font-weight: 900;
    }


    /* =====================================================
       AMOUNT IN WORDS
       ===================================================== */

    .amount-words {

        margin-top: 8px;

        padding: 7px 9px;

        font-size: 13px;

        line-height: 1.5;
    }


    /* =====================================================
       TERMS
       ===================================================== */

    .terms {

        margin-top: 12px;

        font-size: 12px;

        line-height: 1.5;
    }


    .terms h3 {

        font-size: 15px;

        margin-bottom: 4px;
    }


    .terms ol {

        margin-top: 0;

        padding-left: 24px;
    }


    .terms li {

        margin-bottom: 2px;
    }


    /* =====================================================
       SIGNATURE
       ===================================================== */

    .signature-section {

        margin-top: 38px;
    }


    .signature-box {

        width: 180px;
    }


    .signature-box p {

        font-size: 12px;
    }


    /* =====================================================
       FOOTER
       ===================================================== */

    .quotation-footer {

        margin-top: 15px;

        padding-top: 6px;

        font-size: 11px;
    }


    /* =====================================================
       Prevent Broken Sections
       ===================================================== */

    .quotation-table,
    .quotation-header,
    .customer-section,
    .amount-words,
    .terms,
    .signature-section {

        break-inside: avoid;

        page-break-inside: avoid;
    }


    /*
     * Prevent table rows from breaking
     */

    .quotation-table tr {

        break-inside: avoid;

        page-break-inside: avoid;
    }
}
```
