/* ==========================================================================
   MÓDULO: CONFIGURAÇÕES CBS E IBS
   ========================================================================== */

/* Ajustes específicos do Modal de Listagem (Gerenciar) */
#popupGerenciarIbsCbs .popup-content-large {
    max-width: 900px;
    width: 95%;
    max-height: 90vh;
}

#popupGerenciarIbsCbs .pesquisa-container-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background-color: #ffffff;
    border-bottom: 1px solid #e2e8f0;
}

/* Container da tabela para garantir rolagem em resoluções menores */
#popupGerenciarIbsCbs .tabela-container-modern {
    padding: 20px 30px;
    background-color: #f8fafc;
    flex-grow: 1;
    overflow-y: auto;
}

/* Ajustes do Modal de Formulário (Nova/Editar) */
#popupFormIbsCbs .popup-content {
    max-width: 600px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 0;
    border-radius: 8px;
}

#popupFormIbsCbs .popup-header-loja {
    padding: 20px 30px;
    background-color: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

#popupFormIbsCbs .etapas-container {
    padding: 20px 30px;
    background-color: #ffffff;
}

/* Padronização dos inputs numéricos para as alíquotas */
#ibsCbsPcbs,
#ibsCbsPibs {
    text-align: right;
    font-weight: 600;
    color: var(--primary-color, #3b82f6);
    background-color: #f8fafc;
}

/* Foco nos inputs numéricos */
#ibsCbsPcbs:focus,
#ibsCbsPibs:focus {
    background-color: #ffffff;
    border-color: var(--primary-color, #3b82f6);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Rodapé de botões fixo no formulário */
#popupFormIbsCbs .form-buttons-modern {
    padding: 20px 30px;
    background-color: #ffffff;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    position: sticky;
    bottom: 0;
    z-index: 10;
    margin: 0;
}