body {
  background: #f4f7f5;
  color: #13201b;
  font-family: Roboto, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

:root {
  --bs-body-font-family: Roboto, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.app-shell {
  min-height: 100vh;
  background: #f4f7f5;
}

.app-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 1040;
  display: flex;
  flex-direction: column;
  width: 280px;
  min-height: 100vh;
  background: #0c1210;
  color: #d9e7df;
  box-shadow: 14px 0 28px rgba(7, 18, 14, 0.12);
}

.app-main {
  min-height: 100vh;
  margin-left: 280px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: #20b26b;
  color: #0c1210;
  font-weight: 900;
}

.sidebar-logo {
  width: 170px;
  height: auto;
  display: block;
}

.sidebar-section {
  margin: 18px 8px 8px;
  color: #8da198;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.app-sidebar a,
.app-sidebar button {
  text-decoration: none !important;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 46px;
  margin: 2px 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #b8c8c0 !important;
  padding: 0 12px;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  text-align: left;
  transition: background-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.sidebar-link:hover,
.sidebar-link:focus,
.sidebar-link.active {
  background: rgba(32, 178, 107, 0.15);
  color: #ffffff !important;
}

.sidebar-link.active {
  box-shadow: inset 3px 0 0 #20b26b;
}

.sidebar-link .lucide {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  color: currentColor;
  stroke-width: 2;
}

.sidebar-link-label {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  gap: 12px;
}

.sidebar-chevron {
  width: 16px !important;
  height: 16px !important;
  margin-left: auto;
  opacity: 0.72;
  transition: transform 0.16s ease, opacity 0.16s ease;
}

.sidebar-dropdown {
  margin: 2px 0;
  border-radius: 10px;
}

.sidebar-dropdown.is-open {
  background: rgba(255, 255, 255, 0.035);
  padding-bottom: 6px;
}

.sidebar-dropdown.is-open .sidebar-dropdown-toggle {
  background: rgba(32, 178, 107, 0.15);
  color: #ffffff !important;
}

.sidebar-dropdown.is-open .sidebar-chevron {
  opacity: 1;
  transform: rotate(180deg);
}

.sidebar-subnav {
  display: none;
  margin: 2px 8px 0 39px;
  border-left: 1px solid rgba(32, 178, 107, 0.25);
  padding: 3px 0 3px 10px;
}

.sidebar-dropdown.is-open .sidebar-subnav {
  display: block;
}

.sidebar-subnav a {
  display: flex;
  align-items: center;
  gap: 9px;
  border-radius: 7px;
  color: #96aaa1 !important;
  padding: 9px 10px;
  font-size: 0.9rem;
  font-weight: 600;
}

.sidebar-subnav a .lucide {
  width: 15px;
  height: 15px;
  color: currentColor;
}

.sidebar-subnav a:hover,
.sidebar-subnav a.active {
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff !important;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  padding: 12px;
}

.sidebar-user .lucide {
  color: #20b26b;
}

.sidebar-logout {
  display: flex;
  width: 100%;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: #d9e7df;
  font-weight: 600;
}

.sidebar-logout:hover {
  background: rgba(220, 38, 38, 0.18);
  color: #ffffff;
}

.sidebar-logout .lucide {
  width: 16px;
  height: 16px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 1020;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
}

.content-panel,
.metric {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(14, 31, 24, 0.04);
}

.dashboard-hero {
  overflow: hidden;
  border-color: rgba(32, 178, 107, 0.18);
  background:
    linear-gradient(135deg, rgba(32, 178, 107, 0.11), rgba(255, 255, 255, 0) 42%),
    #ffffff;
}

.metric {
  padding: 20px;
}

.dashboard-metric {
  min-height: 132px;
  border-bottom: 3px solid rgba(32, 178, 107, 0.22);
}

.dashboard-metric.is-danger {
  border-bottom-color: rgba(220, 38, 38, 0.35);
}

.dashboard-metric.is-warning {
  border-bottom-color: rgba(245, 158, 11, 0.42);
}

.dashboard-table td,
.dashboard-table th {
  white-space: nowrap;
}

.dashboard-table td:first-child {
  min-width: 210px;
}

.min-w-0 {
  min-width: 0;
}

.dashboard-focus {
  border-color: rgba(32, 178, 107, 0.18);
  background:
    linear-gradient(135deg, rgba(32, 178, 107, 0.1), rgba(255, 255, 255, 0) 46%),
    #ffffff;
}

.tenants-hero {
  border-color: rgba(32, 178, 107, 0.18);
  background:
    linear-gradient(135deg, rgba(32, 178, 107, 0.1), rgba(255, 255, 255, 0) 44%),
    #ffffff;
}

.config-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.config-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.config-summary span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  background: #ffffff;
  color: #65736d;
  font-size: 0.86rem;
  padding: 0 12px;
}

.config-summary strong {
  color: #13201b;
}

.config-table td,
.config-table th {
  white-space: nowrap;
}

.config-table td:first-child {
  min-width: 220px;
  white-space: normal;
}

.admin-overview-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.dashboard-focus-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.focus-stat,
.agent-health-list a,
.tenant-card,
.tenant-strip-item,
.endpoint-strip-item,
.priority-item {
  color: inherit;
  text-decoration: none;
}

.focus-stat {
  display: block;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  padding: 14px;
}

.focus-stat span,
.agent-health-list span,
.tenant-card-subtitle,
.tenant-strip-item span,
.endpoint-strip-item span,
.priority-item span {
  color: #65736d;
  font-size: 0.82rem;
}

.focus-stat strong {
  display: block;
  margin-top: 4px;
  font-size: 1.45rem;
  line-height: 1;
}

.agent-health {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  background: #fbfcfb;
  padding: 18px;
}

.agent-health > .d-flex .lucide {
  width: 22px;
  height: 22px;
  color: #168f56;
}

.agent-health-list {
  display: grid;
  gap: 8px;
}

.agent-health-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 8px;
  background: #ffffff;
  padding: 10px 12px;
}

.agent-health-list a.is-warning {
  background: #fff7e6;
}

.agent-health-list a.is-muted {
  background: #f1f5f3;
}

.panel-heading-clean {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding: 16px 20px;
}

.tenant-card-grid,
.endpoint-strip,
.tenant-strip,
.priority-list {
  display: grid;
}

.tenant-card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
}

