/* Seus estilos CSS permanecem os mesmos */
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

th,
td {
    padding: 4px 8px;
    border: 1px solid #ccc;
}

th {
    background-color: #f2f2f2;
    font-weight: bold;
}

.me-2 {
    margin-right: 0.5rem;
}

#main-container {
    margin-top: 5px;
}

@media print {

    /* Seus estilos de impressão permanecem os mesmos */
    @page {
        margin: 0;
    }

    body {
        margin: 0;
        padding: 0;
        height: auto;
    }

    #data-filtrada {
        margin: 0;
        padding: 0;
        font-size: 1.2em;
        text-align: left;
    }

    #tabela-pedidos {
        margin: 0;
        border-collapse: collapse;
    }

    #tabela-pedidos th,
    #tabela-pedidos td {
        padding: 4px;
        border: 1px solid #ccc;
    }

    .no-print {
        display: none;
    }

    body {
        -webkit-print-color-adjust: exact;
        color-adjust: exact;
    }

    #tabela-pedidos th {
        background-color: #969696 !important;
    }

    #tabela-pedidos tr:nth-child(odd) {
        background-color: #f2f2f2 !important;
    }

    #tabela-pedidos tr:nth-child(even) {
        background-color: #ffffff !important;
    }

    #tabela-pedidos tr[style*="background-color: #ccf7cd"] {
        background-color: #ccf7cd !important;
    }
}

.linha-totais {
    text-align: center;
    font-size: 1rem;
}

.total-grupo {
    text-align: center;
}

.total-grupo td {
    font-weight: bold;
    background-color: #f1f1f1;
    border-top: 2px solid #ddd;
    border-bottom: 2px solid #ddd;
}

/* Adicione ao seu CSS existente */
select.form-select-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    height: auto;
}

.form-filtro {
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 .5rem 1rem rgba(var(--bs-body-color-rgb), .15) !important;
}

/* Ajuste fino para os inputs de data */
.date-input-group {
    display: flex;
    gap: 15px;
    align-items: flex-end;
}

.date-input-container {
    flex: 1;
}

/* Para telas pequenas */
@media (max-width: 768px) {
    .date-input-group {
        flex-direction: column;
        gap: 10px;
    }
}

/* Estilo para os checkboxes de status */
.form-check-inline {
    margin-right: 1rem;
}

.form-check-input:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.linha-status-corte {
    margin-top: 15px;
}

/* Estilo para os botões de status */
.btn-group .btn {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

/* Espaçamento entre ícones e texto */
.btn i {
    margin-right: 5px;
}

/* Efeito hover mais suave */
.btn-outline-warning:hover {
    background-color: rgba(255, 193, 7, 0.1);
}

.btn-outline-info:hover {
    background-color: rgba(13, 202, 240, 0.1);
}

.btn-outline-success:hover {
    background-color: rgba(25, 135, 84, 0.1);
}

.btn-outline-primary:hover {
    background-color: rgba(13, 110, 253, 0.1);
}

/* Estilo para os botões na tabela */
.status-cell {
    padding: 2px !important;
    min-width: 120px;
}

/* Estilo para os botões de status */
.btn-group-sm .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Ícones dentro dos botões */
.btn-group-sm .btn i {
    font-size: 0.9rem;
}

/* Efeitos de hover */
.btn-outline-warning:hover {
    background-color: rgba(255, 193, 7, 0.1);
}

.btn-outline-info:hover {
    background-color: rgba(13, 202, 240, 0.1);
}

.btn-outline-success:hover {
    background-color: rgba(25, 135, 84, 0.1);
}

.btn-outline-primary:hover {
    background-color: rgba(13, 110, 253, 0.1);
}

/* Estilo quando selecionado */
.btn-check:checked+.btn-outline-warning {
    background-color: #ffc107;
    color: #000;
}

.btn-check:checked+.btn-outline-info {
    background-color: #0dcaf0;
    color: #000;
}

.btn-check:checked+.btn-outline-success {
    background-color: #198754;
    color: #fff;
}

.btn-check:checked+.btn-outline-primary {
    background-color: #0d6efd;
    color: #fff;
}

.painel-status-corte {
    background-color: #efefef;
    padding: 9px 13px;
    border-radius: 10px;
    display: grid;
}

#filtro-material {
    transition: border-color 0.3s;
}

#filtro-material:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Estilo para o botão de observação */
.observacao-btn {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px !important;
}

/* Ajuste para alinhamento vertical */
.status-cell {
    vertical-align: middle;
}

/* Tooltip customizado */
.tooltip-inner {
    max-width: 300px;
    white-space: pre-line;
    text-align: left;
}

/* Ícone de observação */
.bi-chat-left-text {
    font-size: 0.9rem;
    transition: transform 0.2s;
}

.bi-chat-left-text:hover {
    transform: scale(1.2);
}

/* Destaque para linhas com observação */
tr.tem-observacao {
    background-color: #f8f9fa !important;
}

/* Estilo para os botões alinhados */
.status-cell {
    min-width: 180px;
}

.status-cell .btn-group-sm {
    margin-right: 5px;
}

.status-cell .btn-sm {
    padding: 0.25rem 0.4rem;
    font-size: 0.75rem;
}

.status-cell .small {
    font-size: 0.75rem;
    line-height: 1.2;
}

/* Espaçamento entre os elementos */
.d-flex.gap-1 {
    gap: 0.25rem;
}

/* Estilo para os avisos */
.status-cell .small {
    background-color: #fff3cd;
    /* Fundo amarelo claro para avisos */
    padding: 0.25rem;
    border-radius: 0.25rem;
    margin-top: 0.25rem;
}

.aviso-informacao {
    color: white !important;
    font-size: 1rem;
}

.toast-header {
    font-weight: 500;
}

.toast-header.bg-warning,
.toast-header.bg-info,
.toast-header.bg-success,
.toast-header.bg-danger {
    color: white !important;
}

.toast-header .btn-close {
    filter: invert(1);
}