/*
 * Fluxus Regulatório
 * Ajustes > Empresas
 * Candidata V1
 */

.fx-reg-company-page{
  height:100%;
  min-height:0;
  box-sizing:border-box;
  padding:18px 18px 14px;
  background:#f7f9fb;
  display:flex;
  flex-direction:column;
}

.fx-reg-company-page h1{
  margin:0 0 15px;
  color:#173d5a;
  font-family:inherit;
  font-size:20px;
  font-weight:700;
  line-height:1.2;
}

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

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

.fx-reg-company-table th{
  height:36px;
  box-sizing:border-box;
  padding:0 12px;
  background:#edf3f6;
  border-bottom:1px solid #d7e1e8;
  color:#334e61;
  font-size:12px;
  font-weight:700;
  text-align:left;
  vertical-align:middle;
}

.fx-reg-company-table td{
  height:36px;
  box-sizing:border-box;
  padding:0 12px;
  border-bottom:1px solid #e7edf1;
  color:#283f50;
  font-size:12px;
  text-align:left;
  vertical-align:middle;
}

.fx-reg-company-table tbody tr{
  cursor:pointer;
  background:#fff;
}

.fx-reg-company-table tbody tr:hover{
  background:#f5f9fb;
}

.fx-reg-company-table tbody tr.is-selected{
  background:#e5f3f4;
}

.fx-reg-company-table tbody tr.is-selected td{
  box-shadow:inset 3px 0 0 #147f7a;
}

.fx-reg-company-table td.fx-reg-company-empty{
  text-align:center;
  color:#778b99;
  cursor:default;
}

.fx-reg-company-table td.fx-reg-company-error{
  color:#a43c3c;
}

aside.fx-actions[data-reg-company-active="true"]{
  display:flex!important;
  flex-direction:column;
}

aside.fx-actions[data-reg-company-active="true"]
[data-action="Incluir"]{
  background:#147f7a!important;
  border-color:#147f7a!important;
  color:#fff!important;
}

aside.fx-actions[data-reg-company-active="true"]
[data-action="Incluir"] > span{
  color:#fff!important;
}

aside.fx-actions[data-reg-company-active="true"]
[data-action="Editar"],
aside.fx-actions[data-reg-company-active="true"]
[data-action="Excluir"]{
  background:#fff!important;
  color:#175f86!important;
  border-color:#d5e0e7!important;
}

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

.fx-reg-company-overlay{
  position:fixed;
  inset:0;
  z-index:99999;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
  box-sizing:border-box;
  background:rgba(18,34,45,.48);
}

.fx-reg-company-modal{
  width:min(430px,calc(100vw - 32px));
  background:#fff;
  border:1px solid #d9e1e7;
  border-radius:8px;
  box-shadow:
    0 18px 46px rgba(14,34,48,.24);
  overflow:hidden;
}

.fx-reg-company-modal-header{
  min-height:48px;
  padding:0 14px 0 18px;
  box-sizing:border-box;
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-bottom:1px solid #e2e8ed;
}

.fx-reg-company-modal-header h2{
  margin:0;
  color:#173d5a;
  font-size:16px;
  font-weight:700;
}

.fx-reg-company-modal-close{
  width:30px;
  height:30px;
  padding:0;
  border:0;
  border-radius:4px;
  background:transparent;
  color:#637986;
  font-size:23px;
  line-height:1;
  cursor:pointer;
}

.fx-reg-company-modal-close:hover{
  background:#f1f5f7;
}

.fx-reg-company-modal-body{
  padding:18px;
}

.fx-reg-company-modal-body label{
  display:block;
  margin:0 0 6px;
  color:#334e61;
  font-size:11px;
  font-weight:700;
}

.fx-reg-company-modal-body input{
  display:block;
  width:100%;
  height:36px;
  box-sizing:border-box;
  padding:0 10px;
  border:1px solid #bdcbd5;
  border-radius:4px;
  background:#fff;
  color:#243b4b;
  font:inherit;
  font-size:12px;
  outline:none;
}

.fx-reg-company-modal-body input:focus{
  border-color:#2c84b1;
  box-shadow:0 0 0 2px rgba(44,132,177,.13);
}

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

.fx-reg-company-field-error{
  margin-top:7px;
  color:#a43c3c;
  font-size:11px;
  line-height:1.35;
}

.fx-reg-company-modal-footer{
  min-height:55px;
  box-sizing:border-box;
  padding:10px 18px;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  border-top:1px solid #e2e8ed;
  background:#fafbfc;
}

.fx-reg-company-modal-footer button{
  min-width:82px;
  height:34px;
  padding:0 14px;
  border-radius:4px;
  font:inherit;
  font-size:11px;
  font-weight:700;
  cursor:pointer;
}

.fx-reg-company-btn-secondary{
  border:1px solid #cbd6de;
  background:#fff;
  color:#486272;
}

.fx-reg-company-btn-primary{
  border:1px solid #287caf;
  background:#287caf;
  color:#fff;
}

.fx-reg-company-btn-danger{
  border:1px solid #a84848;
  background:#a84848;
  color:#fff;
}

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

.fx-reg-company-delete-text{
  margin:0;
  color:#344e5f;
  font-size:12px;
  line-height:1.55;
}

@media(max-width:700px){
  .fx-reg-company-page{
    padding:12px;
  }

  .fx-reg-company-modal{
    width:min(430px,calc(100vw - 20px));
  }
}

/* ==============================================================
   REG_EMPRESAS_ACTION_BUTTONS_V2
   Ajuste exclusivo da proporção dos três comandos da tela Empresas
   ============================================================== */

aside.fx-actions[data-reg-company-active="true"]{
  width:122px !important;
  min-width:122px !important;
  padding-left:8px !important;
  padding-right:8px !important;
  box-sizing:border-box;
}

aside.fx-actions[data-reg-company-active="true"]
[data-action="Incluir"],
aside.fx-actions[data-reg-company-active="true"]
[data-action="Editar"],
aside.fx-actions[data-reg-company-active="true"]
[data-action="Excluir"]{
  width:106px !important;
  min-width:106px !important;
  height:38px !important;
  min-height:38px !important;
  padding:0 11px !important;
  box-sizing:border-box;
  font-size:12px !important;
  line-height:1 !important;
  justify-content:flex-start !important;
  gap:7px !important;
}

aside.fx-actions[data-reg-company-active="true"]
[data-action="Incluir"] svg,
aside.fx-actions[data-reg-company-active="true"]
[data-action="Editar"] svg,
aside.fx-actions[data-reg-company-active="true"]
[data-action="Excluir"] svg{
  width:15px !important;
  height:15px !important;
  flex:0 0 15px !important;
}

aside.fx-actions[data-reg-company-active="true"]
[data-action="Incluir"] + [data-action],
aside.fx-actions[data-reg-company-active="true"]
[data-action="Editar"] + [data-action]{
  margin-top:6px !important;
}
