/* =========================================================
   INVOICE GENERATOR
========================================================= */

.ft-invoice-generator {
    max-width: 1450px;
    margin: 40px auto;
    display: grid;
    grid-template-columns: 420px minmax(0, 1fr);
    gap: 35px;
    font-family: Arial, sans-serif;
    color: #111827;
    box-sizing: border-box;
}

.ft-invoice-generator *,
.ft-invoice-generator *::before,
.ft-invoice-generator *::after {
    box-sizing: border-box;
}


/* =========================================================
   FORM
========================================================= */

.ft-invoice-form {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 25px;
    min-width: 0;
}

.ft-form-title {
    margin-bottom: 25px;
}

.ft-form-title h2 {
    margin: 0 0 6px;
    font-size: 25px;
}

.ft-form-title p {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
}


/* =========================================================
   SECTIONS
========================================================= */

.ft-section {
    padding-bottom: 25px;
    margin-bottom: 25px;
    border-bottom: 1px solid #e5e7eb;
}

.ft-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.ft-section h3 {
    margin: 0 0 17px;
    font-size: 17px;
}


/* =========================================================
   FORM FIELDS
========================================================= */

.ft-section label {
    display: block;
    margin-bottom: 7px;
    font-size: 13px;
    font-weight: 600;
}

.ft-section input,
.ft-section textarea,
.ft-section select {
    width: 100%;
    padding: 11px 13px;
    margin-bottom: 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #ffffff;
    color: #111827;
    font-size: 14px;
    transition: 0.2s ease;
}

.ft-section input:focus,
.ft-section textarea:focus,
.ft-section select:focus {
    outline: none;
    border-color: #111827;
    box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.08);
}

.ft-section input.ft-invalid,
.ft-section textarea.ft-invalid,
.ft-section select.ft-invalid {
    border-color: #dc2626;
    background: #fef2f2;
}

.ft-section textarea {
    min-height: 75px;
    resize: vertical;
}

.ft-field-error {
    display: none;
    margin-top: -9px;
    margin-bottom: 12px;
    color: #dc2626;
    font-size: 12px;
}

.ft-field-error.show {
    display: block;
}

.ft-field-note {
    margin-top: -8px;
    margin-bottom: 12px;
    color: #9ca3af;
    font-size: 11px;
}


/* =========================================================
   LOGO UPLOAD
========================================================= */

.ft-logo-upload {
    border: 2px dashed #d1d5db;
    border-radius: 10px;
    padding: 18px;
    text-align: center;
    margin-bottom: 8px;
    cursor: pointer;
    transition: 0.2s ease;
}

.ft-logo-upload:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.ft-logo-upload input {
    border: none;
    padding: 0;
    margin: 0;
    background: transparent;
}

.ft-optional {
    font-size: 12px;
    font-weight: 400;
    color: #6b7280;
}

.ft-tax-id {
    margin-top: 5px;
}
/* =========================================================
   INVOICE ITEMS
========================================================= */

.invoice-item {
    display: grid;
    grid-template-columns: 1.7fr 0.6fr 0.9fr 38px;
    gap: 7px;
    align-items: center;
    margin-bottom: 10px;
}

.invoice-item input {
    margin-bottom: 0;
}

.ft-remove-item {
    width: 35px;
    height: 42px;
    border: none;
    border-radius: 8px;
    background: #f3f4f6;
    color: #111827;
    cursor: pointer;
    font-size: 18px;
    transition: 0.2s ease;
}

.ft-remove-item:hover {
    background: #fee2e2;
    color: #dc2626;
}


/* =========================================================
   BUTTONS
========================================================= */
/* =========================================
   PRIMARY BUTTON
========================================= */

.ft-primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    padding: 13px 20px;

    border: 0;
    border-radius: 8px;

    background: #111827;
    color: #ffffff;

    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;

    text-align: center;
    text-decoration: none;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease,
        opacity 0.2s ease;
}


.ft-primary-button:hover {
    background: #1f2937;
    color: #ffffff;
}


.ft-primary-button:active {
    transform: translateY(1px);
}


.ft-primary-button:focus {
    outline: none;
    box-shadow:
        0 0 0 3px rgba(17, 24, 39, 0.15);
}


