/* Refinamentos visuais para a migracao AdminLTE sem alterar regras de negocio */

html,
body {
    overflow-y: overlay;
    scrollbar-gutter: auto;
}

.content-wrapper {
    background: linear-gradient(180deg, #f4f6f9 0%, #eef2f7 100%);
}

.content-header .m-0 {
    font-weight: 600;
}

.card {
    border-radius: 0.55rem;
}

.card-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.form-group label {
    white-space: normal;
    line-height: 1.3;
}

.card .form-control,
.card textarea.form-control,
.card select.form-control {
    width: 100%;
    min-height: calc(2.25rem + 2px);
    height: auto;
    line-height: 1.35;
}

.card .form-control-sm,
.card select.form-control-sm {
    min-height: calc(1.8125rem + 2px);
    height: auto;
    line-height: 1.25;
}

.card textarea.form-control {
    resize: vertical;
}

.form-actions {
    flex-wrap: wrap;
}

.form-actions .btn {
    white-space: normal;
}

.table td,
.table th {
    vertical-align: middle;
}

.actions .btn {
    margin-right: 0.25rem;
}

.actions .btn:last-child {
    margin-right: 0;
}

.status-agendado,
.status-atendido,
.status-em-atendimento,
.status-concluido,
.status-faltou,
.status-cancelado {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.2;
    padding: 0.3rem 0.5rem;
    border-radius: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.status-agendado {
    color: #1d4ed8;
    background: #dbeafe;
}

.status-atendido {
    color: #166534;
    background: #dcfce7;
}

.status-em-atendimento {
    color: #b45309;
    background: #fef3c7;
}

.status-concluido {
    color: #0f766e;
    background: #ccfbf1;
}

.status-faltou {
    color: #991b1b;
    background: #fee2e2;
}

.status-cancelado {
    color: #374151;
    background: #e5e7eb;
}

.table-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.85rem;
    padding-top: 0.7rem;
    border-top: 1px solid #e5e7eb;
    flex-wrap: wrap;
}

.pagination {
    display: flex;
    gap: 0.4rem;
    margin: 0;
}

.pagination a,
.pagination-disabled,
.pagination-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 0.55rem;
    border-radius: 0.3rem;
}

.pagination a {
    border: 1px solid #d1d5db;
    color: #374151;
    background: #fff;
    transition: all 0.2s ease;
}

.pagination a:hover {
    color: #1d4ed8;
    border-color: #93c5fd;
    background: #eff6ff;
}

.pagination a.active {
    color: #fff;
    border-color: #1d4ed8;
    background: #1d4ed8;
}

.total-records {
    color: #4b5563;
}

.ticket-list {
    background: #fff;
}

.ticket-list li {
    border-color: #e5e7eb;
}

.ticket-list li.atual {
    background: #fef3c7;
}

.agendamento-filtros-inline {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.2rem;
}

.agendamento-filtros-inline .filter-item {
    flex: 0 0 auto;
    margin-bottom: 0;
}

.agendamento-filtros-inline .filter-per-page {
    width: 70px;
}

.agendamento-filtros-inline .filter-busca {
    min-width: 190px;
    width: 20vw;
    max-width: 320px;
}

.agendamento-filtros-inline .filter-status {
    width: 155px;
}

.agendamento-filtros-inline .filter-date {
    width: 170px;
}

.agendamento-filtros-inline .filter-actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
}

@media (max-width: 991.98px) {
    .content-wrapper .content {
        padding: 1rem;
    }

    .content-header .float-sm-right {
        float: none !important;
        margin-top: 0.6rem;
    }

    .table-responsive {
        border-radius: 0.45rem;
    }

    .actions {
        white-space: normal;
    }

    .actions .btn {
        margin-bottom: 0.25rem;
    }

    .agendamento-filtros-inline {
        gap: 0.35rem;
    }

    .agendamento-filtros-inline .filter-busca {
        min-width: 180px;
    }

    .agendamento-filtros-inline .filter-status {
        width: 140px;
    }
}
