/* ============================================================
   MaxFarm ERP - Classes customizadas (compatíveis com SB Admin)
   ============================================================ */

/* ---------- Cards de estatística (Dashboard) ---------- */
.card-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    flex-shrink: 0;
}

.card-icon i {
    font-size: 1.05rem;
}

.stat-value {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: #0f172a;
    white-space: nowrap;
}

.stat-label {
    font-size: 0.7rem;
    color: #94a3b8;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.alert-item {
    padding: 0.5rem 0.9rem;
    border-bottom: 1px solid #eef2f7;
}

.alert-item:last-child {
    border-bottom: none;
}

.alert-item small {
    display: block;
    font-size: 0.75rem;
}

/* ---------- Títulos de seção ---------- */
.page-title {
    font-size: 1.05rem;
    font-weight: 600;
}

/* ---------- DataTables: cabeçalho azul moderno ---------- */
.dataTable thead th {
    background-color: #0d6efd !important;
    color: #ffffff !important;
    font-weight: 600;
    white-space: nowrap;
    border-color: #0b5ed7 !important;
    padding: 0.55rem 0.75rem !important;
}

.dataTable thead th:first-child {
    border-top-left-radius: 0.4rem;
}

.dataTable thead th:last-child {
    border-top-right-radius: 0.4rem;
}

.dataTable > thead > tr > th.sorting::before,
.dataTable > thead > tr > th.sorting::after,
.dataTable > thead > tr > th.sorting_asc::before,
.dataTable > thead > tr > th.sorting_asc::after,
.dataTable > thead > tr > th.sorting_desc::before,
.dataTable > thead > tr > th.sorting_desc::after {
    color: rgba(255, 255, 255, 0.7) !important;
}

.dataTable tbody tr:hover {
    background-color: #eef4ff !important;
}

/* Paginação moderna */
.dataTables_paginate .page-link {
    color: #0d6efd;
    border-radius: 0.35rem;
    margin: 0 2px;
}

.dataTables_paginate .page-item.active .page-link {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: #ffffff;
}

/* Barra de busca e info */
.dataTables_wrapper .form-control,
.dataTables_wrapper .form-select {
    font-size: 0.85rem;
    padding: 0.35rem 0.6rem;
}

.dataTables_info {
    font-size: 0.8rem;
    color: #64748b;
}
