
/* ==========================================
   QUOTATION MANAGEMENT SYSTEM
   EXTERNAL STYLESHEET
   ========================================== */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 25px;
    background: #eef2f7;
    font-family: Arial, Helvetica, sans-serif;
    color: #293747;
    font-size: 14px;
}

.container {
    max-width: 1150px;
    margin: auto;
}

.panel {
    background: #ffffff;
    padding: 28px;
    margin-bottom: 25px;
    border-radius: 9px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.05);
}

h1, h2, h3 {
    color: #164b78;
}

h1 {
    margin: 0;
    font-size: 25px;
}

h3 {
    margin-top: 30px;
    padding-bottom: 10px;
    border-bottom: 1px solid #dce3eb;
}

/* HEADER */

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid #164b78;
    padding-bottom: 18px;
    margin-bottom: 25px;
}

/* BUTTONS */

.btn {
    background: #164b78;
    color: white;
    border: 0;
    border-radius: 5px;
    padding: 11px 17px;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    font-size: 13px;
    margin: 3px;
}

.btn:hover {
    background: #0d3557;
}

.btn-green {
    background: #188451;
}

.btn-red {
    background: #b42318;
}

.btn-grey {
    background: #64748b;
}

/* FORM */

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

label {
    display: block;
    font-weight: bold;
    margin-bottom: 7px;
}

input, textarea {
    width: 100%;
    padding: 11px;
    border: 1px solid #cbd5e1;
    border-radius: 5px;
    font-family: Arial, sans-serif;
    font-size: 13px;
}

textarea {
    resize: vertical;
    line-height: 1.5;
}

input:focus, textarea:focus {
    outline: 2px solid #a8c9e5;
    border-color: #164b78;
}

/* TABLE */

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

th {
    background: #164b78;
    color: white;
    padding: 12px;
    text-align: left;
}

td {
    padding: 10px;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: top;
}

.item-table input,
.item-table textarea {
    min-width: 90px;
}

.item-table textarea {
    min-width: 200px;
}

.amount {
    white-space: nowrap;
    font-weight: bold;
}

.scroll-table {
    overflow-x: auto;
}

/* TOTAL */

.total {
    text-align: right;
    color: #164b78;
    font-size: 22px;
    font-weight: bold;
    margin-top: 20px;
}

/* ALERT */

.alert {
    padding: 14px;
    border-radius: 5px;
    margin-bottom: 18px;
}

.error {
    background: #fee2e2;
    color: #991b1b;
}

/* PRINTABLE QUOTATION */

.quote-heading {
    display: flex;
    justify-content: space-between;
    border-bottom: 3px solid #164b78;
    padding-bottom: 20px;
}

.quote-title {
    font-size: 32px;
    color: #164b78;
    font-weight: bold;
}

.quote-number {
    background: #eff5fa;
    padding: 15px;
    border-left: 4px solid #164b78;
}

.description {
    white-space: pre-wrap;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.quote-total {
    background: #edf3f8;
    color: #164b78;
    font-weight: bold;
    font-size: 16px;
}

/* SIGNATURE */

.signature-area {
    display: flex;
    gap: 50px;
    margin-top: 70px;
}

.signature {
    width: 50%;
    border-top: 1px solid #333;
    padding-top: 10px;
    line-height: 1.8;
}

/* THANK YOU */

.thankyou {
    background: #164b78;
    color: white;
    text-align: center;
    padding: 16px;
    margin-top: 35px;
    font-weight: bold;
    letter-spacing: 1px;
}

/* RESPONSIVE DESIGN */

@media (max-width: 700px) {

    body {
        padding: 10px;
    }

    .panel {
        padding: 16px;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .header {
        align-items: flex-start;
        gap: 10px;
    }

    .header h1 {
        font-size: 19px;
    }

    .quote-title {
        font-size: 24px;
    }

    .signature-area {
        flex-direction: column;
    }

    .signature {
        width: 100%;
    }

}

/* PRINT SETTINGS */

@media print {

    body {
        padding: 0;
        background: white;
    }

    .no-print {
        display: none !important;
    }

    .panel {
        box-shadow: none;
        padding: 0;
    }

    .quote-heading,
    .thankyou,
    .quote-total,
    thead {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    @page {
        size: A4;
        margin: 12mm;
    }

}

/* ==========================================
   TERMS AND CONDITIONS
   ========================================== */

.terms-conditions {
    margin: 0 !important;
    padding: 0 !important;

    text-indent: 0 !important;

    white-space: pre-wrap;

    line-height: 1.6;

    font-size: 13px;

    text-align: left;
}
