/*
 * Fluxus Regulatório
 * Processos Judiciais em andamento
 *
 * Referência visual:
 * "Gestão de Processos Judiciais.png"
 */

.fx-reg-judicial-page {
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 8px 7px 3px;
  color: #13283a;
}

.fx-reg-judicial-title {
  flex: 0 0 auto;
  display: block;
  margin: 0 0 9px;
  padding: 0 2px 9px;
  border: 0;
  border-bottom: 2px solid #a9cfe8;
  background: transparent;
}

.fx-reg-judicial-title h1 {
  margin: 0;
  color: #14283a;
  font-size: 27px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -.025em;
}


/* ================================================================
   FILTROS
   ================================================================ */

.fx-reg-judicial-filters {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns:
    1.05fr
    1fr
    1fr
    1fr
    1.05fr;
  gap: 13px;
  align-items: end;
  margin-bottom: 11px;
  padding: 11px 12px 12px;
  border: 1px solid #d9e6ee;
  border-radius: 4px;
  background: #ffffff;
  box-shadow:
    0 2px 7px rgba(24, 58, 83, .035);
}

.fx-reg-judicial-filters label {
  min-width: 0;
  display: block;
}

.fx-reg-judicial-filters label > span {
  display: block;
  margin: 0 0 5px 2px;
  color: #40596e;
  font-size: 12px;
  line-height: 1.1;
  font-weight: 500;
}

.fx-reg-judicial-filters input {
  width: 100%;
  height: 32px;
  margin: 0;
  padding: 5px 8px;
  border: 1px solid #b8cbd9;
  border-radius: 3px;
  outline: none;
  background: #fff;
  color: #20394c;
  font-size: 12px;
  box-shadow:
    inset 0 1px 2px rgba(26, 53, 72, .025);
}

.fx-reg-judicial-filters input:focus {
  border-color: #6daecf;
  box-shadow:
    0 0 0 1px rgba(78, 157, 196, .12);
}


/* ================================================================
   TABELA
   ================================================================ */

.fx-reg-judicial-table-shell {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  border: 1px solid #cbdce8;
  border-radius: 4px;
  background: #f7fbfe;
}

.fx-reg-judicial-table {
  width: 100%;
  height: 100%;
  min-height: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  background: #f7fbfe;
  color: #1c3143;
  font-size: 11.5px;
}

.fx-reg-judicial-table .col-processo {
  width: 15%;
}

.fx-reg-judicial-table .col-empresa {
  width: 14%;
}

.fx-reg-judicial-table .col-adverso {
  width: 15.5%;
}

.fx-reg-judicial-table .col-natureza {
  width: 12%;
}

.fx-reg-judicial-table .col-valor {
  width: 14.5%;
}

.fx-reg-judicial-table .col-advogado {
  width: 15.5%;
}

.fx-reg-judicial-table .col-andamento {
  width: 13.5%;
}

.fx-reg-judicial-table th,
.fx-reg-judicial-table td {
  border-right: 1px solid rgba(255,255,255,.92);
  border-bottom: 1px solid rgba(255,255,255,.96);
}

.fx-reg-judicial-table th:last-child,
.fx-reg-judicial-table td:last-child {
  border-right: 0;
}

.fx-reg-judicial-table thead th {
  height: 42px;
  padding: 8px 9px;
  background: #eaf2f9;
  color: #172d40;
  font-size: 11.5px;
  line-height: 1.15;
  font-weight: 600;
  text-align: center;
  text-transform: none;
  vertical-align: middle;
}

