/* =========================================================
   CNEC BOLSAS - EDITAIS RECENTES
   ========================================================= */

.dashboard-editais-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.dashboard-editais-table thead th {
  padding: 13px 16px;
  background: #f5f8fc;
  border-top: 1px solid #e4ebf4;
  border-bottom: 1px solid #e1e8f1;
  color: #435979;
  font-size: 12px;
  font-weight: 800;
  text-align: left;
}

.dashboard-editais-table thead th:first-child {
  width: auto;
  border-radius: 10px 0 0 10px;
}

.dashboard-editais-table thead th:nth-child(2) {
  width: 235px;
}

.dashboard-editais-table thead th:nth-child(3) {
  width: 150px;
}

.dashboard-editais-table thead th:nth-child(4) {
  width: 110px;
  text-align: center;
  border-radius: 0 10px 10px 0;
}

.dashboard-editais-table tbody td {
  padding: 16px;
  border-bottom: 1px solid #e9eef5;
  background: #ffffff;
  vertical-align: middle;
  color: #273b58;
  font-size: 13px;
}

.dashboard-editais-table tbody tr:hover td {
  background: #f9fbff;
}

.dashboard-editais-table tbody td:first-child strong {
  display: block;
  color: #102342;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
}

.dashboard-editais-table tbody td:first-child span:not(.edital-status-badge) {
  display: block;
  margin-top: 4px;
  color: #74839a;
  font-size: 12px;
}

.dashboard-editais-table tbody td:nth-child(2) {
  color: #435979;
  white-space: nowrap;
}

.dashboard-editais-table tbody td:nth-child(4) {
  text-align: center;
}

/* status */

.edital-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 96px;
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.025em;
}

.edital-status-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.edital-status-badge.publicado {
  border: 1px solid #ccefdc;
  background: #effbf4;
  color: #118542;
}

.edital-status-badge.publicado::before {
  background: #26b866;
}

.edital-status-badge.encerrado {
  border: 1px solid #d7e0eb;
  background: #f2f5f9;
  color: #586b84;
}

.edital-status-badge.encerrado::before {
  background: #8190a5;
}

.edital-status-badge.rascunho {
  border: 1px solid #f1dfab;
  background: #fff9e8;
  color: #956a00;
}

.edital-status-badge.rascunho::before {
  background: #e7ae20;
}

/* contador */

.inscricoes-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 30px;
  padding: 0 10px;
  border: 1px solid #d7e6fb;
  border-radius: 9px;
  background: #eef5ff;
  color: #075bc8;
  font-size: 13px;
  font-weight: 800;
}

/* tablet */

@media (max-width: 1000px) {
  .dashboard-editais-table thead th:nth-child(2) {
    width: 195px;
  }

  .dashboard-editais-table thead th:nth-child(3) {
    width: 130px;
  }

  .dashboard-editais-table thead th:nth-child(4) {
    width: 90px;
  }
}

/* mobile */

@media (max-width: 760px) {
  .dashboard-editais-table {
    display: block;
  }

  .dashboard-editais-table thead {
    display: none;
  }

  .dashboard-editais-table tbody {
    display: grid;
    gap: 12px;
  }

  .dashboard-editais-table tbody tr {
    display: block;
    overflow: hidden;
    border: 1px solid #e1e8f1;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 4px 14px rgba(15, 43, 85, 0.05);
  }

  .dashboard-editais-table tbody td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    padding: 11px 14px;
    border-bottom: 1px solid #edf1f6;
    text-align: right;
    white-space: normal;
  }

  .dashboard-editais-table tbody td:last-child {
    border-bottom: 0;
  }

  .dashboard-editais-table tbody td::before {
    content: attr(data-label);
    flex: 0 0 auto;
    color: #718096;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
  }

  .dashboard-editais-table tbody td:first-child {
    display: block;
    padding: 16px 14px;
    text-align: left;
    background: #f8faff;
  }

  .dashboard-editais-table tbody td:first-child::before {
    display: none;
  }

  .dashboard-editais-table tbody td:first-child strong {
    font-size: 13px;
  }

  .dashboard-editais-table tbody td:nth-child(2) {
    white-space: normal;
  }

  .dashboard-editais-table tbody td:nth-child(4) {
    text-align: right;
  }

  .edital-status-badge {
    min-width: 90px;
  }
}
