body {
    font-family: Arial, sans-serif;
    background: #f4f4f4;
    margin: 0;
    padding: 20px;
}

.calculator {
    max-width: 800px;
    margin: auto;
}

h1 {
    text-align: center;
}

.section {
    background: white;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 12px;
}

.button-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.button-grid.three {
    grid-template-columns: repeat(3, 1fr);
}

button {
    padding: 18px;
    font-size: 18px;
    border: 1px solid #aaa;
    border-radius: 8px;
    background: white;
    cursor: pointer;
}

button:hover {
    background: #e8e8e8;
}

.measurement-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 10px;
    margin-bottom: 15px;
}

label {
    display: block;
    font-size: 16px;
    margin-bottom: 5px;
}

input,
select {
    width: 100%;
    box-sizing: border-box;
    padding: 15px;
    font-size: 20px;
    border-radius: 8px;
    border: 1px solid #aaa;
}

.check-option {
    display: block;
    font-size: 20px;
    padding: 12px 0;
}

.check-option input {
    width: auto;
    transform: scale(1.5);
    margin-right: 12px;
}

.add-button {
    width: 100%;
    margin-bottom: 20px;
    font-weight: bold;
}

.quote-total {
    font-size: 20px;
}

.quote-total p {
    display: flex;
    justify-content: space-between;
}

.quote-total h2:last-child {
    font-size: 32px;
    text-align: right;
}
.selected {
    background: #222;
    color: white;
    border-color: #222;
}

#sizeInfo {
    margin-top: 15px;
    padding: 15px;
    background: #f3f3f3;
    border-radius: 8px;
    line-height: 1.6;
}
.igu-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.remove-button {
    background: #eee;
    padding: 10px 15px;
    font-size: 14px;
}

.size-info {
    margin-top: 15px;
    padding: 15px;
    background: #f3f3f3;
    border-radius: 8px;
    line-height: 1.6;
}

.igu-price {
    margin-top: 20px;
    padding: 18px;
    background: #f3f3f3;
    border-radius: 8px;
    font-size: 22px;
    display: flex;
    justify-content: space-between;
}

#materialBreakdown p {
    display: flex;
    justify-content: space-between;
}
.labor-info {
    margin-top: 15px;
    padding: 15px;
    background: #f3f3f3;
    border-radius: 8px;
}

.toggle-row {
    font-size: 20px;
    padding: 12px 0;
}

.toggle-row input {
    width: auto;
    transform: scale(1.5);
    margin-right: 12px;
}

.travel-controls {
    grid-template-columns: 1fr 2fr 1fr;
    gap: 10px;
    align-items: center;
    margin-top: 10px;
    margin-bottom: 20px;
}

.travel-controls strong {
    text-align: center;
    font-size: 26px;
}
.other-tax {
    margin-top: 20px;
}

.tax-rate-display {
    margin-top: 20px;
    padding: 15px;
    background: #f3f3f3;
    border-radius: 8px;
    font-size: 20px;
    display: flex;
    justify-content: space-between;
}
.quote-number-row {
    margin-top: 15px;
    padding: 12px;
    background: #f3f3f3;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    font-size: 18px;
}

.quote-actions {
    margin-top: 25px;
}

.save-quote-button {
    width: 100%;
    font-weight: bold;
    font-size: 22px;
    padding: 20px;
}

.save-message {
    text-align: center;
    margin-top: 15px;
    font-weight: bold;
    min-height: 20px;
}
.saved-quotes-top {
    margin-bottom: 20px;
}

.saved-quotes-button {
    width: 100%;
    font-weight: bold;
}

.saved-quotes-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.saved-quotes-heading button {
    padding: 10px 15px;
    font-size: 14px;
}

#quoteSearch {
    margin-bottom: 20px;
}

.saved-quote-card {
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
}

.saved-quote-name {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 10px;
}

.saved-quote-details {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 10px;
}

.saved-quote-card button {
    width: 100%;
    margin-top: 5px;
}

.no-saved-quotes {
    padding: 20px;
    text-align: center;
}
.top-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

.top-buttons button {
    width: 100%;
    font-weight: bold;
}
.delete-quote-button {
    margin-top: 10px;
    border: 2px solid #b00020;
    font-weight: bold;
}
.customer-quote-screen {
    max-width: 800px;
    margin: auto;
}

.customer-quote {
    background: white;
    border-radius: 12px;
    padding: 30px;
}

.customer-quote-header {
    text-align: center;
    border-bottom: 2px solid #222;
    padding-bottom: 20px;
    margin-bottom: 25px;
}

.customer-quote-header h1 {
    margin-top: 0;
    margin-bottom: 15px;
}

#customerQuoteJob {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 8px;
}

#customerQuoteNumber {
    font-size: 16px;
}

