@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@100..900&display=swap');

/* =========================================================
   TOKENS / THEME
   ========================================================= */
:root {
    /* NEUTROS */
    --white: #FFFFFF;
    --black: #050315;
    --gray-900: #111827;
    --gray-700: #4B5563;
    --gray-500: #9CA3AF;
    --gray-300: #E5E7EB;
    --gray-100: #F9FAFB;

    /* PALETA ROXA (BASE) */
    --purple-900: #2B1764;
    --purple-700: #5D2DDF;
    --purple-600: #7744FF;  /* roxo principal */
    --purple-500: #B027FF;
    --purple-300: #B397FF;
    --purple-100: #F3ECFF;

    /* LARANJA (ACENTO) */
    --orange-600: #FF8A00;
    --orange-500: #FFAF03;
    --orange-300: #FFD27A;

    /* SEMÂNTICOS */
    --color-bg: var(--purple-100);
    --color-text-main: var(--purple-900);

    --color-brand: var(--purple-600);         /* cor principal */
    --color-brand-soft: var(--purple-100);    /* fundos suaves */
    --color-accent: var(--orange-500);        /* acento / detalhes */
    --color-border-focus: var(--color-brand);

    /* compat legada */
    --base-color: var(--color-bg);
    --base-30: color-mix(in srgb, var(--base-color) 30%, transparent);
    --main-color: var(--color-text-main);
    --main-color-i: var(--white);
    --secondary-color: var(--color-border-focus);

    /* =====================================================
       GRADIENTS
       ===================================================== */

    /* CTA PRINCIPAL (ROXO) */
    --gradient-primary: linear-gradient(135deg, #1B1464, #6844F9);
    --gradient-primary-hover: linear-gradient(135deg, var(--purple-700), var(--purple-500));

    --gradient-cta: linear-gradient(135deg, var(--orange-600), var(--orange-500));
    --gradient-cta-hover: linear-gradient(135deg, var(--purple-700), var(--purple-500));

    /* CTA ALTERNATIVO (LARANJA) – opcional */
    --gradient-cta-accent: linear-gradient(135deg, var(--orange-500), var(--orange-600));

    /* Fundo geral com roxo claro (ex: login-page / app-bg) */
    --gradient-bg-soft: radial-gradient(
        circle at top left,
        var(--purple-300) 0,
        var(--purple-100) 40%,
        var(--purple-100) 100%
    );
    --gradient-bg-soft-50: radial-gradient(
    circle at top left,
    color-mix(in srgb, var(--purple-300) 50%, transparent) 0,
    color-mix(in srgb, var(--purple-100) 50%, transparent) 40%,
    color-mix(in srgb, var(--purple-100) 50%, transparent) 100%
  );

    /* Painel roxo intenso (lado direito do login) */
    --gradient-panel: radial-gradient(
        circle at top left,
        var(--purple-300) 0,
        var(--purple-600) 40%,
        var(--purple-700) 100%
    );

    /* Card “glassmorphism” da ilustração */
    --gradient-glass-card: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.18),
        rgba(255, 255, 255, 0.06)
    );

    /* sombras */
    --shadow-soft: 0 12px 30px rgba(45, 23, 100, 0.20);
    --shadow-strong: 0 40px 80px rgba(45, 23, 100, 0.28);

    /* font */
    --font-default: 400 0.875rem 'Roboto', sans-serif;
    --font-small: 500 0.75rem 'Roboto', sans-serif;
    --font-medium: 600 1rem 'Roboto', sans-serif;
    --font-large: 600 1.25rem 'Roboto', sans-serif;
    --font-xlarge: 600 1.5rem 'Roboto', sans-serif;
    --button-font: 600 0.875rem 'Roboto', sans-serif;

    /* spacing */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 32px;
    --spacing-lg: 48px;
    --spacing-xl: 64px;
    --spacing-xxl: 96px;

    /* radius */
    --radius-xs: 4px;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 32px;
    --radius-xl: 48px;

    /* alias pra facilitar uso semântico em botões */
    --cta: var(--gradient-cta);
    --cta-hover: var(--gradient-cta-hover);
    --cta-accent: var(--gradient-cta-accent);
    --cta-i: #ffffff;
}

