.admin-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 24px}.admin-tabs a{padding:9px 13px;border:1px solid var(--line);border-radius:999px;color:var(--muted)}.admin-tabs a:hover{color:white;border-color:rgba(110,231,249,.4)}.badge.trial,.badge.pending{color:#fde68a;background:rgba(245,158,11,.08)}.badge.paid{color:#a7f3d0;background:rgba(52,211,153,.08)}.badge.overdue,.badge.canceled,.badge.failed{color:#fecdd3;background:rgba(251,113,133,.08)}.org-tree{list-style:none;padding-left:0}.org-tree ul{list-style:none;border-left:1px solid var(--line);margin:10px 0 10px 18px;padding-left:20px}.org-person{display:inline-block;padding:10px 14px;border:1px solid var(--line);border-radius:14px;margin:5px 0;background:rgba(255,255,255,.04)}.checkbox-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.checkbox-grid label{display:flex;gap:9px;align-items:center;padding:11px;border:1px solid var(--line);border-radius:14px}.checkbox-grid input{width:auto}.inline-actions select{padding:8px;border-radius:10px;background:#0b1627;color:white;border:1px solid var(--line)}@media(max-width:620px){.checkbox-grid{grid-template-columns:1fr}}

/* Fila e alertas — tabelas largas */
.deliveries-table,
.alerts-table {
  max-width: 100%;
  overflow-x: auto;
}

.deliveries-table table,
.alerts-table table {
  width: 100%;
  table-layout: fixed;
}

.deliveries-table th,
.deliveries-table td,
.alerts-table th,
.alerts-table td {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  vertical-align: top;
}

/* Entregas */
.deliveries-table th:nth-child(1),
.deliveries-table td:nth-child(1) {
  width: 52px;
}

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

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

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

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

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

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

.deliveries-table th:nth-child(8),
.deliveries-table td:nth-child(8) {
  width: 170px;
}

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

.delivery-date {
  line-height: 1.4;
}

.delivery-error {
  line-height: 1.35;
}

.delivery-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: stretch;
}

.delivery-actions .btn {
  width: 100%;
  white-space: nowrap;
  text-align: center;
}

/* Alertas */
.alerts-table th:nth-child(1),
.alerts-table td:nth-child(1) {
  width: 55px;
}

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

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

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

.alerts-table th:nth-child(5),
.alerts-table td:nth-child(5) {
  width: auto;
}

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

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

@media (max-width: 1100px) {
  .deliveries-table table,
  .alerts-table table {
    min-width: 900px;
  }
}
