/* =========================
CARD
========================= */

.ui-card {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 16px;
}


/* =========================
BUTTON
========================= */

.ui-btn {
    border: none;
    cursor: pointer;
    background: transparent;
    color: #0D4679;
    text-align: center;
    leading-trim: both;
    text-edge: cap;
    font-family: Spectral;
    font-size: 16px;
    font-style: normal;
    font-weight: 300;
    line-height: 111%; /* 17.76px */
    letter-spacing: -0.8px;
    text-decoration-line: underline;
    text-decoration-style: solid;
    text-decoration-skip-ink: auto;
    text-decoration-thickness: auto;
    text-underline-offset: auto;
}

/* =========================
TABS CONTAINER
========================= */

.portal-tabs {
  position: relative;
  display: flex;
  gap: 0px;
  margin-bottom: 20px;
  overflow-x: auto;
  border: none;
  padding-bottom:0px;
  z-index:1;
}

.portal-tabs::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;

  width: 100%;
  height: 2px;

  background: #A9A8A8;
}

.portal-tabs::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;

  width: 100%;
  height: 2px;

  background: #A9A8A8;
}

.portal-tabs {
  scrollbar-width: none;
}

.portal-tabs::-webkit-scrollbar {
  display: none;
}


/* =========================
TAB BUTTON
========================= */

.portal-tab-btn {
  position: relative;
  padding: 16px 22px;
  border: none;
  background: none;
  cursor: pointer;
  
  color:#A9A8A8;
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  line-height: 117%;
  white-space: nowrap;
  z-index:2;
}


/* =========================
HOVER
========================= */

.portal-tab-btn:hover {
  color: #0E8766;
}


/* =========================
ACTIVE
========================= */

.portal-tab-btn.active {
  color:#0E8766;
  font-weight: 600;
}


/* =========================
UNDERLINE (REAL)
========================= */

.portal-tab-btn::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0px;

  width: 100%;
  height: 2px;

  background: transparent;
  transition: background 0.2s ease;
  z-index:3;
}

.portal-tab-btn.active::before {
  background: #059669; /* verde */
}

.portal-tab-btn::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0px;

  width: 100%;
  height: 2px;

  background: transparent;
  transition: background 0.2s ease;
  z-index:3;
}

.portal-tab-btn.active::after {
  background: #059669; /* verde */
}


/* =========================
CONTENT
========================= */

.portal-tab-content {
  display: none;
  opacity: 0;
  transform: translateY(6px);
}

.portal-tab-content.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
  transition: 0.2s ease;
}




@media (max-width: 768px){

  .portal-fracao-header {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  /* BOTÃO EM CIMA */

  .portal-fracao-header .portal-card__actions {
    order: -1;
    display: flex;
    justify-content: flex-end;
    width: 100%;
    margin-bottom:10px;
  }

  /* TEXTO */

  .portal-fracao-header .portal-card__info {
    width: 100%;
  }
  
  .portal-tabs::before,
  .portal-tabs::after {
    display: none;
  }
  
  .portal-tab-btn::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 2px;
    background: #A9A8A8;
  }

  .portal-tab-btn::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: #A9A8A8;
  }

}


/* =========================
TABLE
========================= */

.ui-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.ui-table th,
.ui-table td {
  padding: 10px;
  border-bottom: 1px solid #e5e5e5;
  text-align: left;
}

.ui-table th {
  font-size: 13px;
  color: #777;
  font-weight: 500;
}


/* =========================
FILTER
========================= */

.portal-doc-filters {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* LEFT */
.portal-doc-filters__left {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* RIGHT */
.portal-doc-filters__right {
  flex: 1;
  max-width: 320px;
}

.ui-input input {
  width: 100%;

  border: none;
  outline: none;
  background: transparent;

  box-shadow: none;
  appearance: none;

  padding: 8px 0;
  font-size: 12px;
}

.ui-input {
  position: relative;
  display: flex;
  align-items: center;

  border-bottom: 1px solid rgba(4,55,41,0.2);
  padding-bottom: 4px;

  transition: border-color 0.2s ease;
}

.ui-input__icon {
  position: absolute;
  left: 0;
  width: 23px;
  height: 23px;
  opacity: 1;
}

.ui-input--icon input {
  padding-left: 36px;
}

.ui-input input::placeholder {
  color: #A9A8A8;
  font-weight: 400;
}

.ui-input:focus-within {
  border-color: rgba(4,55,41,1);
}


.ui-filter {
  position: relative;
  display: inline-block;
}


.ui-filter select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  border: none;
  outline: none;
  background: transparent;

  padding: 10px 24px 10px 0;

  font-size: 14px;
  color: #0D4679;

  cursor: pointer;

  border-top: 1px solid #9CBEDB; 
  border-bottom: 1px solid #9CBEDB;
}


.ui-filter select:hover {
  border-color: #0D4679;
}

.ui-filter select:focus {
  border-color: #0D4679;
}

.ui-filter::after {
  content: "";

  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);

  width: 12px;
  height: 6px;

  background-image: var(--arrow-url);
  background-size: contain;
  background-repeat: no-repeat;

  pointer-events: none;
  opacity: 1;
}

@media (max-width: 768px) {
  .portal-doc-filters {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 20px;
  }

  .portal-doc-filters__left {
    max-width: 100%;
  }

  .portal-doc-filters__right {
    width: 100%;
    justify-content: space-between;
  }
}



/* =========================
STATE
========================= */

.state {
  text-align: center;
  padding: 20px;
  color: #777;
}