.w-full {
    width: 100%;
}

.flex {
    display: flex;
}

.flex-1 {
    flex: 1;
}

.gap-2 {
    gap: 8px;
}

/* =========================================================
   BASE
   ========================================================= */
body {
    padding: 0;
    margin: 0;
    font: var(--font-default);
    color: var(--main-color);
    background: var(--color-bg);
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--gradient-primary); /* usa gradient var */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    padding: var(--spacing-sm) var(--spacing-md);
}

header .icons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.container-fluid {
    padding: var(--spacing-sm) var(--spacing-md);
    width: 100%;
}

.app-shell {
    background: var(--white);
    color: var(--main-color);
    font: var(--font-default);
}

p, span, label {
    font: var(--font-default);
}

/* Titles */
h2.title {
    font: var(--font-large);
    text-transform: uppercase;
}

/* =========================================================
   BOTÕES GERAIS
   ========================================================= */

.btn .ms-1 {
    margin-left: 0;
}

.btn {
    padding: var(--spacing-sm);
    text-transform: uppercase;
    font: var(--button-font);
    border: 0;
    border-radius: var(--radius-sm);
    text-align: center;
}

.btn.btn-sm {
    padding: 0 var(--spacing-sm);
    height: 32px;
}

.btn.btn-primary {
    background: var(--gradient-primary);
    color: var(--cta-i);
}

.btn.btn-secondary {
    background: var(--gradient-primary);
    color: var(--cta-i) !important;
}

.btn.btn-cta {
    background: var(--gradient-cta);
    color: var(--cta-i) !important;
}

.btn.btn-danger {
    background: #dc2626;
    color: var(--cta-i) !important;
}

/* Botão pequeno com ícone */
.btn.icon-btn {
    width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn.btn-ghost {
    position: relative;
    border-radius: var(--radius-xs);
    background: var(--gradient-glass-card);
    box-shadow: 0 26px 60px rgba(21, 10, 71, 0.58);
    border: 1px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(16px);
    color: var(--white);
   }

/* Botão de refresh (exemplo, usando roxo + laranja) */
.module-refresh-btn {
    background-color: var(--purple-900);
    color: var(--orange-300);
    border: 1px solid color-mix(in srgb, var(--orange-500) 35%, var(--purple-900));
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    padding: .25rem .5rem;
    min-width: 96px;
    height: 32px;
}
.module-refresh-btn:hover {
    background-color: var(--purple-700);
    color: var(--orange-300);
}

.actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.actions .btn-action {
    background: var(--cta);
    border: 0;
    color: var(--cta-i) !important;
    padding: var(--spacing-xs);
    border-radius: var(--radius-xs);
    cursor: pointer;
    transition:
        transform 0.12s ease,
        box-shadow 0.12s ease,
        opacity 0.12s ease,
        background 0.12s ease;
}

/* =========================================================
   FORM / INPUTS GENÉRICOS
   ========================================================= */

/* Label padrão (fora login também) */
label,
.form-label {
    display: block;
    width: 100%;
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 0.8rem;
    color: var(--gray-700);
}

/* Inputs e selects padrão (Bootstrap-like) 
   → mesmo visual base do login-input */
input.form-control,
select.form-control,
select.form-select {
    width: 100%;
    background-color: #F4F3F7;
    border: 1px solid #D1D0E0;
    border-radius: var(--radius-sm);
    padding: 10px 16px;
    font-size: 0.875rem;
    font-family: inherit;
    color: var(--main-color);
    outline: none;
    transition:
        border-color 0.12s ease,
        box-shadow 0.12s ease,
        background-color 0.12s ease,
        transform 0.12s ease;
}

/* Textarea mantém cantos menos “pill”, mas segue paleta */
textarea.form-control {
    width: 100%;
    background-color: #F4F3F7;
    border: 1px solid #D1D0E0;
    border-radius: var(--radius-md);
    padding: 10px 14px;
    font-size: 0.875rem;
    font-family: inherit;
    color: var(--main-color);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--color-brand) 6%, transparent);
    outline: none;
    resize: vertical;
    min-height: 90px;
    transition:
        border-color 0.12s ease,
        box-shadow 0.12s ease,
        background-color 0.12s ease,
        transform 0.12s ease;
}

