/*
 * Fluxus Regulatório
 * Ajustes > Andamento
 * Candidata V1
 * Referência visual: mockup aprovado 1536x1024
 */

.fx-reg-progress-page{
  height:100%;
  min-height:0;
  box-sizing:border-box;
  padding:26px 26px 38px;
  background:#f8fbfd;
  display:flex;
  flex-direction:column;
  color:#102f49;
}

.fx-reg-progress-title{
  flex:0 0 auto;
  margin:0 0 36px;
  padding:0 2px 19px;
  border-bottom:1px solid #74aee4;
}

.fx-reg-progress-title h1{
  margin:0;
  color:#102f49;
  font-family:inherit;
  font-size:38px;
  font-weight:700;
  line-height:1.2;
  letter-spacing:-.25px;
}

.fx-reg-progress-table-wrap{
  flex:1;
  min-height:0;
  overflow:auto;
  background:#fff;
  border:1px solid #d6e4ed;
  border-radius:9px;
}

.fx-reg-progress-table{
  width:100%;
  border-collapse:collapse;
  table-layout:fixed;
  background:#fff;
}

.fx-reg-progress-table th{
  height:60px;
  box-sizing:border-box;
  padding:0 29px;
  background:#e7f0f6;
  border-bottom:1px solid #d5e2eb;
  color:#15344e;
  font-size:20px;
  font-weight:700;
  text-align:left;
  vertical-align:middle;
}

.fx-reg-progress-table td{
  height:46px;
  box-sizing:border-box;
  padding:0 29px;
  border-bottom:1px solid #dbe5eb;
  color:#173853;
  font-size:20px;
  font-weight:400;
  text-align:left;
  vertical-align:middle;
}

.fx-reg-progress-table tbody tr:nth-child(odd){
  background:#fff;
}

.fx-reg-progress-table tbody tr:nth-child(even){
  background:#fbfdfe;
}

.fx-reg-progress-table tbody tr{
  cursor:pointer;
}

.fx-reg-progress-table tbody tr:hover{
  background:#f2f8fb;
}

.fx-reg-progress-table tbody tr.is-selected{
  background:#dceef4;
}

.fx-reg-progress-table tbody tr.is-selected td{
  box-shadow:
    inset 4px 0 0 #078d92;
}

.fx-reg-progress-error{
  color:#a33d3d!important;
  font-size:15px!important;
}

aside.fx-actions[data-reg-progress-active="true"]{
  width:206px!important;
  min-width:206px!important;
  box-sizing:border-box!important;
  margin-top:110px!important;
  margin-right:17px!important;
  margin-bottom:25px!important;
  padding:18px 16px!important;
  background:#f7fbfd!important;
  border:1px solid #bfd4e2!important;
  border-radius:9px!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  gap:13px!important;
}

aside.fx-actions[data-reg-progress-active="true"]
[data-action="Incluir"],
aside.fx-actions[data-reg-progress-active="true"]
[data-action="Editar"],
aside.fx-actions[data-reg-progress-active="true"]
[data-action="Excluir"]{
  width:174px!important;
  min-width:174px!important;
  height:66px!important;
  min-height:66px!important;
  margin:0!important;
  padding:0 20px!important;
  box-sizing:border-box!important;
  border-radius:7px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:20px!important;
  font-family:inherit!important;
  font-size:19px!important;
  font-weight:700!important;
  line-height:1!important;
  box-shadow:none!important;
}

aside.fx-actions[data-reg-progress-active="true"]
[data-action="Incluir"]{
  background:#079399!important;
  border:1px solid #07868b!important;
  color:#fff!important;
}

aside.fx-actions[data-reg-progress-active="true"]
[data-action="Editar"],
aside.fx-actions[data-reg-progress-active="true"]
[data-action="Excluir"]{
  background:#fff!important;
  border:1px solid #afc8d8!important;
  color:#173853!important;
}