.ft-primary-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}


/* =========================================
   MOBILE PRIMARY BUTTON
========================================= */

@media (max-width: 600px) {

    .ft-primary-button {
        width: 100%;
    }

}

.ft-secondary-button {
    border: 1px solid #d1d5db;
    background: #ffff;
    color: #111827;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: 0.2s ease;
}

.ft-secondary-button:hover {
    background: #f9fafb;
}

.ft-download-button {
    border: none;
    background: #111827;
    color: #ffffff;
    padding: 13px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
}

.ft-download-button:hover {
    background: #000000;
}


/* =========================================================
   TAX / DISCOUNT
========================================================= */

.ft-input-row {
    display: grid;
    grid-template-columns: 1fr 140px;
    align-items: center;
    gap: 15px;
}

.ft-input-row label {
    margin-bottom: 10px;
}

.ft-input-row input {
    margin-bottom: 10px;
}


/* =========================================================
   PREVIEW
========================================================= */

.ft-preview-wrapper {
    min-width: 0;
    position: sticky;
    top: 30px;
    align-self: start;
}

.ft-invoice-preview {
    width: 100%;
    background: #ffffff;
    padding: 55px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.07);
    overflow: hidden;
}


/* =========================================================
   PREVIEW HEADER
========================================================= */

.ft-preview-header {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    padding-bottom: 30px;
    border-bottom: 2px solid #111827;
}

.ft-business-area {
    max-width: 55%;
    min-width: 0;
}

.ft-preview-logo {
    max-width: 150px;
    max-height: 80px;
    object-fit: contain;
    margin-bottom: 15px;
    display: none;
}

.ft-preview-header h1 {
    margin: 0 0 10px;
    font-size: 26px;
    word-break: break-word;
}

.ft-preview-header p {
    margin: 5px 0;
    color: #6b7280;
    font-size: 13px;
    white-space: pre-line;
    word-break: break-word;
}


/* =========================================================
   INVOICE TITLE
========================================================= */

.ft-invoice-title {
    text-align: right;
    min-width: 220px;
}

.ft-invoice-title h2 {
    margin: 0 0 18px;
    font-size: 34px;
    letter-spacing: 2px;
}

.ft-invoice-title p {
    margin: 6px 0;
    font-size: 13px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.ft-invoice-title p strong,
.ft-invoice-title p span {
    display: inline;
}


/* =========================================================
   PDF BUTTON
========================================================= */

.ft-pdf-actions {
    margin-top: 25px;
    text-align: right;
}


/* =========================================================
   CLIENT
========================================================= */

.ft-client-section {
    margin: 35px 0;
}

.ft-client-section h4 {
    margin: 0 0 10px;
    font-size: 11px;
    letter-spacing: 1px;
    color: #6b7280;
}

.ft-client-section h3 {
    margin: 0 0 6px;
    font-size: 17px;
}

.ft-client-section p {
    margin: 4px 0;
    color: #6b7280;
    font-size: 13px;
    white-space: pre-line;
}


/* =========================================================
   TABLE
========================================================= */

.ft-invoice-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 25px;
}

.ft-invoice-table th {
    padding: 12px 8px;
    border-bottom: 2px solid #111827;
    font-size: 11px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: left;
}

.ft-invoice-table td {
    padding: 15px 8px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 13px;
    word-break: break-word;
}

.ft-invoice-table th:not(:first-child),
.ft-invoice-table td:not(:first-child) {
    text-align: right;
}


/* =========================================================
   TOTALS
========================================================= */

.ft-preview-totals {
    width: 320px;
    max-width: 100%;
    margin-left: auto;
    margin-top: 30px;
}

.ft-preview-totals > div {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 7px 0;
    font-size: 14px;
}

.ft-final-total {
    border-top: 2px solid #111827;
    margin-top: 10px;
    padding-top: 15px !important;
    font-size: 20px !important;
}


/* =========================================================
   FOOTER
========================================================= */

.ft-preview-footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 60px;
    padding-top: 25px;
    border-top: 1px solid #e5e7eb;
}