/* Placeholder no padrão do login */
input.form-control::placeholder,
textarea.form-control::placeholder,
select.form-control::placeholder {
    color: var(--purple-300);
    opacity: 1;
}

/* Foco – mesmo “glow” roxo do login */
input.form-control:focus,
select.form-control:focus,
select.form-select:focus,
textarea.form-control:focus {
    border-color: var(--color-border-focus);
    box-shadow:
        0 0 0 1px color-mix(in srgb, var(--color-brand) 40%, transparent),
        0 0 0 3px color-mix(in srgb, var(--color-brand) 12%, transparent);
    background-color: color-mix(in srgb, var(--color-brand-soft) 80%, #ffffff);
}

/* Estado inválido (se usar validação bootstrap/blazor) */
input.form-control.is-invalid,
select.form-control.is-invalid,
textarea.form-control.is-invalid {
    border-color: #dc2626;
    box-shadow:
        0 0 0 1px rgba(220, 38, 38, 0.7),
        0 0 0 3px rgba(220, 38, 38, 0.16);
}

/* Para inputs com ícone (reaproveitando sua classe) */
.input-icon {
    position: relative;
}

.input-icon i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-500);
    font-size: 0.9rem;
}

.input-icon input.form-control {
    padding-left: 2.6rem;
}


/* utils */
.w-250 {
    width: 250px !important;
}

.swal2-popup-custom {
    margin-top: 0 !important;
}

.no-border-icon {
    border: none !important;
    background: none !important;
}

.badge-compact {
    font-size: .72rem;
    padding: .2rem .45rem;
    line-height: 1;
}

.input-icon-wrapper {
  position: relative;
}

.input-icon-wrapper .input-icon {
  position: absolute;
  left: .75rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: .75rem;
  color: #9ca3af;
  pointer-events: none;
}

.input-icon-wrapper .form-control.with-icon-left {
  padding-left: 2rem;
}

/* =========================================================
   LOGIN PAGE
   ========================================================= */
/* Fundo geral da página */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
    background: var(--gradient-bg-soft); /* usa gradient var */
    box-sizing: border-box;
}

/* Card principal */
.login-card {
    width: 100%;
    max-width: 1100px;
    min-height: 520px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-strong);
    display: flex;
    overflow: hidden;
    position: relative;
}

/* Lado esquerdo (form) */
.login-left {
    flex: 1 1 50%;
    padding: 40px 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
}

.login-left-inner {
    width: 100%;
    max-width: 360px;
}

.logo-tenant {
    margin-bottom: 32px;
}

.login-title {
    margin: 0 0 8px;
    font-size: 24px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--main-color);
}

.login-subtitle {
    margin: 0 0 32px;
    font-size: 13px;
    color: var(--gray-700);
}

/* Campos */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.login-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.login-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--gray-700);
}

.login-input-wrap {
    background: var(--color-brand-soft);
    border-radius: var(--radius-sm);
    padding: 10px 18px;
    display: flex;
    align-items: center;
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--color-brand) 8%, transparent);
}

.login-input {
    border: none;
    outline: none;
    flex: 1;
    background: transparent;
    font-size: 13px;
    color: var(--main-color);
}

.login-input::placeholder {
    color: var(--purple-300);
}

/* Botão principal do login (roxo) */
.login-button {
    margin-top: 4px;
    width: 100%;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    font: var(--button-font);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--cta-i);
    background: var(--gradient-cta);
    box-shadow: 0 12px 30px rgba(120, 65, 255, 0.35);
    transition:
        transform 0.12s ease,
        box-shadow 0.12s ease,
        opacity 0.12s ease,
        background 0.12s ease;
}

.login-button:hover:not(:disabled) {
    transform: translateY(-1px);
    background: var(--gradient-cta-hover);
    box-shadow: 0 15px 36px rgba(120, 65, 255, 0.45);
}

.login-button:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 8px 20px rgba(120, 65, 255, 0.35);
}