aside.fx-actions[data-reg-progress-active="true"]
button:disabled{
  opacity:.48!important;
  cursor:not-allowed!important;
}

.fx-reg-progress-action-icon{
  width:32px;
  height:32px;
  flex:0 0 32px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:inherit;
  font-size:34px;
  font-weight:400;
  line-height:1;
}

.fx-reg-progress-action-icon svg{
  width:27px;
  height:27px;
  display:block;
  fill:currentColor;
}

.fx-reg-progress-overlay{
  position:fixed;
  inset:0;
  z-index:99999;
  display:flex;
  align-items:center;
  justify-content:center;
  box-sizing:border-box;
  padding:24px;
  background:rgba(25,49,66,.42);
}

.fx-reg-progress-modal{
  width:min(
    756px,
    calc(100vw - 40px)
  );
  background:#fff;
  border:1px solid #d6e2e9;
  border-radius:11px;
  box-shadow:
    0 22px 55px
    rgba(17,41,58,.24);
  overflow:hidden;
}

.fx-reg-progress-modal-header{
  height:91px;
  box-sizing:border-box;
  margin:0 32px;
  padding:0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-bottom:1px solid #bed7e5;
}

.fx-reg-progress-modal-header h2{
  margin:0;
  color:#102f49;
  font-size:29px;
  font-weight:700;
  line-height:1.2;
}

.fx-reg-progress-modal-close{
  width:42px;
  height:42px;
  padding:0;
  border:0;
  border-radius:5px;
  background:transparent;
  color:#58748a;
  font-size:39px;
  font-weight:300;
  line-height:1;
  cursor:pointer;
}

.fx-reg-progress-modal-close:hover{
  background:#f3f7f9;
}

.fx-reg-progress-modal-body{
  padding:26px 32px 56px;
}

.fx-reg-progress-modal-body label{
  display:block;
  margin:0 0 10px;
  color:#173853;
  font-size:20px;
  font-weight:700;
  line-height:1.3;
}

.fx-reg-progress-required{
  color:#df3d33;
}

.fx-reg-progress-modal-body input{
  display:block;
  width:100%;
  height:60px;
  box-sizing:border-box;
  padding:0 18px;
  border:1px solid #abc6d8;
  border-radius:6px;
  background:#fff;
  color:#173853;
  font:inherit;
  font-size:20px;
  outline:none;
}

.fx-reg-progress-modal-body input::placeholder{
  color:#71879a;
  opacity:1;
}

.fx-reg-progress-modal-body input:focus{
  border-color:#078f96;
  box-shadow:
    0 0 0 2px
    rgba(7,143,150,.13);
}

.fx-reg-progress-modal-body
input[aria-invalid="true"]{
  border-color:#bb4b46;
}

.fx-reg-progress-field-error{
  margin-top:9px;
  color:#a33d3d;
  font-size:14px;
  line-height:1.35;
}

.fx-reg-progress-modal-footer{
  height:104px;
  box-sizing:border-box;
  padding:19px 32px;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:15px;
  border-top:1px solid #d9e5eb;
  background:#fbfdfe;
}

.fx-reg-progress-modal-footer button{
  height:58px;
  box-sizing:border-box;
  border-radius:7px;
  padding:0 26px;
  font:inherit;
  font-size:18px;
  font-weight:700;
  cursor:pointer;
}

.fx-reg-progress-btn-secondary{
  min-width:151px;
  border:1px solid #afc8d8;
  background:#fff;
  color:#15344e;
}

.fx-reg-progress-btn-primary{
  min-width:142px;
  border:1px solid #07868b;
  background:#079399;
  color:#fff;
}

.fx-reg-progress-btn-danger{
  min-width:142px;
  border:1px solid #a94343;
  background:#a94343;
  color:#fff;
}

.fx-reg-progress-modal-footer
button:disabled{
  opacity:.55;
  cursor:not-allowed;
}

.fx-reg-progress-delete-modal
.fx-reg-progress-modal-body{
  padding-bottom:36px;
}