.fx-reg-judicial-table tbody td {
  height: 31px;
  padding: 5px 8px;
  color: #314c60;
  vertical-align: middle;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fx-reg-judicial-table tbody tr:nth-child(odd) td {
  background: #f1f7fc;
}

.fx-reg-judicial-table tbody tr:nth-child(even) td {
  background: #edf5fb;
}

.fx-reg-judicial-table tbody tr[data-reg-process-id] {
  cursor: pointer;
}

.fx-reg-judicial-table
tbody
tr[data-reg-process-id]:hover td {
  background: #e4f0f8;
}

.fx-reg-judicial-table
tbody
tr.is-selected td {
  background: #d6e9f5;
}


/* ================================================================
   BARRA DE AÇÕES OFICIAL
   ================================================================ */

#shell.fx-reg-judicial-andamento-mode
.fx-workspace {
  grid-template-columns:
    minmax(0, 1fr)
    116px;
}

#shell.fx-reg-judicial-andamento-mode
.fx-workspace >
aside.fx-actions {
  display: flex !important;
  flex-direction: column !important;
  gap: 7px !important;
  overflow: visible !important;
}

#shell.fx-reg-judicial-andamento-mode
.fx-actions
button {
  display: grid;
  grid-template-columns: 24px 1fr;
  align-items: center;
  width: 100%;
  min-height: 42px;
  padding: 0 8px;
  border: 1px solid #cbdce8;
  border-radius: 4px;
  background: #fff;
  color: #26445b;
  font-size: 11px;
  font-weight: 500;
  text-align: left;
  box-shadow:
    0 2px 5px rgba(20, 53, 77, .035);
}

#shell.fx-reg-judicial-andamento-mode
.fx-actions
button > span {
  color: #173f5c;
  font-size: 17px;
  text-align: center;
}

#shell.fx-reg-judicial-andamento-mode
.fx-actions
button[data-action="Incluir"] {
  border-color: #078c8c;
  background:
    linear-gradient(
      180deg,
      #0ca39d,
      #078681
    );
  color: #fff;
  font-weight: 600;
}

#shell.fx-reg-judicial-andamento-mode
.fx-actions
button[data-action="Incluir"] > span {
  color: #fff;
}

#shell.fx-reg-judicial-andamento-mode
.fx-actions
button[data-action="Excluir"] {
  border-color: #cbdce8;
  background: #fff;
  color: #26445b;
}

#shell.fx-reg-judicial-andamento-mode
.fx-actions
button[data-action="Excluir"] > span {
  color: #173f5c;
}

#shell.fx-reg-judicial-andamento-mode
#logoutBtn {
  margin-top: 0 !important;
}

#shell.fx-reg-judicial-andamento-mode
.fx-actions
button:disabled {
  opacity: .55;
  cursor: default;
}


/* ================================================================
   CONTEÚDO E IMPRESSÃO
   ================================================================ */

#shell.fx-reg-judicial-andamento-mode
.fx-main >
#content {
  overflow: hidden !important;
  padding: 10px !important;
  background: #f5f8fa;
}

@media print {
  body:has(.fx-reg-judicial-page)
  .fx-actions,

  body:has(.fx-reg-judicial-page)
  .fx-chrome,

  body:has(.fx-reg-judicial-page)
  .fx-context,

  body:has(.fx-reg-judicial-page)
  .fx-content-status,

  body:has(.fx-reg-judicial-page)
  .fx-status {
    display: none !important;
  }

  .fx-reg-judicial-page {
    padding: 0;
  }
}


/* ============================================================
   REG_JUDICIAL_COLUNAS_COMPLETAS_V1
   Redistribuição para mostrar integralmente os conteúdos.
   ============================================================ */

.fx-reg-judicial-table {
  width: 100% !important;
  table-layout: fixed !important;
}


/* Total = 100% */

.fx-reg-judicial-table .col-processo {
  width: 17% !important;
}

.fx-reg-judicial-table .col-empresa {
  width: 12% !important;
}

.fx-reg-judicial-table .col-adverso {
  width: 18% !important;
}

.fx-reg-judicial-table .col-natureza {
  width: 10% !important;
}

.fx-reg-judicial-table .col-valor {
  width: 13% !important;
}

.fx-reg-judicial-table .col-advogado {
  width: 16% !important;
}

.fx-reg-judicial-table .col-andamento {
  width: 14% !important;
}