.login-button:disabled {
    opacity: 0.7;
    cursor: default;
}

/* Link "esqueci minha senha" */
.login-forgot {
    margin-top: 10px;
    text-align: right;
}

.login-link {
    font-size: 12px;
    color: var(--color-brand);
    text-decoration: none;
}

.login-link:hover {
    text-decoration: underline;
}

/* Erro */
.login-error {
    margin-top: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    background: rgba(255, 87, 87, 0.08);
    color: #d53030;
}

/* =========================================================
   LOGIN – LADO DIREITO (ILUSTRAÇÃO)
   ========================================================= */
.login-right {
    flex: 1 1 50%;
    background: var(--gradient-panel); /* usa gradient var */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.login-right::before {
    content: "";
    position: absolute;
    inset: -20%;
    background-image:
        radial-gradient(circle at 0 0, rgba(255, 255, 255, 0.11) 0, transparent 55%),
        radial-gradient(circle at 100% 100%, rgba(255, 255, 255, 0.08) 0, transparent 55%);
    opacity: 0.65;
    pointer-events: none;
}

.login-right-inner {
    position: relative;
    width: 80%;
    max-width: 380px;
}

/* Cartão central da ilustração */
.login-right-card {
    position: relative;
    border-radius: var(--radius-lg);
    background: var(--gradient-glass-card); /* usa gradient var */
    box-shadow: 0 26px 60px rgba(21, 10, 71, 0.58);
    padding: 32px 32px 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(16px);
    min-height: 340px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

/* Imagem da pessoa */
.login-right-image {
    max-height: 320px;
    width: auto;
    display: block;
}

/* Badge circular */
.login-right-badge {
    position: absolute;
    left: 26px;
    bottom: 50%;
    transform: translateY(50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 18px 40px rgba(21, 10, 71, 0.35);
    color: var(--color-accent);
}

/* =========================================================
   RESPONSIVO
   ========================================================= */
@media (max-width: 900px) {
    .login-card {
        flex-direction: column;
        max-width: 480px;
        min-height: auto;
    }

    .login-left {
        padding: 32px 24px 24px;
    }

    .login-right {
        order: -1;
        min-height: 260px;
    }

    .login-right-inner {
        width: 85%;
    }

    .login-right-card {
        padding: 24px 24px 0;
        min-height: 260px;
    }

    .login-right-image {
        max-height: 260px;
    }
}

@media (max-width: 480px) {
    .login-page {
        padding: 16px;
    }

    .login-left-inner {
        max-width: 100%;
    }
}

/* =========================================================
   LISTA DE PRODUTOS / CARD TABELA
   ========================================================= */

.filter-table {
    display: flex;
    gap: 12px;
    padding: var(--spacing-sm);
    background-color: var(--white);
    box-shadow: var(--shadow-soft);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
}

.card {
    background: var(--white);
    border-radius: var(--radius-md);
    box-sizing: border-box;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(15, 23, 42, 0.04);
    overflow: hidden;
    margin-bottom: var(--spacing-md);
    padding: var(--spacing-sm);
}

.card-body {
    padding: 0;
}

.list-group {
    border: 1px solid var(--purple-300);
    border-radius: var(--radius-sm);
}

.list-group-item {
    border-bottom: 1px solid var(--purple-300);
    padding: var(--spacing-sm);
}

.list-group-item:last-child {
    border-bottom: none;
} 

/* Cabeçalho do card */
.card-header {
    padding: 14px 20px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    background: var(--white);
    font: var(--font-medium);
    color: var(--gray-900);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Tabela dentro do card */
.card .table-responsive {
    margin: 0;
    padding: 0;
}

.card .table {
    margin-bottom: 0;
    font-size: 0.8125rem;
    color: var(--gray-900);
}

/* Cabeçalho da tabela */
.card .table thead {
    background: #F3F4F6;
}

.card .table thead th {
    border-bottom: 0;
    padding: var(--spacing-sm) var(--spacing-md);
    font: var(--font-small);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gray-500);
    white-space: nowrap;
}

/* Corpo da tabela */
.card .table tbody td {
    padding: var(--spacing-sm) var(--spacing-md);
    border-top: 1px solid rgba(15, 23, 42, 0.04);
    border-bottom: 0;
    vertical-align: middle;
    font: var(--font-default);
    color: var(--main-color);
}

/* Linhas hover */
.card .table tbody tr:hover {
    background: var(--purple-100);
}

/* Colunas específicas */
.card .table tbody td.text-nowrap {
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

/* Badge de status */
.card .badge.rounded-pill {
    font-size: 0.7rem;
    padding: 0.25rem 0.6rem;
}

/* Mantém visual de "ativo", mas mais suave */
.card .badge.bg-success {
    background-color: rgba(22, 163, 74, 0.12) !important;
    color: #166534;
}

/* Ações (botões ícone) */
.card .btn.btn-link {
    border-radius: var(--radius-sm);
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: 0;
    background: transparent;
    transition: background 0.12s ease, transform 0.12s ease, box-shadow 0.12s ease;
}

.card .btn.btn-link i {
    font-size: 1rem;
}

/* hover dos ícones */
.card .btn.btn-link:hover {
    background: rgba(148, 163, 184, 0.16);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.12);
}

/* remove sombra quando desabilitado, se usar disabled no futuro */
.card .btn.btn-link:disabled {
    opacity: 0.4;
    box-shadow: none;
    transform: none;
}

/* Rodapé do card (paginação) */
.card-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--main-color);
}

.card-pagination .pagination {
    background: var(--purple-100);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--purple-300);
}