.customer-quote-items {
    margin-bottom: 25px;
}

.customer-quote-item {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 15px 0;
    font-size: 20px;
    border-bottom: 1px solid #ddd;
}

.customer-quote-totals {
    border-top: 2px solid #222;
    padding-top: 15px;
}

.customer-quote-totals > div {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 10px 0;
    font-size: 20px;
}

.customer-quote-totals .customer-grand-total {
    font-size: 30px;
    font-weight: bold;
    border-top: 2px solid #222;
    margin-top: 10px;
    padding-top: 20px;
}

.customer-quote-controls {
    margin-top: 30px;
}

.customer-quote-controls button {
    width: 100%;
    font-weight: bold;
}
.quote-business-name {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 10px;
}

.quote-business-contact {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 25px;
}

.customer-quote-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.print-quote-button {
    font-weight: bold;
}


/* -------------------------------------
   PRINT / PDF
------------------------------------- */

@media print {

    body {
        background: white;
        padding: 0;
        margin: 0;
    }

    .calculator {
        display: none !important;
    }

    .customer-quote-screen {
        display: block !important;
        max-width: none;
        margin: 0;
    }

    .customer-quote {
        border-radius: 0;
        padding: 20px;
    }

    .customer-quote-controls {
        display: none !important;
    }
}
/* =====================================
   CUSTOMER QUOTE HEADER
===================================== */

.customer-quote-header {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 25px;
    text-align: left;
}

.customer-business-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    margin-bottom: 25px;
}

.customer-logo-area {
    flex: 1;
}

.customer-logo {
    display: block;
    max-width: 260px;
    width: 100%;
    height: auto;
}

.customer-contact-info {
    font-size: 17px;
    line-height: 1.8;
}

.customer-quote-title {
    text-align: left;
    font-size: 30px;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 3px solid #17356b;
    color: #17356b;
}

.customer-job-header {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-top: 20px;
}

.customer-job-header > div {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.customer-small-label {
    font-size: 16px;
    font-weight: bold;
    color: #17356b;
}

.customer-job-header strong {
    font-size: 22px;
}


/* Tablet / smaller screens */

@media (max-width: 600px) {

    .customer-business-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .customer-logo {
        max-width: 220px;
    }

    .customer-job-header {
        grid-template-columns: 1fr;
    }
}
/* =====================================
   CUSTOMER IGU TABLE
===================================== */

.customer-igu-table {
    margin-top: 25px;
    margin-bottom: 30px;
}

.customer-igu-table-header {
    display: grid;
    grid-template-columns: 1fr 3fr 1fr;
    gap: 20px;

    background: #17356b;
    color: white;

    padding: 12px 15px;

    font-size: 17px;
    font-weight: bold;
}

.customer-igu-table-header span:last-child {
    text-align: right;
}

.customer-igu-row {
    display: grid;
    grid-template-columns: 1fr 3fr 1fr;
    gap: 20px;

    padding: 20px 15px;

    border-bottom: 1px solid #bbb;

    align-items: start;
}

.customer-igu-item {
    font-size: 20px;
}

.customer-igu-description {
    line-height: 1.6;
    font-size: 16px;
}

.customer-igu-price {
    text-align: right;
    font-size: 20px;
}


/* -------------------------------------
   SMALL SCREEN CUSTOMER TABLE
------------------------------------- */

@media (max-width: 600px) {

    .customer-igu-table-header {
        display: none;
    }

    .customer-igu-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .customer-igu-price {
        text-align: left;
        font-size: 22px;
    }
}
.customer-job-header {
    grid-template-columns: 2fr 1fr 1fr;
}

.customer-quote-footer {
    margin-top: 35px;
    padding-top: 20px;
    border-top: 1px solid #ccc;
    text-align: center;
    line-height: 1.5;
}

.customer-quote-footer strong {
    font-size: 18px;
    color: #17356b;
}

.customer-quote-footer p {
    margin-bottom: 0;
}


/* Keep quote sections together when printing */

@media print {

    .customer-igu-row {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .customer-quote-totals {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .customer-quote-footer {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}


/* Smaller screens */

@media (max-width: 600px) {

    .customer-job-header {
        grid-template-columns: 1fr;
    }
}
/* =====================================
   CUSTOMER QUOTE INFO LAYOUT
===================================== */

.customer-job-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 40px;
}

.customer-job-header > div:first-child {
    grid-column: 1 / -1;
}

.customer-job-header > div {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 6px;
}

.customer-job-header > div:first-child strong {
    font-size: 24px;
}

.customer-small-label {
    margin-bottom: 5px;
}
@media (max-width: 600px) {

    .customer-job-header {
        grid-template-columns: 1fr;
    }

    .customer-job-header > div:first-child {
        grid-column: auto;
    }
}