/*
 * Não ocultar conteúdo.
 * Textos maiores passam para a linha seguinte.
 */
.fx-reg-judicial-table tbody td {
  white-space: normal !important;

  overflow: visible !important;

  text-overflow: clip !important;

  overflow-wrap: break-word !important;

  word-break: normal !important;

  line-height: 1.35 !important;

  vertical-align: middle !important;

  padding-top: 10px !important;
  padding-bottom: 10px !important;
}


/*
 * Nº do processo não possui espaços naturais.
 * Pode quebrar em qualquer ponto sem esconder caracteres.
 */
.fx-reg-judicial-table tbody td:nth-child(1) {
  overflow-wrap: anywhere !important;
}


/*
 * Valor monetário permanece inteiro em uma linha.
 */
.fx-reg-judicial-table tbody td:nth-child(5) {
  white-space: nowrap !important;
}


/*
 * Cabeçalhos também podem quebrar,
 * evitando esmagamento de coluna.
 */
.fx-reg-judicial-table thead th {
  white-space: normal !important;

  line-height: 1.2 !important;
}



/* REG_JUDICIAL_V14_MOCKUP_APROVADO */
.fx-reg-judicial-page {
  min-height: 0;
  height: 100%;
  overflow: hidden;
}
.fx-reg-judicial-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 4px 9px;
  margin-bottom: 8px;
}
.fx-reg-judicial-title h1 {
  font-size: 21px;
  line-height: 1.2;
}
.fx-reg-v14-filter-open,
.fx-reg-v14-apply {
  border: 1px solid #087f7b;
  border-radius: 5px;
  padding: 8px 17px;
  background: #087f7b;
  color: white;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.fx-reg-judicial-table-shell {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #a3c8c4 #eef4f4;
}
.fx-reg-judicial-table {
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  table-layout: fixed !important;
}
.fx-reg-judicial-table .col-processo {width: 24% !important;}
.fx-reg-judicial-table .col-empresa {width: 17% !important;}
.fx-reg-judicial-table .col-adverso {width: 19% !important;}
.fx-reg-judicial-table .col-valor {width: 16% !important;}
.fx-reg-judicial-table .col-advogado {width: 24% !important;}

.fx-reg-judicial-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  height: 28px !important;
  padding: 5px 7px !important;
  background: #eaf2f3 !important;
  font-size: 11px;
  line-height: 1.15 !important;
  white-space: nowrap !important;
}
.fx-reg-judicial-table tbody td {
  height: 25px !important;
  padding: 3px 7px !important;
  font-size: 11px;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  overflow-wrap: normal !important;
  vertical-align: middle;
}
.fx-reg-judicial-table tbody td:first-child {
  white-space: nowrap !important;
  overflow-wrap: normal !important;
  word-break: keep-all !important;
  font-variant-numeric: tabular-nums;
}
.fx-reg-judicial-table tbody td:nth-child(4) {
  white-space: nowrap !important;
}
.fx-reg-v14-backdrop[hidden] {display: none !important;}
.fx-reg-v14-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  background: rgba(18, 41, 49, .38);
}
.fx-reg-v14-modal {
  box-sizing: border-box;
  width: min(690px, 96vw);
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid #dbe5e5;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 22px 65px rgba(10, 45, 49, .20);
  color: #233d42;
}
.fx-reg-v14-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 20px 24px 15px;
  border-bottom: 1px solid #e8eeee;
}
.fx-reg-v14-modal-head h2 {
  margin: 0;
  font-size: 19px;
  color: #164d4d;
}
.fx-reg-v14-modal-head p {
  margin: 5px 0 0;
  font-size: 12px;
  color: #6c8185;
}
.fx-reg-v14-modal-head button {
  border: 0;
  background: transparent;
  color: #61787b;
  font-size: 24px;
  cursor: pointer;
}
.fx-reg-v14-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px 18px;
  padding: 22px 24px;
}
.fx-reg-v14-fields label {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
}
.fx-reg-v14-fields input {
  box-sizing: border-box;
  width: 100%;
  height: 36px;
  padding: 8px 10px;
  border: 1px solid #cedddd;
  border-radius: 5px;
  background: white;
  color: #20383b;
  font-size: 12px;
}
.fx-reg-v14-fields input:focus {
  outline: 2px solid #b9dfda;
  border-color: #087f7b;
}
.fx-reg-v14-modal-footer {
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 15px 24px;
  border-top: 1px solid #e8eeee;
  background: #fbfcfc;
}
.fx-reg-v14-modal-footer span {flex: 1;}
.fx-reg-v14-modal-footer button {
  min-height: 34px;
  padding: 7px 14px;
  border: 1px solid #d5dfdf;
  border-radius: 5px;
  background: #fff;
  color: #294d4e;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.fx-reg-v14-modal-footer .fx-reg-v14-apply {
  background: #087f7b;
  border-color: #087f7b;
  color: white;
}
@media (max-width: 640px) {
  .fx-reg-v14-fields {grid-template-columns: 1fr;}
  .fx-reg-judicial-title h1 {font-size: 17px;}
}