.fx-reg-progress-delete-text{
  margin:0;
  color:#173853;
  font-size:18px;
  line-height:1.55;
}

@media(max-width:1000px){
  .fx-reg-progress-title h1{
    font-size:30px;
  }

  aside.fx-actions[data-reg-progress-active="true"]{
    width:174px!important;
    min-width:174px!important;
  }

  aside.fx-actions[data-reg-progress-active="true"]
  [data-action="Incluir"],
  aside.fx-actions[data-reg-progress-active="true"]
  [data-action="Editar"],
  aside.fx-actions[data-reg-progress-active="true"]
  [data-action="Excluir"]{
    width:142px!important;
    min-width:142px!important;
    gap:12px!important;
    font-size:16px!important;
  }
}


/* === REGULATORIO_ANDAMENTOS_V2_VISUAL_OVERRIDE START === */
/* Ajustes exclusivamente visuais para homologação da candidata V2 */

.fx-reg-progress-title{
  margin:0 0 38px;
  padding:0 0 19px;
}

aside.fx-actions[data-reg-progress-active="true"]{
  width:206px!important;
  min-width:206px!important;
  margin-top:110px!important;
  margin-right:0!important;
  margin-bottom:25px!important;
  padding:18px 16px!important;
}

aside.fx-actions[data-reg-progress-active="true"]
[data-action="Incluir"],
aside.fx-actions[data-reg-progress-active="true"]
[data-action="Editar"],
aside.fx-actions[data-reg-progress-active="true"]
[data-action="Excluir"]{
  width:176px!important;
  min-width:176px!important;
  height:64px!important;
  min-height:64px!important;
}

/* V2: remover escurecimento de tela cheia */
.fx-reg-progress-overlay{
  position:fixed;
  inset:0;
  z-index:99999;
  display:block;
  padding:0;
  background:transparent;
}

/* V2: criar um bloco escurecido concentrado atrás do modal */
.fx-reg-progress-overlay::before{
  content:"";
  position:absolute;
  width:min(814px, calc(100vw - 300px));
  height:426px;
  left:calc(50% + 78px);
  top:calc(50% + 96px);
  transform:translate(-50%, -50%);
  border-radius:10px;
  background:rgba(109,129,146,.58);
  box-shadow:0 26px 62px rgba(17,41,58,.16);
}

/* V2: modal deslocado para a direita e para baixo */
.fx-reg-progress-modal{
  position:absolute;
  width:min(758px, calc(100vw - 360px));
  left:calc(50% + 78px);
  top:calc(50% + 101px);
  transform:translate(-50%, -50%);
  box-shadow:0 24px 60px rgba(17,41,58,.18);
}

.fx-reg-progress-modal-header{
  height:89px;
}

.fx-reg-progress-modal-body{
  padding:25px 32px 55px;
}

.fx-reg-progress-modal-footer{
  height:103px;
}

/* fallback para telas menores */
@media (max-width: 1360px){
  .fx-reg-progress-overlay{
    display:flex;
    align-items:center;
    justify-content:center;
    padding:24px;
    background:rgba(25,49,66,.34);
  }

  .fx-reg-progress-overlay::before{
    display:none;
  }

  .fx-reg-progress-modal{
    position:relative;
    width:min(756px, calc(100vw - 40px));
    left:auto;
    top:auto;
    transform:none;
  }
}
/* === REGULATORIO_ANDAMENTOS_V2_VISUAL_OVERRIDE END === */



/* =============================================================
   REGULATORIO_ANDAMENTOS_COMPACT_V3
   Ajuste solicitado após homologação no navegador real.
   Mantém somente Andamentos dentro deste escopo.
   ============================================================= */

.fx-reg-progress-page{
  padding:18px 20px 18px!important;
  background:#f8fbfd!important;
}

.fx-reg-progress-title{
  margin:0 0 18px!important;
  padding:0 0 10px!important;
  border-bottom:1px solid #8bbce6!important;
}