.tenant-card {
  display: block;
  min-height: 142px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  background: #ffffff;
  padding: 16px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.tenant-card:hover {
  border-color: rgba(32, 178, 107, 0.35);
  box-shadow: 0 12px 24px rgba(14, 31, 24, 0.08);
  transform: translateY(-1px);
}

.tenant-card.is-danger {
  border-color: rgba(220, 38, 38, 0.26);
  background: linear-gradient(180deg, #fff7f7, #ffffff 48%);
}

.tenant-card.is-warning {
  border-color: rgba(245, 158, 11, 0.34);
  background: linear-gradient(180deg, #fffaf0, #ffffff 48%);
}

.tenant-card-title {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tenant-card-subtitle {
  display: block;
  margin-top: 3px;
}

.tenant-card-state {
  display: inline-flex;
  align-items: center;
  height: 24px;
  border-radius: 999px;
  background: #eef7f2;
  color: #168f56 !important;
  font-size: 0.72rem !important;
  font-weight: 800;
  padding: 0 9px;
  text-transform: uppercase;
  white-space: nowrap;
}

.tenant-card-state.is-danger {
  background: #fee2e2;
  color: #b91c1c !important;
}

.tenant-card-state.is-warning {
  background: #fff1c2;
  color: #a16207 !important;
}

.tenant-card-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.tenant-card-metrics span {
  display: grid;
  min-height: 52px;
  place-items: center;
  border-radius: 8px;
  background: #f4f7f5;
  color: #65736d;
  font-size: 0.74rem;
  text-align: center;
}

.tenant-card-metrics strong {
  color: #13201b;
  font-size: 1.05rem;
  line-height: 1;
}

.tenant-management-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.tenant-management-card {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(14, 31, 24, 0.04);
  padding: 18px;
}

.tenant-management-card.is-danger {
  border-color: rgba(220, 38, 38, 0.28);
  background: linear-gradient(180deg, #fff7f7, #ffffff 42%);
}

.tenant-management-card.is-warning {
  border-color: rgba(245, 158, 11, 0.32);
  background: linear-gradient(180deg, #fffaf0, #ffffff 42%);
}

.tenant-slug {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  color: #52615b;
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tenant-card-note {
  min-height: 42px;
  color: #65736d;
  font-size: 0.86rem;
}

.tenant-secondary-metrics {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.tenant-secondary-metrics span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #65736d;
  font-size: 0.84rem;
}

.tenant-secondary-metrics .lucide {
  width: 15px;
  height: 15px;
  color: #168f56;
}

.tenant-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tenant-card-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.empty-icon {
  width: 38px;
  height: 38px;
  color: #168f56;
}

.endpoint-strip-item,
.tenant-strip-item,
.priority-item {
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding: 15px 20px;
  transition: background-color 0.16s ease;
}

.endpoint-strip-item:hover,
.tenant-strip-item:hover,
.priority-item:hover {
  background: #f8fbf9;
}

.endpoint-strip-item:last-child,
.tenant-strip-item:last-child,
.priority-item:last-child {
  border-bottom: 0;
}

.endpoint-strip-item strong,
.tenant-strip-item strong,
.priority-item strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tenant-strip-item {
  color: inherit;
  text-decoration: none;
}

.tenant-strip-item.is-danger {
  box-shadow: inset 4px 0 0 #dc2626;
}

.tenant-strip-item.is-warning {
  box-shadow: inset 4px 0 0 #f59e0b;
}

.tenant-strip-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.table-actions-dropdown .dropdown-menu {
  min-width: 220px;
  border-color: rgba(0, 0, 0, 0.08);
  padding: 6px;
}

.table-actions-dropdown .dropdown-item {
  border-radius: 6px;
  font-size: 0.88rem;
  padding: 8px 10px;
}

.table-actions-dropdown .dropdown-item .lucide {
  width: 15px;
  height: 15px;
}

.table-actions-dropdown .dropdown-item.active {
  background: #eef7f2;
  color: #168f56;
}

.table-actions-dropdown form {
  margin: 0;
}

.software-security-table td {
  vertical-align: middle;
}

.software-row-vulnerable {
  box-shadow: inset 3px 0 0 #dc2626;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #94a3b8;
  flex: 0 0 10px;
}

.status-dot.is-online {
  background: #16a34a;
}

.status-dot.is-pending {
  background: #94a3b8;
}

.status-dot.is-offline {
  background: #dc2626;
}

.priority-item {
  align-items: flex-start;
}

.priority-item.is-danger {
  box-shadow: inset 4px 0 0 #dc2626;
}

.priority-item.is-warning {
  box-shadow: inset 4px 0 0 #f59e0b;
}

.priority-source {
  color: #13201b !important;
  font-weight: 700;
}

.priority-site {
  overflow: hidden;
  max-width: 170px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.empty-priority {
  display: grid;
  min-height: 220px;
  place-items: center;
  color: #65736d;
  text-align: center;
}

.empty-priority .lucide {
  width: 34px;
  height: 34px;
  margin-bottom: 10px;
  color: #168f56;
}

@media (max-width: 767.98px) {
  .tenant-strip-item {
    align-items: flex-start;
    flex-direction: column;
  }

  .tenant-strip-badges {
    justify-content: flex-start;
  }

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

  .tenant-card-grid {
    grid-template-columns: 1fr;
  }

  .tenant-management-grid {
    grid-template-columns: 1fr;
  }

  .panel-heading-clean {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (min-width: 768px) and (max-width: 1199.98px) {
  .tenant-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

.icon-button {
  display: inline-grid;
  width: 2.45rem;
  height: 2.45rem;
  place-items: center;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  background: #ffffff;
  color: #13201b;
}

.icon-button .lucide,
.btn .lucide {
  width: 17px;
  height: 17px;
}

.service-box {
  min-height: 142px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  background: #fbfcfb;
  padding: 14px;
}

.category-box {
  cursor: pointer;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

.category-box:has(.form-check-input:checked) {
  border-color: rgba(32, 178, 107, 0.55);
  background: #f4fff9;
  box-shadow: 0 0 0 3px rgba(32, 178, 107, 0.09);
}

.category-box.is-disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.enrollment-code {
  border-radius: 8px;
  background: #0c1210;
  color: #d8f8e8;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  padding: 10px 14px;
}

.alert-card {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: background-color 0.16s ease, border-color 0.16s ease;
}

.alert-card:hover {
  background: #f8fbf9;
}

.alert-row {
  border-left: 4px solid transparent;
}

.alert-row.is-critical {
  border-left-color: #dc2626;
}

.alert-row.is-warning {
  border-left-color: #f59e0b;
}

.alert-type-icon {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 8px;
  background: #f4f7f5;
}

.alert-type-icon .lucide {
  width: 18px;
  height: 18px;
}

.alert-signal {
  border-radius: 999px;
  background: #f1f5f3;
  color: #35463f;
  padding: 4px 9px;
  font-size: 0.78rem;
  font-weight: 600;
}

.evidence-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.evidence-item {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  background: #fbfcfb;
  padding: 14px;
}

.chart-wrap {
  width: 100%;
  overflow: hidden;
}

.metric-chart-shell {
  position: relative;
  width: 100%;
  height: 330px;
  min-height: 330px;
}

.metric-chart-shell canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: #5d6a64;
  font-size: 0.86rem;
  font-weight: 600;
}

.legend-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 6px;
  border-radius: 999px;
}

.legend-dot.cpu {
  background: #168f56;
}

.legend-dot.memory {
  background: #2563eb;
}

.legend-dot.disk {
  background: #dc2626;
}

.endpoint-hero {
  background: linear-gradient(135deg, #ffffff, #f8fbf9);
}

.endpoint-network-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  gap: 12px;
  min-width: min(100%, 560px);
}

.endpoint-network-grid div {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  background: #ffffff;
  padding: 12px;
}

.endpoint-network-grid span,
.stat-card p {
  display: block;
  margin: 0 0 4px;
  color: #65736d;
  font-size: 0.82rem;
}

.endpoint-network-grid strong {
  display: block;
  font-size: 0.95rem;
  word-break: break-word;
}

.stat-card {
  min-height: 124px;
}

.stat-card .lucide {
  width: 20px;
  height: 20px;
  color: #168f56;
  margin-bottom: 16px;
}

.stat-card strong {
  display: block;
  font-size: 1.8rem;
  line-height: 1;
}

.stat-card small {
  display: block;
  color: #65736d;
  font-size: 0.78rem;
  margin-top: 8px;
}

@media (max-width: 1199.98px) {
  .admin-overview-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .admin-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.event-timeline {
  position: relative;
  padding: 18px 18px 18px 28px;
}

.event-timeline::before {
  content: "";
  position: absolute;
  top: 24px;
  bottom: 24px;
  left: 29px;
  width: 1px;
  background: #dbe5df;
}

.timeline-item {
  position: relative;
  display: block;
  padding: 0 0 14px 24px;
  color: inherit;
  text-decoration: none;
}

.timeline-dot {
  position: absolute;
  top: 18px;
  left: -4px;
  z-index: 1;
  width: 11px;
  height: 11px;
  border: 2px solid #ffffff;
  border-radius: 999px;
  background: #94a3a0;
  box-shadow: 0 0 0 3px #eef3f0;
}

.timeline-dot.warning {
  background: #f59e0b;
}

.timeline-dot.critical {
  background: #dc2626;
}

.timeline-card {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  background: #ffffff;
  padding: 14px;
  transition: border-color 0.16s ease, transform 0.16s ease;
}

.timeline-item:hover .timeline-card {
  border-color: rgba(32, 178, 107, 0.35);
  transform: translateY(-1px);
}

@media (max-width: 767.98px) {
  .endpoint-network-grid {
    grid-template-columns: 1fr;
  }
}

.management-table th {
  white-space: nowrap;
}

.management-table td {
  vertical-align: middle;
}

.btn-group > form {
  display: contents;
}

.resource-mini {
  display: grid;
  gap: 2px;
  min-width: 92px;
  color: #6a746f;
  font-size: 0.78rem;
}

.resource-mini strong {
  color: #13201b;
}

.login-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.login-video-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 12, 10, 0.88), rgba(7, 18, 14, 0.7)),
    radial-gradient(circle at 22% 20%, rgba(32, 178, 107, 0.34), transparent 30%),
    linear-gradient(180deg, rgba(12, 18, 16, 0.12), rgba(12, 18, 16, 0.82));
}

.login-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.login-feature {
  min-height: 102px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  padding: 14px;
  backdrop-filter: blur(10px);
}

.login-feature .lucide {
  width: 19px;
  height: 19px;
  color: #74e1a7;
}

.login-panel {
  width: 100%;
  max-width: 440px;
}

.login-logo {
  height: 42px;
  width: auto;
}

.login-submit {
  min-height: 46px;
  gap: 8px;
}

@media (max-width: 991.98px) {
  .app-sidebar {
    transform: translateX(-100%);
    transition: transform 0.18s ease;
  }

  .app-shell.sidebar-open .app-sidebar {
    transform: translateX(0);
  }

  .app-main {
    margin-left: 0;
  }
}

/* Admin: licenças e usuários */
.admin-hero {
  border-color: rgba(32, 178, 107, 0.18);
  background:
    linear-gradient(135deg, rgba(32, 178, 107, 0.1), rgba(255, 255, 255, 0) 48%),
    #ffffff;
}

.admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.admin-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 72px;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.82);
  padding: 12px 14px;
}

.admin-stat span {
  color: #65736d;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.admin-stat strong {
  color: #13201b;
  font-size: 1.45rem;
  line-height: 1.1;
}

.admin-flash {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 10px;
  margin-bottom: 1rem;
}

.admin-flash .lucide {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.admin-panel {
  overflow: hidden;
}

.admin-panel-accent {
  border-color: rgba(32, 178, 107, 0.16);
  background:
    linear-gradient(180deg, rgba(32, 178, 107, 0.06), rgba(255, 255, 255, 0) 120px),
    #ffffff;
}

.admin-panel-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 20px 20px 0;
}

.admin-panel-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(32, 178, 107, 0.12);
  color: #178a54;
  flex-shrink: 0;
}

.admin-panel-icon .lucide {
  width: 20px;
  height: 20px;
}

.admin-form {
  padding: 20px;
}

.admin-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 220px;
  padding: 32px 20px;
  text-align: center;
  color: #65736d;
}

.admin-empty .lucide {
  width: 34px;
  height: 34px;
  color: #9aa8a1;
}

.admin-client-list,
.admin-user-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 20px 20px;
}

.admin-client-card,
.admin-user-row {
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 12px;
  background: #fafcfb;
}

.admin-client-card {
  padding: 16px;
}

.admin-client-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.admin-client-avatar,
.admin-user-avatar {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 10px;
  background: rgba(32, 178, 107, 0.12);
  color: #178a54;
  font-weight: 700;
}

.admin-client-avatar {
  width: 42px;
  height: 42px;
}

.admin-client-avatar .lucide {
  width: 20px;
  height: 20px;
}

.admin-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #65736d;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0 10px;
}

.admin-license-meter {
  margin-bottom: 14px;
}

.admin-license-meter-labels,
.admin-license-total {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #65736d;
  font-size: 0.82rem;
}

.admin-license-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.06);
  overflow: hidden;
  margin: 8px 0;
}