.ft-preview-footer h4 {
    margin: 0 0 8px;
    font-size: 11px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ft-preview-footer p {
    margin: 0;
    white-space: pre-line;
    font-size: 13px;
    line-height: 1.6;
    color: #4b5563;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1000px) {

    .ft-invoice-generator {
        grid-template-columns: 1fr;
        margin: 20px 15px;
    }

    .ft-preview-wrapper {
        position: static;
    }

}

@media (max-width: 600px) {

    .ft-invoice-preview {
        padding: 25px;
    }

    .ft-preview-header {
        flex-direction: column;
    }

    .ft-business-area {
        max-width: 100%;
    }

    .ft-invoice-title {
        text-align: left;
    }

    .ft-invoice-title p {
        justify-content: flex-start;
    }

    .invoice-item {
        grid-template-columns: 1fr 1fr;
    }

    .invoice-item .item-name {
        grid-column: span 2;
    }

    .ft-remove-item {
        grid-column: span 2;
        width: 100%;
    }

    .ft-preview-footer {
        grid-template-columns: 1fr;
    }

}
/* =========================================
   VALIDATION
========================================= */

.ft-field-error {
    display: none;
    color: #dc2626;
    font-size: 12px;
    margin-top: -8px;
    margin-bottom: 12px;
}

.ft-input-error {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.08) !important;
}

.ft-input-error:focus {
    border-color: #dc2626 !important;
}

/* =========================================
   PROPOSAL GENERATOR
========================================= */

.ft-proposal-generator {
    max-width: 1450px;
    margin: 40px auto;
    padding: 0 20px;
}


/* =========================================
   PROPOSAL IMPORT
========================================= */

.ft-proposal-import {
    max-width: 900px;
    margin: 0 auto 35px;
}

.ft-proposal-import .ft-form-section,
.ft-proposal-editor .ft-form-section {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 28px;
    margin-bottom: 25px;
}

.ft-proposal-generator .ft-form-section h2 {
    margin: 0 0 10px;
    font-size: 22px;
    line-height: 1.3;
}

.ft-proposal-generator .ft-form-section > p {
    margin: 0 0 22px;
    color: #6b7280;
    line-height: 1.6;
}


/* =========================================
   FORM GROUPS
========================================= */

.ft-proposal-generator .ft-form-group {
    margin-bottom: 20px;
}

.ft-proposal-generator .ft-form-group:last-child {
    margin-bottom: 0;
}

.ft-proposal-generator .ft-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: #111827;
}

.ft-proposal-generator input,
.ft-proposal-generator textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 14px;
    line-height: 1.5;
    background: #ffffff;
    color: #111827;
    transition: border-color 0.2s ease,
                box-shadow 0.2s ease;
}

.ft-proposal-generator textarea {
    min-height: 120px;
    resize: vertical;
}

.ft-proposal-generator input:focus,
.ft-proposal-generator textarea:focus {
    outline: none;
    border-color: #111827;
    box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.08);
}


/* =========================================
   PROJECT MESSAGE
========================================= */

.ft-project-message {
    margin-top: 15px;
    font-size: 14px;
    line-height: 1.5;
}

.ft-project-message.error {
    color: #b91c1c;
}

.ft-project-message.success {
    color: #166534;
}

.ft-project-message.loading {
    color: #6b7280;
}


/* =========================================
   PROJECT DETAILS
========================================= */

#ft-project-details-section {
    margin-top: 25px;
}


/* =========================================
   PROPOSAL EDITOR + PREVIEW LAYOUT
========================================= */

.ft-proposal-generator {
    display: grid;
    grid-template-columns: 430px minmax(0, 1fr);
    gap: 35px;
    align-items: start;
}

.ft-proposal-import {
    grid-column: 1 / -1;
}

.ft-proposal-editor {
    grid-column: 1;
}

.ft-proposal-generator .ft-preview-wrapper {
    grid-column: 2;
    position: sticky;
    top: 30px;
}


/* =========================================
   PROPOSAL EDITOR
========================================= */

.ft-proposal-editor {
    min-width: 0;
}

.ft-proposal-editor .ft-form-section {
    margin-bottom: 25px;
}


/* =========================================
   PROPOSAL PREVIEW
========================================= */

