body.dark-mode .rh-filter-form {
    background: #16171b; /* Fundo escuro azulado como no login */
    border: 1px solid #344455;
}

body.dark-mode .rh-filter-header {
    background: #131317;
    color: #4799FF;
    border-bottom: 1px solid #40474f;
}

body.dark-mode .rh-filter-form label {
    color: #fff;
}

/* Estilo dos Inputs e Selects */
body.dark-mode .rh-filter-form select,
body.dark-mode .rh-filter-form input[type="text"] {
    background: #202226;
    color: #efefef;
}

body.dark-mode .rh-go-btn {
    background: linear-gradient(to top, #000 1%, #444 70%);
    color: #fff;
}

body.dark-mode .rh-go-btn:hover {
    background: linear-gradient(to top, #06609e 1%, #4799ff 70%);
    color: #fff;
}

body.dark-mode .rh-results-info {
    background: #131317;
    color: #fff;
    border: 1px solid #344455;
}
body.dark-mode .rh-results-info .fa {
    color:#fff;
}
body.dark-mode .rh-results-table th,
body.dark-mode .rh-results-table td {
    border-top: none;
	border-left: 1px solid #344455;
    border-right: 1px solid #344455;
    border-bottom: 1px solid #344455;
}

body.dark-mode .rh-results-table th {
    background: #1d1e24;
    color: #fff;
}

body.dark-mode .rh-results-table td {
    background: #16171b;
    color: #fff;
}

body.dark-mode .rh-results-table tr:hover td {
    background: #3F3F3F;
}

/* Link do Título */
body.dark-mode .rh-col-title a {
    color: #84BBFF;
}

body.dark-mode .rh-pagination a,
body.dark-mode .rh-pagination span {
    background: linear-gradient(to top, #000 1%, #444 70%);
    color: #fff;
}

body.dark-mode .rh-pagination a:hover,
body.dark-mode .rh-pagination span.current {
    background: linear-gradient(to top, #06609e 1%, #4799ff 70%);
    color: #fff;
}

/* Container Principal */
.rh-db-container {
    font-family: sans-serif;
    color: #e0e0e0;
    max-width: 100%;
    margin: 0 auto;
}

/* --- Formulário de Filtro --- */
.rh-filter-form {
    background-color: #f7fafc;
    border: 1px solid #B4C0CE;
    border-radius: 5px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

.rh-filter-header {
    background: #002f54;
    color: lightblue;
    padding: 10px;
    text-align: center;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 16px;
    border-radius: 4px 4px 0 0;
    border-bottom: 1px solid #002f54;
    margin-bottom: 6px;
    box-shadow: 0 16px 20px rgba(255,255,255,.15) inset;
    text-transform: uppercase;
}

.rh-filter-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: space-between;
}

.rh-filter-group {
    flex: 1 1 380px; /* Responsivo */
    display: flex;
    flex-direction: column;
}

.rh-filter-full {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-left: 28px;
    padding-right: 28px;
}

.rh-filter-form label {
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 5px;
    color: #000;
    text-align: center;
}

/* Estilo dos Inputs e Selects */
.rh-filter-form select,
.rh-filter-form input[type="text"] {
    background: #fbfbfb;
    border: 1px solid #8699A5;
    color: #000;
    padding: 8px;
    margin-right: 28px;
    margin-left: 28px;
    border-radius: 8px;
    font-size: 13px;
}

.rh-filter-form input[type="text"]:focus,
.rh-filter-form select:focus {
    outline: none;
}

/* Botão GO */
.rh-filter-action {
    margin-bottom: 28px;
    text-align: center;
}

.rh-go-btn {
    background: linear-gradient(to top, #E2E9F3 1%, #FFFFFF 70%);
    color: #444;
    border: 1px solid #ccc;
    padding: 8.1px 40px;
    cursor: pointer;
    font-weight: bold;
    border-radius: 14px;
    transition: all 0.2s;
}
.rh-go-btn:hover {
    background: linear-gradient(to top, #FFFFFF 1%, #E2E9F3 70%);
    color: #af6700;
    text-decoration: none;
}

/* --- Tabela de Resultados --- */
.rh-results-info {
    background: #002f54;
    color: lightblue;
    padding: 10px;
    text-align: center;
    font-weight: bold;
    border-radius: 4px 4px 0 0;
    box-shadow: 0 16px 20px rgba(255,255,255,.15) inset;
    border: 1px solid #B4C0CE;
}

.rh-results-info .fa {
    color:lightblue;
    margin-right: 5px;
    font-size: 28px;
}

.rh-results-table {
    width: 100%;
    box-sizing: border-box;
    border-collapse: collapse;
    background: #151b24;
    font-size: 13px;
}

.rh-results-table th,
.rh-results-table td {
    border-left: 1px solid #B4C0CE;
    border-right: 1px solid #B4C0CE;
    border-bottom: 1px solid #B4C0CE;
    border-top: none;
    box-sizing: border-box;
}

.rh-results-table th {
    background: #d9e1e9;
    font-weight: bold;
    color: #176093;
    text-align: left;
}

.rh-results-table td {
    padding: 8px 10px;
    background: #f7fafc;
    color: #176093;
}

.rh-results-table tr:hover td {
    background: lightyellow;
}

/* Link do Título */
.rh-col-title a {
    color: #176093;
    text-decoration: none;
    font-weight: bold;
}
.rh-col-title a:hover {
    text-decoration: underline;
}

/* --- Paginação --- */
.rh-pagination {
    margin-top: 20px;
    text-align: center;
}
.rh-pagination a,
.rh-pagination span {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 2px;
    background: linear-gradient(to top, #E2E9F3 1%, #FFFFFF 70%);
    color: #444;
    text-decoration: none;
    border: 1px solid #B4C0CE;
    border-radius: 8px;
}
.rh-pagination span.current {
    background: linear-gradient(to top, #FFFFFF 1%, #E2E9F3 70%);
    text-decoration: none;
    font-weight: bold;
    color: #af6700;
    border-color: #88aaff;
}
.rh-pagination a:hover {
    color: #af6700;
    background: linear-gradient(to top, #FFFFFF 1%, #E2E9F3 70%);
    text-decoration: none;
}