/* CERTINS Gestão — padrão global de painéis/tabelas de dados v1
   Referência visual: tabela operacional de Leads aprovada em 08/09/2026. */

#main .cert-table-wrap{
  background:#fff;
  border:1px solid #dfe7e2;
  border-radius:14px;
  overflow:auto;
  box-shadow:0 3px 14px rgba(20,48,31,.025);
}
#main .cert-table-wrap>table.cert-data-table{margin:0}

#main table.cert-data-table{
  width:100%;
  border-collapse:separate!important;
  border-spacing:0!important;
  background:#fff;
  color:#17231c;
}
#main table.cert-data-table thead{
  background:#f7faf8!important;
}
#main table.cert-data-table th{
  height:40px;
  padding:9px 12px!important;
  background:#f7faf8!important;
  border:0!important;
  border-bottom:1px solid #e1e8e4!important;
  color:#405047!important;
  font-size:.68rem!important;
  line-height:1.15!important;
  font-weight:900!important;
  letter-spacing:.025em;
  text-transform:uppercase;
  vertical-align:middle!important;
  white-space:nowrap;
}
#main table.cert-data-table td{
  min-height:64px;
  height:64px;
  padding:10px 12px!important;
  border:0!important;
  border-bottom:1px solid #e8eeea!important;
  background:#fff;
  color:#17231c;
  font-size:.72rem!important;
  line-height:1.25;
  vertical-align:middle!important;
}
#main table.cert-data-table tbody tr:last-child td{border-bottom:0!important}
#main table.cert-data-table tbody tr{transition:background .12s ease}
#main table.cert-data-table tbody tr:hover td{background:#fbfdfc!important}

#main table.cert-data-table td>b,
#main table.cert-data-table td>strong,
#main table.cert-data-table td div>b,
#main table.cert-data-table td div>strong{
  color:#111b15;
  font-weight:850;
}
#main table.cert-data-table td small{
  display:block;
  margin-top:2px;
  color:#718078!important;
  font-size:.62rem!important;
  line-height:1.2;
}
#main table.cert-data-table td em{
  font-size:.58rem;
}

#main table.cert-data-table th:first-child,
#main table.cert-data-table td:first-child{
  width:42px;
  min-width:42px;
  text-align:center!important;
}
#main table.cert-data-table input[type="checkbox"]{
  width:16px!important;
  height:16px!important;
  min-width:16px!important;
  accent-color:#087438;
}

#main .cert-data-pill{
  display:inline-flex!important;
  align-items:center;
  justify-content:center;
  min-height:24px;
  padding:5px 9px!important;
  border-radius:999px!important;
  font-size:.63rem!important;
  line-height:1!important;
  font-weight:850!important;
  white-space:nowrap;
}

/* Coluna de ações: mesma composição aprovada no painel de Leads. */
#main th.cert-actions-column,
#main td.cert-actions-cell{
  width:1%;
  white-space:nowrap!important;
}
#main .cert-row-actions{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start;
  gap:5px!important;
  flex-wrap:nowrap!important;
}
#main .cert-row-actions>.ui-standard-action.ui-icon-btn,
#main td.cert-actions-cell>.ui-standard-action.ui-icon-btn{
  width:42px!important;
  height:42px!important;
  min-width:42px!important;
  max-width:42px!important;
  padding:0!important;
  border-radius:10px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  box-shadow:none!important;
  transform:none!important;
}
#main .cert-row-actions>.ui-standard-action.ui-icon-btn .ui-icon,
#main td.cert-actions-cell>.ui-standard-action.ui-icon-btn .ui-icon{
  width:17px!important;
  height:17px!important;
  stroke-width:1.85;
}
#main .cert-row-actions>.ui-standard-action.ui-icon-btn:hover,
#main td.cert-actions-cell>.ui-standard-action.ui-icon-btn:hover{
  filter:brightness(.975);
  transform:translateY(-1px)!important;
}

/* Semântica visual universal dos botões de ação. */
#main .cert-row-actions [data-ui-kind="view"],
#main td.cert-actions-cell [data-ui-kind="view"]{
  --ui-bg:#f0f5f2;--ui-fg:#2f4a3c;--ui-bd:#dce6e0;
}
#main .cert-row-actions [data-ui-kind="edit"],
#main td.cert-actions-cell [data-ui-kind="edit"]{
  --ui-bg:#edf6ff;--ui-fg:#176ca6;--ui-bd:#d7e8f7;
}
#main .cert-row-actions [data-ui-kind="whatsapp"],
#main td.cert-actions-cell [data-ui-kind="whatsapp"]{
  --ui-bg:#e9f9ef;--ui-fg:#07843f;--ui-bd:#d1efdc;
}
#main .cert-row-actions [data-ui-kind="email"],
#main td.cert-actions-cell [data-ui-kind="email"]{
  --ui-bg:#eef6ff;--ui-fg:#176ca6;--ui-bd:#d8e8f6;
}
#main .cert-row-actions [data-ui-kind="calendar"],
#main td.cert-actions-cell [data-ui-kind="calendar"]{
  --ui-bg:#f1f5f3;--ui-fg:#40564a;--ui-bd:#dfe7e2;
}
#main .cert-row-actions [data-ui-kind="delete"],
#main td.cert-actions-cell [data-ui-kind="delete"]{
  --ui-bg:#fff0ef;--ui-fg:#b02c27;--ui-bd:#f3d4d1;
}

/* Avatares já existentes recebem dimensões uniformes, sem inventar dados. */
#main table.cert-data-table .lv2-client>span,
#main table.cert-data-table .ued-avatar,
#main table.cert-data-table .md-avatar,
#main table.cert-data-table [class*="avatar"]{
  width:34px!important;
  height:34px!important;
  min-width:34px!important;
  border-radius:50%!important;
  display:inline-grid!important;
  place-items:center!important;
  flex:0 0 34px!important;
}

/* Ordenação preservada e mais discreta como no padrão de referência. */
#main table.cert-data-table th.cert-sortable{padding-right:25px!important}
#main table.cert-data-table th.cert-sortable:after{right:8px!important;font-size:.62rem!important}

/* Não força quebra de dados críticos; o contêiner passa a rolar localmente. */
#main table.cert-data-table td:last-child,
#main table.cert-data-table th:last-child{border-right:0!important}

@media(max-width:760px){
  #main table.cert-data-table th{font-size:.66rem!important;padding:8px 10px!important}
  #main table.cert-data-table td{height:58px;min-height:58px;padding:8px 10px!important;font-size:.7rem!important}
  #main .cert-row-actions>.ui-standard-action.ui-icon-btn,
  #main td.cert-actions-cell>.ui-standard-action.ui-icon-btn{width:40px!important;height:40px!important;min-width:40px!important;max-width:40px!important}
}