.ft-proposal-preview {
    background: #ffffff;
    padding: 55px;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    color: #111827;
    box-sizing: border-box;
    max-width: 950px;
    margin: 0 auto;
}

.ft-proposal-preview .ft-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    margin-bottom: 40px;
}

.ft-proposal-preview .ft-preview-business {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
}

.ft-proposal-preview .ft-preview-title {
    text-align: right;
}

.ft-proposal-preview .ft-preview-title h1 {
    margin: 0 0 15px;
    font-size: 30px;
    line-height: 1.2;
}

.ft-proposal-preview .ft-preview-title p {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 5px;
    margin: 4px 0;
    font-size: 13px;
    white-space: nowrap;
}

.ft-proposal-preview .ft-preview-title strong,
.ft-proposal-preview .ft-preview-title span {
    white-space: nowrap;
}


/* =========================================
   PROJECT INFORMATION
========================================= */

.ft-proposal-preview .ft-preview-client {
    padding: 18px 0;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 30px;
}

.ft-proposal-preview .ft-preview-client strong {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ft-proposal-preview .ft-preview-client div {
    font-size: 18px;
    font-weight: 600;
}


/* =========================================
   PROPOSAL CONTENT
========================================= */

.ft-proposal-content-section {
    margin-bottom: 28px;
    page-break-inside: avoid;
}

.ft-proposal-content-section h3 {
    margin: 0 0 10px;
    font-size: 16px;
    line-height: 1.4;
    font-weight: 700;
}

.ft-proposal-content-section div {
    font-size: 14px;
    line-height: 1.7;
    color: #374151;
    overflow-wrap: break-word;
}


/* =========================================
   PROPOSAL DOWNLOAD BUTTON
========================================= */

.ft-proposal-preview .ft-pdf-actions {
    margin-top: 35px;
    padding-top: 25px;
    border-top: 1px solid #e5e7eb;
    text-align: right;
}


/* =========================================
   PROPOSAL BUTTONS
========================================= */

.ft-proposal-generator .ft-primary-button,
.ft-proposal-generator .ft-secondary-button {
    cursor: pointer;
}

.ft-proposal-generator button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 1000px) {

    .ft-proposal-generator {
        grid-template-columns: 1fr;
    }

    .ft-proposal-import,
    .ft-proposal-editor,
    .ft-proposal-generator .ft-preview-wrapper {
        grid-column: 1;
    }

    .ft-proposal-generator .ft-preview-wrapper {
        position: static;
    }

    .ft-proposal-preview {
        max-width: 100%;
    }

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 600px) {

    .ft-proposal-generator {
        margin: 25px auto;
        padding: 0 12px;
    }

    .ft-proposal-import .ft-form-section,
    .ft-proposal-editor .ft-form-section {
        padding: 20px;
        border-radius: 10px;
    }

    .ft-proposal-generator .ft-form-section h2 {
        font-size: 20px;
    }

    .ft-proposal-preview {
        padding: 28px 20px;
    }

    .ft-proposal-preview .ft-preview-header {
        flex-direction: column;
        gap: 20px;
        margin-bottom: 30px;
    }

    .ft-proposal-preview .ft-preview-title {
        text-align: left;
        width: 100%;
    }

    .ft-proposal-preview .ft-preview-title p {
        justify-content: flex-start;
    }

    .ft-proposal-content-section {
        margin-bottom: 24px;
    }

    .ft-proposal-preview .ft-pdf-actions {
        text-align: left;
    }

}
.ft-preview-business-email {
    margin-top: 4px;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.5;
}
/* =========================================================
   QUOTATION GENERATOR
========================================================= */

.ft-quote-generator {
    max-width: 1450px;
    margin: 40px auto;
    display: grid;
    grid-template-columns: 420px minmax(0, 1fr);
    gap: 35px;
    font-family: Arial, sans-serif;
    color: #111827;
    box-sizing: border-box;
}

.ft-quote-generator *,
.ft-quote-generator *::before,
.ft-quote-generator *::after {
    box-sizing: border-box;
}


/* =========================================================
   QUOTATION FORM
========================================================= */

.ft-quote-form {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 25px;
    min-width: 0;
}

.ft-quote-form .ft-form-title {
    margin-bottom: 25px;
}

