/* =========================================================
   MOOV — LOGS DE ATIVIDADE FINAL MANAGER
   ========================================================= */

#sec-logs-atividade.moov-logs-final,
#sec-logs-atividade.moov-logs-final * {
  box-sizing: border-box !important;
}

#sec-logs-atividade.moov-logs-final {
  padding: 28px !important;
  min-height: calc(100vh - 32px) !important;
  background:
    radial-gradient(circle at 92% 6%, rgba(72, 201, 118, .14), transparent 30%),
    radial-gradient(circle at 8% 0%, rgba(118, 72, 201, .11), transparent 28%),
    linear-gradient(180deg, #f6f4fa 0%, #efedf5 100%) !important;
  color: #16264a !important;
}

.ml-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 30px;
  border-radius: 30px;
  background:
    radial-gradient(circle at 92% 16%, rgba(118, 221, 165, .28), transparent 34%),
    linear-gradient(135deg, #4e256c 0%, #7648c9 58%, #6b78c8 100%);
  color: #fff;
  box-shadow: 0 20px 48px rgba(78, 37, 108, .22);
  margin-bottom: 22px;
}

.ml-eyebrow {
  display: inline-flex;
  align-items: center;
  width: auto;
  margin-bottom: 10px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.15);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.ml-hero h2 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 30px;
  line-height: 1.1;
  font-weight: 950;
}

.ml-hero p {
  margin: 0;
  max-width: 820px;
  color: rgba(255,255,255,.88);
  font-size: 15px;
  line-height: 1.5;
}

.ml-actions,
.ml-tools {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.ml-btn {
  min-height: 42px;
  border: 0;
  border-radius: 14px;
  padding: 0 17px;
  font-weight: 850;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, opacity .16s ease;
}

.ml-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(78, 37, 108, .18);
}

.ml-btn.primary {
  background: linear-gradient(135deg, #48c976 0%, #2dbc6a 100%);
  color: #fff;
}

.ml-btn.secondary {
  background: linear-gradient(135deg, #7b20d4 0%, #6200b3 100%);
  color: #fff;
}

.ml-btn.light {
  background: #f0ebfa;
  color: #4e256c;
}

.ml-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}

.ml-kpis article {
  position: relative;
  overflow: hidden;
  min-height: 118px;
  padding: 21px 22px;
  border-radius: 26px;
  background: #fff;
  border: 1px solid rgba(118, 72, 201, .10);
  box-shadow: 0 14px 32px rgba(78, 37, 108, .08);
}

.ml-kpis article::after {
  content: "";
  position: absolute;
  right: -32px;
  bottom: -32px;
  width: 96px;
  height: 96px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(118,72,201,.09), rgba(72,201,118,.12));
}

.ml-kpis span {
  display: block;
  margin-bottom: 10px;
  color: #5d6880;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.ml-kpis strong {
  display: block;
  margin-bottom: 8px;
  color: #16264a;
  font-size: 34px;
  line-height: 1;
  font-weight: 950;
}

.ml-kpis small {
  display: block;
  color: #5f6d82;
  font-size: 13px;
}

.ml-panel {
  margin-bottom: 22px;
  padding: 22px;
  border-radius: 28px;
  background: #fff;
  border: 1px solid rgba(118, 72, 201, .10);
  box-shadow: 0 14px 32px rgba(78, 37, 108, .07);
}

.ml-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.ml-panel h3 {
  margin: 0 0 6px;
  color: #16264a;
  font-size: 20px;
  font-weight: 950;
}

.ml-panel p {
  margin: 0;
  color: #5f6d82;
  font-size: 14px;
  line-height: 1.45;
}

.ml-tools {
  justify-content: flex-end;
}

.ml-tools input,
.ml-tools select {
  min-height: 44px;
  border: 1px solid #ddd2ef;
  border-radius: 14px;
  background: #fff;
  color: #16264a;
  padding: 0 14px;
  font-size: 14px;
  outline: none;
}

.ml-tools input {
  min-width: 310px;
}

.ml-tools input:focus,
.ml-tools select:focus {
  border-color: #7648c9;
  box-shadow: 0 0 0 4px rgba(118, 72, 201, .11);
}

.ml-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  border-radius: 20px;
  border: 1px solid #e6dcf4;
  background: #fff;
}

.ml-table {
  width: 100%;
  min-width: 1220px;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  table-layout: fixed;
}

.ml-table th {
  text-align: left;
  padding: 14px 13px;
  background: #efe8fa;
  color: #4e256c;
  border-bottom: 1px solid #e0d4f3;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 950;
  letter-spacing: .05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ml-table td {
  padding: 14px 13px;
  border-bottom: 1px solid #f0edf5;
  color: #253654;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 650;
  vertical-align: middle;
  background: #fff;
  overflow-wrap: anywhere;
}

.ml-table tbody tr:nth-child(even) td {
  background: #faf9fd;
}

.ml-table tr:hover td {
  background: #f4effb;
}

.ml-table th:nth-child(1),
.ml-table td:nth-child(1) {
  width: 155px;
}

.ml-table th:nth-child(2),
.ml-table td:nth-child(2) {
  width: 215px;
}

.ml-table th:nth-child(3),
.ml-table td:nth-child(3) {
  width: 115px;
}

.ml-table th:nth-child(4),
.ml-table td:nth-child(4) {
  width: 135px;
}

.ml-table th:nth-child(5),
.ml-table td:nth-child(5) {
  width: 115px;
}

.ml-table th:nth-child(6),
.ml-table td:nth-child(6) {
  width: 150px;
}

.ml-table th:nth-child(7),
.ml-table td:nth-child(7) {
  width: 330px;
}

.ml-table td strong {
  display: block;
  color: #17233d;
  font-weight: 900;
}

.ml-table td small {
  display: block;
  margin-top: 3px;
  color: #6d778a;
  font-size: 12px;
}

.ml-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  background: #efe8fa;
  color: #4e256c;
  border: 1px solid #e0d4f3;
}

.ml-badge.ok {
  background: #dff7ea;
  color: #14734a;
  border-color: #afe7ca;
}

.ml-badge.bad {
  background: #ffe9e9;
  color: #a33a3a;
  border-color: #ffcaca;
}

.ml-badge.info {
  background: #eef2ff;
  color: #354fa1;
  border-color: #d8defb;
}

.ml-empty {
  padding: 28px;
  text-align: center;
  color: #5f6d82;
  font-weight: 800;
}

.ml-toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 100000;
  max-width: 380px;
  padding: 13px 16px;
  border-radius: 15px;
  background: #16264a;
  color: #fff;
  box-shadow: 0 16px 34px rgba(0,0,0,.18);
  font-size: 14px;
  font-weight: 800;
}

@media (max-width: 1100px) {
  .ml-hero,
  .ml-panel-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .ml-tools {
    justify-content: flex-start;
    width: 100%;
  }

  .ml-tools input,
  .ml-tools select {
    width: 100%;
    min-width: 0;
  }

  .ml-kpis {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }
}

@media (max-width: 680px) {
  #sec-logs-atividade.moov-logs-final {
    padding: 14px !important;
  }

  .ml-hero {
    padding: 22px;
  }

  .ml-hero h2 {
    font-size: 24px;
  }

  .ml-kpis {
    grid-template-columns: 1fr;
  }
}
