* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background: #f4f7f6;
    padding: 20px;
    margin: 0;
}

.container {
    max-width: 1000px;
    margin: auto;
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Formulário */
form {
    display: grid;
    gap: 12px;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #ddd;
    margin-bottom: 20px;
}

.row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

input,
textarea,
select {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 100%;
    box-sizing: border-box;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.25);
}

/* Cartões */
.os-card {
    border: 1px solid #eee;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 8px;
    position: relative;
}

.valor-tag {
    float: right;
    font-size: 18px;
    color: #28a745;
    font-weight: bold;
    text-align: right;
}

.acoes {
    margin-top: 10px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Botões */
.btn-add {
    background: #28a745;
    color: white;
    border: none;
    padding: 12px;
    cursor: pointer;
    font-weight: bold;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.btn-add:hover {
    background: #218838;
}

button {
    border: none;
    padding: 7px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s ease;
}

.btn-zap {
    background: #25D366;
    color: white;
}

.btn-zap:hover {
    background: #1fa556;
}

.btn-imprimir {
    background: #6c757d;
    color: white;
}

.btn-imprimir:hover {
    background: #5a6268;
}

.btn-editar {
    background: #ffc107;
}

.btn-editar:hover {
    background: #e0a800;
}

.btn-excluir {
    background: #dc3545;
    color: white;
}

.btn-excluir:hover {
    background: #c82333;
}

.btn-concluir {
    background: #007bff;
    color: white;
}

.btn-concluir:hover {
    background: #0056b3;
}

/* Assinaturas */
.assinaturas {
    display: none;
    margin-top: 20px;
}

.assinatura-card {
    margin-top: 12px;
    font-size: 13px;
}

.assinatura-card p {
    margin: 4px 0;
}

.linha-assinatura {
    margin-top: 18px;
    border-top: 1px solid #000;
    width: 100%;
    height: 1px;
}

/* Utilitários */
.busca-container {
    margin-bottom: 20px;
}

.busca-container input {
    width: 100%;
}

/* Impressão */
@media print {

    form,
    .busca-container,
    h1,
    .acoes,
    .btn-hist,
    .nav {
        display: none !important;
    }

    .assinaturas {
        display: block !important;
        margin-top: 20px;
        padding-top: 10px;
        border-top: 1px dashed #999;
    }

    .assinatura-card {
        margin-bottom: 18px;
    }

    .assinatura-card p {
        margin: 4px 0;
    }

    .linha-assinatura {
        margin-top: 24px;
        border-top: 1px solid #000;
        width: 100%;
        height: 1px;
    }
}