.ft-quote-form .ft-form-title h2 {
    margin: 0 0 6px;
    font-size: 25px;
    line-height: 1.3;
    color: #111827;
}

.ft-quote-form .ft-form-title p {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
}


/* =========================================================
   FORM SECTIONS
========================================================= */

.ft-quote-form .ft-section {
    padding-bottom: 25px;
    margin-bottom: 25px;
    border-bottom: 1px solid #e5e7eb;
}

.ft-quote-form .ft-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.ft-quote-form .ft-section h3 {
    margin: 0 0 17px;
    font-size: 17px;
    line-height: 1.4;
    color: #111827;
}

.ft-quote-form .ft-section label {
    display: block;
    margin-bottom: 7px;
    font-size: 13px;
    font-weight: 600;
    color: #111827;
}

.ft-quote-form .ft-section input,
.ft-quote-form .ft-section textarea,
.ft-quote-form .ft-section select {
    width: 100%;
    padding: 11px 13px;
    margin-bottom: 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #ffffff;
    color: #111827;
    font-size: 14px;
    transition: 0.2s ease;
}

.ft-quote-form .ft-section input:focus,
.ft-quote-form .ft-section textarea:focus,
.ft-quote-form .ft-section select:focus {
    outline: none;
    border-color: #111827;
    box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.08);
}

.ft-quote-form .ft-section textarea {
    min-height: 75px;
    resize: vertical;
}


/* =========================================================
   INPUT ROW
========================================================= */

.ft-quote-form .ft-input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    align-items: start;
}

.ft-quote-form .ft-input-row input,
.ft-quote-form .ft-input-row select {
    margin-bottom: 14px;
}


/* =========================================================
   QUOTATION ITEMS
========================================================= */

.quote-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 85px 110px 38px;
    gap: 8px;
    align-items: end;
    margin-bottom: 14px;
}

.quote-item .ft-field {
    min-width: 0;
}

.quote-item input {
    margin-bottom: 0 !important;
}

.ft-remove-quote-item {
    width: 38px;
    height: 42px;
    margin-top: 24px;
    border: none;
    border-radius: 8px;
    background: #f3f4f6;
    color: #111827;
    cursor: pointer;
    font-size: 18px;
}

.ft-remove-quote-item:hover {
    background: #fee2e2;
    color: #dc2626;
}


/* =========================================================
   FORM ACTIONS
========================================================= */

.ft-quote-form .ft-form-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 25px;
}

.ft-quote-form .ft-secondary-button {
    border: 1px solid #d1d5db;
    background: #ffffff;
    color: #111827;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
}

.ft-quote-form .ft-secondary-button:hover {
    background: #f9fafb;
}

.ft-quote-form .ft-download-button {
    border: none;
    background: #111827;
    color: #ffffff;
    padding: 13px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.ft-quote-form .ft-download-button:hover {
    background: #000000;
}


/* =========================================================
   PREVIEW WRAPPER
========================================================= */

.ft-quote-generator .ft-preview-wrapper {
    min-width: 0;
    position: sticky;
    top: 30px;
    align-self: start;
}


/* =========================================================
   QUOTATION PAPER
========================================================= */

.ft-quote-preview {
    width: 100%;
    max-width: 950px;
    margin: 0 auto;
    padding: 55px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.07);
    color: #111827;
    overflow: hidden;
}

.ft-quote-preview h1,
.ft-quote-preview h2,
.ft-quote-preview h3,
.ft-quote-preview h4,
.ft-quote-preview p {
    font-family: Arial, sans-serif;
}


/* =========================================================
   HEADER
========================================================= */

.ft-quote-preview .ft-preview-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 40px;
    align-items: start;
    padding-bottom: 30px;
    border-bottom: 2px solid #111827;
}


/* =========================================================
   BUSINESS INFORMATION
========================================================= */

.ft-quote-preview .ft-business-area {
    min-width: 0;
    max-width: 100%;
}

.ft-quote-preview .ft-preview-logo {
    display: block;
    max-width: 150px;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    margin: 0 0 16px;
}

.ft-quote-preview .ft-business-area h1 {
    margin: 0 0 10px;
    font-size: 26px;
    line-height: 1.25;
    font-weight: 700;
    color: #111827 !important;
    overflow-wrap: anywhere;
}