.card-pagination .page-item button {
    background: var(--gradient-glass-card);
    outline: 1px solid var(--purple-300);
    border: 1px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(16px);
    color: var(--main-color);
    backdrop-filter: blur(16px);
}

.card-pagination .page-item.active button {
    background: rgba(0,0,0,.1);
}

/* =====================================================
   PRODUCT VIEW
   ===================================================== */

.product-view-layout {
  display: flex;
  gap: 1.5rem;
}

.product-view-sidebar {
  position: sticky;
  top: 96px; /* ajusta conforme header */
  align-self: flex-start;
  width: 260px;
  padding: 1rem;
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 120px);
}

.product-view-sidebar-header {
  margin-bottom: 1rem;
}

.product-view-sidebar-header .product-code {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #818cf8;
}

.product-view-sidebar-header .product-name {
  font-size: 0.875rem;
  font-weight: 600;
}

.product-view-nav .nav-link {
  border-radius: .5rem;
  padding: .4rem .75rem;
  font-size: .85rem;
  text-align: left;
  color: #4b5563;
}

.product-view-nav .nav-link.active {
  background: #eef2ff;
  color: #4f46e5;
  font-weight: 600;
}

.product-view-nav .nav-link:disabled {
  opacity: .4;
  cursor: not-allowed;
}

.product-view-sidebar-footer {
  margin-top: auto;
  padding-top: var(--spacing-md);
}

.product-view-content {
  flex: 1;
}

.product-section {
  margin-bottom: 2rem;
}

.product-section-title {
  margin-bottom: 1rem;
}

/* Modo "Cadastro completo": ocupa mais largura, layout mais aberto */
.product-view-full {
  max-width: 100%;
}

/* =========================================
   AJUSTE DO OVERLAY – SEM SCROLL INTERNO
   ========================================= */

/* O overlay agora pode rolar a página inteira se precisar */
.product-full-overlay {
    position: fixed;
    inset: 0;
    z-index: 1080;
    display: flex;
    align-items: flex-start;       /* começa do topo */
    justify-content: center;
    padding: 24px 16px;
    overflow-y: auto;              /* rolagem global, não no painel */
    pointer-events: none;
}

.product-full-overlay-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(3px);
    pointer-events: auto;
}

/* Painel agora é auto-height, sem max-height/overflow */
.product-full-overlay-panel {
    position: relative;
    pointer-events: auto;
    background: #ffffff;
    border-radius: 12px;
    box-shadow:
        0 20px 45px rgba(15, 23, 42, 0.35),
        0 0 0 1px rgba(148, 163, 184, 0.35);
    padding: 1.25rem 1.5rem;
    width: min(1200px, 96vw);
    height: auto;
    max-height: none;
    overflow: visible;
    display: flex;
    flex-direction: column;
}

