
/* RASTREACRE REVENDAS TEMAS V6 20260920
   Exclusivo de /revendas.html.
   O tema rastreacre_default mantém o visual original.
*/

/* Fundo e textos gerais da área de conteúdo. */
html[data-rt-theme]:not([data-rt-theme="rastreacre_default"])
body.rt63-header-integrado {
    background: var(--rt-bg) !important;
    background-image: none !important;
    color: var(--rt-text) !important;
}

/* Cartões: título, cadastro, listagem e arquitetura prevista. */
html[data-rt-theme]:not([data-rt-theme="rastreacre_default"])
body.rt63-header-integrado > .card,
html[data-rt-theme]:not([data-rt-theme="rastreacre_default"])
body.rt63-header-integrado > div > .card {
    background: var(--rt-card) !important;
    background-image: none !important;
    color: var(--rt-text) !important;
    border-color: var(--rt-line) !important;
    box-shadow: var(--rt-shadow) !important;
}

html[data-rt-theme]:not([data-rt-theme="rastreacre_default"])
body.rt63-header-integrado .card h2,
html[data-rt-theme]:not([data-rt-theme="rastreacre_default"])
body.rt63-header-integrado .card .card-head h2 {
    color: var(--rt-text) !important;
}

/* Descrições, rótulos e informações secundárias. */
html[data-rt-theme]:not([data-rt-theme="rastreacre_default"])
body.rt63-header-integrado .card .metric-sub {
    color: var(--rt-muted) !important;
}

/* Campos de cadastro e seleção do plano. */
html[data-rt-theme]:not([data-rt-theme="rastreacre_default"])
body.rt63-header-integrado .card .form-control {
    background: var(--rt-input-bg) !important;
    background-image: none !important;
    color: var(--rt-text) !important;
    border-color: var(--rt-line) !important;
}

html[data-rt-theme]:not([data-rt-theme="rastreacre_default"])
body.rt63-header-integrado .card .form-control::placeholder {
    color: var(--rt-muted) !important;
    opacity: 1;
}

html[data-rt-theme]:not([data-rt-theme="rastreacre_default"])
body.rt63-header-integrado .card .form-control:focus {
    outline: 2px solid var(--rt-green) !important;
    outline-offset: 1px;
    border-color: var(--rt-green) !important;
}

/* Preserva a função e a amostra de cor dos seletores. */
html[data-rt-theme]:not([data-rt-theme="rastreacre_default"])
body.rt63-header-integrado .card input[type="color"] {
    cursor: pointer;
}

/* Botão de retorno ao Dashboard. */
html[data-rt-theme]:not([data-rt-theme="rastreacre_default"])
body.rt63-header-integrado .card .secondary-btn {
    background: var(--rt-surface-2) !important;
    background-image: none !important;
    color: var(--rt-text) !important;
    border-color: var(--rt-line) !important;
}

/* Botão Criar revenda: contraste nos temas claros e escuros. */
html[data-rt-theme]:not([data-rt-theme="rastreacre_default"])
body.rt63-header-integrado .card .primary-btn {
    background: var(--rt-green) !important;
    background-image: none !important;
    color: #ffffff !important;
}

/* Tabela de revendas cadastradas. */
html[data-rt-theme]:not([data-rt-theme="rastreacre_default"])
body.rt63-header-integrado .card table {
    color: var(--rt-text) !important;
}

html[data-rt-theme]:not([data-rt-theme="rastreacre_default"])
body.rt63-header-integrado .card table th {
    color: var(--rt-muted) !important;
    border-bottom-color: var(--rt-line) !important;
}

html[data-rt-theme]:not([data-rt-theme="rastreacre_default"])
body.rt63-header-integrado .card table td {
    color: var(--rt-text) !important;
    border-bottom: 1px solid var(--rt-line) !important;
}

html[data-rt-theme]:not([data-rt-theme="rastreacre_default"])
body.rt63-header-integrado .card table tbody tr:hover {
    background: var(--rt-surface-2) !important;
}