.ft-quote-preview .ft-preview-business-line {
    margin: 4px 0;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.5;
    white-space: pre-line;
    overflow-wrap: anywhere;
}


/* =========================================================
   QUOTATION TITLE + META
========================================================= */

.ft-quote-preview .ft-quote-title {
    min-width: 0;
    text-align: right;
}

.ft-quote-preview .ft-quote-title h2 {
    margin: 0 0 20px;
    font-size: 32px;
    line-height: 1.15;
    letter-spacing: 2px;
    font-weight: 700;
    color: #111827 !important;
}

.ft-preview-meta {
    width: 100%;
}

.ft-preview-meta-row {
    display: grid;
    grid-template-columns: 1fr auto;
    column-gap: 12px;
    align-items: baseline;
    margin: 7px 0;
    font-size: 12px;
    line-height: 1.4;
}

.ft-preview-meta-row strong {
    text-align: right;
    color: #6b7280;
    font-weight: 600;
}

.ft-preview-meta-row span {
    text-align: left;
    color: #111827;
    font-weight: 600;
    white-space: nowrap;
}


/* =========================================================
   CLIENT
========================================================= */

.ft-quote-preview .ft-client-section {
    margin: 35px 0;
}

.ft-quote-preview .ft-client-section h4 {
    margin: 0 0 9px;
    font-size: 11px;
    line-height: 1.4;
    letter-spacing: 1px;
    color: #6b7280 !important;
    font-weight: 700;
}

.ft-quote-preview .ft-client-section h3 {
    margin: 0 0 7px;
    font-size: 17px;
    line-height: 1.4;
    color: #111827 !important;
}

.ft-quote-preview .ft-client-section p {
    margin: 3px 0;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.5;
    white-space: pre-line;
    overflow-wrap: anywhere;
}


/* =========================================================
   TABLE
========================================================= */

.ft-preview-table-wrapper {
    width: 100%;
    overflow: hidden;
}

.ft-quote-preview .ft-quote-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    margin-top: 25px;
}

.ft-quote-preview .ft-quote-table .ft-quote-col-description {
    width: 52%;
}

.ft-quote-preview .ft-quote-table .ft-quote-col-qty {
    width: 12%;
}

.ft-quote-preview .ft-quote-table .ft-quote-col-price {
    width: 18%;
}

.ft-quote-preview .ft-quote-table .ft-quote-col-total {
    width: 18%;
}

.ft-quote-preview .ft-quote-table th {
    padding: 12px 8px;
    border-bottom: 2px solid #111827;
    color: #6b7280 !important;
    font-size: 11px;
    line-height: 1.3;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: left;
}

.ft-quote-preview .ft-quote-table th:not(:first-child) {
    text-align: right;
}

.ft-quote-preview .ft-quote-table td {
    padding: 14px 8px;
    border-bottom: 1px solid #e5e7eb;
    color: #374151;
    font-size: 13px;
    line-height: 1.5;
    vertical-align: top;
    overflow-wrap: anywhere;
}

.ft-quote-preview .ft-quote-table td:not(:first-child) {
    text-align: right;
    white-space: nowrap;
}


/* =========================================================
   TOTALS
========================================================= */

.ft-quote-preview .ft-preview-totals {
    width: 320px;
    max-width: 100%;
    margin: 30px 0 0 auto;
}

.ft-quote-preview .ft-preview-totals > div {
    display: grid;
    grid-template-columns: 1fr auto;
    column-gap: 25px;
    align-items: center;
    padding: 7px 0;
    font-size: 14px;
    line-height: 1.5;
}

.ft-quote-preview .ft-preview-totals span {
    color: #4b5563;
}

.ft-quote-preview .ft-preview-totals strong {
    text-align: right;
    color: #111827;
    white-space: nowrap;
}

.ft-quote-preview .ft-preview-totals .ft-final-total {
    margin-top: 10px;
    padding-top: 14px;
    border-top: 2px solid #111827;
    font-size: 20px;
}

.ft-quote-preview .ft-final-total span,
.ft-quote-preview .ft-final-total strong {
    color: #111827;
    font-weight: 700;
}


