/* Shared between the browser print view (<link media="print">) and the PDF
   template (inlined directly by PdfRenderer) — single source of truth for
   what a quote looks like on paper. */

body {
    font-family: "DejaVu Sans", Arial, sans-serif;
    color: #1a1a1a;
    font-size: 12px;
}

.no-print {
    display: none !important;
}

.doc-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 2px solid #1a1a1a;
    padding-bottom: 12px;
    margin-bottom: 18px;
}

.doc-header h1 {
    font-size: 20px;
    margin: 0 0 4px;
}

.doc-meta {
    text-align: right;
    font-size: 11px;
    color: #444;
}

.doc-meta div {
    margin-bottom: 2px;
}

table.quote-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 18px;
}

table.quote-table th,
table.quote-table td {
    border-bottom: 1px solid #ccc;
    padding: 6px 8px;
    text-align: left;
}

table.quote-table th {
    background: #f2f2f2;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

table.quote-table tr.category-row td {
    background: #333;
    color: #fff;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

table.quote-table td.num,
table.quote-table th.num {
    text-align: right;
    white-space: nowrap;
}

.badge-mandatory {
    display: inline-block;
    font-size: 10px;
    background: #eee;
    border: 1px solid #bbb;
    border-radius: 3px;
    padding: 1px 5px;
    margin-left: 6px;
}

.totals {
    width: 320px;
    margin-left: auto;
    border-collapse: collapse;
}

.totals td {
    padding: 5px 8px;
}

.totals td.num {
    text-align: right;
}

.totals tr.grand-total td {
    border-top: 2px solid #1a1a1a;
    font-size: 14px;
    font-weight: bold;
}

.doc-footer {
    margin-top: 24px;
    font-size: 10px;
    color: #777;
}