.product-full-overlay-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
}

/* ============================
   OVERLAY DO CADASTRO COMPLETO
   ============================ */

.product-full-overlay {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 16px;
}

.product-full-overlay-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(2px);
}

.product-full-overlay-panel {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1320px;
  /* deixa a altura livre para não virar “modalzinho” com rolagem própria */
  max-height: none;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 22px 45px rgba(15, 23, 42, 0.25);
  padding: 16px 20px 20px;
}

/* Botão de fechar no canto superior direito */
.product-full-overlay-close {
  position: absolute;
  top: 10px;
  right: 10px;
}

/* Tira qualquer overflow interno em painel/card, 
   a rolagem passa a ser da página inteira */
.product-full-overlay-panel .card {
  max-height: none;
  overflow: visible;
}

/* Painel flutuante: mais largo e menos “almofadado” */
.product-full-overlay-panel {
  max-width: 1380px;              /* aumenta área útil */
  padding: 16px 20px;
}

/* Título do PageHeader dentro do overlay */
.product-full-overlay-panel .page-header {
  margin-bottom: 8px;
}
.product-full-overlay-panel .page-header-title {
  font-size: 20px;
}
.product-full-overlay-panel .page-header-subtitle {
  font-size: 12px;
}

/* Escala geral só do cadastro completo dentro do overlay */
.product-full-scale {
  transform: scale(0.7);
  transform-origin: top left;
  /* compensa a escala para usar toda largura do painel */
  width: calc(100% / 0.7);
  /* se estiver muito alto, você pode limitar a altura e deixar rolar dentro do overlay */
  /* max-height: calc(100vh / 0.7 - 80px); */
}

/* Opcional: diminuir um pouco o gap geral entre sections */
.product-full-layout {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ====== GRID para Informações Básicas ====== */
/* Aplica apenas no primeiro card (aquele com o ProductTabGeneral) */

.product-full-section--basic {
  display: grid;
  grid-template-columns: 2fr 1.1fr; /* coluna maior p/ General, menor p/ Dimensões/Preço */
  grid-auto-rows: minmax(0, auto);
  column-gap: 12px;
  row-gap: 8px;
}

/* Remove margem vertical padrão dos FormSection dentro desse grid,
   o espaçamento agora é controlado pelo gap do grid. */
.product-full-section--basic > .form-section {
  margin-bottom: 0;
}

/* 1º FormSection = "General"  -> ocupa a coluna esquerda e 2 linhas */
.product-full-section--basic > .form-section:nth-of-type(1) {
  grid-column: 1;
  grid-row: 1 / span 2;
}

/* 2º FormSection = "Dimensões" -> coluna da direita, linha 1 */
.product-full-section--basic > .form-section:nth-of-type(2) {
  grid-column: 2;
  grid-row: 1;
}

/* 3º FormSection = "Preço base" -> coluna da direita, linha 2 */
.product-full-section--basic > .form-section:nth-of-type(3) {
  grid-column: 2;
  grid-row: 2;
}

/* A partir do 4º FormSection em diante (Fiscal, Estoque, etc),
   fazemos ocupar a largura toda, embaixo */
.product-full-section--basic > .form-section:nth-of-type(n + 4) {
  grid-column: 1 / -1;
}


.btn-hover-fixed {
    background-color: #6c757d !important; /* cinza tipo bootstrap */
    color: #fff !important;
    border-color: #6c757d !important;
}

.btn-hover-fixed:hover,
.btn-hover-fixed:focus,
.btn-hover-fixed:active {
    background-color: #6c757d !important;
    color: #fff !important;
    border-color: #6c757d !important;
}

/* se quiser visual de disabled coerente */
.btn-hover-fixed:disabled,
.btn-hover-fixed.disabled {
    opacity: .65;
}

/* Hover bem leve (cinza suave) */
.sb-row:hover > td {
    background-color: rgba(0, 0, 0, 0.035);
}

/* Deixa a transição suave ao entrar/sair */
.sb-row > td {
    transition: background-color 120ms ease-in-out;
}