/* Internal Admin Module Styles */

.admin-header-banner {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(59, 130, 246, 0.15));
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.admin-badge {
  background: rgba(139, 92, 246, 0.2);
  color: #c4b5fd;
  padding: 6px 12px;
  border-radius: var(--radius-xl);
  font-size: 0.8rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(139, 92, 246, 0.4);
}

.role-permission-matrix {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.role-card {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  position: relative;
  overflow: hidden;
}

.role-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--primary);
}

.role-card.superadmin::before { background: #ef4444; }
.role-card.admin::before { background: #f59e0b; }
.role-card.ventas::before { background: #10b981; }
.role-card.soporte::before { background: #0ea5e9; }
.role-card.consulta::before { background: #8b5cf6; }

/* Quota meter radial / linear in table */
.quota-meter-inline {
  width: 100px;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
}

.quota-meter-fill {
  height: 100%;
  border-radius: 4px;
}

.quota-meter-fill.normal { background: var(--success); }
.quota-meter-fill.warning { background: var(--warning); }
.quota-meter-fill.danger { background: var(--danger); }
