/* IMCS Quote Template Styles */

:root {
    --imcs-blue: #0066cc;
    --imcs-dark-blue: #004d99;
    --imcs-red: #C1203B;
    --imcs-gray: #757575;
    --imcs-light-gray: #f5f7fa;
    --imcs-text: #333333;
    --imcs-border: #dee2e6;
}

.quote-document {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    color: var(--imcs-text);
    line-height: 1.6;
    background: white;
    max-width: 850px;
    margin: 0 auto;
}

/* Header Styles */
.quote-header {
    background: linear-gradient(135deg, var(--imcs-blue) 0%, var(--imcs-dark-blue) 100%);
    color: white;
    padding: 30px;
    margin: -30px -30px 30px -30px;
    position: relative;
}

.quote-header::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--imcs-red);
}

.company-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.company-logo svg {
    width: 60px;
    height: 60px;
}

.company-name {
    font-size: 24px;
    font-weight: 700;
}

.quote-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.quote-meta {
    font-size: 14px;
    opacity: 0.95;
}

/* Section Styles */
.quote-section {
    margin-bottom: 35px;
    page-break-inside: avoid;
}

.section-title {
    color: var(--imcs-blue);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--imcs-border);
}

/* Made in USA Badge */
.usa-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(145deg, #f5f5f5 0%, #e8e8e8 20%, #ffffff 50%, #e8e8e8 80%, #f5f5f5 100%);
    border: 1px solid #d0d0d0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1), inset 0 1px 0 rgba(255,255,255,0.9);
    padding: 8px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Contact Info */
.contact-info {
    background: var(--imcs-light-gray);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.contact-info strong {
    color: var(--imcs-blue);
    display: block;
    margin-top: 15px;
    margin-bottom: 5px;
}

.contact-info a {
    color: var(--imcs-blue);
    text-decoration: none;
}

/* Specifications Grid */
.specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.spec-item {
    background: var(--imcs-light-gray);
    padding: 15px;
    border-radius: 6px;
}

.spec-label {
    font-weight: 600;
    color: var(--imcs-gray);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 5px;
}

.spec-value {
    color: var(--imcs-text);
    font-size: 14px;
}

/* Pricing Table */
.pricing-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.pricing-table thead {
    background: var(--imcs-light-gray);
}

.pricing-table th {
    text-align: left;
    padding: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: var(--imcs-gray);
    border-bottom: 2px solid var(--imcs-border);
}

.pricing-table td {
    padding: 12px;
    border-bottom: 1px solid var(--imcs-border);
    font-size: 14px;
}

.pricing-table .price-col {
    text-align: right;
    font-family: 'Courier New', monospace;
}

.pricing-table .description-cell {
    font-size: 13px;
}

.pricing-table .description-cell strong {
    display: block;
    margin-bottom: 5px;
    color: var(--imcs-text);
}

.pricing-table .description-cell ul {
    margin: 5px 0 0 20px;
    padding: 0;
    list-style: disc;
}

.pricing-table .description-cell li {
    margin: 3px 0;
    color: #666;
}

.pricing-table tfoot {
    font-weight: bold;
}

.pricing-table .total-row {
    background: var(--imcs-light-gray);
}

.pricing-table .total-row td {
    padding: 15px 12px;
    font-size: 16px;
    border-top: 2px solid var(--imcs-text);
    border-bottom: none;
}

/* Payment Terms Box */
.payment-terms-box {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 20px;
    border-radius: 0 8px 8px 0;
    margin: 20px 0;
}

.payment-terms-box strong {
    color: var(--imcs-text);
    display: block;
    margin-bottom: 10px;
}

.payment-terms-box em {
    display: block;
    margin-top: 15px;
    font-size: 12px;
    color: #666;
    line-height: 1.5;
}

/* Equipment Details Lists */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.feature-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 8px;
    font-size: 14px;
}

.feature-list li:before {
    content: "•";
    position: absolute;
    left: 10px;
    color: var(--imcs-blue);
    font-weight: bold;
}

/* Footer */
.quote-footer {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid var(--imcs-border);
    text-align: center;
}

.footer-company {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.footer-company svg {
    width: 40px;
    height: 40px;
}

.footer-contact {
    font-size: 13px;
    color: #666;
    line-height: 1.8;
}

.footer-contact strong {
    color: var(--imcs-text);
}

.footer-contact a {
    color: var(--imcs-blue);
    text-decoration: none;
}

/* Print Styles */
@media print {
    .quote-document {
        max-width: 100%;
    }
    
    .quote-header {
        margin: 0;
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }
    
    .quote-section {
        page-break-inside: avoid;
    }
    
    .pricing-table {
        page-break-inside: avoid;
    }
}