/* REG_JUDICIAL_V14_2_PRINT_ALL */
@media print {
  .fx-reg-v14-filter-open,
  .fx-reg-v14-backdrop {
    display: none !important;
  }

  .fx-reg-judicial-page,
  .fx-reg-judicial-table-shell {
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    overflow: visible !important;
  }

  .fx-reg-judicial-table {
    height: auto !important;
    min-height: 0 !important;
    width: 100% !important;
  }

  .fx-reg-judicial-table thead {
    display: table-header-group !important;
  }

  .fx-reg-judicial-table thead th {
    position: static !important;
  }

  .fx-reg-judicial-table tbody tr {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  #shell.fx-reg-judicial-andamento-mode .fx-main,
  #shell.fx-reg-judicial-andamento-mode #content {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }
}


/* REG_JUDICIAL_V14_3_PRINT_FIX
   Exclusivo da impressao de Processos Judiciais.
   Nao modifica o layout de tela.
*/
@media print {
  #shell.fx-system.fx-reg-judicial-andamento-mode {
    display: block !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
  }

  #shell.fx-reg-judicial-andamento-mode .fx-workspace,
  #shell.fx-reg-judicial-andamento-mode .fx-main,
  #shell.fx-reg-judicial-andamento-mode #content {
    display: block !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
  }

  #shell.fx-reg-judicial-andamento-mode .fx-chrome,
  #shell.fx-reg-judicial-andamento-mode .fx-context,
  #shell.fx-reg-judicial-andamento-mode .fx-content-status,
  #shell.fx-reg-judicial-andamento-mode .fx-status,
  #shell.fx-reg-judicial-andamento-mode .fx-actions {
    display: none !important;
  }

  #shell.fx-reg-judicial-andamento-mode .fx-reg-judicial-page,
  #shell.fx-reg-judicial-andamento-mode .fx-reg-judicial-table-shell {
    display: block !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }

  #shell.fx-reg-judicial-andamento-mode .fx-reg-judicial-table {
    display: table !important;
    width: 100% !important;
  }
}


/* FLUXUS_REG_TABELA_SEM_CORTES_V1 */

/* A tabela pode crescer até comportar os textos completos. */
table:has(tbody[data-reg-judicial-body]) {
    table-layout: auto !important;
    width: max-content !important;
    min-width: 100% !important;
    max-width: none !important;
}

/* Nenhuma coluna tem largura artificial ou texto cortado. */
table:has(tbody[data-reg-judicial-body]) thead th:nth-child(n),
table:has(tbody[data-reg-judicial-body]) tbody td:nth-child(n) {
    width: auto !important;
    min-width: max-content !important;
    max-width: none !important;
    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: clip !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
}

/* Rolagem horizontal apenas quando necessária. */
*:has(> table:has(tbody[data-reg-judicial-body])) {
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-x: auto !important;
}
