/* Página Revenda — mesmo shell visual da gestão comercial; overrides locais */

.rev-page-title-wrap h1 {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
}

.rev-page-title-wrap .gc-topbar-subtitle {
    max-width: 42rem;
}

/* Abas internas da página Revenda */
.rev-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 20px;
    padding: 0;
    border-bottom: 1px solid var(--border);
}

.rev-tab {
    appearance: none;
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 10px 14px;
    margin-bottom: -1px;
    border-radius: 10px 10px 0 0;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: color 0.15s, background 0.15s;
}

.rev-tab:hover {
    color: var(--text-primary);
    background: var(--bg-body);
}

.rev-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: var(--bg-card);
}

.rev-panel {
    margin-top: 4px;
}

.rev-panel-toolbar {
    margin-bottom: 12px;
}

.rev-mov-grid {
    margin-bottom: 14px;
    max-width: 560px;
}

/* Âncoras no menu lateral: mesmo comportamento visual dos botões da gestão */
#gcApp .sidebar-nav a.nav-item {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
}

/* Modal cadastro de produto */
#gcRevModalProdutosBackdrop .gc-ct-modal.rev-prod-modal {
    max-width: min(960px, calc(100vw - 24px));
}

.rev-prod-modal__footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.rev-prod-img-preview {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 10px;
}

.rev-prod-img-preview .gc-rev-img-preview {
    max-height: 100px;
    max-width: 140px;
    border-radius: 8px;
    object-fit: contain;
    border: 1px solid var(--border);
    background: var(--bg-card);
}

.rev-prod-modal .gc-rev-prod-section.rev-prod-fieldset .gc-rev-field > span:first-child {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-secondary);
}