/* =========================================================
   FOOTER
========================================================= */

.ft-quote-preview .ft-preview-footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 55px;
    padding-top: 25px;
    border-top: 1px solid #e5e7eb;
}

.ft-quote-preview .ft-preview-footer-section {
    min-width: 0;
}

.ft-quote-preview .ft-preview-footer-section h4 {
    margin: 0 0 9px;
    font-size: 11px;
    line-height: 1.4;
    color: #6b7280 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.ft-quote-preview .ft-preview-footer-section p {
    margin: 0;
    color: #4b5563;
    font-size: 13px;
    line-height: 1.6;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.ft-quote-preview .ft-preview-notes-section {
    margin-top: 28px;
}

.ft-quote-preview .ft-preview-bottom {
    margin-top: 45px;
    padding-top: 18px;
    border-top: 1px solid #e5e7eb;
    text-align: center;
    color: #9ca3af;
    font-size: 11px;
    line-height: 1.5;
}


/* =========================================================
   VALIDATION
========================================================= */

.ft-quote-form .ft-field-error {
    display: none;
    color: #dc2626;
    font-size: 12px;
    margin-top: -8px;
    margin-bottom: 12px;
}

.ft-quote-form .ft-field-error.show {
    display: block;
}

.ft-quote-form .ft-input-error {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.08) !important;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1000px) {

    .ft-quote-generator {
        grid-template-columns: 1fr;
        margin: 20px 15px;
    }

    .ft-quote-generator .ft-preview-wrapper {
        position: static;
    }

    .ft-quote-preview {
        max-width: 100%;
    }

}


@media (max-width: 700px) {

    .ft-quote-preview {
        padding: 35px;
    }

    .ft-quote-preview .ft-preview-header {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .ft-quote-preview .ft-quote-title {
        text-align: left;
    }

    .ft-preview-meta-row {
        grid-template-columns: auto 1fr;
    }

    .ft-preview-meta-row strong {
        text-align: left;
    }

    .ft-preview-meta-row span {
        text-align: right;
    }

    .ft-quote-preview .ft-preview-footer {
        grid-template-columns: 1fr;
        gap: 25px;
    }

}


@media (max-width: 600px) {

    .ft-quote-generator {
        margin: 20px auto;
        padding: 0 12px;
    }

    .ft-quote-form {
        padding: 20px;
    }

    .ft-quote-preview {
        padding: 25px 20px;
    }

    .ft-quote-form .ft-input-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .quote-item {
        grid-template-columns: 1fr 1fr;
    }

    .quote-item .quote-item-name-field {
        grid-column: 1 / -1;
    }

    .quote-item .ft-remove-quote-item {
        grid-column: 1 / -1;
        width: 100%;
        margin-top: 0;
    }

    .ft-quote-preview .ft-quote-title h2 {
        font-size: 27px;
    }

    .ft-quote-preview .ft-quote-table th,
    .ft-quote-preview .ft-quote-table td {
        padding-left: 5px;
        padding-right: 5px;
    }

    .ft-quote-preview .ft-quote-table th {
        font-size: 10px;
    }

    .ft-quote-preview .ft-quote-table td {
        font-size: 12px;
    }

    .ft-quote-preview .ft-preview-totals {
        width: 100%;
    }

}


/* =========================================================
   QUOTATION PRINT
========================================================= */

@media print {

    @page {
        size: A4;
        margin: 12mm;
    }

    body {
        background: #ffffff !important;
    }

    .ft-quote-generator {
        display: block !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .ft-quote-form {
        display: none !important;
    }

    .ft-quote-generator .ft-preview-wrapper {
        position: static !important;
        display: block !important;
    }

    .ft-quote-preview {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        box-shadow: none !important;
    }

    .ft-quote-preview .ft-preview-header {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 280px !important;
    }

    .ft-quote-preview .ft-quote-table {
        width: 100% !important;
        table-layout: fixed !important;
    }

    .ft-quote-preview .ft-preview-footer {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
    }

    .ft-quote-preview .ft-preview-footer-section,
    .ft-quote-preview .ft-preview-totals,
    .ft-quote-preview .ft-client-section {
        page-break-inside: avoid;
    }
}