.fx-reg-progress-title h1{
  margin:0!important;
  font-size:22px!important;
  line-height:1.2!important;
  font-weight:700!important;
  letter-spacing:0!important;
  color:#123a5a!important;
}

/* Tabela mais compacta */
.fx-reg-progress-table-wrap{
  border-radius:6px!important;
  border:1px solid #d4e1e9!important;
  overflow:auto!important;
}

.fx-reg-progress-table th{
  height:34px!important;
  padding:0 14px!important;
  font-size:12px!important;
  font-weight:700!important;
  text-transform:uppercase!important;
  background:#eaf2f6!important;
}

.fx-reg-progress-table td{
  height:31px!important;
  padding:0 14px!important;
  font-size:12.5px!important;
  line-height:1.2!important;
}

.fx-reg-progress-table tbody tr.is-selected td{
  box-shadow:
    inset 3px 0 0 #128c89!important;
}

/* Barra de ações no mesmo padrão compacto de Empresas */
aside.fx-actions[data-reg-progress-active="true"]{
  width:122px!important;
  min-width:122px!important;

  margin-top:0!important;
  margin-right:0!important;
  margin-bottom:0!important;

  padding:0 8px!important;

  background:transparent!important;
  border:0!important;
  border-radius:0!important;

  gap:6px!important;

  align-items:center!important;
  justify-content:flex-start!important;
}

aside.fx-actions[data-reg-progress-active="true"]
[data-action="Incluir"],
aside.fx-actions[data-reg-progress-active="true"]
[data-action="Editar"],
aside.fx-actions[data-reg-progress-active="true"]
[data-action="Excluir"]{
  width:106px!important;
  min-width:106px!important;

  height:38px!important;
  min-height:38px!important;

  margin:0!important;
  padding:0 11px!important;

  border-radius:5px!important;

  gap:7px!important;

  font-size:12px!important;
  font-weight:600!important;

  justify-content:flex-start!important;
}

aside.fx-actions[data-reg-progress-active="true"]
.fx-reg-progress-action-icon{
  width:15px!important;
  height:15px!important;
  flex:0 0 15px!important;

  font-size:20px!important;
}

aside.fx-actions[data-reg-progress-active="true"]
.fx-reg-progress-action-icon svg{
  width:14px!important;
  height:14px!important;
}

/*
 * Mantemos o modal V2 por enquanto.
 * Primeiro precisamos fazê-lo abrir no navegador real.
 * Depois da visualização, ajustaremos apenas o modal se necessário.
 */


/* =============================================================
   REGULATORIO_ANDAMENTOS_REFINO_V4
   Ajustes posteriores à homologação visual da V3.
   ============================================================= */


/* -------------------------------------------------------------
   TEXTO DOS BOTÕES LATERAIS
   ------------------------------------------------------------- */

aside.fx-actions[data-reg-progress-active="true"]
.fx-reg-progress-action-label{
  display:inline-block!important;
  visibility:visible!important;
  opacity:1!important;

  width:auto!important;
  height:auto!important;
  max-width:none!important;

  margin:0!important;
  padding:0!important;

  overflow:visible!important;
  clip:auto!important;

  color:inherit!important;

  font-family:inherit!important;
  font-size:12px!important;
  font-weight:600!important;
  line-height:1!important;

  white-space:nowrap!important;
}


/* Mantém o tamanho aprovado dos botões da V3 */

aside.fx-actions[data-reg-progress-active="true"]
[data-action="Incluir"],
aside.fx-actions[data-reg-progress-active="true"]
[data-action="Editar"],
aside.fx-actions[data-reg-progress-active="true"]
[data-action="Excluir"]{
  width:106px!important;
  min-width:106px!important;

  height:38px!important;
  min-height:38px!important;

  padding:0 9px!important;

  gap:7px!important;
}


/* -------------------------------------------------------------
   MODAL — PADRÃO COMPACTO
   ------------------------------------------------------------- */