.admin-license-track.compact {
  width: 110px;
  margin: 0 0 4px;
}

.admin-license-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #20b26b, #74e1a7);
}

.admin-license-fill.is-high {
  background: linear-gradient(90deg, #d97706, #f59e0b);
}

.admin-license-fill.is-full {
  background: linear-gradient(90deg, #dc2626, #f87171);
}

.admin-license-meter.is-high .admin-license-fill {
  background: linear-gradient(90deg, #d97706, #f59e0b);
}

.admin-license-meter.is-full .admin-license-fill {
  background: linear-gradient(90deg, #dc2626, #f87171);
}

.admin-license-form .input-group {
  max-width: 220px;
}

.license-input {
  width: 92px;
}

.license-date-input {
  width: 150px;
}

.license-pack-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 170px;
}

.license-pack-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.license-pack-chip .lucide {
  width: 14px;
  height: 14px;
}

.license-detail-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.license-detail-grid div {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  background: #ffffff;
  padding: 12px;
}

.license-detail-grid span {
  display: block;
  color: #65736d;
  font-size: 0.78rem;
  margin-bottom: 4px;
}

.license-detail-grid strong {
  display: block;
  font-size: 1.25rem;
  line-height: 1;
}

.license-pack-add {
  display: grid;
  grid-template-columns: minmax(120px, 180px) minmax(150px, 220px) auto;
  align-items: end;
  gap: 10px;
}

body.license-locked .app-main main {
  position: relative;
  min-height: calc(100vh - 80px);
}

body.license-locked .app-main main > :not(.license-lock-overlay) {
  filter: blur(9px);
  opacity: 0.52;
  pointer-events: none;
  user-select: none;
}

.license-lock-overlay {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: start center;
  padding: 92px 24px 24px;
  background: rgba(244, 247, 245, 0.36);
}

.license-lock-overlay > div {
  max-width: 520px;
  border: 1px solid rgba(220, 38, 38, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 45px rgba(14, 31, 24, 0.12);
  padding: 26px;
  text-align: center;
}

.license-lock-overlay .lucide {
  width: 32px;
  height: 32px;
  color: #dc2626;
  margin: 0 auto 14px;
}

.license-lock-overlay h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.license-lock-overlay p {
  color: #65736d;
  margin-bottom: 18px;
}

.firewall-finding-list {
  display: grid;
  gap: 8px;
}

.firewall-finding {
  display: grid;
  grid-template-columns: auto minmax(180px, 280px) 1fr;
  align-items: center;
  gap: 10px;
  border-left: 3px solid #f59e0b;
  background: #ffffff;
  padding: 10px 12px;
}

.firewall-finding.is-critical {
  border-left-color: #dc2626;
}

.firewall-finding strong {
  font-size: 0.9rem;
}

.firewall-finding small {
  color: #65736d;
}

@media (max-width: 767.98px) {
  .firewall-finding {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 991.98px) {
  .license-detail-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .license-pack-add {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575.98px) {
  .license-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.admin-user-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
}

.admin-user-avatar {
  width: 40px;
  height: 40px;
  font-size: 0.82rem;
}

.admin-user-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  text-align: right;
  flex-shrink: 0;
}

.admin-role-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0 10px;
}

.admin-role-badge.role-super {
  background: rgba(99, 102, 241, 0.12);
  color: #4338ca;
}

.admin-role-badge.role-admin {
  background: rgba(32, 178, 107, 0.14);
  color: #178a54;
}

.admin-role-badge.role-user {
  background: rgba(0, 0, 0, 0.06);
  color: #4b5a54;
}

.admin-invite-panel .admin-form {
  padding-top: 8px;
}

.admin-invite-hint {
  text-align: center;
}

.admin-permission-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.admin-permission-tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.05);
  color: #4b5a54;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0 8px;
}

.admin-permission-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.admin-permission-group {
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 10px;
  background: #fafcfb;
  padding: 12px;
}

.admin-permission-group-title {
  margin-bottom: 8px;
  color: #65736d;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-permission-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 0.86rem;
}

.admin-permission-check:last-child {
  margin-bottom: 0;
}

.admin-permission-check input {
  margin-top: 0.2rem;
}

@media (max-width: 1199.98px) {
  .admin-user-row {
    flex-wrap: wrap;
  }

  .admin-user-meta {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
  }
}

@media (max-width: 575.98px) {
  .admin-stat-grid {
    grid-template-columns: 1fr 1fr;
  }

  .admin-license-form .input-group {
    max-width: none;
    width: 100%;
  }

  .admin-permission-grid {
    grid-template-columns: 1fr;
  }
}

.monitor-body {
  min-height: 100vh;
  background: #f5f8f7;
  color: #102019;
  overflow-x: hidden;
}

.monitor-screen {
  position: relative;
  min-height: 100vh;
  background: #f5f8f7;
  padding: clamp(22px, 2vw, 42px);
}

.monitor-content {
  display: grid;
  gap: clamp(18px, 1.5vw, 28px);
  max-width: 2180px;
  margin: 0 auto;
}

.monitor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.monitor-brand {
  display: flex;
  align-items: center;
  gap: 20px;
}

.monitor-brand img {
  width: clamp(170px, 12vw, 260px);
  height: auto;
}

.monitor-brand span,
.monitor-clock span,
.monitor-panel-head span,
.monitor-kpi span {
  display: block;
  color: #527066;
  font-size: clamp(0.78rem, 0.75vw, 1rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.monitor-brand strong {
  display: block;
  color: #102019;
  font-size: clamp(1.3rem, 1.6vw, 2.3rem);
  line-height: 1.1;
}

.monitor-clock {
  min-width: 280px;
  border: 1px solid rgba(16, 32, 25, 0.12);
  border-radius: 8px;
  background: #ffffff;
  padding: 16px 18px;
  text-align: right;
  box-shadow: 0 16px 45px rgba(14, 31, 24, 0.08);
}

.monitor-clock strong {
  display: block;
  color: #102019;
  font-size: clamp(1.05rem, 1vw, 1.45rem);
}

.monitor-kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.monitor-kpi {
  min-height: 150px;
  border: 1px solid rgba(16, 32, 25, 0.1);
  border-radius: 8px;
  background: #ffffff;
  color: #102019;
  padding: clamp(18px, 1.3vw, 26px);
  text-decoration: none;
  box-shadow: 0 16px 45px rgba(14, 31, 24, 0.08);
}

.monitor-kpi:hover {
  color: #102019;
  border-color: rgba(32, 178, 107, 0.5);
  background: #fbfefd;
}

.monitor-kpi strong {
  display: block;
  margin: 10px 0 6px;
  color: #102019;
  font-size: clamp(2.4rem, 3.6vw, 5.3rem);
  font-weight: 800;
  line-height: 0.95;
}

.monitor-kpi small {
  color: #60776e;
  font-size: clamp(0.88rem, 0.82vw, 1.05rem);
}

.monitor-kpi.is-critical {
  border-left: 6px solid #ef4444;
}

.monitor-kpi.is-critical strong {
  color: #dc2626;
}

.monitor-kpi.is-warning {
  border-left: 6px solid #f59e0b;
}

.monitor-kpi.is-warning strong {
  color: #d97706;
}

.monitor-kpi.is-online {
  border-left: 6px solid #22c55e;
}

.monitor-kpi.is-firewall {
  border-left: 6px solid #38bdf8;
}

.monitor-kpi.is-tenant {
  border-left: 6px solid #a7f3d0;
}

.monitor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(420px, 0.85fr);
  gap: clamp(18px, 1.5vw, 28px);
  align-items: start;
}

.monitor-side {
  display: grid;
  gap: clamp(18px, 1.5vw, 28px);
}

.monitor-panel {
  overflow: hidden;
  border: 1px solid rgba(16, 32, 25, 0.1);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 20px 70px rgba(14, 31, 24, 0.09);
}

.monitor-panel-head {
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid rgba(16, 32, 25, 0.1);
  padding: 18px clamp(18px, 1.4vw, 28px);
}

.monitor-panel-head h1,
.monitor-panel-head h2 {
  margin: 3px 0 0;
  color: #102019;
  font-size: clamp(1.35rem, 1.45vw, 2.25rem);
  font-weight: 800;
  line-height: 1.05;
}

.monitor-panel-head a {
  border: 1px solid rgba(32, 178, 107, 0.42);
  border-radius: 8px;
  color: #157347;
  font-weight: 800;
  padding: 10px 14px;
  text-decoration: none;
}

.monitor-alert-list,
.monitor-tenant-list,
.monitor-assets {
  display: grid;
}

.monitor-alert {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  min-height: 112px;
  border-left: 6px solid transparent;
  border-bottom: 1px solid rgba(16, 32, 25, 0.1);
  color: #102019;
  padding: 18px clamp(18px, 1.4vw, 28px);
  text-decoration: none;
}

.monitor-alert:hover,
.monitor-tenant:hover,
.monitor-asset:hover {
  background: #f7fbf9;
  color: #102019;
}

.monitor-alert.is-critical {
  border-left-color: #ef4444;
  background: #fff7f7;
}

.monitor-alert.is-warning {
  border-left-color: #f59e0b;
  background: #fffbeb;
}

.monitor-alert-icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 8px;
  background: #edf7f2;
  color: #178a54;
}

.monitor-alert-icon .lucide {
  width: 28px;
  height: 28px;
}

.monitor-alert-main {
  min-width: 0;
}

.monitor-alert-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.monitor-alert-meta span {
  border-radius: 6px;
  background: #edf2ef;
  color: #33443d;
  font-size: clamp(0.7rem, 0.7vw, 0.9rem);
  font-weight: 800;
  padding: 4px 8px;
}

.monitor-alert strong {
  display: block;
  overflow: hidden;
  color: #102019;
  font-size: clamp(1rem, 1.05vw, 1.5rem);
  font-weight: 800;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.monitor-alert small {
  display: block;
  overflow: hidden;
  margin-top: 4px;
  color: #60776e;
  font-size: clamp(0.84rem, 0.78vw, 1rem);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.monitor-alert time {
  color: #33443d;
  font-size: clamp(0.92rem, 0.9vw, 1.12rem);
  font-weight: 800;
}

.monitor-tenant,
.monitor-asset {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 74px;
  border-left: 5px solid rgba(100, 116, 139, 0.28);
  border-bottom: 1px solid rgba(16, 32, 25, 0.1);
  color: #102019;
  padding: 14px 18px;
  text-decoration: none;
}

.monitor-tenant.is-critical {
  border-left-color: #ef4444;
}

.monitor-tenant.is-warning {
  border-left-color: #f59e0b;
}

.monitor-tenant strong,
.monitor-asset strong {
  display: block;
  color: #102019;
  font-size: clamp(1rem, 0.95vw, 1.3rem);
  line-height: 1.1;
}

.monitor-tenant span,
.monitor-asset small {
  display: block;
  overflow: hidden;
  color: #60776e;
  font-size: clamp(0.78rem, 0.74vw, 0.96rem);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.monitor-tenant-score {
  min-width: 78px;
  text-align: right;
}

.monitor-tenant-score strong {
  color: #d97706;
  font-size: clamp(1.35rem, 1.35vw, 2rem);
}

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

.monitor-asset {
  justify-content: flex-start;
  min-width: 0;
}

.monitor-dot {
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  border-radius: 50%;
  background: #64748b;
}

.monitor-dot.is-online {
  background: #22c55e;
  box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.12);
}

.monitor-dot.is-pending {
  background: #f59e0b;
}

.monitor-dot.is-offline {
  background: #ef4444;
}

.monitor-muted,
.monitor-empty {
  color: #60776e;
  padding: 28px;
}

.monitor-empty {
  display: grid;
  min-height: 260px;
  place-items: center;
  text-align: center;
}

.monitor-empty .lucide {
  width: 52px;
  height: 52px;
  color: #22c55e;
  margin-bottom: 14px;
}

.monitor-empty strong {
  color: #102019;
  font-size: clamp(1.2rem, 1.2vw, 1.8rem);
}

body.license-locked .monitor-content {
  filter: blur(10px);
  opacity: 0.45;
  pointer-events: none;
  user-select: none;
}

.monitor-license-lock {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-content: center;
  gap: 10px;
  background: rgba(245, 248, 247, 0.72);
  color: #102019;
  text-align: center;
}

.monitor-license-lock .lucide {
  width: 46px;
  height: 46px;
  margin: 0 auto;
  color: #f87171;
}

.monitor-license-lock strong {
  font-size: clamp(1.6rem, 1.8vw, 2.6rem);
}

.monitor-license-lock span {
  color: #60776e;
  font-size: clamp(1rem, 1vw, 1.35rem);
}

.datto-alert-title {
  display: -webkit-box;
  max-width: 100%;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow-wrap: anywhere;
}

.datto-alert-detail {
  max-height: 220px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  border-radius: 6px;
  background: #f6f8f7;
  padding: 12px;
  color: #42544d;
}

@media (min-width: 1800px) {
  .monitor-grid {
    grid-template-columns: minmax(0, 1.7fr) minmax(540px, 0.8fr);
  }

  .monitor-alert {
    min-height: 128px;
  }
}

@media (max-width: 1399.98px) {
  .monitor-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .monitor-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .monitor-screen {
    padding: 16px;
  }

  .monitor-header,
  .monitor-alert {
    grid-template-columns: 1fr;
  }

  .monitor-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .monitor-clock {
    width: 100%;
    min-width: 0;
    text-align: left;
  }

  .monitor-kpis,
  .monitor-assets {
    grid-template-columns: 1fr;
  }

  .monitor-alert {
    display: flex;
    align-items: flex-start;
  }

  .monitor-alert time {
    margin-left: auto;
  }
}
