/* Impressão de ordem de serviço */

.os-print {
    max-width: 800px;
    margin: 0 auto;
    padding: 1.5rem;
    font-family: "Segoe UI", system-ui, sans-serif;
    font-size: 13px;
    color: #171d2f;
}

.os-print-header {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    border-bottom: 2px solid #2d3142;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.os-print-logos {
    flex-shrink: 0;
}

.os-print-logo {
    max-height: 72px;
    max-width: 160px;
    object-fit: contain;
    display: block;
}

.os-print-logo-cliente {
    max-height: 64px;
    max-width: 140px;
}

.os-print-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
}

.os-print-title-text {
    flex: 1;
    min-width: 0;
}

.os-print-title-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.os-print-empresa h1 {
    font-size: 1.25rem;
    margin: 0 0 0.35rem;
}

.os-print-empresa p {
    margin: 0 0 0.2rem;
    color: #636e8b;
    font-size: 0.85rem;
}

.os-print-title {
    margin-bottom: 1rem;
}

.os-print-title-text h2 {
    font-size: 1.1rem;
    margin: 0 0 0.25rem;
}

.os-print-title-text p {
    margin: 0;
    color: #636e8b;
    font-size: 0.85rem;
}

.os-print-ref-os {
    margin-top: 0.35rem !important;
}

.os-print--orcamento .os-print-title-text h2 {
    color: #1a4d8c;
}

.os-print-aviso-orcamento {
    margin-bottom: 1rem;
    padding: 0.65rem 0.85rem;
    background: #fff8e6;
    border: 1px solid #e6c200;
    border-radius: 0.35rem;
    font-size: 0.85rem;
    color: #5c4a00;
}

.os-print-cliente,
.os-print-block {
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: #f8f9fc;
    border-radius: 0.35rem;
    border: 1px solid #dde2ef;
}

.os-print-cliente h3,
.os-print-block h3 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #636e8b;
    margin: 0 0 0.5rem;
}

.os-print-cliente p,
.os-print-block p {
    margin: 0 0 0.2rem;
}

.os-print-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.os-print-table th,
.os-print-table td {
    border: 1px solid #dde2ef;
    padding: 0.4rem 0.55rem;
    text-align: left;
}

.os-print-table th {
    background: #e8ebf0;
    font-weight: 600;
}

.os-print-totals {
    text-align: right;
    margin-bottom: 1rem;
}

.os-print-totals p {
    margin: 0 0 0.25rem;
}

.os-print-total-geral {
    font-size: 1.05rem;
    margin-top: 0.5rem !important;
    padding-top: 0.5rem;
    border-top: 1px solid #dde2ef;
}

.os-print-chave {
    font-family: ui-monospace, Consolas, monospace;
    font-size: 0.75rem;
    word-break: break-all;
}

.os-print-footer {
    margin-top: 2rem;
    padding-top: 0.75rem;
    border-top: 1px dashed #dde2ef;
    text-align: center;
    color: #636e8b;
    font-size: 0.75rem;
}

.os-print-actions {
    max-width: 800px;
    margin: 1rem auto 2rem;
    padding: 0 1.5rem;
    display: flex;
    gap: 0.75rem;
}

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

    .os-print {
        padding: 0;
        max-width: none;
    }

    .os-print-cliente,
    .os-print-block {
        background: transparent;
        border-color: #ccc;
    }
}