.fx-reg-progress-overlay{
  position:fixed!important;
  inset:0!important;

  display:flex!important;
  align-items:center!important;
  justify-content:center!important;

  padding:18px!important;

  background:rgba(31,50,64,.28)!important;
}


/*
 * Neutraliza o bloco cinza superdimensionado da candidata V2.
 */

.fx-reg-progress-overlay::before{
  display:none!important;
  content:none!important;
}


/*
 * Modal menor e centralizado.
 */

.fx-reg-progress-modal{
  position:relative!important;

  left:auto!important;
  top:auto!important;
  transform:none!important;

  width:min(
    500px,
    calc(100vw - 44px)
  )!important;

  max-width:500px!important;

  margin:0!important;

  border-radius:8px!important;

  box-shadow:
    0 16px 38px
    rgba(20,42,58,.20)!important;
}


/* Cabeçalho */

.fx-reg-progress-modal-header{
  height:56px!important;

  margin:0 20px!important;
  padding:0!important;

  border-bottom:
    1px solid #d2e1e9!important;
}

.fx-reg-progress-modal-header h2{
  margin:0!important;

  font-size:18px!important;
  font-weight:700!important;
  line-height:1.2!important;

  color:#123a5a!important;
}


/* Botão X */

.fx-reg-progress-modal-close{
  width:30px!important;
  height:30px!important;

  padding:0!important;

  font-size:27px!important;
  font-weight:300!important;
  line-height:27px!important;
}


/* Corpo */

.fx-reg-progress-modal-body{
  padding:
    18px
    20px
    22px!important;
}


/* Label */

.fx-reg-progress-modal-body label{
  margin:
    0
    0
    7px!important;

  font-size:13px!important;
  font-weight:700!important;
  line-height:1.25!important;
}


/* Campo */

.fx-reg-progress-modal-body input{
  height:40px!important;

  padding:
    0
    12px!important;

  border-radius:5px!important;

  font-size:13px!important;
}


/* Mensagens de erro */

.fx-reg-progress-field-error{
  margin-top:6px!important;

  font-size:11px!important;
  line-height:1.3!important;
}


/* Rodapé */

.fx-reg-progress-modal-footer{
  height:62px!important;

  padding:
    11px
    20px!important;

  gap:8px!important;

  border-top:
    1px solid #d9e5eb!important;
}


/* Botões do modal */

.fx-reg-progress-modal-footer button{
  height:38px!important;

  min-width:104px!important;

  padding:
    0
    16px!important;

  border-radius:5px!important;

  font-size:12px!important;
  font-weight:700!important;
}


/* Salvar */

.fx-reg-progress-btn-primary{
  min-width:104px!important;
}


/* Cancelar */

.fx-reg-progress-btn-secondary{
  min-width:104px!important;
}


/* Exclusão também segue a mesma proporção */

.fx-reg-progress-btn-danger{
  min-width:104px!important;
}


/* Modal de exclusão */

.fx-reg-progress-delete-modal
.fx-reg-progress-modal-body{
  padding:
    20px
    20px
    24px!important;
}

.fx-reg-progress-delete-text{
  margin:0!important;

  font-size:13px!important;
  line-height:1.45!important;
}


/*
 * A regra V2 tinha um comportamento específico abaixo de 1360px.
 * Esta regra vem DEPOIS dela e garante que o modal compacto V4
 * prevaleça também no monitor atualmente usado.
 */

@media(max-width:1360px){

  .fx-reg-progress-overlay{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;

    padding:18px!important;

    background:
      rgba(31,50,64,.28)!important;
  }

  .fx-reg-progress-overlay::before{
    display:none!important;
    content:none!important;
  }

  .fx-reg-progress-modal{
    position:relative!important;

    left:auto!important;
    top:auto!important;
    transform:none!important;

    width:min(
      500px,
      calc(100vw - 44px)
    )!important;

    max-width:500px!important;
  }
}
