
.dt-layout-top {
    background-color: #f8f9fa;
    border-radius: 4px 4px 0 0;
    padding: 10px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    position: relative;
    min-height: 60px;
}

.dt-layout-topStart {
    display: flex !important;
    align-items: center !important;
    position: relative;
    z-index: 1;
    margin-right: auto;
}

.dt-layout-topEnd {
    display: flex !important;
    align-items: center !important;
    position: relative;
    z-index: 1;
    margin-left: auto;
}

.dt-buttons {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 1;
    gap: 8px;
    z-index: 2;
    position: relative;
    min-width: 200px;
}

.btn-icon-only {
    background-color: transparent;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 6px 10px;
    color: #6c757d;
    transition: all 0.3s ease;
    box-shadow: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-icon-only:hover {
    background-color: #f1f3f5;
    color: #495057;
    border-color: #dee2e6;
}

.btn-icon-only:focus {
    box-shadow: 0 0 0 0.2rem rgba(108, 117, 125, 0.15);
    outline: none;
}

.btn-icon-only i {
    font-size: 16px;
}

.dt-search {
    margin-left: auto;
}

.dt-search input {
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 0.9rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.dt-search input:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.dt-length select {
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 6px 28px 6px 12px;
    font-size: 0.9rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='4' height='5' viewBox='0 0 4 5'%3e%3cpath fill='%23343a40' d='M2 0L0 2h4zm0 5L0 3h4z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 8px 10px;
}

.dt-length select:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

table.dataTable {
    width: 100% !important;
    border-collapse: collapse;
    border-spacing: 0;
    margin-bottom: 0;
}

table.dataTable thead th {
    padding: 12px 10px;
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    color: #495057;
    text-align: left;
}

table.dataTable tbody td {
    padding: 10px;
    border-bottom: 1px solid #e9ecef;
    vertical-align: middle;
}

table.dataTable tbody tr:hover {
    background-color: #f8f9fa;
}

.tooltip {
    z-index: 10000;
}

.tooltip-inner {
    background-color: #343a40;
    color: #fff;
    border-radius: 4px;
    padding: 5px 10px;
}

/* Responsividade */
@media (max-width: 992px) {
    .dt-buttons {
        position: static;
        transform: none;
        margin: 10px 0;
        justify-content: center;
        width: 100%;
    }

    .dt-layout-top {
        flex-direction: column;
        align-items: stretch;
    }

    .dt-layout-topStart, .dt-layout-topEnd {
        width: 100%;
        margin: 5px 0;
    }

    .dt-length, .dt-search {
        width: 100%;
        margin: 5px 0;
    }

    .dt-search input {
        width: 100%;
    }
}
