.ful-root {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-height: 70vh;
}

.ful-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.25rem 0 0.15rem;
}

.ful-title {
  margin: 0;
  font-size: clamp(1.55rem, 2vw, 2.05rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.ful-sub {
  margin: 0.55rem 0 0;
  color: var(--text-muted, #94a3b8);
  font-size: 0.98rem;
}

.ful-hero-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.ful-meta-pill {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  padding: 0 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: var(--text-muted, #94a3b8);
  background: rgba(15, 23, 42, 0.66);
  font-size: 0.84rem;
  white-space: nowrap;
}

.ful-kpis {
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  gap: 0.8rem;
}

.ful-kpi {
  min-height: 6.2rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-left: 3px solid var(--tone, #22c55e);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.58);
  padding: 0.9rem 0.95rem;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.12);
}

.ful-kpi-label {
  color: var(--text-muted, #94a3b8);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ful-kpi-value {
  margin-top: 0.45rem;
  color: var(--text, #e5e7eb);
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
}

.ful-toolbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.48);
}

.ful-search {
  width: min(420px, 100%);
  min-height: 2.55rem;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 8px;
  background: rgba(2, 6, 23, 0.7);
  color: var(--text, #e5e7eb);
  padding: 0 0.9rem;
  font: inherit;
}

.ful-search:focus {
  outline: none;
  border-color: rgba(34, 197, 94, 0.55);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.12);
}

.ful-filter-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-left: auto;
}

.ful-chip {
  min-height: 2.25rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 999px;
  background: rgba(30, 41, 59, 0.78);
  color: var(--text, #e5e7eb);
  padding: 0 0.75rem;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
}

.ful-chip.is-active {
  color: #dfffee;
  border-color: rgba(34, 197, 94, 0.55);
  background: rgba(22, 101, 52, 0.52);
}

.ful-btn {
  min-height: 2.45rem;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 8px;
  background: rgba(30, 41, 59, 0.88);
  color: var(--text, #e5e7eb);
  padding: 0 0.85rem;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.ful-btn:hover,
.ful-chip:hover {
  filter: brightness(1.08);
}

.ful-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.ful-table-shell,
.ful-detail {
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.56);
  overflow: hidden;
}

.ful-table-shell {
  margin-top: 1rem;
}

.ful-table-scroll {
  overflow: auto;
  max-height: min(66vh, 760px);
}

.ful-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.ful-table th,
.ful-table td {
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  padding: 0.82rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

.ful-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: var(--text-muted, #94a3b8);
  background: rgba(15, 23, 42, 0.94);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ful-row {
  cursor: pointer;
}

.ful-row:hover,
.ful-row.is-selected {
  background: rgba(34, 197, 94, 0.08);
}

.ful-detail-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  border: 1px solid rgba(32, 223, 120, 0.26);
  border-radius: 999px;
  background: rgba(32, 223, 120, 0.09);
  color: #bbf7d0;
  padding: 0 0.72rem;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
  cursor: pointer;
}

.ful-detail-trigger:hover {
  background: rgba(32, 223, 120, 0.16);
  border-color: rgba(32, 223, 120, 0.42);
}

.ful-main {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
}

.ful-name {
  font-weight: 900;
  color: var(--text, #e5e7eb);
}

.ful-phone,
.ful-muted {
  color: var(--text-muted, #94a3b8);
  font-size: 0.82rem;
}

.ful-tag-list {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex-wrap: wrap;
  margin-top: 0.18rem;
}

.ful-tag {
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  background: rgba(51, 65, 85, 0.62);
  color: #cbd5e1;
  padding: 0.14rem 0.42rem;
  font-size: 0.68rem;
  font-weight: 800;
}

.ful-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  width: max-content;
  max-width: 100%;
  border-radius: 999px;
  padding: 0.25rem 0.58rem;
  border: 1px solid rgba(148, 163, 184, 0.22);
  font-size: 0.76rem;
  font-weight: 900;
  white-space: nowrap;
}

.ful-status::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: currentColor;
}

.ful-status--completed,
.ful-status--tracking,
.ful-status--sent {
  color: #86efac;
  background: rgba(22, 101, 52, 0.22);
  border-color: rgba(34, 197, 94, 0.34);
}

.ful-status--running,
.ful-status--scheduled,
.ful-status--queued,
.ful-status--retry {
  color: #facc15;
  background: rgba(113, 63, 18, 0.24);
  border-color: rgba(234, 179, 8, 0.32);
}

.ful-status--failed {
  color: #fda4af;
  background: rgba(127, 29, 29, 0.24);
  border-color: rgba(248, 113, 113, 0.32);
}

.ful-status--registered,
.ful-status--none,
.ful-status--filtered,
.ful-status--ignored {
  color: #bae6fd;
  background: rgba(12, 74, 110, 0.2);
  border-color: rgba(56, 189, 248, 0.24);
}

.ful-detail {
  position: fixed;
  top: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 90;
  width: min(480px, calc(100vw - 2rem));
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

.ful-detail[hidden] {
  display: none !important;
}

.ful-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.ful-detail-title {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.2;
}

.ful-detail-body {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1rem;
  overflow: auto;
}

.ful-detail-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.15rem;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 8px;
  background: rgba(30, 41, 59, 0.78);
  color: var(--text, #e5e7eb);
  padding: 0 0.72rem;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 900;
  cursor: pointer;
}

.ful-detail-close:hover {
  filter: brightness(1.08);
}

.ful-section {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.ful-section-title {
  color: var(--text-muted, #94a3b8);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ful-field-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}

.ful-field {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 0.6rem;
  align-items: baseline;
  font-size: 0.86rem;
}

.ful-field span:first-child {
  color: var(--text-muted, #94a3b8);
}

.ful-field strong,
.ful-field code {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--text, #e5e7eb);
}

.ful-raw {
  margin: 0;
  max-height: 260px;
  overflow: auto;
  white-space: pre-wrap;
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 8px;
  background: rgba(2, 6, 23, 0.72);
  padding: 0.75rem;
  color: #cbd5e1;
  font-size: 0.78rem;
}

.ful-empty {
  display: grid;
  place-items: center;
  min-height: 280px;
  color: var(--text-muted, #94a3b8);
  text-align: center;
  padding: 2rem;
}

.ful-empty[hidden],
.ful-error[hidden] {
  display: none !important;
}

.ful-empty strong {
  display: block;
  color: var(--text, #e5e7eb);
  margin-bottom: 0.3rem;
}

.ful-error {
  border: 1px solid rgba(248, 113, 113, 0.32);
  border-radius: 8px;
  background: rgba(127, 29, 29, 0.18);
  color: #fecdd3;
  padding: 0.9rem 1rem;
}

@media (max-width: 1180px) {
  .ful-kpis {
    grid-template-columns: repeat(3, minmax(130px, 1fr));
  }

  .ful-table-shell {
    margin-top: 0;
  }
}

@media (max-width: 720px) {
  .ful-hero,
  .ful-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .ful-hero-actions,
  .ful-filter-row {
    justify-content: flex-start;
    margin-left: 0;
  }

  .ful-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ful-field {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }

  .ful-table {
    min-width: 680px;
  }

  .ful-detail {
    inset: 0.65rem;
    width: auto;
  }
}
